FaultScope User Guide¶
Start with Getting Started to install FaultScope and run a surface-code memory experiment. Then choose the guide for your next task. Each guide has a complete example and explains its outputs and limits.
Choose a Task¶
| Goal | Guide |
|---|---|
| Sample measurement records, detectors, and logical observables | Forward sampling |
| Estimate failure after decoding | Decoder integration |
| Sweep circuits or noise rates, save statistics, and resume | Logical error-rate collection |
| Generate or sample detector error models | DEM generation and sampling |
| Find influential physical noise locations | Noise sensitivity analysis |
For exact signatures and types, use the API Reference. For the estimators and their assumptions, use Theory.
Installation and Circuit Basics¶
- Install FaultScope: the virtual environment and optional dependencies.
- Build a noisy circuit: circuit operations, noise locations, detector declarations, and observables.
- Public imports: supported Python modules.
- Import Stim text: the supported subset,
including
REPEATandSHIFT_COORDS.
- Run a surface-code experiment, or use the built-in repetition-code builder.
Sampling and Analysis¶
- Sample and inspect packed results: masks, bit helpers, seeds, and simulator reuse.
- Choose and install a decoder: Python prototypes, optional native backends, and the static decoding problem.
- Generate and sample a DEM: deterministic-measurement requirements, exact conversions, approximation, and light samplers.
- Estimate noise sensitivities: signed derivatives, absolute hotspot rankings, custom loss, and Forward versus DEM interpretation.
- Collect logical error rates: limits, parallel workers, progress, CSV resume, reproducibility, and threshold sweeps.
- Explicit DEM collection: the library-only interface for tasks that already contain a DEM.
Troubleshooting and Development¶
- Troubleshooting: installation and common runtime errors. DEM-specific limits are explained in the DEM guide; seed behavior is in sampling and collection.
- Measure performance with release builds and the repository benchmark scripts.
- Reuse compiled simulators, keep location ids unique, use explicit seeds for experiments you need to reproduce, and check model assumptions before using a DEM approximation. See development checks when contributing changes.
The anchors on this page preserve links from older versions of the user guide.