Skip to main content
KetQat

Appearance

Problem · research

Accurate real-time decoding of quantum LDPC codes under circuit-level noise

Find decoders for quantum LDPC codes that come close to optimal logical error rates under realistic circuit noise while keeping up with the syndrome stream in real time on practical hardware. BP+OSD is accurate but slow; faster BP variants are recent and mostly preprints.

Open problemMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Problem Statement

Quantum LDPC codes such as the bivariate bicycle codes of Bravyi et al. store many logical qubits in few physical qubits, but they are only useful if their syndromes can be decoded accurately and fast enough. The problem is to find a decoder that, for general quantum LDPC codes under circuit-level noise, (i) reaches logical error rates close to those of an optimal decoder, (ii) processes each round of syndrome data in less time than the hardware takes to produce it, with a bounded worst case, and (iii) fits on classical hardware that can sit next to the quantum device. Recent papers name the lack of a practical decoder as a barrier to using these codes (Hillmann et al.) and describe reconciling accuracy with real-time constraints as the central difficulty (Qing et al., preprint).

Mathematical Formulation

A circuit with noise is summarised by a detector error model: a check matrix H∈F2m×NH \in \F_2^{m \times N} whose columns are fault mechanisms and whose rows are detectors, a logical-observable matrix L∈F2k×NL \in \F_2^{k \times N}, and prior probabilities p1,…,pNp_1, \dots, p_N. A fault configuration e∈F2Ne \in \F_2^{N} produces the syndrome s=Hes = He and flips the observables by LeLe. A decoder maps ss to a guess ℓ^∈F2k\hat\ell \in \F_2^{k}. The optimal (maximum-likelihood coset) decoder outputs

ℓ^(s)  =  arg⁡max⁡ℓ∈F2k∑e : He=s,  Le=ℓ  ∏j=1Npj ej(1−pj)1−ej,\hat\ell(s) \;=\; \arg\max_{\ell \in \F_2^{k}} \sum_{e \,:\, He = s,\; Le = \ell} \;\prod_{j=1}^{N} p_j^{\,e_j} (1 - p_j)^{1 - e_j} ,

and its failure probability PL∗P_L^{\ast} is the benchmark. A practical decoder D\mathcal{D} is judged by its failure probability PL(D)P_L(\mathcal{D}) per round relative to PL∗P_L^{\ast}, by its time per round tdect_{\mathrm{dec}} relative to the syndrome cycle time tcyct_{\mathrm{cyc}}, and by its worst-case latency.

DefinitionDetector error modelEstablished definition

Consider a stabilizer circuit that repeatedly measures the checks of a code.

A detector is a set of measurement outcomes whose parity is the same in every noiseless run of the circuit. Typical detectors compare the outcome of one check in two consecutive rounds. A logical observable is a set of measurement outcomes whose parity equals the outcome of a logical measurement.

A detector error model with mm detectors, KK observables and NN error mechanisms consists of

  • probabilities p1,…,pN∈(0,1/2)p_1, \dots, p_N \in (0, 1/2);
  • a matrix H∈F2m×NH \in \F_2^{m \times N}, where Hij=1H_{ij} = 1 when mechanism jj flips detector ii;
  • a matrix A∈F2K×NA \in \F_2^{K \times N}, where Alj=1A_{lj} = 1 when mechanism jj flips observable ll.

The model asserts that an error is a vector e∈F2Ne \in \F_2^N whose entries are independent with Pr⁡[ej=1]=pj\Pr[e_j = 1] = p_j, that the observed detection events are s=Hes = He, and that the logical observables are flipped by AeAe. A decoder receives ss and outputs a prediction of AeAe.

The model is graph-like when every column of HH has weight 1 or 2. It is then drawn as a decoding graph: one vertex per detector, one extra boundary vertex, and one edge per mechanism joining the two detectors it flips, or the detector and the boundary. With columns of larger weight the model is a decoding hypergraph. Under circuit noise the graph has one layer of vertices per round of syndrome extraction; edges inside a layer are data-qubit errors, edges between consecutive layers are measurement errors, and diagonal edges come from faults in the middle of an extraction circuit. This space-time picture goes back to Dennis, Kitaev, Landahl and Preskill; the file format and the automatic derivation from a circuit are those of Stim.

