Verdict usually under a minuteSubmit

Plan exact maximum-likelihood decoding

Cheaper exact maximum-likelihood decoding queries on the decoder board's surface and colour memory circuits.

Leaderboard: Surface code d = 5, SI1000 p = 0.002, 13 rounds Hot

Result to beat · QArena baseline: 2.50 × 10¹² multiplications
QArena's record 2.50 × 10¹² multiplications by QArena's own run Ties it
#ParticipantScore (multiplications)vs QArena baselineSubmission
1qarena-baseline (QArena's run)(QArena) Baseline2.50 × 10¹²#3
2yicheng22.50 × 10¹²#6

Baseline: QArena's own run: 2.50 × 10¹² multiplications (nothing published fits this instance)

Full leaderboard

Instance: Circuit

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

Exact maximum-likelihood (ML) decoding of a quantum memory asks, for the syndrome s of one shot (its detection events), which logical class is likelier: P(s, L = 0) or P(s, L = 1), each summed over every fault pattern of the circuit's error model. Both numbers come out of one tensor network: plug the syndrome in, contract the network, and the one open bond holds the pair [P(s, 0), P(s, 1)]. This board asks for the cheapest plan of that contraction on two of the decoder board's own memory circuits. A plan is the order in which the network is multiplied out pair by pair (with optional sliced bonds); its score is the number of scalar multiplications of one query, which returns both classes, while at most 234 numbers are held at once. Fewer multiplications rank first.

A plan's score is a cost, never a label. The number of multiplications says how expensive one exact query is. It decides nothing about which class is likelier: a float64 run of the plan can mislabel a near tie (Cheng and Pan certify ties separately), and no plan gives a population error floor of a decoder cell.

InstanceSource circuit (decoder board)DetectorsFault mechanisms (flip L)RoundsTensorsBondsOpen bond
mld-surface5-si1000-p2e-3surface5-si1000-p2e-3-v1, Z basis: rotated surface code d = 5, SI1000 noise, p = 0.0023124,941 (411)1322,28432,62232212
mld-color5-uniform-p1p5e-3color5-uniform-p1p5e-3-v1, Z basis: colour code d = 5, uniform noise, p = 0.00152709,758 (1,085)1567,503100,71299628

The network of a cell is built from Stim 1.16's detector error model of the circuit without decomposition (decompose_errors=False, so a correlated fault stays one mechanism with all its detectors), in primal form: one binary variable per mechanism (weight (1 − p, p) on the first tensor of its copy chain), one parity chain per detector and one for the logical observable, whose last leg is the single open bond. Every chain over k legs is split into k − 2 tensors of three legs (one tensor when k ≤ 2), legs in the order of the mechanisms' places in time. Every bond has dimension 2 and joins exactly two tensors, except the open bond; every tensor has at most three legs. The structure depends on neither p nor the syndrome (the syndrome only sets the target parity of each detector chain's closing tensor), so a plan holds for every shot of the cell. The instance file stores the bond lists in the format of the tensor-contraction board, tensors 0 to T − 1 in this order: the copy chain of every mechanism in the order of Stim's detector error model (its first tensor carries the weight (1 − p, p)), the parity chains of detectors 0 to D − 1 (the last tensor of each carries the syndrome bit as its target parity), then the observable chain. QArena's builder site/tools/gen_mldplan.py (tools/gen_mldplan.py in the verifier bundle; build() returns every tensor's role) rebuilds both files byte for byte from the decoder circuits with Stim 1.16.0. The cap of 234 live elements is 128 GiB of doubles, about half of a Derecho CPU node's 256 GB, so a plan at the cap still runs on one node with room for the executor's workspace (235 would not fit a node at all). Not opened: the surface code at d = 7 (75,801 tensors), whose best plans found so far are far outside any node.

Submission file

The tensor-contraction board's plan, unchanged: a JSON object with exactly the keys slices (a list of bond ids to slice) and path (an SSA path). The inputs are the tensors 0 to T − 1 in the order of the instance file; step s contracts two live ids and makes the new id T + s; every id is used as an operand exactly once and one tensor remains. The start of QArena's surface plan (T = 22,284): step 0 joins tensors 3 and 7319 into id 22284, step 1 joins 0 and 7320 into 22285, step 2 adds tensor 12 to 22285 (making 22286), step 3 joins 7321 and 6 into 22287, and step 4 joins the two clusters 22286 and 22287 into 22288:

{"slices":[],"path":[[3,7319],[0,7320],[22285,12],[7321,6],[22286,22287],[13,7335],...]}

Rules: at most 8 MiB of strict JSON (no duplicate keys, no NaN or Infinity, no booleans or floats as ids; at most 4T + 2G + 3 arrays and objects, 6 quotation marks and 8T + K − G + 61 commas, the exact maxima of a legal file with the optional key split below: 99,647 / 6 / 204,262 on the surface cell and 290,073 / 6 / 616,531 on the colour cell, where G is the number of constraints and K the number of their legs); at most 64 sliced bonds, distinct, never the open bond; exactly T − 1 steps, each a pair of distinct live ids.

Your own cut of the constraints (the optional key split)

The goal is the exact ML query, not a plan for one particular cut of it, so a file may also cut any constraint into its own tree of small tensors. The constraints are read off the instance file: its tensors come constraint by constraint (the copy chain of each mechanism, then the parity chain of each detector, then the observable's chain), and two consecutive constraints never share a bond, so constraint g is the g-th maximal run of consecutive tensors joined by a shared bond. There are G = mechanisms + detectors + 1 of them (5,254 on the surface cell, 10,029 on the colour cell): g = 0 to M − 1 are the mechanisms in Stim's order, then detectors 0 to D − 1, then the observable. The legs of constraint g are the bonds that occur in exactly one of its tensors (constraint_groups(instance) in verifiers/mldplan.py lists them; build() of tools/gen_mldplan.py gives the same groups as roles).

{"slices":[...],"path":[...],"split":[[g, [[bond, bond, bond], [bond, bond], ...]], ...]}

Each entry replaces constraint g (entries in increasing g, each g at most once) by the listed tensors, which must form a tree: every tensor has 1 to 3 legs (bond ids are integers below 231, none twice in a tensor), the bonds that occur in exactly one of the listed tensors are exactly the constraint's legs, the others occur in exactly two of them, number one less than the tensors and connect them all; such an internal bond must not occur anywhere else in the network (pick any unused id). The network then lists every constraint in order, a listed one with its tensors as given and the others as in the instance file, at most 2T tensors in all (T = the instance's tensor count); the path refers to that list (with T' tensors in it, the inputs are 0 to T' − 1 and step s makes T' + s) and the slices to its bonds. A file without split is the instance's network, scored exactly as before. Why this computes the same P(s, L): a mechanism's constraint is a COPY tensor over its legs and a detector's or the observable's a parity tensor; any tree of COPY tensors over the same legs contracts to the same COPY tensor, and any tree of parity tensors whose internal bonds carry partial parities to the same parity tensor, whatever the shape. A cycle would not (a parity cycle doubles the value), nor would a disconnected group, and a tensor of 4 or more legs would be an unpriced input, so those are refused. To run a plan, put a listed mechanism's weight (1 − p, p) on its first listed tensor and a listed detector's syndrome bit on its last listed tensor, as the instance's chains do.

Validation

The verifier (verifiers/mldplan.py) is the tensor-contraction board's tnc.evaluate, unchanged, on these instance files (or on the network of a split, after it has checked every listed tree as above). It replays the plan on the bond lists without computing any number: it removes the sliced bonds from every tensor, checks every step, and counts multiplications and live elements with exact integers. A file is rejected at the first broken rule, with the step that breaks it (or the entry of the split). A second program, written independently from the board's contract without reading the verifier (tests/mldplan_indep.py: two holder slots per bond instead of bond sets, its own strict JSON layer and raw caps), checks every record again; before launch the two, with the tensor-contraction board's own second checker as a third, agreed on 878,946 files (8,946 of them on the two real networks, 137,852 accepted; 327 also through the real entry point), with 0 disagreements in status, multiplications, peak, rule or step. For the split, the second program follows the amended contract (its own groups, tree check and bond counts) and the two agreed on 6,102,680 more files (5,972,360 with a split, 37,359 of them on the two real networks; 1,540 also through the real entry point) with 0 disagreements; split networks that the verifier accepts were also executed in exact integer arithmetic on 121 small error models (484 plans, every syndrome): P(s, L) equal to the sum over all fault patterns every time. A check takes well under a second on one core (the worst legal file, the colour cell's largest file with a split, 2T tensors and 64 slices, takes 0.70 s of CPU and 158 MiB on one core, start-up included; without a split 0.18 s; the budget is 10 s).

Scoring

Sliced bonds are removed from every tensor. Contracting tensors A and B with index sets IA and IB costs 2|IA ∪ IB| multiplications and leaves a tensor with index set IA ⊕ IB (the bonds on exactly one of them). The score is

multiplications = 2|slices| × Σsteps 2|IA ∪ IB|

The peak is the largest number of live elements at any step: the elements of every live tensor before the step (inputs included, both operands included) plus the new tensor. A step whose peak exceeds 234 rejects the file (equal is allowed). Ranking: fewer multiplications first; equal multiplications by submission number (lower first). The peak is shown and must stay within the cap, but it does not rank: it depends on the order of the steps, not only on the contractions, so two files with the same contractions in a different order tie (on the surface cell, fusing the last two leaves of the sweep first or just before the last step gives 16,724,346,805,800 multiplications at peaks 3,221,386,408 and 3,221,386,412), and the earlier one ranks higher. The page shows log2 of both numbers; the exact multiplication count ranks.

Baseline and reference scores

All counts are the verifier's exact integers for one query (both classes); log2 multiplications / log2 peak elements. QArena's pre-launch study priced every generic method on these networks; the house plans come from a small-block search along the time sweep .

Planmld-surface5-si1000-p2e-3mld-color5-uniform-p1p5e-3Plain meaning
Generic greedy tree search (randomised greedy, best of 133 / 18 trials)87.43 / 63.01123.50 / 86.92the kind of search the tensor-contraction board's house runs is useless here (far over the cap)
Time sweep: the tensors in detector-time order, absorbed one by one45.01 / 32.5848.98 / 38.58 (over the cap)
Tuned time sweep (adjacent swaps)43.927 / 31.585 (16,724,346,805,808)46.49 / 34.58 (over the cap at four steps)the pre-launch surface house, kept as an entry
The tuned sweep with one sliced bond (bond 97749)47.4244 / 33.585 (188,868,313,412,768; peak 12,885,399,280 per slice)the pre-launch colour house, kept as a reference entry
QArena's local fix of the tuned sweep: steps 64710 to 64714 re-associated, no slice46.4937 / 33.585 (99,082,250,845,136; peak 12,885,399,288)the first legal unsliced colour plan, kept as an entry
House: small-block search along the sweep41.1834 / 28.5855 (2,497,089,670,408; peak 402,811,554)45.2072 / 33.0000 (40,619,517,332,664; peak 8,589,958,362)the opening records
Reference line, not an entry: Cheng and Pan's reduced Tanner graph, linear column order (rank dynamic programme; its own cost formula, not executed)41.1342.29a different algebra, not a plan in this format

The house search slides a window of w consecutive pieces of the sweep (a piece is a tensor, or a small cluster formed by an earlier window) and replaces it by the cheapest contraction tree of the accumulator and those pieces: an exact subset dynamic programme in which the accumulator absorbs an ordered partition of the pieces, each part contracted first by its own cheapest tree, under the cap. Then it absorbs the window's first piece and moves on, each pass from the start: 4 passes with w = 14 on the surface sweep, 8 passes with w = 12 on the colour sweep. Clustering pays because two small tensors that share a bond can be joined before they meet the accumulator, so that bond never widens it: the surface plan drops from 243.93 to 241.18 and its peak from 26 GB to 3.2 GB of doubles (no intermediate has more than 28 bonds); on colour the search removes the slice (no intermediate has more than 32 bonds, where the sliced sweep reaches 33 per slice and the unsliced one 34; the peak is two 232 tensors at one step) and drops 2.2 bits below the sliced sweep. Wider windows and restarts did not do better: w = 14 on colour gave 245.2074, six seeded restarts of the colour sweep from perturbed orders 245.2088 to 245.2092, and w = 16 on surface 241.29 after two passes (one Derecho job, 9 cores for 13 minutes). The colour plan still sits 2.9 bits above the reduced-graph reference line, which counts different operations; whether a plan in this format can close that gap is open. No published plan exists for these networks (they are QArena's own), and no lower bound beyond the trivial one is known.

