← Back to section · Open Source Projects

Open Source Tools for Quantum Error Correction: From Stim to the Decoder Ecosystem

Research on fault-tolerant quantum computing depends heavily on open source tools: the fast simulator Stim, surface-code construction libraries, decoder implementations and benchmark data. This article surveys, in qualitative terms, the shape of open source projects in this specialized field.

Published 22 November 2026 · 5 min read · PQ Frontier

Open Source Tools for Quantum Error Correction: From Stim to the Decoder Ecosystem
AI-generated site artwork
Video explainer · Quantum Open Source Projects: lattices and circuits, in the open

Why error correction research cannot do without open tools

The object of quantum error correction research is not whether a single circuit is right or wrong, but probability: whether a scheme is good depends on whether, at a given physical error rate, the logical error rate can be suppressed as the code distance grows. There is no shortcut to answering such questions — one must simulate repeatedly over large numbers of random error samples: generate errors, run the correction circuit, decode, and count failures. Sample counts routinely run into the millions, and an order-of-magnitude difference in simulation speed completely changes the rhythm of research. This field therefore depends on fast simulation tools far more than other branches of quantum computing, and those tools are mostly open source: researchers need to inspect every detail of a simulation to trust it, and they need to embed the tools into their own experimental pipelines and call them repeatedly.

Openness has a second meaning here: comparability. For a long time the field had a problem — thresholds and logical error rates reported in different papers rested on their own simulation assumptions, and with slightly different noise models or circuit details, the numbers were not comparable. Open tools and open data formats let the community agree on common benchmark circuits and sample data, so every decoder plays with the same deck of cards and progress or regression is plain to see. In a sense, half of the field’s acceleration comes from theory and devices, and the other half from the maturation of this open infrastructure.

Stim: a fast simulator for stabilizer circuits

The most representative project in this ecosystem is Stim, open sourced and maintained by a Google researcher. Stim specializes in stabilizer circuits — circuits containing only the operations most common in error correction research — and exploits their mathematical structure to simulate them extremely fast, orders of magnitude quicker than general-purpose quantum simulators. It can handle error-correction circuits with large numbers of qubits and measurement operations and produce vast amounts of sample data in a short time for subsequent decoding and statistical analysis.

A small toolchain has formed around Stim: some libraries automatically generate error-correction circuits following the construction rules of standard codes such as the surface code; some define common sample data formats so error samples from different sources are interchangeable; some tools translate the decoding problem into a matching problem on a graph. A typical researcher workflow is: generate a surface-code circuit at some code distance with a construction library, sample it with Stim under a chosen noise model, feed the samples to the decoder being evaluated, and finally measure the logical error rate. Every link in this pipeline is open source, and a newcomer can fully reproduce the entire computation of published work — something hard to imagine a decade ago.

Growing alongside the toolchain are open benchmarks and datasets. The community has gradually settled on a set of conventional benchmark configurations: fixed surface-code circuits, fixed noise-model parameters, fixed sample sizes. Any new tool or decoder first reports its results on this configuration before moving on to more complex scenarios. Hardware teams sometimes also publish syndrome data collected from real experiments in open formats, letting decoder researchers train on real noise rather than simulated noise. The value of such data assets is often underestimated: algorithm papers age, but a high-quality open dataset is reused for many years and becomes common ground for an entire subfield. Maintaining benchmarks and datasets is just as tedious and just as critical as maintaining code, and equally a precondition for this ecosystem’s sustainable operation.

Decoders: an open arena for algorithm competition

Decoding is the other half of error correction: syndrome measurements produce a pattern of symptoms, and the decoder must infer the most likely error and propose a correction. Many decoding algorithms exist — minimum-weight perfect matching is the classic route, alongside approaches based on belief propagation, tensor networks and neural networks. Because decoding directly determines the success and speed of an error-correction system, competition among teams’ decoders is intense, and open source has put that competition in the open: multiple decoder projects publish their code and interfaces, take sample data in a common format, output corrections, and are scored by unified evaluation scripts on error rate and speed.

This arena-style comparison has driven the field substantively. On one hand, a new algorithm can be validated directly on data published by others, without reproducing an entire experimental setup from scratch. On the other hand, the weaknesses of older algorithms are exposed quickly, making the directions for improvement very clear. Some notable recent advances in decoding research — for example new schemes in the accuracy-versus-speed trade-off — were all validated on top of these open tools and data. A caution is in order: decoding scores in simulation are only an upper-bound reference. Decoding on real hardware also faces real-time constraints — the decoder must finish before the next round of measurements arrives — and this engineering constraint is often underestimated in purely software evaluations.

Character and limits of this ecosystem

The error-correction open source ecosystem has a different character from the general frameworks: the projects are smaller and more specialized, their authors are often the researchers working in that direction themselves, and code is tightly bound to papers. The benefit is extremely fast iteration in step with the frontier; the cost is that documentation and ease of use generally lag behind the big frameworks, and installation and configuration feel more “laboratory-grade.” For those entering the field, a pragmatic path is to first reproduce the curves of a classic surface-code paper with Stim, then gradually replace one link in the chain — for instance with a decoder of your own — learning the field’s conventions and measurement practices through reproduction.

Over a longer horizon, the significance of this ecosystem may exceed any single project: as fault-tolerant quantum computing moves from papers to engineering, chip teams, control teams and error-correction teams need a common language, and open tools and open data formats are candidates for exactly that. Whoever becomes the de facto standard first will hold a key position in the software stack of the fault-tolerant era — and this quiet competition is playing out in these open source repositories.

Tags: Quantum Error CorrectionStimDecodersSurface Code