Evolving Decoding Algorithms for Quantum Error Correction
Organizations: The University of Texas at San Antonio
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 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 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.
Figures & tables
| family | ms per shot | speed-up | LER, pub. damped | ||
|---|---|---|---|---|---|
| pub. | damped | ||||
| BP+OSD-0 | 365.08 | 8.91 | 41.0 | 0.04355 0.05525 | +25.8 |
| BP+LSD-0 | 364.24 | 16.25 | 22.4 | 0.05080 0.07241 | +42.7 |
| BP+LSD- | 364.17 | 16.26 | 22.4 | 0.05048 0.07206 | +42.7 |
| BP+OSD-CS | 372.35 | 21.71 | 17.1 | 0.03841 0.04224 | +9.2 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| group | n | operations |
|---|---|---|
| A prepare | 9 | init_llrs , scale_llrs , sparsify_dem , permute_problem , mask_columns , boost_priors_from_syndrome , use_check_basis , inactivate_check , cut_degenerate_supports |
| B engine | 5 | run_bp , bp_converged , reseed_priors_from_posteriors , rank_by_oscillation , valid_candidates |
| C ranking | 5 | rank_faults , most_reliable_basis , decimate , decimate_and_continue , rank_checks |
| D clusters | 7 | seed_clusters_from_syndrome , grow_clusters , syndrome_guided_reduce , reduce_marked_rows , enrich_blocks , clusters_valid , build_forest |
| E solvers | 3 | solve_on_basis , incremental_eliminate , forced_logical |
| F local search | 2 | enumerate_patterns , vote_logical_classes |
| decoder | arm | calls | nearest | dist. | verdict | |
|---|---|---|---|---|---|---|
| evolved | pruned | |||||
| C03 | seeded, work proxy | 5 | 4 | P10 (BP+AC) | 0 | retuning of BP+AC (min-sum inside BP+AC) |
| C09 | seeded, wall-clock | 4 | 4 | P10 (BP+AC) | 0 | retuning of BP+AC (min-sum inside BP+AC) |
| C07 | seeded, wall-clock | 24 | 9 | P10 (BP+AC) | 5 | recomposition: BP+AC + cut + frontier/reseed stage (panel ops) |
| C08 | seeded, wall-clock | 17 | 6 | P10 (BP+AC) | 1 | recomposition: BP+AC + P12’s degeneracy cut; mostly retuning |
| C14 | seeded, work proxy | 8 | 4 | P10 (BP+AC) | 0 | retuning of BP+AC |
| C03 | C09 | |||||||
| change put back | LER | ms | LER | ms | ||||
| none, as evolved | 0.04135 | 5.57 | 1.0 | 0.04415 | 5.43 | 1.0 | ||
| product-sum BP | 0.03680 | 10.7 | 1.9 | +3.8 | 0.04075 | 10.1 | 1.9 | +3.0 |
| enrichment | 0.04175 | 6.11 | 1.1 | 0.8 | 0.04535 | 6.30 | 1.2 | 3.8 |
| search weight 2 | 0.04165 | 5.67 | 1.0 | 0.3 | — | |||
| early exit after BP | — | 0.04415 | 5.40 | 0.99 | 0.0 | |||
| member | oracle | result | ||
|---|---|---|---|---|
| id | decoder | reference | ||
| P1 | BP | [ Poulin and Chung, 2008 ] | ldpc BpDecoder; the damping referee | serial: equal on every shot (1 024 x 6 points); flooding: 955-1 020 / 1 024 decisions equal, failures inside McNemar; float64 referee = ldpc on 4 096 / 4 096 |
| P2 | BP+OSD-0 at ldpc ’s tuned point | [ Panteleev and Kalachev, 2021 ] | ldpc BpOsdDecoder | corrections 1 024 / 1 024 and 1 023 / 1 024; failures equal |
| P2-d | damped (the reference) | the damping referee; the undamped kernel via P1 | decisions equal the referee’s on every shot at 10 iterations | |
| P3 | BP+OSD-CS | [ Panteleev and Kalachev, 2021 , Fossorier and Lin, 1995 ] | ldpc BpOsdDecoder(osd_cs) | corrections 1 024 / 1 024 at all four points; failures equal |
| P3-ours | our OSD-CS sweep | none | our variant | |
| budget | limit | bounds |
|---|---|---|
| BP sweeps | 2 000 per shot | message-passing sweeps, summed over every BP call |
| operation calls | 256 per shot | calls of any DSL operation; the budget of last resort for generated loops |
| candidates | 10 100 per shot | candidate corrections enumerated and tested |
| column operations | 982 256 per shot | GF(2) column operations spent in elimination (OSD, LSD) |
| work cap | 60 P2-d | mean priced work per shot over one evaluation |
| subject | arm | LER | proxy | time | vs P2-d | vs P10 | bar |
| C13 | seeded, wall-clock | 0.03020 | 2.9 | refused | primary (proxy) | ||
| C14 | seeded, proxy | 0.03206 | 2.4 | 2.145 | +54.7 | +9.4 | primary |
| C15 | seeded, proxy | 0.03572 | 1.1 | 1.011 | +46.6 | 4.1 | primary |
| C10 | random, wall-clock | 0.04036 | 2.7 | 2.389 | +35.9 | 22.0 | primary |
| C04 | random, proxy | 0.04065 | 2.0 | 1.882 | +35.8 | 20.6 | primary |
| C08 | seeded, wall-clock | 0.04159 | 0.57 | 0.534 | +33.1 | 19.6 | stretch |
| counter | weight |
|---|---|
| BP edge updates, min-sum | 1.00 |
| BP edge updates, product-sum | 1.91 |
| GF(2) elimination words | 0.28 |
| candidate-enumeration words | 2.25 |
| ranking and scan elements | 0.30 |
| DSL operation calls | 0.00 |
| row | points | row | points |
|---|---|---|---|
| C03 | 22 | BP+AC | 17 |
| C09 | 22 | Relay-BP, stop 9 | 16 |
| C04 | 13 | Relay-BP, stop 5 | 10 |
| C10 | 11 | ldpc BP+OSD-CS | 1 |
| C08 | 1 | ldpc BP+OSD-0 | 0 |
| C05, C06, C07, C11, C12 | 0 | P2-d (the reference) | 0 |