Skip to main content
KetQat

Appearance

Decoder · advanced

Belief propagation with ordered-statistics decoding (BP+OSD)

Runs belief propagation on the Tanner graph to estimate how likely each error mechanism is, then uses those estimates to choose an invertible set of columns of the check matrix and solves for an error that reproduces the syndrome exactly. The general-purpose decoder for quantum LDPC codes.

ExpositionMachine-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.

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.
Part of
Related

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. 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
  2. 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
  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

Contributors

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

Review history

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

    Sum-product update rules with syndrome sign, posterior LLR and hard decision re-derived; OSD-0 construction (columns ordered by increasing posterior LLR, maximal independent set of rank H columns, unique solution on B) and Gaussian-elimination cost checked. Compared with Panteleev-Kalachev arXiv 1904.02703 abstract (OSD post-processing improves BP by several orders of magnitude on QLDPC codes), Roffe et al. arXiv 2005.07016 full text (toric-code threshold 9.9 +- 0.2% with BP+OSD, OSD candidates chosen by lowest weight), Poulin-Chung arXiv 0801.1241 (BP exact on trees, quantum decoding graphs generally loopy), Bravyi et al. arXiv 2308.07915 (BP-OSD for the bivariate bicycle circuit-level simulations). Fossorier-Lin 1995 reference metadata consistent with its DOI.

    The record said quantum codes never have tree Tanner graphs; this is too strong (trivial small stabilizer codes can) and is not what the cited source says. Replaced by 'the Tanner graphs of quantum codes are generally loopy' with a citation to Poulin and Chung, already in the reference list.

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 caeccbc581f9b162. Source file knowledge/records/decoder/bp-osd.md in the content repository (readable there once it is public).