qilisdk.readout

Readout configuration and result types for quantum backend execution.

The primary interface for specifying readout is Readout. Build a specification by chaining with_* methods and pass it to execute():

from qilisdk.analog import Z
from qilisdk.readout import Readout

spec = Readout().with_expectation(observables=[Z(0)])
result = backend.execute(functional, readout=spec)
ev = result.expectation_values  # list[float]
Readout specification (primary API):

Readout – builder for type-safe readout declarations.

Readout method classes (constructed internally by Readout):

ReadoutMethod – abstract base. SamplingReadout – measure in the computational basis. ExpectationReadout – compute observable expectation values. StateTomographyReadout – return the full quantum state.

Result containers (see qilisdk.readout.readout_result):

ReadoutResult – abstract single-result base. SamplingReadoutResult – bitstring counts and probabilities. ExpectationReadoutResult – expectation values. StateTomographyReadoutResult – quantum state and probabilities. ReadoutCompositeResults – aggregated container for one execution step.

Submodules