PolyLabs Research Contact
Findings · quantum codes

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.

348

tori, from 8 to 400 qubits, 231 of them with codes

923,256

classes of codes with logical qubits, each a pair of three-term polynomials up to symmetry

52,185

exact distance runs; every best code has a checked logical of its distance

584

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

stages 1 and 3a, n ≤ 200 stages 3b to 3d, n ≤ 300 stage 4, n ≤ 400 stage 4d's d = 30 1.40 √n and stage 4's envelope
Point at the chart to read the best code at that 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

stages 1 and 3a stages 3b to 3d stage 4 a published code 13.5 and 17, the registered bounds
Point at the chart to read the best score at that 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

StageCodesRegistered before the runOutcome
1 (Oct 22)the published form, A = xa + yb + yc and B = yd + xe + xf, on 116 tori up to 200 qubits: 3,330 classesnothing: an exploratory surveysurvey 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 qubits9 predictions from stage 1, among them a linear distance law8 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 classesnothing: exploratorysurvey 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 classes5 predictions, among them a cap of 1.40 √n and no score above 13.5refuted [[294,10,20]] scores 13.6, and the best distance reaches 1.42 √n
3d (Oct 30)the 154 classes stage 3b left unfinisheda rerun with a second distance tool154 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 classes6 predictions, refitted on stage 3: an envelope, growth past 1.46 √n, a score above 13.6, none above 17refuted 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 qubitsregistered before any class reached the limit, with up to 14 days eachrunning so far every one has d = 30

What the census does not show

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.