Evolving Decoding Algorithms for Quantum Error Correction

Eduardo Dueñez, Edgar Said Hernandez Sanchez, Edgar A. Duéñez-Guzmán, Suzanne SadedinarXiv 2026

TL;DR

Researchers have developed a Domain-Specific Language (DSL) that factors complex quantum error correction (QEC) decoders into reusable building blocks. By applying grammatical evolution to this DSL, they discovered new decoding algorithms that are both faster and more accurate than current state-of-the-art human-designed heuristics, breaking the established Pareto front of speed versus accuracy.

What Problem Does This Paper Address?

Quantum computers are inherently noisy. To function reliably, they require Quantum Error Correction (QEC), where a classical algorithm—the decoder—must continuously process "syndromes" (measurement data) to infer and correct errors in real-time.

This presents two massive engineering hurdles:

  1. Speed: The decoder must be fast enough to keep up with the quantum hardware's cycle time.
  2. Degeneracy: In quantum systems, different errors can produce the same syndrome. Decoders must effectively "break ties" to choose the most likely correction.

Existing decoders, like those based on Belief Propagation (BP) and Ordered Statistics Decoding (OSD), are often hand-tuned heuristics. Their internal parameters and logic are frequently "baked into" the code, making them difficult to optimize systematically. This paper asks: Can we use machine learning to "write" better decoding algorithms from scratch?

Methods

The authors took a two-step approach:

  1. The DSL: They decomposed the "BP+ family" of decoders into a Domain-Specific Language consisting of 38 typed operations (see Figure 6). These operations cover everything from syndrome preparation and the core BP engine to ranking faults and clustering. This representation makes every parameter—like the often-overlooked "damping" factor—explicit and tunable.
  2. Grammatical Evolution: Instead of just tuning weights, they used grammatical evolution (a form of genetic programming) to search for the best sequence of operations. They used the MAP-Elites algorithm to maintain a diverse population of decoders, specifically looking for those that offer the best trade-offs between computational cost and logical error rate (LER).

To make the search efficient, they used importance sampling, focusing the evolutionary pressure on "hard" error instances where standard algorithms typically fail.

Table 2: The 38 operations, by group. Every published panel member is expressible as a short composition; Appendix B prints three decoders in this vocabulary.

Datasets

The study focused on the [[72, 12, 6]] bivariate-bicycle code, a promising candidate for scalable quantum computing.

  • Training/Validation: Decoders were evolved and screened using error models generated by the Stim library.
  • Benchmarking: To test generalization, the authors created a grid of 22 benchmark points, varying the physical error rate ($p$), the code length ($n$), and the number of syndrome measurement rounds.

Key Insights and Ideas

  • Damping is a "Hidden Knob": Simply by expressing existing decoders in the DSL, the authors realized that "damping" (a momentum-like term in message passing) was a critical but under-tuned parameter. Adding damping made standard decoders 17x to 41x faster with only a slight hit to accuracy (see Figure 5).
  • Representation is Everything: The authors argue that the "bottleneck in automated algorithmic discovery is not a lack of sophisticated generative models [like LLMs], but the absence of tangible, auditable environments." By embedding domain knowledge into the DSL, simple evolution was enough to outperform human experts.
  • Breaking the Pareto Front: Evolution didn't just find "good" decoders; it found decoders that were strictly better (faster and more accurate) than the best-known human-designed versions.
Table 1: Contribution 1: each decoder published in the ldpc library, at its published settings and damped, both run in the DSL’s engine. Time is clean ms per shot, one single-threaded process; LER is on the final split; z is McNemar, positive when the published member is right more often. Settings and the timing protocol are in Appendix G.

Key Results

  • Superior Performance: The evolved decoder C03 achieved 23% fewer logical errors than the reference decoder while running at only 0.64x of its time.
  • Massive Speedups: Compared to the standard ldpc software package, the evolved and re-parameterized decoders were up to 103x faster for certain configurations.
  • Robust Generalization: When "frozen" at their training settings, the top evolved decoders (C03 and C09) remained on the Pareto frontier across all 22 benchmark points, proving they weren't just overfitted to a single noise level or code size.
The Pareto front of Logical Error Rate vs. Clean Time. Evolved decoders (blue/orange circles) clearly outperform the reference and standard library baselines.

Limitations and Future Work

  • Scope of the DSL: The current DSL is limited to the BP+ family. It does not yet include primitives for neural decoders, matching-based decoders (like Blossom), or tensor-network approaches.
  • Code Specificity: While the decoders generalize well across noise levels, they were primarily evolved for bivariate-bicycle codes. Testing on other code families (like surface codes or other LDPC variants) is a natural next step.
  • Hardware Integration: The "clean time" measured is on a standard CPU. Future work could involve evolving decoders specifically for FPGA or ASIC implementations where the cost of different operations might change.

Ultimately, this work demonstrates that by bridging human intuition (via DSL design) and machine-driven optimization, we can unlock the highly efficient classical processing required for the next generation of fault-tolerant quantum computers.

Summary updated

Abstract

Quantum computation entails robustness engineering: a noisy quantum state is measured continuously, and a classical algorithm (the decoder) must infer corrections that reliably remove the noise, fast enough to keep up. We write several published belief-propagation (BP) decoders for quantum low-density parity-check (qLDPC) codes in a Domain-Specific Language (DSL), and search over it with grammatical evolution. Written in the language, the published decoders show their parameters in plain view, allowing us to re-parameterise BP+OSD (ordered statistics decoding) and BP+LSD (localized statistics decoding) decoders with damping, before any search, making each 17.1--41.0$\times$ faster at a higher error rate, and BP+OSD-0 about 103 faster than the ldpc package's version tuned on the [[72,12,6]] bivariate-bicycle code. Evolution over the language finds decoders that improve the time-error front. One makes 23% fewer logical errors than BP+OSD-0 with damping at 0.64$\times$ its time, and decoders evolved from random code are more accurate than ldpc's tuned BP+OSD-0 at 1/31 of its time or less. Frozen at one operating point, the two fastest evolved decoders generalize well across noise levels, code sizes and round counts, staying at the time-error front. Ultimately, we demonstrate that capturing expert knowledge within a DSL creates a powerful intermediate layer---one that effectively bridges human intuition and machine-driven optimization to unlock highly efficient quantum error correction.
BibTeX
@misc{duenez2026evolving,
  author = {Eduardo Dueñez and Edgar Said Hernandez Sanchez and Edgar A. Duéñez-Guzmán and Suzanne Sadedin},
  title = {{Evolving Decoding Algorithms for Quantum Error Correction}},
  year = {2026},
  eprint = {2611.25880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25880},
}
Figure