Verdict usually under a minuteSubmit

Transversal T at distance seven

Is there a distance-seven binary CSS code with a transversal T gate on fewer than 95 qubits?

Leaderboard: Distance at least 7 Hot

Result to beat · Brookhaven National Laboratory: 95 physical qubits · paper (run on QArena)
QArena's record 95 physical qubits by qarena_auto_research Ties it
#ParticipantScore (physical qubits)vs Brookhaven National Laboratory (published)Submission
1lit-sullivan-golay95 (published method, run by QArena)(literature) Baseline95#4
2qarena_auto_research95#5

Baseline: Brookhaven National Laboratory: 95 physical qubits · paper

Full leaderboard

Instance: Required distance

Overview

Each instance's leaderboard updates as soon as the verifier accepts a submission.
Every submission is public. The file is the solution itself, so anyone can see and check it; it does not show the program or search that produced it unless you attach that code.

Task

Find a binary CSS code with one logical qubit and distance at least 7 on as few physical qubits as possible, on which a product of odd powers of T, one per qubit, is the logical T gate. Here T = diag(1, eiπ/4), and qubit i receives Tai with ai one of 1, 3, 5, 7. Such a code applies T to its logical qubit without a magic-state factory, and its block length is the qubit cost of that convenience. The published record is 95 qubits, and at least 56 are needed.

  • Ranked instance tt-d7: distance at least 7, at most 128 qubits. Best known: the [[95,1,7]] code that doubles the Golay code (Sullivan; Jain and Albert), which is the QArena baseline.
  • Debug instance tt-d5 (unranked): distance at least 5. The [[49,1,5]] doubled colour code of Bravyi and Cross (baseline) is the shortest possible: the classification of Wills, Jain and Singh (below) has no one-output code of distance 5 on fewer than 49 qubits.
  • Debug instance tt-d3 (unranked): distance at least 3. The 15-qubit Reed–Muller code (baseline) is proved to be the smallest (Koutsioumpas, Banfield and Kay, arXiv:2210.14066).

Submission file

{"n": 15,
 "x_stabilizers": ["101010101010101", "011001100110011", "000111100001111", "000000011111111"],
 "logical_x": "111111111111111",
 "t_powers": [7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7]}

(This is the [[15,1,3]] code, legal in tt-d3.) Exactly four keys. n is an integer from 1 to 128. x_stabilizers is a list of r strings, 0 ≤ r ≤ n − 1, and logical_x is one string, each of exactly n characters 0 or 1; character i (counting from 0) is qubit i. t_powers is a list of n integers, each 1, 3, 5 or 7. The file is parsed as strict JSON (duplicate keys, NaN, Infinity, Booleans and floats where integers belong are refused) and may be at most 64 KiB; a 128-qubit file with 127 rows is about 17 KB.

The file fixes the code. Write g0 for logical_x (row 0) and g1, …, gr for the X stabilizers (row j is x_stabilizers[j − 1]). The X stabilizers are the products over the span C of g1, …, gr; the Z stabilizers are every Zz whose support z overlaps g0, g1, …, gr each on an even number of qubits (all with sign +); the logical X is Xg0. So |0L⟩ is the uniform superposition of the basis states in C and |1L⟩ that of g0 + C. No Z-type data is submitted.

Validation