Holds when
  • Stabilizer circuits with Pauli noise, so that each fault flips a fixed set of measurement outcomes.
  • Error mechanisms are treated as independent; correlated mechanisms have to be listed as single mechanisms with their joint effect.

Exact optimal decoding is computationally hard in general:

TheoremNP-hardness of decoding general stabilizer codesPeer-reviewed result

Consider the two problems of degenerate maximum-likelihood decoding: given the generators of a stabilizer code on nn qubits and a syndrome, output (i) a most likely error with that syndrome, or (ii) an element of a most likely coset of the stabilizer group.

  1. Hsieh and Le Gall (2011). For the Pauli channel in which every qubit independently suffers an XX error with probability pp and a ZZ error with probability pp, where p<1/2p < 1/2, problems (i) and (ii) are both NP-hard. In particular, taking degeneracy into account does not make decoding easier in the worst case.
  2. Kuo and Lu (2020). For the depolarizing channel, where the XX and ZZ parts of an error are correlated, finding a most likely error and finding a correction that minimises the probability of a decoding error are NP-hard. Bounded-distance decoding of stabilizer codes is NP-hard for every channel model.

Both proofs are polynomial-time reductions from decoding problems for classical binary linear codes, whose NP-completeness is due to Berlekamp, McEliece and van Tilborg. In the reduction of Hsieh and Le Gall a classical parity-check matrix is embedded in a stabilizer code so that, for the constructed instances, the probability of a coset factorises and a most likely coset reveals a minimum-weight solution of the classical problem. Problem (ii) is in fact harder than NP-hard: see the #P-completeness theorem.

Holds when
  • Worst case over all stabilizer codes, specified by their generators, and over all syndromes. Nothing is implied for a particular family such as surface codes.
  • Memoryless Pauli noise with a fixed error rate below 1/21/2, and perfect syndrome measurement.

If decoding is slower than syndrome generation, a backlog builds up:

EquationBacklog growth for a decoder slower than syndrome generationPeer-reviewed result
Δk  =  f k Δ0,f=rgenrproc\Delta_k \;=\; f^{\,k}\,\Delta_0, \qquad f = \frac{r_{\mathrm{gen}}}{r_{\mathrm{proc}}}

Let Δk\Delta_k be the wall-clock time for which syndrome data have accumulated, undecoded, when the kk-th decoder-dependent operation is reached. Decoding that backlog takes fΔkf \Delta_k. The quantum computer cannot idle without protection, so it keeps producing syndrome data during the wait, and at the next such operation the undecoded data cover at least fΔkf \Delta_k. Hence Δk+1≥fΔk\Delta_{k+1} \ge f \Delta_k and Δk≥fkΔ0\Delta_k \ge f^k \Delta_0. For f>1f > 1 the running time grows exponentially in the number of decoder-dependent operations; for f<1f < 1 the backlog shrinks geometrically and the decoder keeps up. The argument is given by Terhal, and Skoric et al. show that decoding overlapping windows in parallel removes the constraint on a single decoder's speed.

Holds when
  • Syndrome data are generated at a constant rate rgenr_{\mathrm{gen}} and decoded sequentially at a constant rate rprocr_{\mathrm{proc}}.
  • The computation contains operations, such as the Clifford correction that follows a magic-state injection, that cannot start until all earlier syndrome data have been decoded; error correction continues while the computation waits.

Background

For the surface code, matching-based decoders are fast and accurate because each fault flips at most two detectors per basis. Quantum LDPC codes lack this structure: under circuit noise their detector error models have high-weight columns and many short cycles, and the codes are highly degenerate. Plain belief propagation then often fails to converge (Poulin and Chung). Panteleev and Kalachev adapted ordered-statistics post-processing (Fossorier and Lin) to quantum codes, and BP+OSD became the general-purpose standard (Roffe et al.); the bivariate bicycle memory experiments of Bravyi et al. used it.

