deltakit.explorer.types.QECExperiment#

class deltakit.explorer.types.QECExperiment(noisy_circuit: str, sweep_bits: BinaryDataType | None = None, measurements: Measurements | None = None, detectors: DetectionEvents | None = None, observables: ObservableFlips | None = None, leakage_flags: LeakageFlags | None = None)#

Bases: object

Represents a core of simulated experiment:
  • a noisy circuit which is used for simulation;

  • sweep bits, if used for initialisation;

  • obtained measurements, detector, observable and leakage values.

Methods#

QECExperiment.compute_detectors_and_observables

If measurements and a circuit are provided, ensure that detectors and observables are computed.

QECExperiment.from_circuit_and_measurements

Build an experiment object from 2 files.