Syndrome-extraction cycles for the gross and two-gross codes
A syndrome-extraction cycle is what a quantum memory runs over and over. On the same code and noise, the order of its CNOTs decides how single faults spread into data errors (hook errors), and with that the circuit distance and the logical error rate. Bravyi et al. chose their cycle for its circuit distance (at most 10 for the gross code, whose code distance is 12); whether another order does better under a fixed decoder has no public answer with an exact check of the cycle behind it.
Leaderboard: Gross [[144,12,12]], p = 0.003 Hot
QArena's record 2,192 errors / 600,000 shots by lit-cheng-gross-d11-c Beats it: 1.0269× lower
| # | Participant | Score (failing shots) | vs IBM Quantum (published) | Submission |
|---|---|---|---|---|
| 1 | lit-cheng-gross-d11-c (published method, run by QArena)(literature) | 2,192 | 1.0269× lower | #8 |
| 2 | lit-cheng-gross-d11-a (published method, run by QArena)(literature) | 2,233 | 1.0081× lower | #6 |
| 3 | lit-cheng-gross-d11-b (published method, run by QArena)(literature) | 2,241 | 1.0045× lower | #7 |
| 4 | lit-bravyi-bb-cycle (published method, run by QArena)(literature) Baseline | 2,251 | #12 | |
| 5 | yicheng | 2,251 | #14 |
Baseline: IBM Quantum: 2,251 failing shots · paper
Instance: Code and physical error rate
Overview
Task
Write one periodic syndrome-extraction cycle for a bivariate bicycle code: the gross code [[144,12,12]] or the two-gross code [[288,12,18]] of Bravyi et al. (Nature 627, 778 (2024), arXiv:2308.07915). The cycle must measure every check of the code exactly, keep every logical qubit, and measure no logical information. QArena builds the noisy memory experiment of your cycle, samples one private batch of shots and decodes it with a frozen house decoder. Fewer failing shots rank higher.
- Instance bb144-cycle-p3e-3-v1: the gross code, uniform circuit noise p = 0.003, 12 noisy cycles, 600,000 shots (300,000 in X memory, 300,000 in Z memory).
- Instance bb288-cycle-p4p5e-3-v1: the two-gross code, p = 0.0045, 18 noisy cycles, 200,000 shots (100,000 per basis).
- Practice cells (practice set, answers public) bb72-cycle-p2e-3-v1-dev ([[72,12,6]], p = 0.002, 6 cycles, 20,000 shots), bb144-cycle-p2e-3-v1-dev (2,000 shots) and bb288-cycle-p2e-3-v1-dev (200 shots), all at p = 0.002. Their batches use a public seed, so anyone can repeat their evaluation. They are for testing a cycle end to end; at p = 0.002 the gross and two-gross cells see too few failures to rank anything.
The code and the wires
With h = lm and n = 2h, let x and y be the cyclic shifts Sl⊗Im and Il⊗Sm (the monomial xayb sends row im + j to column ((i + a) mod l)m + (j + b) mod m). The checks are HX = [A | B] and HZ = [BT | AT] with B = y3 + x + x2. The gross code has (l, m) = (12, 6) and A = x3 + y + y2; the two-gross code has (l, m) = (12, 12) and A = x3 + y2 + y7 (the polynomial changes, not only the grid); the [[72,12,6]] code has (6, 6) and the gross polynomials. The ranks are 66 and 66 (gross), 138 and 138 (two-gross), 30 and 30 ([[72,12,6]]), so k = 12 in each case. Each instance file lists the 12 X-type and 12 Z-type logical generators (LXLZT = I), which are also the observables of the memory experiment.
Wires 0 to n − 1 are the data qubits (left block first). Wire n + c is the ancilla of X check c (row c of HX) and wire n + h + c the ancilla of Z check c. Check rows are numbered 0 to n − 1: rows 0 to h − 1 are the X checks, rows h to n − 1 the Z checks. A CNOT may join an ancilla and one of the six data qubits of its own check, in either direction: this is the code's degree-six Tanner graph, and no other pair of wires can interact.
Submission file
One JSON object of at most 256 KiB:
{"instance": "bb144-cycle-p3e-3-v1",
"layers": [[["RX", 144], ["RX", 145], ..., ["CX", 126, 216], ["CX", 127, 217], ...],
[["CX", 144, 1], ["CX", 145, 2], ...],
...],
"checks": [72, 73, 74, ..., 0, 1, 2, ...]}
layers: 1 to 32 layers (ticks). Each layer is a list of operations whose wires are all different; every operation takes one tick. Operations:["CX", control, target],["H", wire],["RX", ancilla]and["RZ", ancilla](prepare |+⟩ or |0⟩),["MX", ancilla]and["MZ", ancilla](measure; outcome 0 means eigenvalue +1).checks: for each of the n check rows, the index of the measurement that reports it, counting the measurement operations of the file from 0 in the order they appear (layer by layer, then in the listed order).- Per cycle at most 12n CNOTs and 4n Hadamards. Every ancilla is prepared exactly once and measured exactly once. Data qubits are never prepared or measured. There is no feedback, postselection, noise, detector or observable in the file.
- An ancilla is live from its preparation through its measurement; CNOTs and Hadamards act on live wires only (data qubits are live throughout). An ancilla whose preparation comes after its measurement in the file crosses the cycle boundary: it is prepared at the end of one cycle and used in the next. It must have no operation after that preparation, so it crosses freshly prepared, before its first interaction. QArena prepares such ancillas once before the first cycle and leaves out their preparation in the last cycle.
The verifier bundle contains an accepted file for bb144-cycle-p3e-3-v1: Bravyi et al.'s cycle in this format (its X ancillas are
prepared in layer 0 and measured in layer 7; its Z ancillas are measured in layer 6, prepared in layer 7 and cross the boundary).
tools/bbcycle_circuit.py in the QArena repository builds the noisy circuits of any cycle exactly as the server does.
Validation
After the strict format and wire checks, the verifier runs one cycle on the Choi state of the n data qubits: each data qubit starts in a Bell pair with an untouched reference qubit, and the ancillas that cross the boundary start freshly prepared. The state is kept as an exact stabilizer tableau in which every sign is a parity (an affine form over GF(2)) of measurement outcomes, so one run covers every outcome and every input state. Let Km be the cycle's noiseless action on the data for the outcomes m. The verifier requires, for every check Sj (dependent rows included) with designated outcome mj, and every logical generator La:
- KmSj = (−1)mjKm and SjKm = (−1)mjKm: the outcome is the check's value before and after the cycle;
- LaKm = KmLa with sign +1 on every branch: no logical Pauli, no outcome-dependent correction, no logical permutation and no logical measurement.
These are 2n independent conditions on a pure 2n-qubit state, so they hold exactly when Km is (up to a factor) the projector onto the measured syndrome: the cycle is the ideal stabilizer measurement. The check takes about 0.1 s for the gross code and 0.4 s for the two-gross code. A file that fails gets the first failing condition as its reason.
Noise model and memory experiment
QArena builds the experiment from your cycle; you never write noise. In X memory the data start ideally in the encoded all-|+⟩ logical state, in Z memory in all-|0⟩. A boundary tick prepares the crossing ancillas (with preparation noise, no data idling). Then R noisy cycles run (12 for the gross code, 18 for the two-gross code, 6 for [[72,12,6]]), followed by an ideal measurement of every check and of the 12 memory-basis logicals. Noise, independently at every location with the instance's p:
- CNOT: one of the 15 non-identity two-qubit Paulis after the gate, each with probability p/15;
- Hadamard, and every live wire with no operation in a tick (including empty layers): X, Y or Z after, each with probability p/3;
- preparation: the orthogonal state with probability p; measurement: the reported bit flipped with probability p.
Detectors are the first outcome of every check, the change of every check between consecutive cycles and the final ideal value against the last outcome: n(R + 1) detectors per experiment (1,872 for the gross code, 5,472 for the two-gross code), all deterministic. The observables are the final logical measurements. Under these rules a cycle has at least 8 ticks (preparation, six CNOTs, measurement per ancilla) and at least 6n CNOTs (each check has weight six). Bravyi et al.'s cycle has 8 ticks and 6n CNOTs, 2n data idle locations per cycle and no ancilla idle, so the number of fault locations cannot go below it; what is open is the order and direction of the CNOTs and the timing of preparations and measurements. Hadamards and reversed CNOTs only add noise. Flag qubits, extra ancillas and cycles that change from round to round (Shaw and Terhal's morphing circuits) are outside this file format.
Scoring
A valid cycle is pending until QArena's house evaluation. Each distinct cycle (the same operations in each layer, in any order inside a layer) is evaluated once: QArena samples the X and Z memory experiments of its circuit with a secret seed (Stim 1.16.0) and decodes every shot with the house decoder, BP-OSD from ldpc 2.1.0 (minimum-sum, 200 iterations, scaling 0.625, parallel schedule, OSD_CS order 10) on the memory-basis detectors of the circuit's own detector error model. A shot fails when any of its 12 predicted observables is wrong. The score is E = EX + EZ, fewer is better; ties go to the earlier submission. The leaderboard shows E/N, E/(NR) labelled “failure fraction divided by cycles” (not a measured per-cycle rate), both bases' counts with an approximate 95 % Wilson interval each (for zero failures, a one-sided 95 % upper bound), the ticks and the CNOTs. An interval describes one batch and does not correct for picking the best of many entries: at about 2,300 failures one batch varies by about 2 % (one standard deviation), so a cycle within a few percent of the reference has not been shown to differ.
QArena evaluates the distinct valid cycles of every cell one at a time, oldest submission first. In any 7 days an account
may have at most 5 cycles evaluated, tried or started on the gross cells (the BB72 practice cell counts with them) and at most
3 on the two-gross cells; its other cycles wait. An account may hold at most 12 valid cycles, pending or scored, on each ranked
cell (rejected files do not count). The decoding runs on CU Boulder's Alpine cluster, on NCAR's Derecho supercomputer or on RunPod's paid CPU pods, never on QArena's own server: QArena routes the evaluations to one of these lanes, Alpine first, and RunPod takes a slice only as a last resort, when the lane it was routed to is down or has not taken it. QArena draws the batch on its own server and keeps the seed and the labels there; each job receives one experiment's circuit and one slice of its detection events, decodes it on 4 cores with one process per core, and sends back its predictions. QArena
counts the failing shots once every slice is in. A slice holds at most half of a 5-hour limit of the reference cycle's decoding
(gross: 20 slices of 15,000 shots per basis; two-gross: 40 slices of 2,500 shots per basis; a practice cell: one slice per
basis), so an admitted cycle finishes well inside the 19,800 s (5.5 hours) that QArena allows one slice's job (setup, decoding and report) on every lane; at most 48 slices run at once on Alpine, 128 on Derecho and 16 on RunPod. A slice whose job
fails, runs out of time or returns a malformed result is tried again, three tries in all; after that the cycle gets no score and
stays pending until QArena retries it. A slice lost to a routine event (a runner that cannot be set up, a new runner version, a
restart of QArena's server) is not a try; a slice whose runner vanishes is. An evaluation that ends without a score counts for
the week only when the cycle's own decoding failed all three tries. If QArena's runners keep failing to set a slice up for a whole
day (at least ten times), the evaluation also ends without a score; it does not count for the week and stays pending until QArena
retries it. Before a ranked cycle is decoded, one job decodes 200 shots of each basis of its batch
with the house decoder, next to 200 shots of Bravyi et al.'s cycle on the same runner. A cycle whose projected cost is above 1.5
times the reference cycle's, or whose projected slice is above 75 % of the 5-hour limit, is listed as “not evaluated: over
the decoding budget”: it gets no score, and the try counts as one of the account's evaluations for the week. It can still
be decoded in bb-cycle-own. A gross evaluation decodes 600,000 shots, about 29 hours of runner time; a two-gross evaluation
200,000 shots, about 171 hours. The 200-shot test decodes the two bases side by side. A gross evaluation has 40 slices and a two-gross one 80, so when every slice runs at once, a gross evaluation of a cycle as costly as the reference takes about 55 minutes and a two-gross one a little over 3 hours. On Alpine, which runs at most 48 slices at once, a two-gross evaluation needs two rounds of slices and takes longer, and a slice that waits in a cluster's queue adds its waiting time. Practice cells are
evaluated the same way, with their public seed and without the 200-shot probe, so anyone can repeat an evaluation with
tools/bbcycle_house.py local and tools/baseline_decoder.py, which the verifier bundle holds (the pinned
stim 1.16.0 and ldpc 2.1.0 are needed; the bundle's README gives the command).
Baseline and reference scores
The QArena baseline is Bravyi et al.'s cycle (seven CNOT layers and eight ticks, with the neighbour order of the authors' code, github.com/sbravyi/BivariateBicycleCodes, decoder_setup.py). Its circuits built here are byte-identical to the decoder board's circuits for bb144-bravyi-p3e-3-v1 and bb288-bravyi-p4p5e-3-v1, so its score is the decoder board's house result on those cells (same shots, same decoder). The decoder board's 10,000-shot pilots estimate about 2,280 failing shots for the gross cell and about 4,680 for the two-gross cell; the baseline rows stay pending until those house results exist and are imported. Bravyi et al. report a circuit distance of at most 10 for this cycle on the gross code (code distance 12) and a logical error rate of 2×10−7 per cycle at p = 0.001 with their own decoder settings, which differ from the house decoder.
Cheng, Guo and Pan (arXiv:2611.08247) computed the exact circuit distance of all 8,496 uniform depth-seven schedules with one ancilla per check (every check of a type uses the same gate order, X and Z checks never act on the same block in a layer, and each overlapping pair of checks is crossed consistently). For the gross code, 428 of them reach 11 against 10 for Bravyi et al.'s schedule, and 100 of the 428 fit eight timesteps per cycle. For the two-gross code they certify 16 for Bravyi et al.'s schedule, not the 18 that IBM assumed, and 84 schedules reach 18 at one noisy cycle; all 84 take nine timesteps per cycle. These distances are for the paper's own memory instruction, not for the 12 or 18 noisy cycles of the cells above, and a larger circuit distance does not by itself mean fewer failures with the house decoder at these error rates. Three representatives of each set, converted to this board's file format and not yet evaluated, are listed on the Published methods page as cheng-gross-d11-a to c and cheng-2gross-d18-a to c.
Application
A syndrome-extraction cycle is what a quantum memory repeats for as long as it stores information. On a fixed code and noise level, the order of the CNOTs decides how a single fault spreads into data errors, and with that the circuit distance and the logical error rate. IBM chose the gross code's cycle for its circuit distance; whether another order does better under a fixed decoder is open.
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. 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, 120 s of wall time and 512 MB of memory on the Mac mini, and 120 s of CPU, 240 s of wall time and 512 MB of memory on CU Boulder's Alpine and NCAR Derecho (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. On the Mac mini the verifier reads the hidden labels where QArena's server keeps them; they do not leave it. Its hidden labels go only to the one Alpine job that needs them (a fresh batch's labels after the file's format has passed, bb-cycle's stored house evaluation with the claim), never to a log, and are deleted with the job's folder. Its hidden labels go only to the one Derecho job that needs them (a fresh batch's labels after the file's format has passed, bb-cycle's stored house evaluation with the claim), never to a log, and are deleted with the job's folder.
Current records
| Instance | Baseline | Record (failing shots) | Reference score | Record holder | Status |
|---|---|---|---|---|---|
| Gross [[144,12,12]], p = 0.003 Hot
12 noisy cycles; 600,000 shots (300,000 X memory, 300,000 Z memory) in one private batch per distinct cycle; 1,872 detectors and 12 observables per experiment |
2,251 IBM Quantum, published | 2,192 | – Bravyi et al.'s cycle is the QArena baseline; its row is the decoder board's house result on bb144-bravyi-p3e-3-v1 (pilot estimate 2,280 failing shots), Bravyi et al., Nature 627, 778 (2024) |
lit-cheng-gross-d11-c (published method, run by QArena)(literature) | Beats the baseline |
| Two-gross [[288,12,18]], p = 0.0045
18 noisy cycles; 200,000 shots (100,000 per memory basis) in one private batch per distinct cycle; 5,472 detectors and 12 observables per experiment |
4,851 Bravyi et al., published | 4,851 | – Bravyi et al.'s cycle is the QArena baseline; its row is the decoder board's house result on bb288-bravyi-p4p5e-3-v1 (pilot estimate 4,680 failing shots), Bravyi et al., Nature 627, 778 (2024) |
lit-bravyi-bb-cycle (published method, run by QArena)(literature) | Baseline not beaten |
| [[72,12,6]], p = 0.002 (practice set, answers public)
practice instance: 6 noisy cycles, 20,000 shots with a public seed (anyone can repeat the evaluation); for testing a cycle end to end |
88 QArena's run | 88 | – Practice set, answers public |
qarena-baseline (QArena's run)(QArena) | Baseline not beaten |
| Gross [[144,12,12]], p = 0.002 (practice set, answers public)
practice instance: 12 noisy cycles, 2,000 shots with a public seed; too few failures to rank anything (about 127 in 600,000 shots expected) |
0 QArena's run | 0 | – Practice set, answers public |
qarena-baseline (QArena's run)(QArena) | Baseline not beaten |
| Two-gross [[288,12,18]], p = 0.002 (practice set, answers public)
practice instance: 18 noisy cycles, 200 shots with a public seed; failures are not expected at this rate |
0 QArena's run | 0 | – Practice set, answers public |
qarena-baseline (QArena's run)(QArena) | Baseline not beaten |
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
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:
- BB syndrome cycles, Gross [[144,12,12]], p = 0.003: 2,192 errors / 600,000 shots (0.365 % per shot on its own batch) by lit-cheng-gross-d11-c