Group algebra allows for fully autonomous and verifiable QEC code discovery
Overview
Quantum error correction (QEC) is necessary for building useful quantum computers. Luckily, much of QEC code design can be expressed as combinatorial optimization over a discrete search space. This allows well designed AI systems ton iterate over the parameter space of different code families, finding and testing novel structures as a function of compute resources. For many problems, however, it is not yet the case that an exhaustive search across this space is universally tractable. If we can turn a discrete problem into a finite problem, then theoretically, exhaustive search across this space is possible.
A key bottleneck in automated QEC code design is verifying the code distance, which defines the minimum number of physical qubits that must experience an error for your quantum error correction code to be ineffective [1]. Verifying minimum code distance has been shown to be NP-hard [2], which means that the amount of compute we would need to verify an exact solution scales significantly with the size of the problem.
Current ways around this NP-hardness are stochastic upper-bound samplers, like information set decoding (ISD) [3], which guesses sets of error-free positions equal to the dimension of the code en masse and uses them to infer candidate codewords, and decoder-based heuristics like BP-OSD. Recent work from Oratomic [4] describes a GPU accelerated version of ISD [5] that was used to discover a new class of QEC codes. These methods are effective for gathering estimates, but they only ever report the lightest codeword they happened to find rather than the lightest codeword that exists. IBM [7] used exact MILP ground truth to show that BP-OSD overestimates the true distance of high-rate codes () by up to 12x, tightening bounds on 147 of 154 codes tested, and that it misses a structurally trivial code even after 1.5 million trials, a case exact verification resolves in under a second.
With human oversight this is tolerable, but for autonomous exploration, it is not. A heuristic selecting candidates by reported distance will keep codes that are good but wrong, and build onto its existing work from the incorrect foundations. Mitigating this requires an exact distance oracle cheap enough to sit inside the loop rather than at the end of it.
The Structure That Makes Exact Distance Tractable
A clever way to approach this problem is to shrink the search space by restricting to codes with enough algebraic structure that everything except the distance comes for free. For the purposes of this piece, we'll use generalized bicycle (GB) codes which have the structure:
Work in the ring , and let and be the circulant matrices of two polynomials . The CSS commutation condition reduces to , which holds because circulants commute. More generally, replace with any finite group and take and , the left- and right-multiplication operators by elements .
These commute for free by associativity, since . This is the load-bearing fact of the whole program: every pair yields a valid stabilizer code.
There are no rejection sampling, no constraint satisfaction, and no “is this even a code?” steps needed with GB codes. The discovery space is a clean product of finite sets (a group plus two weight- algebra elements), and and are read off algebraically. The only parameter that costs anything is .
The same structure that makes the space enumerable makes the distance certifiable. The distance is
with by the transpose symmetry of the construction, and acts freely on the set of minimum-weight codewords by translation. That symmetry is exactly what a certified search can exploit.
Check-Driven Depth-First Search
Using depth-first search on the checks, we can show that by proving that no codeword of weight exists. This search grows a partial support [6] with running syndrome . Whenever , any completion of into a codeword must flip another qubit inside some unsatisfied check , so we branch only over
giving branching factor at most . We prune whenever the cheapest possible repair is bigger than our budget :
since each added qubit can satisfy at most open checks. The tree therefore has at most nodes per root, so the cost is governed by and only linearly by blocklength. This is what makes deep certification of long codes possible at all. Group symmetry anchors a fixed position into , dividing the work by , and the top levels of the tree unroll into millions of independent subtrees that map directly onto GPU threads.
The graph below shows the cost in verification time, in seconds, as a function of the code distance on CPU and GPU. An open research area is finding ways to bring this cost down both in absolute wall time and in the scaling factors.
A Finite, Fully Verifiable Discovery Space
While the scaling of the algorithm isn't solved with more compute or with parallelization (yet), the scaling we do have gives us something qualitatively new. It carves out a finite discovery space of group-algebraic codes reaching distance 30 at the check weights we sweep.
Within a fixed weight class and a fixed catalog of groups, the set of seeds is finite up to equivalence, every seed is a valid code by construction, and every code in the set can be exactly certified. The frontier is a joint frontier rather than a single distance, since the tree bound grows as : at the weights swept here it sits near with a maximum compute time of seconds per certification, and it pulls in sharply as grows. Every positive claim in this space ships with a witness codeword, and every negative claim ships with an exhausted search tree. We have, in effect, built a machine whose entire output (codes, parameters, and absences) is machine-checkable.
In separate work (see draft) we naively traverse this discovery space and make several “mini-discoveries” (pending verification). Each is a small, machine-checkable step on published work, which are listed below:
- At , the CRT collapses trivariate bicycle codes on coprime tori to ordinary GB codes, so the certifier sweeps all 516 equivalence classes. The maximum is , attained by a . Prior work by Liang et al. [8] exhibited this parameter set, we prove it is maximal, and the univariate incumbent [9] loses 16 to 14.
- A 421-row ladder campaign found a realization of the flagship that beats the published code.
- Three exhaustive searches over 984,067 codes (about 1.6 CPU-hours) give the first certified single-shot distance tables for a Koszul-complex construction. They converge on a proposed law, that single-shot distance equals the Gilbert-Varshamov distance of a rate-3/4 syndrome code, which predicted at ahead of a confirming live certification.
- The distance-2 ceiling for weight-4 copy-cup seeds is an artifact of commutativity, not of check weight. Across all 89 nonabelian groups of order at most 32 and , 1,560 seeds satisfy Tiew and Breuckmann's non-associative 3-copy-cup condition [10] while exceeding distance 2, subject to a universal ceiling that is tight in 1,008 cases.
- We verify the first nonabelian instances of the cube construction carrying a constant-depth logical CCZ, at and , through a five-layer stack that includes the source paper's own negative control.
Null Results Are Certified Too
Exhaustive search turns failed directions into information that agents can use for better decisions. A run that would have found a better code, but finds nothing, certifies that none exists in the swept scope.
These certifications can close off regions of the search space before future searches begin. An equivalence class collapse or a weight floor means the seed generator never enqueues those pairs at all. Engine-optimality verdicts certify that no faster method remains for a family, which keeps cost estimates honest: quoting an open problem in GPU-hours is only meaningful if no better algorithm exists that would change the price. Exhausted-family verdicts record where further compute is wasted: nothing at beats the , the dihedral and quaternion families never escape the abelian bound, and the sweep scheduler stops paying for either.
A pipeline that reports only its positive results is both less trustworthy and more expensive: its misses can't be audited, and future searches will pay to rediscover them. When every verdict is replayable, there is no reason to accept either.
Conclusion
The broader lesson is that it may make sense to start building “research machines,” computers designed to encode open problems into fully verifiable subspaces so that scientific discovery becomes effectively a button press. The ingredients are a search space that is finite and enumerable by construction, a certification routine whose outputs are proofs, and a ledger that stores positives and negatives with equal weight.
This work is an example of doing this for a relatively modest problem. Group-algebraic structure gave us the enumerable space for free, and exact distance certification gave us the verifier. An interesting future area of work is finding new paradigms where this effort can be repeated, identifying other corners of quantum information science whose open problems can be encoded into verifiable subspaces and swept the same way. The machine described here is small, but the shape of it is general.
References
- [1]Physics Stack Exchange. “What is the `code distance' in quantum information theory?” https://physics.stackexchange.com/questions/29397/what-is-the-code-distance-in-quantum-information-theory
- [2]U. Kapshikar, S. Kundu (2022). “On the Hardness of the Minimum Distance Problem of Quantum Codes.” arXiv:2203.04262. https://arxiv.org/abs/2203.04262
- [3]M. Webster, A. Jacob, O. Higgott (2026). “Distance-Finding Algorithms for Quantum Codes and Circuits.” arXiv:2603.22532. https://arxiv.org/abs/2603.22532
- [4]A. Bhardwaj, M. Ma, N. Meister, R. King, D. Bluvstein, J. Preskill, M. Cain, Q. Xu, H.-Y. Huang (2026). “High-rate qLDPC processors.” arXiv:2607.28795. https://arxiv.org/abs/2607.28795
- [5]yarn: GPU-accelerated information set decoding. https://github.com/a7b/yarn
- [6]Wikipedia. “Support (mathematics).” https://en.wikipedia.org/wiki/Support_(mathematics)
- [7]J. Cruz-Benito, A. W. Cross, D. Kremer, I. Faro (2026). “Evolutionary Discovery of Bivariate Bicycle Codes with LLM-Guided Search.” arXiv:2606.02418. https://arxiv.org/abs/2606.02418
- [8]Z. Liang, K. Liu, H. Song, Y.-A. Chen (2025). “Generalized toric codes on twisted tori for quantum error correction.” arXiv:2503.03827; PRX Quantum. https://arxiv.org/abs/2503.03827
- [9]S. Rabeti, H. Mahdavifar (2026). “Univariate Bicycle Quantum LDPC Codes: Explicit Logical Structure and Distance Bounds.” arXiv:2605.14173. https://arxiv.org/abs/2605.14173
- [10]R. Tiew, N. P. Breuckmann (2026). “Copy-cup Gates in Tensor Products of Group Algebra Codes.” arXiv:2602.23307. https://arxiv.org/abs/2602.23307
