Module stim_dem

Module stim_dem 

Source
Expand description

Detector Error Model (DEM) for Stim circuit error analysis

A DEM describes how errors in a circuit propagate to detectors and observables. This enables efficient decoding without re-simulating the full circuit.

§DEM Format

The DEM file format consists of error instructions:

error(0.01) D0 D1
error(0.02) D2 L0

Each error line specifies:

  • Probability of the error occurring
  • Which detectors are flipped by this error (D0, D1, …)
  • Which logical observables are flipped (L0, L1, …)

Structs§

DEMError
A single error mechanism in the DEM
DetectorErrorModel
Detector Error Model representation
ErrorLocation
Location information for error source