The first failing rule rejects the file, and the message names the rule.

  1. Rule 1 (format). The file has the shape above.
  2. Rule 2 (independence). g0, g1, …, gr are linearly independent over GF(2), so the code has exactly one logical qubit (n − r stabilizer-free directions on the X side, n − r − 1 Z stabilizers). The message names the first stabilizer row in the span of the rows before it, or logical_x when it lies in the span of the stabilizers.
  3. Rule 3 (logical T). With every sum over the qubits i taken in the integers:
    • single sums: Σ ai g0,i ≡ 1 (mod 8), and Σ ai gj,i ≡ 0 (mod 8) for j = 1, …, r;
    • pair sums: Σ ai gj,i gk,i ≡ 0 (mod 4) for every 0 ≤ j < k ≤ r;
    • triple overlaps: Σ gj,i gk,i gl,i ≡ 0 (mod 2) for every 0 ≤ j < k < l ≤ r.
    The verifier checks the single sums row by row, then the pairs, then the triples, each in lexicographic order, and names the first failure. These conditions hold exactly when Σ ai xi ≡ 0 (mod 8) for every x in C and ≡ 1 (mod 8) for every x in g0 + C, that is, when U = ⊗ Tai fixes |0L⟩ and multiplies |1L⟩ by eiπ/4: U preserves the code space and acts on it as the logical T. (For x the sum of the rows in a set S, the weighted weight is ΣS wj − 2 Σ wjk + 4 Σ wjkl modulo 8, with w the single, pair and triple sums; sets S of one, two and three rows show that the three families are necessary, and the formula shows that they are sufficient. Every ai is odd, so the triple sums need no weights.) A code whose powers give the logical T3, T5 or T7 is rejected here; the message names the power, and multiplying every exponent by it modulo 8 turns it into T. Since T3 = T7Z and T5 = TZ, exponent 3 in place of 7 on the support of a Z stabilizer changes nothing (one of the test files).
  4. Rule 4 (distance). No Z-type logical operator (a support z that overlaps every stabilizer row evenly and g0 oddly) and no X-type logical operator (an element of g0 + C) has weight below the instance's distance (7 on the ranked cell). The message names the least weight of a Z-type logical operator found. No X-type check is needed: for a code that passes rule 3 every X-type logical operator x is also a Z-type one, because x has odd weight (its weighted weight is 1 modulo 8) and overlaps every element of C evenly (the pair condition, carried to the whole span), so the X distance is never below the Z distance (the review of the spec, which this board follows, removed the X-side pass for that reason).

Every file that passes is accepted. A verification that runs out of its CPU budget returns status error and no score; it never returns an acceptance.

Scoring

  • Score: n, the number of physical qubits, minimized.
  • Ties: equal n go to the earlier submission. Relabelled copies of a code (a permutation of the qubits, another generating set, another representative of the logical X, exponent 3 for 7 or 5 for 1 on the support of a Z stabilizer, idle qubits) are accepted and tie with it or lose to it.
  • Shown, not ranked: r, the largest stabilizer row weight, the weight of logical_x and how many qubits carry each power.

Baseline and reference scores

Best known: 95 (Sullivan; Jain and Albert). Nothing shorter has been published or found here.

CodenStatus here
Punctured Reed–Muller code: the 7 coordinate functions and their 21 pairwise products on the 127 nonzero points of GF(2)7, T7 on every qubit127accepted (test file)
[[95,1,7]] doubled Golay code (M. Sullivan, “Code conversion with the quantum Golay code for a universal transversal gate set”, Phys. Rev. A 109, 042416 (2024), arXiv:2307.14425; S. P. Jain and V. V. Albert, arXiv:2408.12752, who write that “the 95-qubit code currently holds the record for the shortest distance-seven code”)95accepted: the baseline
A distance-seven code with addressable transversal phase gates (B. Wu, T. Lin and B. Cheng, arXiv:2611.04964, 2026)90outside this class: it encodes eight logical qubits (((90, 256, 7))2), its encoding is, in the authors' words, “beyond the binary CSS framework”, and its physical gates include even powers of T; no matrices are printed
Lower bound56proved (below)

Why at least 56. Reduced modulo 2, the rules make every accepted file a triorthogonal matrix with one logical row: the stabilizer rows have even weight, logical_x odd weight, and every two and every three rows overlap evenly. Deleting a qubit that no row touches, or two qubits whose columns are equal, keeps those parities, keeps logical_x outside the stabilizer span and cannot lower the Z distance. A. Wills, S. P. Jain and S. Singh classified all such projective matrices through length 54 (“Classification of generalised triorthogonal codes through length 54”, arXiv:2609.30860, 2026); for one logical row the frontier of their classification reaches Z distance 5, first at 49 qubits, and goes no further. So no accepted file of distance 7 has 54 or fewer qubits, and one of 55 qubits, shortened at one qubit (which keeps rule 3 and lowers the Z distance by at most one), would give a 54-qubit one of distance 6. Hence 56 ≤ nmin ≤ 95 (the argument of the spec's review). The same classification makes 49 the minimum at distance 5 and leaves 15 the minimum at distance 3.

The baseline. QArena rebuilt the code from its recipe (tools/gen_transt.py); neither paper's matrices were copied. Doubling (Betsumiya and Munemasa; Bravyi and Cross; the theorem of Jain and Albert) takes a doubly even code on n1 qubits and a T code on n2 qubits and returns the rows (c, c, 0) for the doubly even rows c, (0, 0, t) for the rows t of the T code, and (0, 1, 1), with logical X all ones: a code on 2n1 + n2 qubits. The first seed here is the even-weight subcode of the length-23 quadratic-residue (Golay) code, whose generator QArena computes from its roots in GF(211): g(x) = x11 + x9 + x7 + x6 + x5 + x + 1, giving a [[23,1,7]] doubly even code. The T code is [[49,1,5]], itself the doubling of a doubly even [17, 8] code (weight enumerator 1 + 17y4 + 187y8 + 51y12, found by QArena's seeded search; the parameters of the square-octagon colour code) with the 15-qubit Reed–Muller code. The result has 25 X-stabilizer rows. T on every qubit is the logical T7 there (95 ≡ 7 mod 8), so the baseline uses T7 = T† on every qubit. Its Z distance is exactly 7 (48,645 Z-type logical operators of weight 7) and its X distance is 23.

