NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improved Belief Propagation Decoding Algorithms for Surface Codes

Jiahan Chen, Zhengzhong Yi, Zhipeng Liang, Xuan Wang

TL;DR

Researchers have supercharged Belief Propagation (BP)—a lightning-fast but traditionally inaccurate decoding algorithm—for quantum error correction. By applying machine learning optimization tricks like Momentum and AdaGrad, and introducing a novel adaptive initialization method (EWAInit-BP), they achieved up to a 1,000x improvement in accuracy while maintaining the hardware-friendly speed required for real-time quantum computing.

What Problem Does This Paper Address?

Quantum computers are notoriously fragile. To work reliably, they use Quantum Error Correction (QEC) to encode information across many "physical" qubits to create one stable "logical" qubit. A decoder is the brain of this system: it looks at error signals (syndromes) and must instantly guess what went wrong.

The "gold standard" decoders are either very accurate but slow (like Maximum Likelihood), or fast but less accurate (like traditional Belief Propagation). BP is attractive because it has nearly linear time complexity, but it fails miserably on surface codes—the leading architecture for quantum computers. This failure happens because BP gets stuck in "trapping sets" (oscillatory loops) and struggles with "degeneracy" (where many different errors look identical to the decoder).

Methods

The authors treat BP decoding as a gradient descent optimization problem on an "energy function." They propose three new flavors of BP:

  1. Momentum-BP: Inspired by ML optimizers, this uses a weighted average of past message updates to "smooth out" the path to a solution, preventing the algorithm from oscillating wildly between two wrong guesses.
  2. AdaGrad-BP: This adaptively scales the "step size" of updates. If a qubit's error estimate is changing rapidly, the algorithm slows down to avoid overshooting the correct answer.
  3. EWAInit-BP (Exponential Weighted Average Initialization): This is the paper's most significant contribution. Instead of keeping the "starting guess" (prior probabilities) fixed, it dynamically updates them in every iteration based on the results of the previous round. This effectively "breaks the symmetry" that causes BP to fail on complex quantum codes.

Datasets

The algorithms were evaluated using simulations of several key quantum error-correcting codes:

  • Toric Codes: Codes with periodic boundaries (like a donut shape).
  • Planar Surface Codes: The standard 2D grid used in most superconducting qubit designs.
  • XZZX Surface Codes: A variation designed to handle "biased" noise (where one type of error is more common than others).
  • General LDPC Codes: To prove the method isn't just for surface codes, they tested it on Bivariate Bicycle codes (used by IBM) and 3D Chamon codes.

Key Insights and Ideas

  • BP as Optimization: The core "aha moment" is viewing BP not just as a message-passing tool, but as a gradient descent process. This allows the use of decades of progress in classical ML optimization.
  • Breaking Trapping Sets: Trapping sets are the "kryptonite" of BP. The authors show that Momentum and AdaGrad physically break the symmetry of these sets, allowing the decoder to "escape" a loop and converge on the right answer.
  • The Power of Priors: While smoothing messages (Momentum) helps, updating the initial assumptions (EWAInit) is far more powerful. It allows the decoder to achieve high accuracy even when running in a fully parallel hardware implementation.

Key Results

  • Massive Accuracy Boost: EWAInit-BP provides a 1 to 3 orders of magnitude improvement in the Logical Error Rate (LER) compared to traditional BP.
  • Competitive Performance: On planar surface codes, EWAInit-BP performs almost identically to the much more complex BP-OSD algorithm, but with significantly lower computational overhead.
  • Thresholds: The authors demonstrated a code capacity threshold of approximately 13.6% for toric codes and 10% for planar surface codes under depolarizing noise.
  • Speed: Under parallel implementation, the algorithm achieves theoretical $O(1)$ time complexity, making it a prime candidate for the high-speed, real-time decoding needed in actual quantum hardware.

Limitations and Future Work

  • Parallel Trapping Sets: While EWAInit-BP is excellent, the authors note it can still fail on certain trapping sets when run in a fully parallel (rather than serial) mode.
  • Phenomenological Noise Only: The study primarily uses a simplified noise model (code capacity). Real-world "circuit-level" noise, which includes errors in the measurement process itself, remains a challenge for future iterations.
  • Scaling to Large Blocks: As code distances grow very large, even these improved BP methods may eventually require "post-processing" steps (like OSD) to maintain absolute accuracy, though the authors suggest neural-network-enhanced BP might be a solution.

Summary updated

BibTeX
@article{chen2025improved,
  author = {Jiahan Chen and Zhengzhong Yi and Zhipeng Liang and Xuan Wang},
  title = {{Improved Belief Propagation Decoding Algorithms for Surface Codes}},
  journal = {IEEE Transactions on Quantum Engineering},
  year = {2025},
  doi = {10.1109/tqe.2025.3577769},
}
Figure