DecoderBelief propagation with ordered-statistics decoding (BP+OSD)Exposition

Input and output. A check matrix HH, prior probabilities pjp_j and a syndrome ss in the column space of HH. The output is a vector e^\hat e with He^=sH \hat e = s.

Stage 1: belief propagation. Messages are exchanged along the edges of the Tanner graph of HH for a fixed number of iterations. With log-likelihood ratios λj=ln⁡((1−pj)/pj)\lambda_j = \ln((1 - p_j)/p_j), the check-to-variable message of the sum-product rule is

mi→j=(−1)si  2artanh⁡∏j′∈N(i)∖jtanh⁡ ⁣(mj′→i/2),mj→i=λj+∑i′∈N(j)∖imi′→j,m_{i \to j} = (-1)^{s_i}\; 2 \operatorname{artanh} \prod_{j' \in N(i) \setminus j} \tanh\!\big( m_{j' \to i} / 2 \big), \qquad m_{j \to i} = \lambda_j + \sum_{i' \in N(j) \setminus i} m_{i' \to j} ,

and the posterior estimate for mechanism jj is Λj=λj+∑i∈N(j)mi→j\Lambda_j = \lambda_j + \sum_{i \in N(j)} m_{i \to j}. If the hard decision e^j=[Λj<0]\hat e_j = [\Lambda_j < 0] satisfies He^=sH \hat e = s, it is returned.

Stage 2: ordered-statistics decoding. Otherwise order the columns of HH from most to least likely to be in error (increasing Λj\Lambda_j) and, going through them in that order, select a maximal linearly independent set BB of rank⁡H\operatorname{rank} H columns. Order-0 OSD returns the unique solution of HB eB=sH_B\, e_B = s with ej=0e_j = 0 outside BB. Higher orders also try low-weight patterns on some columns outside BB, solve for eBe_B each time, and keep the candidate of largest prior probability. The method adapts the classical algorithm of Fossorier and Lin and was introduced for quantum codes by Panteleev and Kalachev.

Complexity. Each belief-propagation iteration costs time proportional to the number of non-zero entries of HH. Stage 2 is Gaussian elimination, O(N3)O(N^3) bit operations in the worst case, and dominates when it is invoked.

What it is exact for. Sum-product marginals are exact when the Tanner graph is a tree; the Tanner graphs of quantum codes are generally loopy (Poulin and Chung). OSD guarantees that the output reproduces the syndrome, not that it is the most likely error or lies in the most likely coset. The decoder is a heuristic whose accuracy is established numerically.

Accuracy. Post-processing improves the logical error rate of plain belief propagation on quantum LDPC codes by several orders of magnitude in the examples of Panteleev and Kalachev. Roffe et al. find thresholds for several families of hypergraph product codes and 9.9±0.2%9.9 \pm 0.2\% for the toric code. BP+OSD on the circuit-level hypergraph is the decoder used to establish the threshold of the bivariate bicycle codes.

Holds when
  • A check matrix H∈F2m×NH \in \F_2^{m \times N} of an error model with independent mechanisms and prior probabilities pjp_j; no restriction on column weight.

Significance

Decoding is on the critical path of every logical operation whose next step depends on a measurement outcome. A decoder that is accurate but slow forfeits the overhead savings that make quantum LDPC codes attractive; a fast but inaccurate decoder lowers the effective distance.

Why It Remains Difficult

  • Hardness. Optimal decoding is NP-hard, and its degenerate version #P-complete, in the worst case, so any efficient decoder is a heuristic whose gap to optimal must be measured.
  • Cubic post-processing. OSD needs Gaussian elimination on a matrix with as many columns as fault mechanisms; this dominates run time and is hard to parallelise (Wolanski and Barber).
  • BP failure modes. Short cycles and degeneracy cause oscillations and trapping sets; fixes must be found empirically for each code family (Müller et al., preprint).
  • Model mismatch. Correlated noise can change logical error rates by orders of magnitude and reorder decoders even when marginal error rates are exact (Dangi and Chatterjee, preprint).
  • Throughput and latency. The decoder must keep pace with the syndrome stream, or the wait before feed-forward operations grows exponentially (Terhal); windowed schemes trade latency for throughput (Skoric et al.), and slow outlier instances matter as well as the mean.

