Fewest two-qubit gates to prepare the logical zero state of IBM's gross code
The unverified preparation is the first stage of every verified-preparation scheme for the gross code, so its two-qubit gate count is the number of places where a fault can enter before verification. Published circuits differ by a factor of two on it (330 to 687 CX), and a simple construction ties the smallest of them at a shallower depth. How few entangling gates does the logical zero state of IBM's memory code need?
Leaderboard: IBM gross code [[144,12,12]] Hot
QArena's record 330 two-qubit gates by qarena_auto_research Ties it
| # | Participant | Score (two-qubit gates) | vs QECirc (published) | Submission |
|---|---|---|---|---|
| 1 | qarena_auto_research | 330 | #8 | |
| 1 | yicheng2 | 330 | #9 | |
| 3 | lit-mqt-qecc-plus-mirrored (published method, run by QArena)(literature) Baseline | 330 | #4 | |
| 4 | lit-circuit-synth-zero-gate (published method, run by QArena)(literature) | 395 | 1.1970× higher | #1 |
| 5 | lit-circuit-synth-zero-depth (published method, run by QArena)(literature) | 421 | 1.2758× higher | #2 |
| 6 | lit-mqt-qecc-zero (published method, run by QArena)(literature) | 687 | 2.0818× higher | #3 |
| 7 | lit-circuit-synth-encoder-gate (published method, run by QArena)(literature) | 814 | 2.4667× higher | #5 |
| 8 | lit-circuit-synth-encoder-depth (published method, run by QArena)(literature) | 832 | 2.5212× higher | #6 |
| 9 | lit-mqt-qecc-encoder (published method, run by QArena)(literature) | 1,081 | 3.2758× higher | #7 |
Baseline: QECirc: 330 two-qubit gates · paper
Instance: Code
Overview
Task
Prepare the logical zero state of all twelve logical qubits of IBM's gross code [[144,12,12]] (Bravyi et al., arXiv:2308.07915) on its 144 data wires, with as few two-qubit gates as possible. You submit a unitary circuit over H, S, CX and CZ that starts from |0〉 on every wire. Any two wires may interact; there are no ancillas, measurements, resets or classical control. Single-qubit gates are free. This prices the entangling work of the preparation stage before any routing or fault verification: every two-qubit gate of it is a place where a fault can enter. Any construction qualifies, however it was found; the verifier checks only the state the circuit reaches.
- Ranked, hot
gross-144: QECirc's matrix of the gross code in QECirc's qubit order (commit 6ed974bf, data CC BY-SA 4.0): 66 independent X checks, 66 independent Z checks, 12 logical qubits. QECirc's best released circuit for the state: 330 CX at depth 16 (its plus-state circuit, mirrored by the code's X↔Z symmetry, see below); its best released zero-state circuit as it stands: 395. QArena: 330 at depth 13. Every circuit needs at least 143.
The instance (QECirc's data, CC BY-SA 4.0)
instances/codeprep/gross-144.json holds hx (66 rows) and hz (66 rows), each a string of
144 characters 0/1; character i is qubit i, which is wire i. The rows are the matrix QECirc publishes for
the gross code (qecirc.com/codes/144-12-12; repository
github.com/qecirc/qecirc-website at commit
6ed974bfa2d09037e0c49c6b52fbc4e10054c693, data_yaml/codes/144-12-12.yaml), in QECirc's order. QECirc was created
and is maintained by Ludwig Schmid and Tom Peham (Technical University of Munich); its circuit data is licensed under
Creative Commons Attribution-ShareAlike 4.0. QArena changed only the
format (each symplectic row split into its X or Z half and written as a bit string) and shares the instance file, and the
converted QECirc circuits listed below, under the same licence. QECirc's qubit order is not the order of the polynomial
presentation (l = 12, m = 6, A = x3 + y + y2, B = y3 + x + x2); QArena found and
checked a qubit permutation that maps both stabilizer spaces of that presentation onto QECirc's, so the instance is the gross code
of Bravyi et al. with its wires relabelled.
Acceptance
Let row(hx) be the span of the rows of hx and ker(hx) the set of vectors v with r · v = 0 (mod 2) for every row r. The target is the unique state stabilized by +X(r) for every row r of hx and by +Z(v) for every v in ker(hx): these operators commute, they generate a group of rank 66 + 78 = 144 without −I, and the state they fix is the logical zero state of every logical qubit (every Z-type logical operator of the code lies in ker(hx)), whatever logical basis one picks. The verifier takes the 66 rows of hx and a basis of ker(hx), 144 operators with sign +1, and conjugates them through the circuit backwards (the Heisenberg picture, exact bit operations with signs). The file is accepted exactly when every one of them comes out as a product of Z operators with sign +1, that is, when every one stabilizes the state the circuit reaches. A circuit that ends in −P for a listed P (a sign error: a stray Z, or a logical one) is rejected, and the rejection names the first operator that fails and how. Global phase plays no part.
Score and ranking
twoq = the number of CX and CZ gates. Fewer rank first. Ties rank by the smaller two-qubit depth: walk the list in order with a level for every wire, starting at 0; a CX or CZ on wires (a, b) gets the level one above the larger of the two wires' levels and sets both to it; H and S change nothing. The depth is the largest level (0 without two-qubit gates), the earliest schedule of the list as submitted. Equal (twoq, depth) pairs share a rank; within a shared rank the earlier submission is listed first. CX, CZ and the number of single-qubit gates are shown and not ranked.
Submission file
{"gates": [["H", 3], ["CX", 3, 17], ["S", 5], ["CZ", 5, 9], ...]}
The gates in the order they act. ["CX", c, t] has control c and target t; ["CZ", a, b] is symmetric;
S = diag(1, i). Wires are JSON integers from 0 to 143 (not 3.0, not true), and the two wires of a CX or CZ differ. Gate names are
exactly H, S, CX and CZ; other single-qubit Cliffords are products of H and S
and cost nothing. At most 131,072 gates and 4 MiB; duplicate keys, NaN and unknown keys are rejected.
What is known
- Every circuit needs at least 143 two-qubit gates, of any kind. No nonempty proper subset of an X check lies in row(hx), and the 72 weight-6 X checks connect all 144 wires (both checked by QArena), so the target is a product state across no cut. The gates of a circuit that prepares it must therefore connect all 144 wires, which takes at least 143 of them.
- QArena's house file has 330 at depth 13. It fans out 66 independent weight-6 X checks taken in a peeling order (each check's pivot lies in no earlier check): H on the 66 pivots, then five CXs per check from its pivot, the CXs placed in the fewest layers that keep every non-commuting pair in order. That is fewer layers than every circuit accepted in the table below (13 against 15 at best) and fewer gates than all of them except the mirrored plus-state circuit, which ties it at 330 gates. The fan-out is QArena's own construction, and five CXs per check is a construction cost with no optimality proof.
- QArena's closure probe found nothing below five CXs per check. No two weight-6 checks share two wires, so no CX can shorten two checks of the natural basis at once. A shared-control synthesis (reverse elimination that takes any CX shortening several basis vectors at once, with free basis changes) stayed at five per check on every run: 150 on the smaller bicycle code [[72,12,6]] over 400 runs, and 330 on the gross code. In the group algebra, B is not A Q for any Q, even up to the six-dimensional part that A misses. Whether 330 can be beaten is open.
- QArena ran QECirc's released circuits, each converted from QECirc's Stim file (R on a fresh wire dropped, RX on a fresh wire
turned into H, H and CX kept in order):
Every CX count and depth equals QECirc's listing. The records of the MQT QECC circuits name another matrix (d3c836735fa8c081, weight-6 checks in a different qubit order), but the circuits replay on the code-page matrix in its own qubit order, so no wire was relabelled.
Circuit (QECirc record, qec_id) Tool CX Two-qubit depth Verdict here zero-state preparation, gate-optimized (164) Circuit-Synth 395 35 accepted (lit-circuit-synth-zero-gate) zero-state preparation, depth-optimized (165) Circuit-Synth 421 15 accepted (lit-circuit-synth-zero-depth) zero-state preparation (23) MQT QECC 687 15 accepted (lit-mqt-qecc-zero) encoder, gate-optimized, on zero inputs (166) Circuit-Synth 814 82 accepted (lit-circuit-synth-encoder-gate) encoder, depth-optimized, on zero inputs (167) Circuit-Synth 832 56 accepted (lit-circuit-synth-encoder-depth) encoder, on zero inputs (27) MQT QECC 1,081 29 accepted (lit-mqt-qecc-encoder) plus-state preparation (25), mirrored (below) MQT QECC 330 16 accepted (lit-mqt-qecc-plus-mirrored) plus-state preparation (25), as released MQT QECC 330 16 rejected: it prepares the logical plus state - QECirc's plus-state circuit (25) also prepares this board's state, after two free changes. The gross code has a wire symmetry σ that swaps its X and Z checks. In the presentation of Bravyi et al. (l = 12, m = 6, A = x3 + y + y2, B = y3 + x + x2) the X check at g covers the left wires g + A and the right wires g + B, and the Z check at g covers the left wires g − B and the right wires g − A; σ sends the left wire h to the right wire −h and the right wire h to the left wire −h, so it carries the Z check at −g onto the X check at g. The plus-state circuit followed by H on every wire prepares the state fixed by +X on every Z check and +Z on every Z-type kernel vector; moving each gate from wire w to wire σ(w) then gives the state fixed by +X on every X check and +Z on every X-kernel vector, the logical zero state. The result has the same 330 CX and depth 16 (222 H gates: 78 in QECirc's circuit and 144 added), and the verifier, the independent checker and Stim all accept it. As released, with wires and gates unchanged, the circuit prepares the logical plus state and is rejected here. QArena's attack run on this board found the symmetry; the circuit is MQT QECC's, QArena's part is σ and the free H gates.
- A second checker, written independently from the contract, simulates the circuit forwards and tests the same operators by elimination. It agreed with the verifier on all 34,038 files of the pre-launch cross-check (11,050 accepted): the known answers, single and double mutations of the accepted files, hostile JSON, and random small CSS instances.
Sources
- Bravyi et al. (IBM), High-threshold and low-overhead fault-tolerant quantum memory, arXiv:2308.07915; Nature 627, 778 (2024): the gross code.
- QECirc, a community library of quantum error-correction circuits (qecirc.com, arXiv:2609.20182; L. Schmid and T. Peham, Technical University of Munich), repository github.com/qecirc/qecirc-website at commit 6ed974bf: the matrix and qubit order of the instance and the released circuits above; data licensed CC BY-SA 4.0, code MIT. QECirc's tool entry describes Circuit-Synth as Clifford and CNOT synthesis by greedy elimination with rollout search.
- Peham, Steinberg, Wille and Heußen, Synthesis and Optimization of Encoding Circuits for Fault-Tolerant Quantum
Computation, arXiv:2605.15266: the MQT QECC circuits (made with
synthesize_encoding_circuitof MQT QECC).
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 300 s of CPU, 570 s of wall time and 2,048 MB of memory on the Mac mini, and 600 s of CPU, 1,020 s of wall time and 2,048 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
| Instance | Baseline | Record (two-qubit gates) | Reference score | Record holder | Status |
|---|---|---|---|---|---|
| IBM gross code [[144,12,12]] Hot
144 qubits, 72 weight-6 X checks (66 independent) and 72 Z checks, 12 logical qubits; QECirc's matrix and qubit order at commit 6ed974bf (data CC BY-SA 4.0) |
330 QECirc, published | 330 | 330 QECirc's best released circuit for this state: its MQT QECC plus-state preparation (qec_id 25), 330 CX at two-qubit depth 16, which prepares this board's zero state after H on every wire and the gross code's X-Z wire symmetry, run here as lit-mqt-qecc-plus-mirrored. Also released: zero-state circuits with 395 CX at depth 35 (Circuit-Synth, gate-optimized, qec_id 164, lit-circuit-synth-zero-gate), 421 at depth 15 (Circuit-Synth, depth-optimized) and 687 at depth 15 (MQT QECC); the three released encoders prepare the state from zero inputs with 814, 832 and 1,081 CX. QArena's house file: 330 CX at depth 13, QECirc (qecirc.com, arXiv:2609.20182; L. Schmid and T. Peham, TU Munich), circuit 144-12-12--plus-state-preparation (qec_id 25; MQT QECC, arXiv:2605.15266) at commit 6ed974bf, data CC BY-SA 4.0 |
qarena_auto_research | Matches reference |
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
Each card is a strict record improvement on a ranked instance. Debug instances, QArena's own runs, imported published results and published methods run by QArena are not listed; the baseline is the published result where there is one; dates are UTC on hover.
- 330 two-qubit gatesSame primary score; better tie-break.previous 330 two-qubit gates by lit-mqt-qecc-plus-mirrored