Measure the Baseline Before You Beat It: A Reproducible, Confidence-Interval-Grounded Suite of Classical Quantum-Error-Correction Decoders

Woncheol Jeong, Hayoung OhAI4Science @ NeurIPS 2026

TL;DR

If you claim your new machine-learning decoder beats a classical quantum error-correction (QEC) decoder, you had better be sure you measured the classical baseline properly. This paper releases a reproducible, confidence-interval-grounded benchmark suite for two workhorse classical decoders—minimum-weight perfect matching (MWPM) and belief propagation with ordered-statistics decoding (BP-OSD)—across three strictly separated QEC settings. It shows how standard reporting shortcuts (like ignoring rare-event uncertainty, using batch throughput instead of single-frame latency, or relying on overlapping error bars) can make comparisons look far more decisive—or far murkier—than they really are.

What Problem Does This Paper Address?

Quantum computers protect fragile quantum information by spreading it across many physical qubits and repeatedly measuring parity checks. A decoder takes those noisy check outcomes (the syndrome) and infers whether the stored logical information was flipped. Recently, learned neural decoders have started outperforming classical decoders in specific regimes.

However, comparing a learned decoder to a classical one is only as reliable as the classical baseline's measurement. The authors highlight three common reporting traps:

  1. Rare-event uncertainty: Estimating a logical error rate (LER) from a handful of failures is like estimating test accuracy from six errors—the point estimate is shaky.
  2. Batch throughput vs. real-time latency: Reporting batch GPU throughput hides how long an individual decoder call takes when answering one query at a time under a hard real-time budget.
  3. Comparing apples to oranges: The same numerical physical error rate $p$ describes completely different fault processes under different noise models, so LERs cannot be compared across noise models.
Figure 1: Overview. Top: a decoder maps syndrome bits to a prediction of the logical flip(s); a shot fails if any logical bit is predicted wrongly, and the LER is the failure fraction. Bottom: the three evaluation settings. Each has its own code, noise model, decoder input and reference decoder, and LERs are never compared across settings.

Methods

The authors do not propose a new decoder. Instead, they build a rigorous evaluation protocol and a runnable Python harness around three explicitly separated settings ("arms"):

  • Arm A (Surface Code, Circuit-Level): Rotated surface code ($d = 5, 7, 9, 11$) with 25 rounds of circuit-level noise, decoded by MWPM (PyMatching).
  • Arm B (BB Codes, Code-Capacity): Bivariate-bicycle (BB) qLDPC codes ($[[72, 12, 6]]$ and $[[144, 12, 12]]$) with single-round data flips and perfect checks, decoded by BP-OSD (ldpc).
  • Arm C (BB Codes, Phenomenological): The same BB codes over $T=6$ and $T=12$ rounds with both data and measurement flips, decoded by BP-OSD on space-time checks.

To make comparisons statistically sound, the protocol enforces:

  • Exact intervals: Every LER is reported with its failure count $f/N$ and an exact two-sided 95% Clopper–Pearson interval (flagging anything under 30 failures as "low-count").
  • Paired testing: When two decoders are scored on the same shots, they are compared using an exact paired McNemar test (with Holm adjustment) rather than checking whether marginal confidence intervals overlap.
  • Single-frame latency: Each frame is timed individually with a monotonic clock in a fresh process pinned to one CPU core (500 warm-up calls, then 10,000 timed calls across 5 sessions), reporting the median and range of percentiles.

Datasets

The suite provides two types of data (never pooled together):

  1. Frozen validation sets: Released as static arrays with SHA-256 checksums so any decoder can be scored on the exact same shots (100,000 shots per distance at $p=10^{-3}$ for Arm A; 50,000 shots per point for Arm B; 2,000 shots per point for Arm C).
  2. Fixed-sample runs: Freshly sampled runs that re-measure sparse points with 20 to 100 times more shots (up to 10,000,000 shots for Arm A at $d=11, p=10^{-3}$), add a surface-code error-rate sweep, and extend Arm C to lower error rates.

Key Insights and Ideas

  • Overlapping error bars can still hide a real difference: On 100,000 identical shots in Arm B ($[[72, 12, 6]], p=0.04$), BP-OSD of order 7 failed 7,932 times while order 0 failed 7,967 times. Their marginal confidence intervals overlap almost entirely, yet the paired McNemar test reveals a highly significant difference (Holm-adjusted $p = 3.5 \times 10^{-7}$, with 41 vs. 6 discordant shots).
  • BP-OSD has a massive latency tail driven by non-convergence: While median single-frame latencies look fast, rare non-convergent frames force BP to run all 50 iterations before falling back to OSD, creating a huge gap between median (p50) and 99th-percentile (p99) latency.
Single-frame call latency showing p50 and p99 across settings

Key Results

  • Arm A (Surface Code): At $p=10^{-3}$, the fixed-sample runs pin down sparse LERs: $7.3 \times 10^{-5}$ for $d=7$ (145/2,000,000), $6.8 \times 10^{-6}$ for $d=9$ (27/4,000,000), and $3.0 \times 10^{-7}$ for $d=11$ (3/10,000,000).
  • Arm C (Phenomenological BB) & Latency Tail: For $[[72, 12, 6]]$ at $p=0.02$, BP-OSD has a median latency of $125\ \mu\text{s}$ but a p99 of $3,800\ \mu\text{s}$ (a 30x ratio). BP fails to converge on 6.7% of frames, and in every session, those frames make up 100% of the slowest 5% of calls.
  • Neural Negative Controls: Two code-blind neural decoders trained by the authors—a residual MLP on Arm A ($d=5, p=10^{-3}$) and a gated delta-rule sequence mixer on Arm B ($[[72, 12, 6]], p=0.04$)—performed poorly as expected (LERs of $8.27 \times 10^{-2}$, ~118x MWPM; and $0.501$, ~6x BP-OSD), serving as sanity-check negative controls.

Limitations and Future Work

The authors note several clear boundaries:

  • No circuit-level BB setting: Arms B and C use code-capacity and phenomenological noise, which omit gate-level faults.
  • Host-specific timing: Latencies are Python-level wall-clock times on one shared CPU; optimized C++ or hardware implementations will differ in both absolute speed and tail behavior.
  • Remaining low-count points: Even with millions of shots, Arm A ($d=9, 11$ at $p=10^{-3}$) and Arm C ($[[144, 12, 12]]$ at low $p$) still have fewer than 30 failures.
  • Limited decoder scope: Only MWPM and BP-OSD (plus two variants) are measured, and the relationship between the BP-OSD latency tail and syndrome weight was not analyzed.

Summary updated

BibTeX
@inproceedings{jeong2026measure,
  author = {Woncheol Jeong and HAYOUNG OH},
  title = {{Measure the Baseline Before You Beat It: A Reproducible, Confidence-Interval-Grounded Suite of Classical Quantum-Error-Correction Decoders}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=OpLpd29DDb},
}
Figure