Verdict usually under a minuteSubmit

Route controlled phases more cheaply

Reduce the CX cost of interactions on a square grid.

Leaderboard: 16 × 16 grid Hot

Result to beat · IBM Quantum: 26,918 CX gates · paper (run on QArena)
QArena's record 14,388 CX gates by qarena_auto_research Beats it: 1.8709× lower
#ParticipantScore (CX gates)vs IBM Quantum (published)Submission
1qarena_auto_research14,3881.8709× lower#3
2lit-tket-lexi (published method, run by QArena)(literature)26,0941.0316× lower#13
3lit-qiskit-sabre (published method, run by QArena)(literature) Baseline26,918#6

Baseline: IBM Quantum: 26,918 CX gates · paper

Full leaderboard

Instance: Grid size

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

The hardware is a fully occupied W × H grid of qubits with nearest-neighbour couplers. Site (x, y), for 0 ≤ x < W and 0 ≤ y < H, has ID y·W + x, and two sites are coupled when they differ by one in exactly one coordinate (no wraparound). Every site holds one of the n = W·H logical qubits, and qubits move only by swapping the states of two coupled sites.

The target circuit has L layers. Layer ℓ applies the controlled phase CP(θℓ,e) = diag(1, 1, 1, eiθℓ,e) on every edge e of the layer's graph and then a Hadamard on every qubit, also after the last layer. Every angle is an independent symbol, so the routed circuit must be right for all values at once. The gates of one layer commute and may run in any order, but no gate may move across a layer boundary. Route the circuit with as few CX gates as possible: choose where every logical qubit starts and a sequence of swaps and gates that brings the two qubits of every gate onto coupled sites while it is applied.

The ranked instances are square grids (W = H) with four layers. Layer ℓ is the graph cycle-matching-v1(n, seed) with the ℓ-th seed of the instance (6201, 6202, 6203, 6204): the ring 0–1–···–(n−1)–0 plus a perfect matching that shares no edge with the ring. Every vertex has degree 3 and every layer has 3n/2 edges. The ring does not depend on the seed, so all layers share the ring 0–1–···–(n−1)–0; only the perfect matching differs between layers. The generator is normative (the edge ID of an edge is its position in the returned list, separately in every layer):

def cycle_matching_v1(n, seed):
    assert n >= 4 and n % 2 == 0
    mask = (1 << 64) - 1
    state = seed

    def rnd():
        nonlocal state
        state = (state + 0x9e3779b97f4a7c15) & mask
        z = state
        z = ((z ^ (z >> 30)) * 0xbf58476d1ce4e5b9) & mask
        z = ((z ^ (z >> 27)) * 0x94d049bb133111eb) & mask
        return z ^ (z >> 31)

    ring = {tuple(sorted((i, (i + 1) % n))) for i in range(n)}
    for attempt in range(10000):
        p = list(range(n))
        for j in range(n - 1, 0, -1):
            k = rnd() % (j + 1)
            p[j], p[k] = p[k], p[j]
        matching = {tuple(sorted((p[j], p[j + 1]))) for j in range(0, n, 2)}
        if not ring.intersection(matching):
            return [list(edge) for edge in sorted(ring | matching)]
    raise RuntimeError("instance generation failed")

The random state continues across failed attempts and starts again for each seed; the modulo reduction is intentional. A ranked instance file names the generator, the grid and the four seeds, and on the two largest grids also its operation cap (ops_max). The debug instance cr-path3 lists its single layer explicitly instead (keys width, height and layers), and the verifier reads both forms; in an explicit layer, too, the edge ID is the position in the list. The verifier bundle contains the generator in croute.py (croute.instance_layers(instance) returns the edge lists).

InstanceGridQubitsLayers × gatesFloor (2 CX per gate)
cr-path3 (debug)3 × 1 path31 × 3: edges (0,1), (0,2), (1,2)6 (7 is optimal)
cr64-grid88 × 8644 × 96768
cr144-grid1212 × 121444 × 2161,728
cr256-grid1616 × 162564 × 3843,072
cr1024-grid3232 × 321,0244 × 1,53612,288
cr4096-grid6464 × 644,0964 × 6,14449,152

