Verdict usually under a minuteSubmit

Lattice-surgery tiles

Fewer tile-steps means less space-time volume for the same program in Litinski's layout model, and gives lattice-surgery compilers a public target that is checked exactly.

Leaderboard: 16-bit Cuccaro adder Hot

Result to beat · QArena baseline: 12,648 tile-steps
QArena's record 12,648 tile-steps by QArena's own run Ties it
#ParticipantScore (tile-steps)vs QArena baselineSubmission
1qarena-baseline (QArena's run)(QArena) Baseline12,648#5
2yicheng212,648#9

Baseline: QArena's own run: 12,648 tile-steps (nothing published fits this instance)

Full leaderboard

Instance: Program

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

Compile a fixed Clifford+T program into lattice surgery on a square grid of tiles, in the tile model of D. Litinski, “A Game of Surface Codes” (arXiv:1808.02892, Quantum 3, 128 (2019)), and use as few tile-steps as possible. Scores are in units of that model, tiles times steps; they are not counts of physical qubits or of code cycles. The board optimizes one trace class: every accepted file performs the program's π/8 rotations and final measurements in an order that differs from the program's only by swapping commuting neighbours, with every Clifford tracked exactly. Magic states are stipulated: each port receives one per step, and factories are outside the model.

  • Ranked instance lst-cuccaro16: the 16-bit ripple-carry adder of Cuccaro, Draper, Kutin and Moulton (quant-ph/0410184), 34 qubits, 32 Toffoli gates, 224 π/8 rotations. Proved lower bound 2,016 tile-steps; QArena's best schedule 12,648.
  • Ranked instance lst-qrom64: a 64-word read-only memory read by unary iteration (after Babbush et al., arXiv:1805.03662, Fig. 7), 21 qubits, 126 Toffoli gates, 882 π/8 rotations. Proved lower bound 4,992; QArena's best schedule 43,632.
  • Debug instance lst-cuccaro8 (unranked): the same adder on 8 bits, 18 qubits, 112 π/8 rotations.
  • Unranked instance lst-random100: 100 random π/8 Pauli rotations on 20 qubits. They almost form one chain (63 of them must run one after another), so the number of steps is nearly fixed and the cell is a packing puzzle.

The program

The instance file lists the program as letters, in time order. A letter has a sign s (1 or −1) and a Pauli string P of exactly n characters from I, X, Y, Z; character q (counting from 0) acts on qubit q.

  • ["R8", s, P] is the rotation exp(−iπ/8·sP) (a T gate when P is one Z);
  • ["R4", s, P] is the Clifford rotation exp(−iπ/4·sP);
  • ["R2", 1, P] is the Pauli gate P;
  • ["M", label, s, P] measures sP at the end and reports the result as output bit label.

QArena wrote its Clifford+T circuits with one frozen table (all equalities up to a global phase): CX(c,t) = (ZcXt)π/4 (Zc)−π/4 (Xt)−π/4; H = Zπ/4 Xπ/4 Zπ/4; X = R2(X); Toffoli(a,b,t) = H(t) CCZ H(t), with CCZ the seven π/8 parity rotations +Za, +Zb, +Zt, −ZaZb, −ZaZt, −ZbZt, +ZaZbZt; then every qubit q is measured as M(q) = +Zq with label q. The generator, tools/gen_lstiles.py, checks the adders on 303 additions each and the memory read on all 64 addresses, and rebuilds the four instance files byte for byte.

InstanceQubitsLettersπ/8π/4PauliMeasuredDD′
lst-cuccaro16346452243870343132
lst-qrom64212,8068821,9021216364
lst-cuccaro8183251121950181516
lst-random1002012010000206364

D is the longest chain of π/8 rotations, after every Clifford is commuted to the end, in which each one anticommutes with the next and so must run in a later step; D′ is the same with the measurements included. Both are lower bounds on the steps of any accepted file.

The tile model

  • Tiles. A tile is a grid point (x, y) with integers |x|, |y| ≤ 1,024. N is y − 1, S is y + 1, E is x + 1, W is x − 1. Tiles are adjacent when they share an edge (no diagonals).
  • Data patches. Each qubit is a one-tile patch that never moves. Orientation "h": its X boundaries are its W and E edges and its Z boundaries its N and S edges; "v" swaps them. A Y component needs both kinds of boundary.
  • Ports. A port is a 2 × 2 block with anchor (x, y): the tiles (x, y), (x+1, y), (x, y+1), (x+1, y+1). Its magic tile is (x+1, y), and its two entrances are the tiles next to the magic tile outside the block, (x+2, y) and (x+1, y−1). The block holds the magic state |m⟩, the correction patch |c⟩ and their Zm⊗Yc merge of Litinski's auto-corrected π/8 rotation (his Fig. 17(b)), so its four tiles are the price of the template. A port serves at most one injection per step.
  • Operations. An operation measures a Pauli product through a region: a connected set of free tiles (not a patch, not a port block, not used by another operation of the same step) that touches, for every qubit in the support of P, a boundary of the right type. One operation takes one step.
    • INJ: the auto-corrected rotation exp(−iπ/8·sP): P⊗Zm through a port, the port's region entering through one of its two entrances.
    • ROT4: exp(−iπ/4·sP), measured as (sP)⊗Ya with a fresh |0⟩ patch on an ancilla tile a next to the region (Y needs both of a's boundaries, so the region holds a horizontal and a vertical neighbour of a), then Xa.
    • MEAS: a measurement of sP, reported as an output bit.
    • FRAME: a Pauli gate, applied as an update of the classical Pauli frame. It uses no tiles and no time.
  • One operation per data patch per step. Two operations of one step never share a data patch, even when they touch different boundaries of it: the model has no priced way to merge one patch into two surgeries at once.

Submission file

{"layout": {"patches": [[1, 0, "v"], [3, 0, "h"], [5, 0, "h"]], "ports": [[-2, 1], [6, 2]]},
 "steps": [
  [["INJ", 0, 1, "ZII", [[-1, 0], [0, 0]], {"0": ["W"]}],
   ["INJ", 1, 1, "IZI", [[7, 1], [6, 1], [5, 1], [4, 1], [3, 1]], {"1": ["S"]}]],
  [["INJ", 0, 1, "ZZI", [[0, 1], [1, 1], [2, 1], [2, 0], [3, 1]], {"0": ["E"], "1": ["S"]}]],
  [["INJ", 0, 1, "XIY", [[0, 1], [1, 1], [2, 1], [3, 1], [4, 1], [4, 0], [5, 1]], {"0": ["S"], "2": ["W", "S"]}]],
  [["ROT4", 1, "IIZ", [4, 1], [[5, 1], [5, 2], [4, 2]], {"2": ["S"]}]],
  [["FRAME", "IXI"]],
  [["INJ", 0, 1, "IIX", [[0, 1], [1, 1], [2, 1], [3, 1], [4, 1], [4, 0]], {"2": ["W"]}]],
  [["MEAS", 0, 1, "ZII", [[-1, 0], [0, 0]], {"0": ["W"]}], ["MEAS", 1, 1, "IZI", [[3, 1]], {"1": ["S"]}],
   ["MEAS", 2, 1, "IIZ", [[5, 1]], {"2": ["S"]}]]]}

(A legal file for the three-qubit test program R8 +ZII, R8 +IZI, R8 +ZZI, R8 +XIY, R4 +IIZ, R2 IXI, R8 +IIX, M(0), M(1), M(2) of tests/test_lstiles.py: area 10 × 4 = 40, 6 steps, volume 240. Its first step runs two injections in parallel through two ports; the FRAME step takes no time.)

  • Exactly the keys layout and steps; layout has exactly patches (n entries [x, y, o], o "h" or "v", entry q for qubit q) and ports (1 to 64 anchors [x, y]).
  • steps: at most 20,000 steps, each a nonempty list of operations; at most 100,000 operations in the file: ["INJ", j, s, P, region, contacts] (j the port index, from 0), ["ROT4", s, P, [ax, ay], region, contacts], ["MEAS", label, s, P, region, contacts] (0 ≤ label < 231) and ["FRAME", P].
  • s is the integer 1 or −1; P has exactly n characters from IXYZ and is not all I; a region is a nonempty list of tiles [x, y]; contacts is an object whose keys are the decimal indices of the qubits in the support of P ("0", "17"; no leading zeros) and whose values list edge letters N, E, S, W.
  • Integers are JSON integers (true and 1.0 are not). The file is parsed as strict JSON (duplicate keys, NaN and Infinity are refused) and may be at most 8 MiB.

Validation

The first failing rule rejects the file; the message names the rule, the step and the operation (counting from 0).

  • Rule 0 (format). The file has the shape above, and every tile it names or implies (patches, all four tiles of every port block, region tiles, ancilla tiles) has |x|, |y| ≤ 1,024.
  • Rule 1 (layout). The patch tiles are distinct; the port blocks are disjoint from each other and from the patches.
  • Rule 2 (region). No tile repeated; 4-connected; no tile is a patch tile, a port-block tile, or a tile (region or ancilla) of another operation of the same step.
  • Rule 3 (contacts). The keys are exactly the support of P. For an X (Z) component the list has one edge, of type X (Z) for that patch's orientation, and the tile across it is in the region; for a Y component the list has two edges, one X and one Z, both tiles across them in the region.
  • Rule 4 (injection). The port exists; no other INJ of the step uses it; the region contains one of its two entrances.
  • Rule 5 (ancilla). The ROT4 ancilla tile is not a patch tile, not a port-block tile, not in its own region and not a tile of another operation of the step; the region contains (ax±1, ay) for some sign and (ax, ay±1) for some sign.
  • Rule 6 (one step). A step with a FRAME holds only FRAMEs (it takes no time). The signed Paulis of a step pairwise commute, and its other operations have pairwise disjoint supports: each data patch takes part in at most one operation per step.
  • Rule 7 (canonical form). For the program, and for the file (steps in order; inside a step any order, since its operations commute), walk the letters keeping the Cliffords met so far (R4 and ROT4, R2 and FRAME). Replace the signed Pauli Q of every R8 or INJ and every M or MEAS letter by C†QC, C the product of the earlier Cliffords, and drop the Cliffords. Conjugation by exp(−iπ/4·P) maps Q to iPQ when P and Q anticommute (and leaves it otherwise); by a Pauli gate P it maps Q to −Q when they anticommute. Signs are exact.
  • Rule 8 (equal traces). The two canonical words have the same multiset of (kind, label, signed Pauli), and every two anticommuting letters appear in the same order (equal letters are matched by occurrence). Commuting letters may change places; no rotation may be merged, dropped or added, so the T count is the program's.

Dropping the Clifford left at the end is exact, because every output is a measurement and every measurement was conjugated: two words that are equal traces give the same distribution of labelled output bits on every input state.

Scoring

area is the bounding box, (max x − min x + 1) × (max y − min y + 1), of every tile the file uses: patches, all four tiles of every port block, every region tile and every ROT4 ancilla tile. steps is the number of steps that are not FRAME-only. The score is volume = area × steps, smaller first; ties go to fewer steps, then smaller area, then the earlier submission. Everything is an integer.

{"status": "accepted", "score": {"volume": 12648, "steps": 124, "area": 102}}

Record-only corrections

Every correction a controller needs is a Pauli on the frame, chosen from the measurement record alone, and later signs and reported bits adapt to the frame for free, as in Litinski's paper. These rules are frozen with the board, and tests/lstiles_primitives.py proves each one for every input state as 3,240 exact matrix identities in ℤ[eiπ/8]/2k: P over all 15 two-qubit Paulis (X, Y and Z components), both signs, every branch, every incoming frame F of 16. Because each primitive depends on P only through Q = sP and Q2 = I, the identities hold for every number of qubits.

  • INJ. With Q = sP: measure QZm (outcome a) and ZmYc (b) on |m⟩ = T|+⟩ and |c⟩ = |0⟩, then Xm (u), then read c in Z when a = +1 and in X when a = −1 (v). The frame gains P when uv = −1 (a = +1) or buv = −1 (a = −1). Then the data carry exp(−iπ/8·Q) up to that frame on all 16 branches, each with probability 1/16 whatever the input; the opposite choice fails on every branch.
  • ROT4. Measure QYa (r) with |a⟩ = |0⟩, then Xa (t); the frame gains P when rt = +1; exp(−iπ/4·Q) up to the frame on all 4 branches, each with probability 1/4.
  • Incoming frame F. Before an INJ or ROT4 on P the controller executes the sign −s instead of s when F anticommutes with P; a MEAS whose physical outcome is e reports s·e·(−1)[F anticommutes with P]. A FRAME P multiplies F by P.

Baseline and reference scores

InstanceSerial bus (1 port)Multi-port scheduleLower bound (ports)One-port boundBest / bound
lst-cuccaro1690 × 258 = 23,220102 × 124 = 12,6482,016 (7)8,7366.3
lst-qrom6457 × 903 = 51,47172 × 606 = 43,6324,992 (14)22,9328.7
lst-cuccaro854 × 130 = 7,02060 × 64 = 3,840752 (7)2,5765.1
lst-random10054 × 120 = 6,48060 × 102 = 6,1201,856 (2)2,5003.3
  • Lower bound. With k ports a file needs at least D′ steps and at least ⌈nT/k⌉ steps (one injection per port per step), and its bounding box holds n patch tiles, 4k port tiles and at least one region tile, so volume ≥ min over k of (n + 4k + 1)·max(D′, ⌈nT/k⌉). With one port, every file needs nT steps: the one-port bound is (n + 5)·max(D′, nT).
  • Serial bus (house file bus, tools/lstiles_sched.py house): one port at anchor (−2, 1), a bus row y = 1 from x = 0, the patches (orientation h) in rows 0 and 2 at columns 3g+1 and 3g+2 with gap tiles at columns 3g, so every patch has a Z boundary on the bus and an X boundary on a gap that touches it. Every Clifford is commuted away; each π/8 rotation is one INJ step in program order, then each measurement is one MEAS step.
  • Multi-port schedule (house file mport, tools/lstiles_sched.py mport): two copies of that lane stacked, each with its own port; Cliffords are absorbed into the frame, except π/4 rotations whose absorption would make a Pauli image heavier than a threshold (16 qubits for the 16-bit adder), which stay as ROT4 operations; then list scheduling by longest remaining chain, each step packing ready operations on disjoint data patches, one INJ per port, with disjoint regions found by a Steiner-tree router. The settings are the best of a seeded search of about 20,000 schedules. On the adder it needs 124 steps, below the 139 steps that any file without ROT4 needs (one qubit of the adder appears in 139 of the commuted letters); it gets there by keeping 5 π/4 rotations explicit. It stays 6.3 and 8.7 times above the proved bounds on the ranked cells, so neither ranked cell is closed.
  • Context, not board values. Litinski's own blocks use two-tile patches and patch rotations, which this model does not have: by its formula his fast block (2n + √(8n) + 1 tiles, one step per rotation) gives 86 × 225 = 19,350 for the 16-bit adder, without factories. Recent compilers (Wang et al., arXiv:2610.30747; FlowRouter, arXiv:2609.23756) report gains in their own models only.

Verification

  • Verifier (verifiers/lstiles.py). Geometry with hash sets, step by step. The canonical form uses a tableau: the images C†GC of the 2n single-qubit Paulis, as bit masks and a power of i; a new Clifford K updates every image that anticommutes with it (for exp(−iπ/4·P) it becomes i·M(P)·M(G), for a Pauli gate −M(G)), and a letter is mapped by multiplying the images of its components. The order check numbers the program's letters and uses one bit mask per qubit, so a letter finds every anticommuting letter in one pass; cost O(operations × n) row products. The CPU clock is polled every 1,024 operations; past 0.9 × the limit the result is an error, never an acceptance.
  • Cost. The slowest legal file at the caps found (8 MiB of π/4 rotations of full weight, 16,480 of them, after the 903 house steps of lst-qrom64) takes 1.05 s of CPU and 128 MiB. The largest in memory is one operation whose region fills 8 MiB (794,000 tiles): 0.72 s and 348 MiB. A million region tiles spread over the house steps take 0.82 s, 100,000 operations 0.79 s, 100,000 frames 0.72 s, and the house files 0.03 s (tests/cost_lstiles.py, worst of three runs, Ryzen 9 9950X, one core, through run_one.py). Limits: 60 s and 1,024 MB.
  • Independent checker (tests/lstiles_indep.py), written by a separate helper from the frozen rules without reading the verifier: a Heisenberg tracker of the generators with explicit single-qubit product tables, trace equality by comparing Foata normal forms (layer by layer), and the geometry on a dense occupancy grid. A dense state-vector check (tests/lstiles_dense.py, programs with at most 10 qubits) compares the labelled outcome distributions of the program and of the file on random input states. It does not compare unitaries, since a correct file may end with a different Clifford than the program. The cross-check (tests/cross_lstiles.py) ran the verifier and the checker on 5,040 cases (240 random legal files from the scheduler with random layouts, orientations, packings and random explicit π/4 rotations and frames, on the four instances and on small programs, and 4,800 single-field mutations): 0 disagreements in status or score, and the dense check agreed on all 1,073 files both accepted. tests/test_lstiles.py checks every known answer and every planted failure of the specification with both programs, which name the same rule each time.

Application

Authors of lattice-surgery compilers and layout tools (routing compilers, Litinski-style block designers) and resource estimators can replay a record here in one exact, public tile model in which injections, their corrections and every routing tile are priced. A record shows how far parallel injections through disjoint routes and selective π/4 rotations can push a real arithmetic program below the serial designs.

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 1,024 MB of memory on the Mac mini, and 120 s of CPU, 300 s of wall time and 1,024 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 (tile-steps) Reference scoreRecord holderStatus
16-bit Cuccaro adder Hot
34 qubits; 645 letters (224 π/8 rotations, 387 π/4 rotations, 34 measurements); with the Cliffords commuted away the T depth is 31 (32 with the measurements); proved lower bound 2,016 tile-steps
12,648
QArena's run
12,648–
No schedule in this model has been published. QArena's serial bus (one port): 90 × 258 = 23,220; QArena's multi-port schedule: 102 × 124 = 12,648; proved lower bound 2,016 (7 ports: 63 tiles × 32 steps). Litinski's fast block, which this model cannot express, would give 86 × 225 = 19,350 by its formula, Cuccaro, Draper, Kutin and Moulton, quant-ph/0410184 (the adder); Litinski, Quantum 3, 128 (2019) (the tile model)
qarena-baseline (QArena's run)(QArena)Baseline not beaten
64-word QROM read
21 qubits (6 address, 1 control, 8 output, 6 ancillas); 2,806 letters (882 π/8 rotations, 1,902 π/4 rotations, 1 Pauli gate, 21 measurements); T depth 63 (64 with the measurements); proved lower bound 4,992 tile-steps
43,632
QArena's run
43,632–
No schedule in this model has been published. QArena's serial bus: 57 × 903 = 51,471; QArena's multi-port schedule: 72 × 606 = 43,632; proved lower bound 4,992 (14 ports: 78 tiles × 64 steps), Unary iteration of Babbush et al., arXiv:1805.03662 (Fig. 7); data word j is (37 j + 11) mod 256
qarena-baseline (QArena's run)(QArena)Baseline not beaten
8-bit Cuccaro adder (debug)
debug instance: 18 qubits; 325 letters (112 π/8 rotations); proved lower bound 752 tile-steps
3,840
QArena's run
3,840–
Debug instance for testing a compiler end to end. Serial bus 54 × 130 = 7,020; multi-port 60 × 64 = 3,840; every letter executed as written 60 × 325 = 19,500, Cuccaro, Draper, Kutin and Moulton, quant-ph/0410184
qarena-baseline (QArena's run)(QArena)Baseline not beaten
100 random π/8 rotations (unranked)
unranked instance: 20 qubits; 100 random Pauli rotations (mean weight 15.1 of 20, a chain of 63 of them), then 20 measurements; proved lower bound 1,856 tile-steps
6,120
QArena's run
6,120–
Unranked: the rotations almost form a chain, so the number of steps is nearly fixed and the cell is a packing puzzle. Serial bus 54 × 120 = 6,480; multi-port 60 × 102 = 6,120
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

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