FaultScope Documentation¶
FaultScope is a stabilizer circuit simulator for quantum error correction, with a Rust core and a Python API. It simulates noisy Clifford circuits, samples detector syndromes, and estimates logical error rates with external decoders. It also generates detector error models and estimates how individual noise rates affect logical failure.
Start Here¶
Follow Getting Started to install FaultScope with pip and run a complete surface-code memory experiment. You will use Stim to construct a circuit, FaultScope to sample it, and PyMatching to decode the detector syndromes.
The basic workflow is:
- Build a circuit or import one from Stim text.
- Compile it once and sample batches of shots.
- Decode the detector syndromes and count logical failures.
- Inspect noise sensitivities to see which rates most affect the chosen loss.
Choose a Guide¶
| I want to… | Read |
|---|---|
| Inspect measurements, detectors, or logical observables | Circuit Sampling |
| Connect PyMatching or choose a native decoder | Decoding |
| Generate or sample a detector error model (DEM) | Detector Error Models |
| Run parameter sweeps, resume collection, or fit a threshold | Collection and Thresholds |
| Rank noise locations and interpret sensitivities | Noise Sensitivity |
Use the guide overview for terminology and help choosing between circuit and DEM sampling. Forward circuit sampling preserves the physical noise channels; DEM sampling treats error mechanisms as independent events. Their sensitivity results refer to different parameters.
FaultScope supports Clifford circuits with supported stochastic Pauli noise. It does not provide general per-shot adaptive branching. See supported inputs for details.
Reference and Development¶
- API Reference: public interfaces, arguments, and result fields.
- Theory: sampling assumptions and sensitivity estimators.
- Architecture: compilation, execution, and aggregation.
- Decoder Development: custom Python and native decoders.
- Native Decoder ABI: the exact plugin contract.
- Compatibility: supported toolchains and upgrade notes.
- Development and Benchmarks: build, test, measure, and preview the docs.