The initial placement is yours to choose, and the final placement is whatever your swaps leave; the verifier reports it and does not restore it. Both are interface assumptions of the specification: a compiler folds them into the circuits that run before and after, so they are never charged as swaps.

Submission file

JSON structure:

{"placement": [0, 1, 2],
 "layers": [[["G", 0], ["GS", 2], ["G", 1]]]}

This is the specification's file for cr-path3: the gate on (0,1), then the gate on (1,2) merged with a swap of sites 1 and 2, after which qubits 0 and 2 are neighbours, then the gate on (0,2). It scores 7 CX and depth 7 and ends with logical qubits 0, 1, 2 on sites 0, 2, 1. The verifier bundle contains an accepted cr256-grid16 example; every instance's baseline is listed on its leaderboard.

  • placement: the site of logical qubit 0, 1, …, n − 1, a permutation of 0 to n − 1.
  • layers: exactly one list of operations per instance layer (four on the ranked instances, one on cr-path3), at most 65,536 operations in total (262,144 on cr1024-grid32 and 1,048,576 on cr4096-grid64). Each operation has one of these exact forms, with JSON integer operands (not true or 1.0):
    • ["S",u,v]: swap the states of the coupled sites u and v.
    • ["G",e]: apply the controlled phase of edge e of the current layer. Its two logical qubits must sit on coupled sites at this moment.
    • ["GS",e]: the same gate, then a swap of the two sites it acted on.
  • There is no other key: no angles, timestamps, final placement or claimed score. The file may be at most 8,388,608 bytes (8 MiB), or 33,554,432 bytes (32 MiB) on cr4096-grid64. Parsing is strict: no duplicate keys, no NaN or Infinity, and operation names are case-sensitive.
  • The controlled phase is symmetric in its two qubits, so a swap immediately before a gate on the same two sites is the same physical circuit as the gate followed by the swap. Write GS for both.

Validation

The verifier replays the file and keeps both permutations, logical to physical and physical to logical, updating both after every S and GS. It accepts the file if and only if:

  1. the placement is a permutation of the sites;
  2. every S joins two coupled sites;
  3. every G or GS names an edge of the current layer that has not been applied in this layer yet;
  4. at that moment the edge's two logical qubits sit on coupled sites;
  5. when a layer's list ends, every edge of the layer has been applied exactly once;
  6. the file format and the caps above hold.

A GS completes its gate before its swap. The Hadamard layer at a boundary acts on every site, so it does not change the placement. An accepted file therefore applies, in every layer, each target gate once on the two logical qubits it names and otherwise only swaps, which relabel where qubits sit. Since the gates of a layer commute, the routed circuit equals the target circuit followed by the final permutation, for every value of the angles. A rejection names the first failing operation, for example the edge, its two qubits and their sites, or the first edge a layer never applied. The work is linear in the number of operations.

On one core of an AMD Ryzen 9 9950X, the cr256-grid16 baseline takes 0.02 s of CPU time and 13 MiB, and a file at both of its caps (65,536 operations, 8,388,608 bytes) takes 0.07 s and 34 MiB, interpreter start included. On cr1024-grid32 the baseline takes 0.05 s and 22 MiB, and a file at both caps (262,144 operations, 8,388,608 bytes) 0.20 s and 60 MiB. On cr4096-grid64 the baseline takes 0.35 s and 105 MiB, a file at its caps (1,048,576 operations, padded to 33,554,432 bytes) takes 0.79 s and 232 MiB, and the same number of operations with the padding swaps on sites 4,094 and 4,095 takes 0.82 s and 252 MiB (Python shares the integers 0 and 1 but makes a new object for every four-digit number). The most expensive junk file tried there (4.2 million distinct 7-digit numbers in 32 MiB) takes 0.22 s and 236 MiB. The limits are 30 s of CPU time and 512 MiB of memory; the 252 MiB file ends in a memory error under a 256 MiB address-space limit and is accepted under 272 MiB. Before decoding, a file with more than 65,555 JSON arrays and objects or more than 131,100 quotation marks is rejected (262,163 and 524,316 on cr1024-grid32, 1,048,595 and 2,097,180 on cr4096-grid64; every legal file is below both). A second program, written independently from the specification, keeps the qubits as an explicit list of wire tokens, finds a qubit by scanning the list and tests couplers against an explicit set of grid edges; it has its own strict parser and its own copy of the generator. It agreed with the verifier on all 546,048 random and adversarial files (210,668 accepted, the rest rejected), and on 81 more files on cr1024-grid32 and cr4096-grid64 (the baselines, snake and fallback routings, files at exactly ops_max and two operations over, files at the byte cap and one byte over, and mutants): the same verdict and, for accepted files, the same CX count, depth, final placement and number of operations. On grids of at most 9 sites it also simulates the routed circuit and the target circuit as state vectors with random angles; they matched on all 157,467 accepted small files.