Two exact surface queries, float64 examples. With the pre-launch tuned sweep (243.93), QArena executed two queries of the surface cell end to end on one Derecho CPU node (a compiled sweep kernel, 128 threads, about 19 G multiplications per second, 32 GB resident; syndromes sampled from the circuit's error model). Seed 0, syndrome weight 31, sampled flip 0: P(s, 0) = 4.989 × 10−34, P(s, 1) = 2.981 × 10−36, in 863 s. Seed 1, syndrome weight 16, sampled flip 0: P(s, 0) = 1.310 × 10−21, P(s, 1) = 2.735 × 10−27, in 883 s. They are float64 examples of what a plan computes and what it costs, not exact values, not labels and not a decoder score. At that rate the house surface plan would take about two minutes and the house colour plan about 35 minutes of one node (projected, not run).

What a record means

A record is a contraction plan that computes one exact ML query of the cell (both classes) with fewer multiplications, within 234 live elements, so on one large-memory node. Each bit a record removes halves the time of every exact query run with it. It certifies a cost only: the verifier never executes the plan, and running it (and certifying near ties, which float64 arithmetic cannot settle) is the user's work. It says nothing about any decoder's accuracy.

Application

Decoder teams measure how far a fast decoder is from exact ML on the very circuits the decoder board serves: an exact likelihood pair per selected shot shows whether even the optimal decoder fails on it. QArena can label selected shots of a decoder cell with exact ML references in the same way. A plan is checked in a fraction of a second on any machine; running it is a job for one large-memory node, and the score says how long that job is.

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 10 s of CPU, 135 s of wall time and 1,024 MB of memory on the Mac mini, and 20 s of CPU, 150 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 (multiplications) Reference scoreRecord holderStatus
Surface code d = 5, SI1000 p = 0.002, 13 rounds Hot
22,284 tensors, 32,622 bonds; 312 detectors, 4,941 fault mechanisms (411 flip L); the decoder board's surface5-si1000-p2e-3-v1 Z circuit; at most 2^34 live elements
2.50 × 10¹²
QArena's run
2.50 × 10¹²–
No published plan for this network (QArena's own). Generic greedy tree search 2^87.43; time sweep 2^45.01; tuned sweep 2^43.93 (QArena's pre-launch study; two float64 example queries ran in 863 and 883 s on one Derecho node); Cheng and Pan's reduced Tanner graph prices at 2^41.13 by its own formula (a different algebra, not a plan in this format), Cheng and Pan, arXiv:2609.39556 (sections 4.4 and 7.3); QArena, SPEC_v18 s5.8 and s5.9
qarena-baseline (QArena's run)(QArena)Baseline not beaten
Colour code d = 5, uniform p = 0.0015, 15 rounds
67,503 tensors, 100,712 bonds; 270 detectors, 9,758 fault mechanisms (1,085 flip L); the decoder board's color5-uniform-p1p5e-3-v1 Z circuit; at most 2^34 live elements
4.06 × 10¹³
QArena's run
4.06 × 10¹³–
No published plan for this network (QArena's own). Generic greedy tree search 2^123.50; the tuned sweep breaks the cap (2^34.58) and needs a slice (2^47.42); QArena's local fix of five steps makes it legal without one (2^46.49); Cheng and Pan's reduced Tanner graph prices at 2^42.29 by its own formula (a different algebra, not a plan in this format), Cheng and Pan, arXiv:2609.39556 (sections 4.4 and 7.3); QArena, SPEC_v18 s5.8 and astra_spec18
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