Assumptions

Most benchmarks use uniform circuit-level depolarising noise, a fixed syndrome extraction circuit, and a memory experiment (no logical gates). Decoding during logical operations (surgery, gate gadgets) produces different detector error models and is less studied.

Known Results

  • BP+OSD with combination sweep is the accuracy reference for bivariate bicycle codes (Bravyi et al.).
  • Ambiguity clustering splits the problem after BP into independent clusters; at 0.3% circuit noise it is reported up to 27 times faster than BP+OSD at matched accuracy, decoding the 144-qubit gross code in 135 µs per round on an M2 CPU (Wolanski and Barber, preprint).
  • Localized statistics decoding (BP+LSD) solves local regions in parallel and matches state-of-the-art accuracy with lower run-time complexity below threshold (Hillmann et al.).
  • Relay-BP chains BP runs with disordered, partly negative memory strengths and is reported to outperform BP+OSD with combination sweep on bivariate bicycle codes while remaining a pure message-passing algorithm suited to FPGA or ASIC (Müller et al., preprint).
  • 2025–2026 follow-ups (preprints). Syndrome preprocessing speeds up BP+OSD by about 10 times and Relay-BP and BP+LSD by more than 2 times on the [[144,12,12]][[144,12,12]] code at low error rates (Fan et al.). Dithered BP reports accuracy comparable to Relay-BP with fewer multiplications (Cai et al.). An FPGA ensemble of min-sum decoders for a [[512,174,8]][[512,174,8]] code reaches BP+OSD accuracy with one core and Relay-BP accuracy with three, with average latency 5.1 µs and worst case 97.9 µs at p=10−4p = 10^{-4} when BP is capped at 30 iterations (Kell et al.). SCOPE reports a logical error rate of 4.82×10−104.82 \times 10^{-10} for the [[144,12,12]][[144,12,12]] code at p=10−3p = 10^{-3} and a register-transfer-level BP core with 173.8 ns mean latency at p=5×10−3p = 5 \times 10^{-3} (Qing et al.).

To our knowledge no decoder has yet been shown, in peer-reviewed work, to be both within a small factor of optimal and real-time with bounded worst-case latency for a family of quantum LDPC codes of growing distance.

Existing Approaches

BP with post-processing (OSD, LSD, clustering); BP with memory, damping or randomisation (Relay-BP, dithering, ensembles); sliding-window and parallel-window schemes for streaming (Skoric et al.); hardware implementations on FPGA and ASIC (Battistel et al.).

Current Limitations

Comparisons use different codes, noise models, shot counts and hardware, so reported speed-ups are hard to compare. Among the papers cited here, mean latency is reported more often than worst-case latency, and most benchmarks are memory experiments on a few fixed codes, often the [[144,12,12]][[144,12,12]] code, rather than families of growing distance or logical operations.

Possible Research Directions

  • Estimate PL∗P_L^{\ast} for small bivariate bicycle codes (for example with tensor networks or exhaustive coset sums) to measure how far heuristics are from optimal.
  • Decoders robust to correlated and drifting noise, or that learn priors on line.
  • Decoders for the detector error models of qLDPC surgery and gate gadgets.
  • Provable latency bounds for message-passing decoders.

Required Knowledge

Quantum decoders, quantum LDPC codes, fault-tolerant quantum computing, classical belief propagation and ordered-statistics decoding.

Required Computational Resources

A workstation running Stim and open-source BP decoders can reproduce memory curves at p≈10−3p \approx 10^{-3} in hours. Low logical error rates need 10810^{8} or more shots per point. Latency claims need FPGA or ASIC tool chains.

Suggested Experiments

  1. Generate the detector error model of the [[144,12,12]][[144,12,12]] bivariate bicycle memory circuit with Stim and decode with BP+OSD and plain BP; record logical error per round and wall-clock time per round, including the 99.9th percentile.
  2. Add one modern decoder (BP+LSD or a Relay-BP implementation) and compare on the same shots.
  3. Repeat with a correlated-noise model to test robustness.

