Skip to content

bloqade.gemini.device.simulator.Result

← Module overview

classResultsource

bloqade.gemini.device.simulator.Result

Bases: Generic[RetType]

Simulation result including measurement outcomes, detector error model, post-processing, and fidelity bounds.

Signature
class Result(_raw_measurements: list[list[bool]], _detector_error_model: DetectorErrorModel, _post_processing: atom.PostProcessing[RetType], _fidelity_min: float, _fidelity_max: float)

Parameters

NameTypeDescription
_raw_measurementslist[list[bool]]
_detector_error_modelDetectorErrorModel
_post_processingatom.PostProcessing[RetType]
_fidelity_minfloat
_fidelity_maxfloat

methodfidelity_boundssource

bloqade.gemini.device.simulator.Result.fidelity_bounds

def fidelity_bounds() -> tuple[float, float]

Return the upper and lower fidelity bounds.

Note: The upper and lower bounds are related to branching logic in the kernel.

Returns

tuple[float, float]The (min, max) fidelity bounds.

source

propertydetector_error_modelsource

bloqade.gemini.device.simulator.Result.detector_error_model

detector_error_model: DetectorErrorModel

The STIM detector error model corresponding to the physical noise circuit.

Returns

DetectorErrorModelDetectorErrorModel: The STIM detector error model.

source

propertyreturn_valuessource

bloqade.gemini.device.simulator.Result.return_values

return_values: list[RetType]

The return values of the logical kernel.

Returns

list[RetType]The return values, one per shot.

source

propertydetectorssource

bloqade.gemini.device.simulator.Result.detectors

detectors: list[list[bool]]

The detector outcomes from the simulation.

Returns

list[list[bool]]The detector outcomes, one list per shot.

source

propertymeasurementssource

bloqade.gemini.device.simulator.Result.measurements

measurements: list[list[bool]]

The raw measurement outcomes used to compute detectors and observables.

Returns

list[list[bool]]The raw measurement outcomes, one list per shot.

source

propertyobservablessource

bloqade.gemini.device.simulator.Result.observables

observables: list[list[bool]]

The observable outcomes from the simulation.

Returns

list[list[bool]]The observable outcomes, one list per shot.

source