bloqade.gemini.device.simulator.Result
classResult¶source
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
| Name | Type | Description |
|---|---|---|
_raw_measurements | list[list[bool]] | |
_detector_error_model | DetectorErrorModel | |
_post_processing | atom.PostProcessing[RetType] | |
_fidelity_min | float | |
_fidelity_max | float |
methodfidelity_bounds¶source
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.
propertydetector_error_model¶source
bloqade.gemini.device.simulator.Result.detector_error_model
detector_error_model: DetectorErrorModelThe STIM detector error model corresponding to the physical noise circuit.
Returns
DetectorErrorModelDetectorErrorModel: The STIM detector error model.
propertyreturn_values¶source
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.
propertydetectors¶source
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.
propertymeasurements¶source
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.
propertyobservables¶source
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.