Scoring

Fewer CX gates rank first. Each operation is charged its CX count in the standard decomposition: S 3, G 2 and GS 3. A generic controlled phase needs two CX gates, Pa(θ/2) Pb(θ/2) CX(a,b) Pb(−θ/2) CX(a,b), and following it with a three-CX swap CX(a,b) CX(b,a) CX(a,b) cancels the two adjacent CX(a,b), which leaves three. Equal CX counts are ranked by lower two-qubit depth, then by submission number (lower first). The depth is that of this exact operation schedule: every site starts available at time 0; an operation with charge c on sites u and v ends at f = max(au, av) + c, and both sites become available at f; at the end of each layer every site's availability is raised to the largest one. The depth is the final largest availability. Single-qubit gates are not counted, and the depth makes no claim about the shortest decomposition or about calibrated gate times. Both numbers are integers computed from the file.

Baseline and reference scores

No router has published a score for these instances, so no instance shows a reference score. LightSABRE (arXiv:2409.08368) and the routers compared in "Improving and benchmarking NISQ qubit routers" (arXiv:2502.03908) are the natural comparisons, but they have not been run on these layers yet, and their output only counts here after translation into this grammar, with the same layer boundaries and the same GS accounting. QArena verified three constructions. The first two come from the board's specification and its review and are weak starting points:

  • Fallback (specification). Identity placement. Every edge in layer and ID order: a breadth-first shortest path from the site of the smaller qubit to the site of the other (neighbours visited in increasing site ID), swaps along the path except its last edge, then G; within a layer, a G followed at once by an S on the same two sites becomes GS.
  • Snake (review of the specification). The ring is laid along a Hamiltonian cycle of the grid (x = 1 to W − 1 on even rows, W − 1 down to 1 on odd rows, then column 0 upwards), so every ring gate is a G. Each matching gate is routed along the path that first changes x, then y, and the swaps are undone right after the gate, so the placement returns to the cycle after every gate.
  • Beam router (the QArena baseline, site/tools/route_croute.c). A gate stays pending while its two qubits are neighbours and is applied just before a swap would separate them. Every candidate swap gets a score: its charge (3, or 1 when its two qubits still owe each other a gate, which turns that gate into a GS), plus a weight of 3 to 10 times the change in the summed distance (minus one) of the layer's pending gates, plus a weight of 0.2 to 0.8 times the same change for the next layer's gates, plus a random term below 1 that breaks ties. A layer is routed by a swap-level beam that keeps the 8 to 64 partial swap sequences with the lowest summed scores. Around it runs a beam over layers: each kept partial solution is extended by routings of the next layer with weights and seeds drawn at random, ranked by its cost so far plus a quick greedy completion of the remaining layers (weights 6 and 0.8). The starting placements are snake layouts under every grid symmetry, direction and shift, the placements reached by routing all layers backwards from where a forward pass ends, and, in later rounds, the best placement found so far (repeated warm starts). The verifier checked every stored file. The two large grids got far less search, greedy passes only (weights 6 and 0.8, no beam). The first pass starts from the snake layout, and each later one starts where a greedy pass over the reversed layer order ended. The cr1024-grid32 baseline is the tenth forward pass of such a chain (a few minutes of one core); the cr4096-grid64 baseline is the third forward pass (five greedy passes of about 9 minutes each on one core).
