A census of bivariate bicycle codes up to 400 qubits
Bivariate bicycle codes are a family of quantum error-correcting codes that includes IBM's gross code. We computed every code of their common weight-6 form on 348 tori, up to 400 qubits. At each size and number of logical qubits we found the best code's exact distance, each with a checked logical operator. Before each stage ran, we registered what it would find.
tori, from 8 to 400 qubits, 231 of them with codes
classes of codes with logical qubits, each a pair of three-term polynomials up to symmetry
exact distance runs; every best code has a checked logical of its distance
best codes, one per torus and number of logical qubits: 358 distinct [[n, k, d]]
What was computed
A code of this family lives on a torus of l × m cells, with n = 2lm physical qubits. It is set by two polynomials A and B in two variables, three terms each. The number of logical qubits, k, comes exactly from the torus's characters. The distance, d, is the hard part. It is the weight of the lightest logical operator, and finding it is an exhaustive search. For every torus, every code was reduced to classes under the torus's symmetries. Each class with k > 0 got a fast upper bound, and then exact searches settled the best d for each k.
The best distance at each size
The distance keeps growing faster than √n
The top edge of the chart belongs to codes with k = 4. Every new record raises the ratio d/√n: from 1.15 at [[48,4,8]] to 1.46 at [[270,4,24]], 1.49 at [[354,4,28]] and 1.51 at [[396,4,30]]. Stage 3 had registered a cap of 1.40 √n and was refuted. Stage 4 registered an envelope fitted on stage 3, 0.80 n0.61, rounded down to even. It failed at 306 qubits, where [[306,4,26]] is one step above it, and held at every other size where the best distance is known, often exactly.
Most of the regularity is arithmetic. d is always even. Up to 400 qubits, codes exist only when lm is divisible by 3, 7, 31, 73 or 85. Tori with the same group carry the same codes. Over this range, a power law near n0.6 and √(n ln n) fit the edge equally well. Proven bounds allow exponents between 1/2 and 3/4, so the data do not pick a law.
The best k d²/n at each size
Records above the published codes
k d²/n measures what a code delivers per physical qubit: logical qubits times distance squared. The gross code [[144,12,12]] scores 12.0, the highest of the published form up to 200 qubits. [[288,12,18]] scores 13.5. Stage 3 registered that nothing up to 300 qubits would beat 13.5, and found [[294,10,20]] at 13.6. Stage 4 registered a ceiling of 17, and found [[384,12,24]] at 18.0. On the torus of Bravyi et al.'s [[360,12,≤24]], whose distance is 24 (a score of 19.2), no weight-6 code does better at k = 12.
The stages, and what was registered
| Stage | Codes | Registered before the run | Outcome |
|---|---|---|---|
| 1 (Oct 22) | the published form, A = xa + yb + yc and B = yd + xe + xf, on 116 tori up to 200 qubits: 3,330 classes | nothing: an exploratory survey | survey the gross code has the best k d²/n of all; a rule proved by hand says which tori have codes |
| 2 (Oct 22–23) | the same form on 122 tori held back from stage 1, up to 300 qubits | 9 predictions from stage 1, among them a linear distance law | 8 of 9 held the distance law was exact at all 19 instances; a pattern in the best codes failed once |
| 3a (Oct 24) | every weight-6 code on stage 1's 116 tori: 36,496 classes | nothing: exploratory | survey beats the published form at 18 (n, k) pairs |
| 3b/3c (Oct 24–28) | every weight-6 code on the 122 held-back tori: 253,370 classes | 5 predictions, among them a cap of 1.40 √n and no score above 13.5 | refuted [[294,10,20]] scores 13.6, and the best distance reaches 1.42 √n |
| 3d (Oct 30) | the 154 classes stage 3b left unfinished | a rerun with a second distance tool | 154 of 154 d = 24, as the parity of d predicted |
| 4 (Oct 30–Nov 5) | every weight-6 code on 110 new tori, 302 to 400 qubits: 633,390 classes | 6 predictions, refitted on stage 3: an envelope, growth past 1.46 √n, a score above 13.6, none above 17 | refuted growth and the new record held, but [[384,12,24]] breaks the ceiling and one code breaks the envelope |
| 4d (from Nov 3) | the 53 classes stage 4 left at its 4-hour limit, all at 396 qubits | registered before any class reached the limit, with up to 14 days each | running so far every one has d = 30 |
What the census does not show
- The distances are exact, but most are not certified. Each comes with a logical operator of that weight, checked independently, so it is never too high. That it is not too low rests on exhaustive searches: this project's own up to 300 qubits, and DistQLDPC's cluster engine beyond. The two agree wherever both finished. A sample was confirmed by other methods, and the smaller codes by checked SAT proofs, but no certificate covers the largest distances.
- One family. These are weight-6 codes on two-generator abelian groups. Codes of other forms, such as higher weight or non-abelian groups, do better at some sizes.
- Distance is not performance. Nothing here measures logical error rates under circuit noise, decoding or logical gates.
- Not a claim of novelty. The literature was checked only in part, and the same [[n, k, d]] need not be the same code.
Sources: the bivariate bicycle codes and the gross code are from Bravyi et al., Nature 627, 778 (2024), arXiv:2308.07915. The coprime codes are from Wang and Mueller, arXiv:2408.10001. Distances beyond 300 qubits come from DistQLDPC, Chen, Jafari and Lai's tool, arXiv:2606.12445 (github.com/guluchen/DistQLDPC, commit 8fe913e). The quantum codes page shows how the codes' logical qubits follow from the algebra behind the rest of this site.