Bicycle-architecture compilation
A lower modeled loss means fewer expected logical faults for the same program in the bicycle architecture's cost model, and gives compilers for IBM's roadmap a public target that is checked exactly.
Leaderboard: 28-qubit adder on 3 modules Hot
QArena's record 0.6653 modeled faults by QArena's own run Ties it
| # | Participant | Score (modeled faults) | vs QArena baseline | Submission |
|---|---|---|---|---|
| 1 | qarena-baseline (QArena's run)(QArena) Baseline | 0.6653 | #3 | |
| 2 | yicheng | 0.6653 | #5 |
Baseline: QArena's own run: 0.6653 modeled faults (nothing published fits this instance)
Instance: Program
Overview
Task
Compile a fixed Clifford+T program into the instruction set of IBM's bicycle architecture, so that the instruction file runs the program exactly, and make its modeled loss as small as possible. The machine is the one of Tour de gross (Yoder, Schoute, Rall, Pritchett, Gambetta, Cross, Carroll and Beverland, arXiv:2506.03094 v1, §1.2, Tables 1 and 2): gross-code modules [[144,12,12]] of 12 logical qubits each, n modules in a line 0…n−1 with joint measurements only between neighbours, and one T factory beside the last module. IBM's roadmap targets this architecture with Kookaburra and Starling; Kookaburra has not shipped, so this board is a roadmap profile: modeled instruction costs from the paper's Table 2 at physical error rate p = 10−3, frozen here, not measurements of a machine. If IBM revises the instruction set or the costs, that is a new board version.
The program is a Pauli-based computation: an ordered list of R rotations Rk = exp(−iπ/8 sk Pk) (sk = ±1, Pk a Pauli string on the N program qubits; character q acts on qubit q), then a joint measurement of the commuting signed Paulis s′j Qj (result bit 0 for eigenvalue +1). Your file must implement it for every input state of the N qubits (also one entangled with an outside system) and for every measurement outcome the machine can produce, not only for |0…0〉.
| Instance | Program (QASMBench, large/) | Qubits | Modules | π/8 rotations | Final measurements | Floor (the T injections alone) |
|---|---|---|---|---|---|---|
| bi-adder28-m3 | adder_n28: 24 Toffolis, 51 CNOTs, 13 X (96 T, 72 T† after the Toffoli expansion) | 28 | 3 | 168 | 28 (weight 1 to 4) | 0.335691216 |
| bi-mult45-m5 | multiplier_n45: 378 Toffolis, 306 CNOTs, 5 X (1,512 T, 1,134 T†) | 45 | 5 | 2,646 | 9 (weight 3) | 5.287136652 |
The instance files were made by QArena's generator tools/gen_bicycle.py from the two QASM files of
pnnl/QASMBench (both last changed in commit 4a4a3f30, 2022-12-27; SHA-256 recorded in each file, which also embeds the QASM
text): every ccx a,b,c is replaced by the body of qelib1.inc (OpenQASM 2.0 standard library,
Apache-2.0): h c; cx b,c; tdg c; cx a,c; t c; cx b,c; tdg c; cx a,c; t b; t c; h c; cx a,b; t a; tdg b; cx a,b;;
x, cx and h are Cliffords, barrier is dropped, and measure q[i] is
a final Z measurement of qubit i. The Cliffords are pushed to the end with an exact signed tableau (Litinski's Pauli-based
computation), so a T on qubit q becomes exp(−iπ/8 s P) with s P = C† Zq C for the
Cliffords C applied so far (s negated for T†), and a final Zq measurement measures C†
Zq C. The verifier reads only the frozen lists.
Machine
- Slots. Module m holds logical qubits 1…12 in slots 12m + j, j = 0…11 (logical qubit j + 1). Logical
qubit 1 (j = 0) is the pivot; logical qubit 7 is j = 6. Half A is j = 0…5, half B is j = 6…11. Program qubit q
starts in the data slot
layout[q](j = 1…11, never the pivot); every other slot starts in |0〉 (CSS preparation is free and noiseless in the paper's model). There is no reset. ["AUT", m, x, y], 0 ≤ x, y ≤ 5, (x, y) ≠ (0, 0): the shift automorphism, the unitary U with U|v〉 = |A v〉 on each half of module m, A = MXx MYy over GF(2), with the matrices of the reference compiler (GROSS_MEASUREMENTin qiskit-community/bicycle-architecture-compiler,crates/bicycle_cliffords/src/measurement.rs, Apache-2.0), rows listed top to bottom, bit i of a half's 6-bit vector being qubit i of that half and (A v)r = ⊕c Arc vc:
MX = [[0,1,0,1,0,0], [0,1,0,0,0,1], [0,0,1,1,0,0], [1,1,0,1,1,0], [0,1,0,0,1,0], [1,1,1,1,0,1]],
MY = [[1,0,0,0,0,1], [1,1,1,0,0,1], [0,0,0,0,1,0], [0,1,0,0,0,0], [0,1,1,0,0,1], [0,0,1,1,0,1]] (they commute and each has order 6). On Paulis: U X(v) U† = X(A v) and U Z(w) U† = Z(A−T w) on each half; for a Hermitian Pauli with Y letters, i|x&z| Xx Zz, the image is (−1)h times the Hermitian Pauli of (A x, A−T z), with h = ((|x&z| − |x′&z′|) mod 4) / 2 over the module's 12 qubits. Its cost counts generators (the crate'snr_generators): 0 for the identity; 1 for (1,0), (0,1), (5,0), (0,5) and for every other (3, y) or (x, 3) except (3,3), (0,3), (3,0), which take 2; 2 for every other element.["M", m, "ab"], a, b ∈ {I, X, Y, Z}, not "II": the in-module measurement of a on logical qubit 1 times b on logical qubit 7 of module m. One outcome.["JM", m, "ab", "cd"], 0 ≤ m ≤ n−2, each half one of XI, IZ, XZ, IX, ZI, ZX (X1, Z7, X1Z7, X7, Z1, Z1X7): the joint measurement of ab on module m's logical qubits 1 and 7 times cd on module m+1's. One outcome.["T", "P", s], P ∈ {X1, Y1, Z1, X7, Y7, Z7} on module n−1, s = ±1: a magic-state injection with this frozen convention: the factory state is exp(−i sπ/8 ZF)|+〉; the machine measures ZF ⊗ P (outcome a), then XF (outcome b). The effect is exp(−i (−1)a s π/8 P) Pb, with a and b uniformly random. Two outcomes, a then b. When a = 1 the rotation has the wrong sign; the residual Clifford exp(±iπ/4 P) is your file's job (typically a measurement in a basis chosen by an IF).["IF", ids, v, I]: ids is a non-empty list of distinct outcome ids produced earlier in the file (this block or an earlier one); I is an AUT, M, JM or COPY instruction. I runs exactly when the XOR of the listed outcome bits equals v. A skipped instruction still owns its outcome id, whose bit is 0.["COPY", ids]: a classical copy with no quantum effect, no cost and no duration: it owns one outcome id whose bit is the XOR of the listed bits (0 when it is skipped inside an IF, so["IF", c, 1, ["COPY", d]]records c AND d). It names a frame parity once, so later IF and readout lists stay short, and it records the product terms that a conditional correction leaves in the Pauli frame.- Outcome ids number every outcome of the file in order, over all blocks: every M, JM and COPY (run or skipped) owns one id, every T two (a, then b); an AUT owns none. Bit 0 means eigenvalue +1.
Submission file
A JSON object {"layout": [s0, …, sN−1], "blocks": […]}. The layout lists
N distinct data slots. Each block is {"op": k, "ins": […]} with op a program rotation k (0…R−1), a
final measurement R + j, or null for a Clifford-only block (moves, frame changes); a final measurement block also
has "readout" (distinct outcome ids of this block or earlier ones) and optionally "flip" (0 or 1): the
XOR of the listed bits and flip is your result bit for s′j Qj. Rules: every rotation and every final
measurement is the op of exactly one block; a rotation block holds exactly one T, unconditional; no other block holds a T;
every final measurement block comes after every rotation block; two rotations whose Paulis anticommute keep the program
order (commuting ones may be reordered). Caps (per instance file): 40,000 instructions (adder) or 600,000 (multiplier), an IF
and its body counting as one; at most 4,096 instructions per block, 4,096 blocks (adder) or 16,384 (multiplier), 64 branches
(leaves) per block, 1,024 ids per IF, COPY or readout list, and 64 MiB; and the verification work below. Strict JSON:
integers must be integers (no booleans or floats), duplicate keys are rejected.
Validation
The verifier proves your file correct for every input and every outcome. It simulates the Choi state of the program: each data slot starts maximally entangled with a reference qubit that no instruction touches, so a file that implements the program on this state implements it on every input. The state is a stabilizer tableau whose signs are affine functions over GF(2) of the outcome bits. Each block is followed along every branch of its IF conditions (a condition that is not decided by earlier outcomes splits the branch in two). Rejection rules:
- rotation axis, uncorrected injection, rotation disturbed: in a rotation block the T creates a pending rotation exp(−iπ/8 A), A = (−1)a s P, which is carried forward exactly through the later instructions. At the end of every branch, A must equal ±Tref (the program rotation sk Pk, transposed, on the references) modulo the stabilizer group, with a sign that is constant on the branch: the branch must have resolved the a-dependent residual Clifford with an IF. A measurement that anticommutes with A and cannot be moved past it collapses the rotation.
- branches disagree, frame not affine: all branches of a block must end in the same stabilizer group, with signs that merge into one affine function of the outcomes (a Pauli frame you can track by parities).
- data measured: until the first final measurement block, the references must stay maximally entangled with the slots after every block: nothing may be learned or destroyed about the program state.
- readout: after final measurement block j, s′j Qj on the references must be determined, and your readout bits must equal it as functions of the outcomes. This checks the joint labelled measurement against the same references, so the labelled results have the program's joint distribution for every input.
- parse, work: shape, ranges, order and caps. Work is the sum over blocks of (branches) × (instructions + ids named by the block's IF and COPY lists + 64); it is capped at 400,000 (adder) and 4,000,000 (multiplier).
When several rules fail, the first failing block is reported, and within it the first rule in this order, checked on every branch before the next: rotation disturbed (and work), rotation axis, uncorrected injection, branches disagree, frame not affine, data measured, readout.
Past 90 % of the CPU budget, or past half of the memory budget for the values the verifier must hold (the outcome values
your lists name, and inside a block the values and states of its branches), the result is status error (not ranked), never
an acceptance. Files that honest compilers write verify in seconds
(the house files: under 1 s for the adder and 5 to 9 s for the multiplier, on one core), but blocks with many branches
storing wide outcome values can reach those limits. The verifier is verifiers/bicycle.py; an independent second
implementation in the Heisenberg picture and a dense state-vector oracle check it in QArena's tests.
Scoring
The modeled loss L is the sum, over every listed instruction, of its failure probability, plus a charge per idle cycle, from Table 2 of arXiv:2506.03094 v1 at p = 10−3 (gross code), central values frozen as exact rationals:
| Instruction | Duration (timesteps) | Failure probability (frozen) | Table 2 |
|---|---|---|---|
| idle, per started 8-timestep cycle of a module | 8 | 1585 / 1012 | 10−8.8 ± 0.2 |
| AUT, per generator | 14 | 3981 / 1010 | 10−6.4 ± 0.2 |
| M (in-module) | 120 | 1 / 105 | 10−5.0 ± 0.1 |
| JM (inter-module) | 120 | 1995 / 106 | 10−2.7 ± 0.1 |
| T (factory 351 + its joint measurement 120, on module n−1) | 471 | 1998162 / 109 = 3162/109 + 1995/106 | 10−5.5 + PC |
Timing is a list schedule in file order. Every module has a clock starting at 0. An instruction starts at the latest clock of its modules (a JM uses m and m+1 and synchronizes them; a T uses module n−1) and, for an IF, no earlier than the end of every instruction that produced a listed outcome (feed-forward itself is free; a COPY's bit is ready when its inputs are). It ends after its duration and sets its modules' clocks. The makespan is the latest end. A module's idle cycles are the sum of ⌈g/8⌉ over every maximal gap g of [0, makespan) in which it runs nothing (leading, inner and trailing gaps). Conservative reservation tariff: a conditional instruction is charged its full probability and duration whether or not it runs, because the hardware must reserve both outcomes' resources. L is computed exactly in units of 10−12. At p = 10−3 L reads as an expected number of logical faults (a weighted instruction count), not a success probability: the multiplier's L is above 1 for every file.
Ranking: lower L first; ties by shorter makespan, then by fewer instructions (COPY included), then by earlier submission. The floor is the T injections alone: 168 × 1998162/109 = 0.335691216 (adder) and 2,646 × 1998162/109 = 5.287136652 (multiplier); every file costs more, because the rotations must reach the factory and the residual Cliffords must be corrected.
Baseline and reference scores
QArena's house compiler (tools/bicycle_house.py) re-implements the reference compiler's scheme: each module's
part of a rotation is mapped to a native measurement by pivot-gadget Clifford rotations (in-module synthesis from a
breadth-first table of 540 native measurements, rebuilt by tools/bicycle_ktable.c), the pivots are chained to the
factory by joint measurements, the injection is completed by a measurement whose basis an IF chooses, and the synthesis is
undone; Pauli frames are kept in COPY registers. Its accepted files, with the default layout (program qubit q in module
⌊q/11⌋) and with a layout annealed for few joint measurements:
| Instance | Default layout | Annealed layout | Floor |
|---|---|---|---|
| bi-adder28-m3 | 1.06471325556 (makespan 432,943; 15,576 instructions) | 0.66532905223 (349,975; 7,142) | 0.335691216 |
| bi-mult45-m5 | 22.49833808288 (5,388,642; 152,017) | 11.589503952975 (5,076,083; 104,758) | 5.287136652 |
Open: moving qubits during the program, keeping Clifford frames instead of undoing the synthesis, reordering commuting rotations, sharing in-module synthesis between rotations, and the schedule.
Application
Compiler teams for the bicycle architecture (the reference compiler's maintainers, the mapping and scheduling work above) need public, exactly checked targets: a record here is an instruction program for IBM's roadmap profile that the verifier has proved equivalent to the program for every input and outcome, with its modeled loss.
Notice (QASMBench)
The two programs come from QASMBench and are redistributed in the instance files under its licence:
QASMBench Benchmark Suite: A low-level OpenQASM benchmark suite for NISQ evaluation and simulation. 06/04/2020 by Ang Li from High-Performance-Computing Group, ACMD, PCSD, Pacific Northwest National Laboratory (PNNL), Richland, WA, 99354, USA. Copyright © 2020, Battelle Memorial Institute. 1.Battelle Memorial Institute (hereinafter Battelle) hereby grants permission to any person or entity lawfully obtaining a copy of this software and associated documentation files (hereinafter “the Software”) to redistribute and use the Software in source and binary forms, with or without modification. Such person or entity may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and may permit others to do so, subject to the following conditions: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Other than as used herein, neither the name Battelle Memorial Institute or Battelle may be used in any form whatsoever without the express written consent of Battelle. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BATTELLE OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The automorphism matrices are taken with attribution from qiskit-community/bicycle-architecture-compiler (Apache-2.0), and the
Toffoli decomposition from OpenQASM 2.0's qelib1.inc (Apache-2.0). The architecture's numbers and instruction
definitions are cited as facts from arXiv:2506.03094.
Where verification runs
Verifications of this board run on the first lane of this list that is up and has room: 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 7,200 s of CPU, 10,920 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, because their processors are slower); the result goes to QArena only.
Current records
| Instance | Baseline | Record (modeled faults) | Reference score | Record holder | Status |
|---|---|---|---|---|---|
| 28-qubit adder on 3 modules Hot
QASMBench adder_n28 (24 Toffolis): 168 π/8 rotations, 28 final measurements of weight 1 to 4; floor 0.335691216 (the 168 T injections alone) |
0.6653 QArena's run | 0.6653 | – No program for this profile has been published. QArena's re-implementation of the reference compiler's scheme with the default layout: 1.0647 (makespan 432,943); with a layout annealed for few joint measurements: 0.66533 (349,975); floor 0.335691216, Li et al., QASMBench (PNNL; Battelle notice in the statement); Yoder et al., arXiv:2506.03094 (the profile) |
qarena-baseline (QArena's run)(QArena) | Baseline not beaten |
| 45-qubit multiplier on 5 modules
QASMBench multiplier_n45 (378 Toffolis): 2,646 π/8 rotations, 9 final measurements of weight 3; floor 5.287136652 (the 2,646 T injections alone) |
11.59 QArena's run | 11.59 | – No program for this profile has been published. QArena's house scheme with the default layout: 22.498 (makespan 5,388,642); with the annealed layout: 11.590 (5,076,083); floor 5.287136652, Li et al., QASMBench (PNNL; Battelle notice in the statement); Yoder et al., arXiv:2506.03094 (the profile) |
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:
- Bicycle ISA, 28-qubit adder on 3 modules: 0.6653 modeled faults (exact) by QArena baseline