Verdict usually under a minuteSubmit

Build photonic grid states with fewer photons

Find adaptive fusion and recycling strategies that waste fewer photons when building photonic resource states.

Leaderboard: 4 × 4 open grid (16 photons, 24 edges) Hot

Result to beat · QArena baseline: 256,300 expected photons
QArena's record 256,300 expected photons by QArena's own run Ties it
#ParticipantScore (expected photons)vs QArena baselineSubmission
1qarena-baseline (QArena's run)(QArena) Baseline256,300#4

Baseline: QArena's own run: 256,300 expected photons (nothing published fits this instance)

Full leaderboard

Instance: Target graph state

Overview

Each instance's leaderboard updates as soon as the verifier accepts a submission.
Every submission is public. The file is the whole policy, so anyone can recompute its expected cost; it does not show the search that found it unless you attach that code.

Task

Prepare a fixed photonic graph state from two-photon graph states (Bell pairs, up to local Cliffords) with ideal, unboosted Type-I fusion, and spend as few photons as possible on average. You submit a finite adaptive policy: a list of at most 128 states. Each state names the graph state currently held, adds fresh Bell pairs and applies free operations, then fuses two photons and moves to one state when the fusion succeeds and to another when it fails. Fragments that survive a failure can be kept and reused, so a policy can recycle instead of starting over. The verifier checks every transition exactly and computes the expected number of photons supplied, which is the score.

The fusion is the Browne–Rudolph Type-I instrument. On two photons u and v it succeeds with probability exactly 1/2, with Kraus maps K± = (|0⟩⟨00| ± |1⟩⟨11|)/√2: one photon (v) is detected and the other (u) carries the merged qubit. It fails with probability 1/2, distinguishing the odd outcomes |01⟩ and |10⟩, which removes both photons. Known Pauli byproducts are corrected at once, so every state of the policy holds a graph state. On graphs the rules are:

  • Success: v is removed and u's neighbourhood becomes the symmetric difference of the two neighbourhoods: A'uw = Auw ⊕ Avw for every other remaining vertex w. Common neighbours of u and v cancel; this is not a neighbourhood union. An edge uv and the detector sign only give a known Z correction on u.
  • Failure: u and v are removed; the graph induced on the other vertices remains.

Resources and prices: one fresh two-vertex graph state costs two supplied photons. Local Clifford operations, Z measurements, classical feed-forward and relabelling are free. Any two live photons may be fused, storage is ideal, and loss, source inefficiency, switching and time are outside this metric. Every supplied photon counts, including photons later discarded or destroyed by failures. There is no loss model, no Type-II or boosted fusion and no other instrument.

Instances (all with at most 128 states, 80 live photons, 120 CPU seconds and 256 MiB):

  • fp-type1-grid4x4, fp-type1-grid5x5, fp-type1-grid5x8 (ranked): open rectangular grids of width w and height h, vertex y·w + x, with horizontal and vertical nearest-neighbour edges: 16 photons and 24 edges, 25 and 40, 40 and 67.
  • fp-path2, fp-path3, fp-path5 (debug): paths of 2, 3 and 5 photons, given as explicit graphs. They carry the known answers below.

Submission file

JSON structure (this two-state policy is a complete valid file for fp-path3):

{"states": [
 {"n": 0, "edges": [], "ops": [["B"], ["B"]], "fuse": [1, 2],
  "on_success": {"to": 1, "keep": [0, 1, 2]}, "on_failure": {"to": 0, "keep": []}},
 {"n": 3, "edges": [[0, 1], [1, 2]], "ops": [], "output": [0, 1, 2]}]}

States are numbered by their position in the list; state 0 is where the policy starts. A fusion state has exactly the keys n, edges, ops, fuse, on_success and on_failure; a terminal state has exactly n, edges, ops and output.

  • n and edges: the snapshot, the graph state held on entering the state (known Pauli corrections applied). n is from 0 to 80; edges are pairs [u, v] with 0 ≤ u < v < n, sorted lexicographically, without repeats. State 0 must be empty: n 0 and no edges.
  • ops: the prefix, applied in order, at most 256 operations per state and 16,384 in the whole file: ["B"] appends vertices n and n+1 joined by one edge and charges two photons; ["LC", v] complements every edge between two distinct neighbours of v (local complementation, a product of single-qubit Cliffords); ["KEEP", list] Z-measures every vertex not in the list, so the induced graph on the listed vertices remains, and relabels them in list order (new vertex i is old vertex list[i]; an empty list discards everything; keeping all vertices in another order is a relabelling). At most 80 photons may be live after any operation.
  • fuse: [u, v], two different vertices of the graph after the prefix; u survives a success.
  • on_success, on_failure: each exactly {"to": state, "keep": list}. The verifier applies the fusion outcome, compacts the surviving vertices in increasing old index, then applies the keep list as a KEEP. The result must equal the snapshot of state to exactly (same n, same edges).
  • output (terminal states): a permutation of all vertices left after the prefix; position i names the vertex that plays target vertex i. Its length must equal the target's number of vertices.
  • Files contain data only: no probabilities, expected costs, hidden initial resources or stabilizer tableaux. Parsing is strict: exact keys, no duplicate keys, no NaN, integers must be JSON integers (not true or 1.0). The file has at most 4 MiB and no more brackets or quotation marks than the largest legal file can contain (438,274 arrays and objects, 35,330 quotation marks).

Validation

A file is accepted when all of the following hold; anything else is rejected with the reason.

  • Every snapshot, prefix, fusion and transition is well formed and within the caps above.
  • Both outcomes of every fusion state, after compaction and the transition's keep list, equal their destination snapshots exactly.
  • Every terminal state's graph after its prefix, relabelled by its output map, equals the target exactly: the output map is the isomorphism, so the verifier compares adjacency directly.
  • Every state is reachable from state 0, and every state has a directed path to a terminal state. With every branch at probability 1/2, this means the policy halts with probability 1 and its expected cost is finite; a reachable closed class of fusion states is rejected.

The verifier keeps each graph as adjacency bitsets: B appends two rows, LC toggles the rows of v's neighbours, KEEP composes a relabelling that is applied once per prefix, and a fusion rewrites one row and compacts. Repeated snapshots are allowed (two states may hold the same graph and take different decisions). If the CPU budget runs out (five seconds before the 120-second limit, counting parsing), the result is an error with no score, never a partial one; the slowest of the adversarial files built at the caps (16,384 operations on 80-vertex graphs, 127 complete-graph snapshots, a 4 MiB file) takes 0.6 CPU seconds on the build machine.

A second program, written separately from the specification without reading the verifier, replays every prefix and all four detector branches of every fusion on a stabilizer tableau (success as a ZuZv measurement with outcome +1 followed by an X measurement of v, both signs; failure as Z measurements with outcomes 01 and 10), compares the stabilizer groups with the destination graph states up to signs, decides reachability by transitive closure and solves the expectations by Gauss–Jordan elimination over fractions. Its own tests compare the stabilizer simulation with state vectors on every labelled graph of 2 to 5 vertices. It agreed with the verifier on every verdict and every exact score of the cross-check (random policies, their mutations and the house files).

Scoring

Let ci be twice the number of B operations in state i's prefix. For a fusion state i with success successor s and failure successor f, and for a terminal state:

Ei = ci + Es/2 + Ef/2,   Fi = 1 + Fs/2 + Ff/2;     terminal: Ei = ci, Fi = 0.

Ei is the expected number of photons supplied from state i on and Fi the expected number of fusion attempts. The verifier solves both systems exactly by integer Bareiss elimination with rational back substitution and checks every equation with the solution. The score, minimized in this order, is

  • photons: E0, an exact reduced fraction (sent as lowercase hexadecimal numerator and denominator),
  • fusions: F0, an exact reduced fraction,
  • peak_live: the largest number of live photons in any snapshot or after any prefix operation of any state,

then the submission number (lower first). The number of states is a cap, not a tie-break.

Baseline and reference scores

Known answers (debug instances): the two-photon target is one B and a terminal output [0, 1]: (E, F, L) = (2, 0, 2). The three-photon file above scores (8, 2, 4), the four-Bell-pair expectation of Browne and Rudolph. The five-photon path with recycling (two three-photon paths, the first one kept while the second is retried, their ends fused, the two Bell pairs left by a failed end fusion fused back into a three-photon path) scores (28, 10, 7), the fourteen-Bell-pair construction of the same paper.

The three-photon value is optimal. Until some component has three vertices, every component has at most two: LC and Z measurements cannot join components, a fusion that involves an isolated vertex at best moves an edge and otherwise destroys it, and fusing two vertices of one Bell pair leaves one isolated vertex. So the first three-vertex component comes from fusing two Bell pairs, and a failed attempt leaves two isolated vertices, which can never be part of an edge again. Every attempt therefore uses two Bell pairs supplied for it alone (4 photons), and the attempts succeed with probability 1/2 each: E ≥ 4 × 2 = 8, F ≥ 2, and 4 photons are live at the attempt. The two-photon value is optimal for the same kind of reason; no optimality is known for the five-photon path or the grids.

The specification's two reference policies build the grids edge by edge: target edges in lexicographic order, one Bell pair per edge; a new endpoint is attached by one fusion of the matching resource vertex into the existing vertex, and an edge between two existing vertices takes two fusions. That is J = 2M − N successful fusions for N vertices and M edges, on a single connected cluster. Restart discards everything after any failure; its expectation is the sum of ci·2J−i over the fusions i = 0, …, J−1. Keep one edge keeps the two endpoints of one surviving edge after a failure and rebuilds the initial three-photon path from it with one Bell pair in a recovery state, saving 2J − 2 photons. Both need 2J+1 − 2 fusion attempts on average. These policies are deliberately weak; they show that the format admits whole grids and that recycling pays.

The house baselines (QArena's own, submitted as the baseline rows) keep the same edge-by-edge steps and change three things. The edges are ordered by recursive halving: the rectangle is split across its longer side, one half is built, then the other, then the seam edges between them, down to blocks of at most four vertices. After a failure the policy does not restart: it jumps to an earlier state whose snapshot survived intact (all of its vertices are still present and the graph induced on them equals the snapshot) and measures the rest away; when only the empty state is intact, it keeps one edge for a recovery state as above. Each failed fusion destroys one target vertex, so the policy also has repair chains: a Bell pair attached to a surviving neighbour of the lost vertex (one fusion), two more fusions for each further edge of that vertex, and then back to the interrupted state. Chains are added in order of the number of built vertices they save, while the 128-state cap allows (all 28 fit on 4 × 4; on 5 × 5 and 5 × 8 the cap stops the list), and every failure then goes to the surviving snapshot with the most vertices. The peak is the same as for the keep-one-edge policy. Without the repair chains the same order and fallback give 585,816, 84,024,666 and 5,610,495,834 photons.

InstanceJRestart: photonsKeep one edge: photonsHouse baseline: photonsHouse baseline: fusion attemptsPeak liveStates (keep one edge / house)
fp-type1-grid4x43225,693,182,88821,398,215,594256,328.4113,819.61834 / 100
fp-type1-grid5x555216,011,958,906,482,344179,983,161,887,518,37840,148,610.816,409,291.32757 / 128
fp-type1-grid5x894118,753,830,278,174,439,797,614,669,48098,946,789,649,608,355,399,228,681,8984,294,657,220.81,560,858,343.34296 / 128

The spec's values are integers; the house values are fractions, shown to one decimal. Both checkers recompute every value exactly. There is no comparable published value for the grids under this photon metric: the adaptive Type-I framework reports fusion first-passage objectives under its own protocols, and the minimum-fusion classification uses a different emitter-plus-fusion model. Converting their strategies into files for this board is open.

Application

Photonic quantum computers build large entangled resource states by fusing small ones, and because fusion is probabilistic, many photons go to attempts that fail. A record here is a concrete, exactly evaluated adaptive strategy (which pieces to grow, what to keep after a failure, how much to store) that lowers the expected photon count for a fixed ideal source of two-photon states within bounded live storage. It does not certify loss tolerance, source efficiency, latency or a fault-tolerance threshold.

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 120 s of CPU, 300 s of wall time and 256 MB of memory on the Mac mini, and 240 s of CPU, 480 s of wall time and 256 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 (expected photons) Reference scoreRecord holderStatus
4 × 4 open grid (16 photons, 24 edges) Hot
target vertex y·4 + x, nearest-neighbour edges; at most 128 states and 80 live photons
256,300
QArena's run
256,300–
No comparable published value: the adaptive Type-I framework reports fusion first-passage objectives under its own protocols, not expected photons for this policy model, arXiv:2601.02087
qarena-baseline (QArena's run)(QArena)Baseline not beaten
Two-photon graph state (debug)
debug instance: one Bell pair is the whole answer
2
QArena's run
22
Hand-built example of the specification; 2 photons is the minimum
qarena-baseline (QArena's run)(QArena)Matches proved optimum
Three-photon path (debug)
debug instance: fuse two Bell pairs and restart after a failure
8
QArena's run
88
Four Bell pairs on average; optimal (the proof is in the statement), Browne and Rudolph 2005
qarena-baseline (QArena's run)(QArena)Matches proved optimum
Five-photon path (debug)
debug instance: two three-photon paths fused at their ends, failures recycled
28
QArena's run
2828
Fourteen Bell pairs on average with recycling; optimality not known, Browne and Rudolph 2005
qarena-baseline (QArena's run)(QArena)Matches reference
5 × 5 open grid (25 photons, 40 edges)
target vertex y·5 + x, nearest-neighbour edges; at most 128 states and 80 live photons
40,150,000
QArena's run
40,150,000–
No comparable published value: the adaptive Type-I framework reports fusion first-passage objectives under its own protocols, not expected photons for this policy model, arXiv:2601.02087
qarena-baseline (QArena's run)(QArena)Baseline not beaten
5 × 8 open grid (40 photons, 67 edges)
target vertex y·5 + x, nearest-neighbour edges; at most 128 states and 80 live photons
4,295,000,000
QArena's run
4,295,000,000–
No comparable published value: the adaptive Type-I framework reports fusion first-passage objectives under its own protocols, not expected photons for this policy model, arXiv:2601.02087
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