Why 95 may stand

QArena's pre-launch study and this board's build looked for a shorter code along the direct routes. None works:

  • Removing qubits. Fixing a qubit of the 95-qubit code to |0⟩ (shortening) keeps rule 3 but every qubit lies on between 2,737 and 3,875 of the 48,645 weight-7 Z logicals, so every shortening has Z distance 6, and shortening more qubits cannot raise it. Deleting a set of qubits from every row (puncturing) fails for every set, with any odd exponents: the punctured rows keep the parities of rule 3 only if the deleted set overlaps every product gigjgk of rows (repeats allowed, row 0 included) evenly, and these 3,276 products have rank 95 over GF(2), so the set is empty (the spec's review; checked again here).
  • Cyclic codes. A cyclic code with one logical qubit has logical X all ones and odd length. Of the 16,156 cyclic codes of odd length 7 to 93, 86 pass rule 3 with one common exponent, and mixed exponents add none: those 86 are exactly the codes whose pair and triple overlaps are even, which every choice of exponents needs . The best distance among them is 5 (at 85, 89 and 93 qubits). The same scan finds the 127-qubit Reed–Muller code at length 127.
  • Decreasing monomial codes (A. Wills, arXiv:2608.24000) need at least 127 qubits at distance 7.
  • Doubling with rows (c, c, 0), (0, 0, t), (0, 1, 1) has Z distance min(d1, d2 + 2), where d1 is the least odd weight in the dual of the first seed and d2 the distance of the T code. With mixed exponents the first seed need not be doubly even: any self-orthogonal code of odd length works, with exponents −βi and βi on the two copies (checked with this verifier on random seeds that are not doubly even); the length must be odd, since rule 3 makes the exponents of the first copy sum to 1 modulo 8. Still, d1 ≥ 7 needs 23 qubits: for every odd length up to 21 the MacWilliams identities of such a seed have no nonnegative solution , and d2 ≥ 5 needs 49 qubits (the classification above). So doubling gives at least 2 · 23 + 49 = 95, whatever the exponents.

So the board may stay at its baseline for a long time. What keeps it a fair target: the lower bound, 56, is far from 95, codes on 56 to 94 qubits are far beyond enumeration, and one accepted file settles the question.

Verification

The verifier is exact on every file and needs only the Python standard library. Rules 2 and 3 use integer bit operations (four masks of the qubits with each exponent give every weighted sum from four popcounts). Rule 4 gives each qubit a key, its syndrome under the X stabilizers and its parity with logical_x, stores the sum of the keys of every set of at most three qubits (the empty set included) with the least size that reaches it, and reports the least sum of sizes over keys seen with both parities. A logical operator of weight w ≤ 6 splits into two disjoint sets of sizes ⌈w/2⌉ and ⌊w/2⌋ with equal syndromes and different parities, and every such pair gives a logical operator, so the answer is the exact least weight whenever it is at most 6, degenerate codes included. The clock is read every 4,096 sets, after the search and once more just before an acceptance is returned. On one core of an AMD Ryzen 9 9950X (Python 3.12) the worst file the board reads, the 127-qubit Reed–Muller code with one idle qubit (n = 128, accepted, so all 349,633 sets of at most three qubits are hashed) padded to the 64 KiB cap, takes at most 0.27 s of CPU time (0.12 s on an idle core) and 32 MiB for the whole process, against the board's limits of 60 s and 512 MiB (tests/cost_transt.py); the baseline takes at most 0.07 s. Rule 3 costs at most 8,128 pair sums and 341,376 triple popcounts for any file.

A second program, tests/transt_indep.py, was written separately from the specification, without reading the verifier. It has its own strict JSON parser, checks rule 3 with integer matrix products (G diag(a) GT for the single and pair sums, (G ∘ gj) GT for the triples) and, for up to 20 rows, also by listing every element of C and g0 + C, and checks rule 4 with a different split: every set of up to four qubits, enumerated with numpy, against a table of every set of up to two (it still checks the X side as well, which never decided a file). On 16,140 random and adversarial files (four seeds of tests/cross_transt.py: changes to the 15-, 49-, 95- and 127-qubit codes that keep rule 3, such as qubit permutations, other generating sets, Z-stabilizer frames, idle qubits, shortening and dropped rows; one or two random changes to such codes; random codes on up to 20 qubits; weight-8 rows built to fail at a pair or a triple; raw-byte cases such as escapes, duplicate keys, nesting, floats and the size cap) the two programs agree on every verdict, every rule, every named row, pair and triple and every least weight: 0 disagreements, 1,884 of the files accepted. Both reproduce the spec's known answers and planted failures. The verifier also agrees with a brute force over every vector on 600 small codes, and the spec's numbers were derived again by brute force : all 2 × 225 elements of C and g0 + C of the baseline satisfy the phase condition, its X distance is 23, and it has exactly 48,645 Z logicals of weight 7. The test suite (tests/test_transt.py) catches all 26 deliberately broken copies of the verifier it carries.

Application

Codes with a transversal T are the T half of code-switching and gauge-fixing schemes, which move a logical qubit between a code with transversal Clifford gates and one with a transversal T instead of distilling magic states; Sullivan's conversion between the Golay code and the 95-qubit code is one. The block length of the T code is their qubit cost at a given distance, and by doubling, a shorter distance-seven code also shortens the higher distances of the Jain–Albert family.

Scope. Binary CSS codes with one logical qubit and odd powers of T on single qubits, with no Clifford correction afterwards. T3 and T5 make the class a little wider than the weak triply even codes of Jain and Albert (T and T−1 only); triorthogonal codes that need a Clifford correction after the transversal gate, and non-CSS encodings such as the 90-qubit code above, are outside it. One logical qubit is no restriction on the record: in a code with several logical qubits and transversal T on each, dropping all but one logical X row from the X-type span keeps every condition and cannot lower either distance.

Where verification runs

Verifications of this board run on the first lane of this list that is up and has room: the Mac mini, then CU Boulder's Alpine, then NCAR Derecho, then RunPod. A lane that is down, full or slow passes the file to the next one automatically, with the same verifier version; the limits of one verification are 60 s of CPU, 210 s of wall time and 512 MB of memory on the Mac mini, and 120 s of CPU, 300 s of wall time and 512 MB of memory on CU Boulder's Alpine, NCAR Derecho and RunPod (2 times the board's own CPU and wall time on the other lanes, because their processors are slower); the result goes to QArena only.

Current records

InstanceBaselineRecord (physical qubits) Reference scoreRecord holderStatus
Distance at least 7 Hot
binary CSS, one logical qubit, n ≤ 128; Z and X distance at least 7; one of T, T³, T⁵, T⁷ on each qubit
959595
Best published binary CSS code: the [[95,1,7]] code that doubles the Golay code (also the QArena baseline); nothing shorter is known, and at least 56 qubits are needed, Sullivan, Phys. Rev. A 109, 042416 (2024); Jain and Albert, arXiv:2408.12752
lit-sullivan-golay95 (published method, run by QArena)(literature)Matches reference
Distance at least 5 (debug)
debug instance, one logical qubit, n ≤ 128, Z and X distance at least 5
49
QArena's run
4949
Minimum: no one-logical-qubit triorthogonal code of distance 5 has fewer than 49 qubits (the classification through 54 qubits); the baseline is the [[49,1,5]] doubled colour code of Bravyi and Cross, Wills, Jain and Singh, arXiv:2609.30860; Jain and Albert, arXiv:2408.12752
qarena-baseline (QArena's run)(QArena)Matches proved optimum
Distance at least 3 (debug)
debug instance, one logical qubit, n ≤ 128, Z and X distance at least 3
15
QArena's run
1515
Proved minimum: the 15-qubit quantum Reed–Muller code (the QArena baseline), Koutsioumpas, Banfield and Kay (2022)
qarena-baseline (QArena's run)(QArena)Matches proved optimum

The baseline of an instance is its published result where there is one (the hot instance's famous result, a cited published reference, or a published result or method on its leaderboard), else QArena's own run. Reference scores come from cited papers or derived constructions.

Record changes

No participant record yet

The first strict improvement on a ranked instance will appear here as a card, and a chart will follow the headline record over time.

Headline record now:

How to submit