deltakit.circuit.Circuit.as_detector_error_model#
- Circuit.as_detector_error_model(decompose_errors: bool = False, flatten_loops: bool = False, allow_gauge_detectors: bool = False, approximate_disjoint_errors: bool | float = False, ignore_decomposition_failures: bool = False, block_decomposition_from_introducing_remnant_edges: bool = False) DetectorErrorModel#
Returns a stim.DetectorErrorModel describing the error process in the circuit. Arguments are described here: https://github.com/quantumlib/Stim/blob/main/doc/ python_api_reference_vDev.md#stim.Circuit.detector_error_model