Baseline Methods

BP+OSD with combination sweep; BP+LSD; Relay-BP; for surface-code sanity checks, minimum-weight perfect matching and belief-matching (Higgott et al.).

Evaluation Metrics

Logical error rate per round at fixed physical error rate; ratio to the best known decoder (or to PL∗P_L^{\ast} where computable); mean and tail decoding time per round relative to the syndrome cycle; hardware resources (cores, FPGA area, power).

Success Criteria

Solved would mean: a decoder for a broad class of quantum LDPC codes, with logical error rates within a small constant factor of optimal under circuit-level noise, whose worst-case time per round stays below the syndrome cycle time on hardware deployable next to the device, demonstrated for codes of increasing distance and during logical operations. Partial progress: closing the accuracy gap to BP+OSD at microsecond latency, which several 2025–2026 preprints report for specific codes.

Open in the knowledge graph

Contributions about this problem

Nobody has published a contribution about it yet.

Publish work on this problemPropose a correction to this page

References

  1. David Poulin, Yeojin Chung (2008). On the iterative decoding of sparse quantum codes. Quantum Information and Computation 8, 986-1000. doi:10.26421/QIC8.10-8arXiv:0801.1241
  2. Marc P. C. Fossorier, Shu Lin (1995). Soft-decision decoding of linear block codes based on ordered statistics. IEEE Transactions on Information Theory 41, 1379-1396. doi:10.1109/18.412683
  3. Pavel Panteleev, Gleb Kalachev (2021). Degenerate Quantum LDPC Codes With Good Finite Length Performance. Quantum 5, 585. doi:10.22331/q-2021-11-22-585arXiv:1904.02703
  4. Joschka Roffe, David R. White, Simon Burton, Earl T. Campbell (2020). Decoding across the quantum low-density parity-check code landscape. Physical Review Research 2, 043423. doi:10.1103/PhysRevResearch.2.043423arXiv:2005.07016
  5. Sergey Bravyi, Andrew W. Cross, Jay M. Gambetta, … Theodore J. Yoder (2024). High-threshold and low-overhead fault-tolerant quantum memory. Nature 627, 778-782. doi:10.1038/s41586-024-07107-7arXiv:2308.07915
  6. Stasiu Wolanski, Ben Barber (2024). Ambiguity clustering: an accurate and efficient decoder for qLDPC codes. arXiv:2406.14527
  7. Timo Hillmann, Lucas Berent, Armanda O. Quintavalle, … Joschka Roffe (2025). Localized statistics decoding for quantum low-density parity-check codes. Nature Communications 16, 8214. doi:10.1038/s41467-025-63214-7arXiv:2406.18655
  8. Tristan Müller, Thomas Alexander, Michael E. Beverland, … Drew Vandeth (2025). Improved belief propagation is sufficient for real-time decoding of quantum memory. arXiv:2506.01779
  9. Wenxuan Fan, Yasunari Suzuki, Gokul Subramanian Ravi, … Teruo Tanimoto (2025). Accelerating BP-based decoders for QLDPC codes with local syndrome-based preprocessing. arXiv:2509.01892
  10. Andreas Kell, Daniel Herr, Daniel Bascones García, … Francisco García Herrero (2026). Real-time BP decoding of a high-rate QEC code. arXiv:2610.41413
  11. Zhengyu Cai, Mohamad Ali Jarkas, Bokun Zhao, Warren J. Gross (2026). Dithered belief propagation for real-time quantum memory decoding. arXiv:2611.07144
  12. Chenzewei Qing, Tengyu Zhang, Xiaoqin Luo, … Li You (2026). Accurate qLDPC decoding under real-time constraints. arXiv:2611.19130
  13. Abhinav Dangi, Avhishek Chatterjee (2026). BP-based qLDPC decoding under long-range correlated noise: trapping configurations and prior mismatch. arXiv:2611.10796
  14. Barbara M. Terhal (2015). Quantum error correction for quantum memories. Reviews of Modern Physics 87, 307-346. doi:10.1103/RevModPhys.87.307arXiv:1302.3428
  15. Luka Skoric, Dan E. Browne, Kenton M. Barnes, … Earl T. Campbell (2023). Parallel window decoding enables scalable fault tolerant quantum computation. Nature Communications 14, 7040. doi:10.1038/s41467-023-42482-1arXiv:2209.08552
  16. Francesco Battistel, Christopher Chamberland, Kauser Johar, … Muhammad Usman (2023). Real-time decoding for fault-tolerant quantum computing: progress, challenges and outlook. Nano Futures 7, 032003. doi:10.1088/2399-1984/aceba6arXiv:2303.00054
  17. Craig Gidney (2021). Stim: a fast stabilizer circuit simulator. Quantum 5, 497. doi:10.22331/q-2021-07-06-497arXiv:2103.02202
  18. Oscar Higgott, Thomas C. Bohdanowicz, Aleksander Kubica, … Earl T. Campbell (2023). Improved Decoding of Circuit Noise and Fragile Boundaries of Tailored Surface Codes. Physical Review X 13, 031007. doi:10.1103/PhysRevX.13.031007arXiv:2203.04948
  19. Eric Dennis, Alexei Kitaev, Andrew Landahl, John Preskill (2002). Topological quantum memory. Journal of Mathematical Physics 43, 4452-4505. doi:10.1063/1.1499754arXiv:quant-ph/0110143
  20. Oscar Higgott, Craig Gidney (2025). Sparse Blossom: correcting a million errors per core second with minimum-weight matching. Quantum 9, 1600. doi:10.22331/q-2025-01-20-1600arXiv:2303.15933
  21. Min-Hsiu Hsieh, Francois Le Gall (2011). NP-hardness of decoding quantum error-correction codes. Physical Review A 83, 052331. doi:10.1103/PhysRevA.83.052331arXiv:1009.1319
  22. Kao-Yueh Kuo, Chung-Chin Lu (2020). On the hardnesses of several quantum decoding problems. Quantum Information Processing 19, 123. doi:10.1007/s11128-020-02622-8arXiv:1306.5173
  23. E. Berlekamp, R. McEliece, H. van Tilborg (1978). On the inherent intractability of certain coding problems. IEEE Transactions on Information Theory 24 (3), 384-386. doi:10.1109/TIT.1978.1055873

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Problem record's own text checked; embedded records carry their own states. ML-coset formula checked against definition/detector-error-model and definition/degenerate-maximum-likelihood-decoding. Every quantitative claim compared with the arXiv abstracts: Wolanski-Barber 2406.14527 (up to 27x faster than BP-OSD at 0.3%, 135 us per round for the gross code on an M2 CPU), Hillmann et al. 2406.18655 (LSD; lack of practical decoder as barrier), Muller et al. 2506.01779 (Relay-BP outperforms BP+OSD+CS-10 on BB codes; negative memory strengths), Fan et al. 2509.01892 (10x for BP-OSD, >2x for BP-LSD and Relay-BP on [[144,12,12]]), Kell et al. 2610.41413 ([[512,174,8]], BP+OSD-CS10 accuracy with one core and Relay-BP with three, 5.1 us average and 97.9 us worst case at p = 1e-4 with 30 iterations), Cai et al. 2611.07144, Qing et al. 2611.19130 (4.82e-10 at p = 1e-3, 173.8 ns mean latency at p = 5e-3), Dangi-Chatterjee 2611.10796 (orders-of-magnitude changes and reordering of decoders under correlated noise); Poulin-Chung, Panteleev-Kalachev, Roffe et al., Bravyi et al., Terhal, Skoric et al. as in the decoder records. Open status: arXiv API search (abstracts mentioning real-time decoding and qLDPC, newest first, through 2026-11-16) found no claimed resolution of the problem as stated.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 133ef125f2a50a9e. Source file knowledge/records/problem/optimal-decoding-of-quantum-ldpc-codes-under-circuit-noise.md in the content repository (readable there once it is public).