Working with Detector Error Models
These examples show how to construct a detector error model (DEM), sample from it, and use it for decoding. For the underlying concepts, see Detector Error Models.
Decoding From Stim DEM Text: construct a decoder from Stim DEM text and predict observable flips.
Generating a Multi-Round Parity Check Matrix: generate a parity check matrix for multiple measurement rounds.
DEM Sampling: sample synthetic errors and syndromes on the CPU or GPU.
Decoding with a Dynamic DEM: construct a DEM from reusable phases and decode a measurement record with a task graph.
To estimate mechanism probabilities from recorded detector samples, see Learning Noise and Decoding with Learned Rates.