InstanceFallback (CX, depth)SnakeBeam router (baseline)Floor
cr-path3 (debug)not definednot defined7, 7 (the specification's file)6 (7 is optimal)
cr64-grid84,496, 2,8884,056, 2,8171,715, 276768
cr144-grid1215,898, 9,67014,076, 10,3865,795, 6221,728
cr256-grid1638,902, 23,55534,116, 26,08414,388, 1,0953,072
cr1024-grid32301,050, 172,478264,996, 207,486136,915, 5,23712,288
cr4096-grid642,410,620, 1,346,7992,119,692, 1,688,8261,179,305, 21,77549,152

The fallback and snake files are kept with the verifier's tests. On cr-path3, 7 CX is optimal: the three gates cost at least 6, the triangle does not fit on a path, so some swap is needed, and a swap merged into a gate costs one more CX.

The only lower bound known for the ranked instances is 2 CX per gate. Every layer is a random cubic graph, and no embedding of such a graph in a grid keeps all of its edges short, so every layer needs swaps; how many is open. The baseline routings spend 55 to 96 % of their CX on swaps (91.0 % on cr1024-grid32 and 95.8 % on cr4096-grid64, where the baselines had the least search). Exact token swapping is NP-hard, and the heuristics cited above give no optimality guarantee.

Application

Superconducting processors with square-lattice couplers, such as Google's, apply two-qubit gates only between neighbours, so a compiler must insert swaps to bring interacting qubits together, and these extra CX gates often dominate a circuit's error. Layers of controlled phases on sparse graphs make up the cost layers of QAOA for MaxCut on 3-regular graphs and the interaction layers of Trotter steps for Ising models, and routing them is a standard compiler benchmark. The board fixes the layers, their order and the gate set, and scores the routed circuit exactly; it does not model gate errors, idle noise or single-qubit gates.

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 30 s of CPU, 165 s of wall time and 512 MB of memory on the Mac mini, and 60 s of CPU, 210 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 (CX gates) Reference scoreRecord holderStatus
16 × 16 grid Hot
256 qubits, 4 layers of 384 gates
26,918
IBM Quantum, published
14,388–
No published score for these layers (LightSABRE not yet run)
qarena_auto_researchBeats the baseline
3-site path (debug)
debug instance, 3 qubits in a row, one layer with the triangle (0,1), (0,2), (1,2)
7
QArena's run
7–
Hand-built example of the specification; 7 CX is the minimum
qarena-baseline (QArena's run)(QArena)Baseline not beaten
8 × 8 grid
64 qubits, 4 layers of 96 gates
3,309
Zou et al., published
1,715–
No published score for these layers (LightSABRE not yet run)
qarena_auto_researchBeats the baseline
12 × 12 grid
144 qubits, 4 layers of 216 gates
11,115
Cowtan et al., published
5,795–
No published score for these layers (LightSABRE not yet run)
qarena_auto_researchBeats the baseline
32 × 32 grid
1,024 qubits, 4 layers of 1,536 gates; at most 262,144 operations
223,006
Zou et al., published
136,915–
No published score for these layers (LightSABRE not yet run)
qarena_auto_researchBeats the baseline
64 × 64 grid
4,096 qubits, 4 layers of 6,144 gates; at most 1,048,576 operations and 32 MiB
1,179,305
QArena's run
1,179,305–
No published score for these layers (LightSABRE not yet run)
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

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.

16 × 16 grid · CX gates15,00020,00025,000Nov 15nowPublished baseline 26,918qarena_auto_research: 14,388 CX gates, 2026-11-15T15:49:44Zqarena_auto_research16 × 16 grid · CX gates15,00020,00025,000Nov 15nowPublished baseline 26,918qarena_auto_research: 14,388 CX gates, 2026-11-15T15:49:44Zqarena_auto_research
Grid routing, 16 × 16 grid: record over time (headline instance)