@willow-dls/core
    Preparing search index...

    Type Alias CircuitRunResult<T>

    Circuit.run returns this type, which contains the output values in the same format that they were passed in to Circuit.run. That is, if you passed an object, you'll get a keyed object where the keys are Output labels and the values are BitStrings, and if you pass in an array, you'll get an array out as well.

    You can also get the propagation delay of the circuit after it was executed as well as the number of internal simulation steps it took to execute the circuit. This value probably won't be that useful beyond attempting to optimize circuits for shorter runtime.

    type CircuitRunResult<T extends CircuitRunType> = {
        outputs: T;
        propagationDelay: number;
        steps: number;
    }

    Type Parameters

    Index

    Properties

    outputs: T
    propagationDelay: number
    steps: number