Verdict usually under a minuteSubmit

Correct photon loss with fewer photons

Protect a qubit against photon loss with fewer photons.

Leaderboard: 5 losses Hot

Result to beat · University of Chicago: 28 photons · paper (run on QArena)
QArena's record is the result to beat Not beaten yet: be the first to beat it.
#ParticipantScore (photons)vs University of Chicago (published)Submission
1lit-polyhedral-2o (published method, run by QArena)(literature) Baseline28#5
2yicheng2361.2857× higher#6

Baseline: University of Chicago: 28 photons · paper

Full leaderboard

Instance: Number of photon losses corrected

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

Encode one qubit in two bosonic modes that share a fixed total number of photons N, so that the loss of up to t photons can be corrected exactly, and use as few photons as possible. The states are superpositions of |j, N−j⟩ for j = 0, …, N (j photons in mode a, N−j in mode b). The errors are the loss operators

Et = { au bv : u, v ≥ 0, u + v ≤ t },

where a and b remove one photon from their mode: au bv |j, N−j⟩ = √( j!/(j−u)! · (N−j)!/(N−j−v)! ) |j−u, N−j−v⟩, and zero when a mode holds too few photons. A submission gives two code words v0 and v1 with exact amplitudes. It is accepted when the Knill–Laflamme conditions hold exactly for every pair of errors in Et, which is the condition for a recovery operation that corrects every error of the set on every encoded state. The score is N.

  • two-mode-loss5 (ranked): t = 5 losses, at most 36 photons.
  • two-mode-loss7 (ranked): t = 7 losses, at most 64 photons.
  • two-mode-loss9 (ranked): t = 9 losses, at most 100 photons.
  • two-mode-loss1-debug (debug): t = 1 loss, at most 4 photons.

The photon limits are the sizes of the binomial codes, the baselines below. A code that corrects t losses in this sense is also called a code of loss distance d = t + 1; it is the same object as a code in a spin-N/2 system that detects every rotation error up to rank t, and as a permutation-invariant code on N qubits of distance t + 1.

The board certifies the correction of this finite set of loss operators. It does not model the full photon-loss channel (whose Kraus operators also contain a damping factor that depends on the occupation), and it says nothing about how the states are prepared or how the recovery is carried out.

Submission file

JSON structure:

{"photons": 4,
 "codewords": [ [ [[0,"1","0"]], [], [], [], [[0,"1","0"]] ],
                [ [], [], [[1,"1","0"]], [], [] ] ]}

This is the accepted four-photon code of the debug instance: v0 = |0,4⟩ + |4,0⟩ and v1 = √2 |2,2⟩. The verifier bundle contains an accepted file for two-mode-loss5.

  • photons: N, an integer from 1 to the instance limit.
  • codewords: exactly two code words. Each is a list of exactly N + 1 amplitudes; the amplitude at position j belongs to |j, N−j⟩. The code words are not normalized, and their two norms may differ.
  • An amplitude is a list of 0 to 8 terms (an empty list is zero). A term [mask, RE, IM] stands for (RE + i·IM)·√R, where R is the product of the primes selected by the bits of mask: bit 0 selects 2, bit 1 selects 3, and so on through the 26 primes up to 101 (2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101). Mask 0 is R = 1. Within one amplitude the masks strictly increase.
  • RE and IM are integers written as hexadecimal strings: an optional -, then 1 to 64 lowercase hexadecimal digits, with no prefix, no leading zero (except "0" itself) and no "-0". They cannot both be "0".
  • modulus (optional): one extra real algebraic number θ, given by a monic polynomial with integer coefficients. The list [c0, c1, ..., c(D-1)] of 2 to 32 hexadecimal strings stands for f(x) = xD + cD−1xD−1 + … + c0, and θ is a real root of f. When a file has a modulus, RE and IM may each also be a list of 2 to D hexadecimal strings [a0, a1, ..., ae], standing for a0 + a1θ + … + aeθe; the last entry of such a list is not "0".
  • Parsing is strict: exactly these keys, no duplicate keys, JSON integers where integers are asked (not true, not 4.0). The file has at most 1 MiB, 4,096 arrays and objects, 16,384 quotation marks and 8,192 commas; a larger file is rejected before it is parsed.

Example with a modulus: {"photons": 4, "modulus": ["-2","0"], "codewords": [[[[0,"2","0"]],[],[],[],[[0,["0","1"],["0","1"]]]], [[],[],[[1,"1","0"]],[],[]]]} is v0 = 2|0,4⟩ + θ(1 + i)|4,0⟩ with θ2 = 2, and the same v1 as above. It is accepted: both amplitudes of v0 have absolute value 2.

Why the extra number exists. Square roots of integers are enough for the baselines, but not for every code. The 28-photon code posted as a reference entry has amplitudes in the field of θ = √(56212514 + 778261√5217), a quartic number that is not contained in any field generated by square roots of rational numbers. With one real algebraic number every code with algebraic amplitudes can be written (take a primitive element of the real field generated by the real and imaginary parts), up to the size limits.

Validation

All arithmetic is exact; there is no numerical tolerance and no floating point. The amplitudes live in a ring A of formal sums of terms c·√R, with one coefficient c per square-free product R of the 26 primes. The coefficients are Gaussian integers, or, in a file with a modulus, polynomials in θ with Gaussian-integer coefficients taken modulo f. The product is √R·√R′ = gcd(R, R′)·√(R R′/gcd(R, R′)2), conjugation changes the sign of i only, and an element is zero exactly when every one of its coefficients is zero (for a modulus: zero as a polynomial modulo f). Square roots of different square-free integers are linearly independent over the rationals, so without a modulus this is ordinary equality of complex numbers. With a modulus, an equality in A holds for the complex amplitudes at every real root of f.

The file is accepted when all of the following hold.

  1. Format, ranges and size limits as above.
  2. Product limit. Give each term the size max(length of RE, length of IM), where a plain string has length 1, and each amplitude the sum of the sizes of its terms. With L = min(t, N), the sum of size(vα[j])·size(vβ[j′]) over α, β in {0, 1} and all positions with |j − j′| ≤ L is at most 500,000. A file without a modulus cannot exceed this (the largest possible value is 468,224), so the limit only concerns files with long polynomial coefficients.
  3. With a modulus, f has at least one real root.
  4. Each code word has at least one θ-free amplitude: a nonempty amplitude in which every RE and IM of every term is a string. Such an amplitude is a nonzero complex number, so the code word is not zero at any root. One string term next to a term with a list is not enough: 2 − θ√2 with θ2 = 2 is zero at θ = √2. Without a modulus this only says that the code word is not zero; with a modulus, divide the code word by one of its amplitudes.
  5. Knill–Laflamme. Write hα = ⟨vα|vα⟩. For every ordered pair of errors E = aubl−u, F = au′bl−u′ with the same total loss l ≤ t: ⟨E v0|F v1⟩ = 0, ⟨E v1|F v0⟩ = 0 and h1⟨E v0|F v0⟩ = h0⟨E v1|F v1⟩, as equalities in A. Pairs with different total loss lead to different photon numbers and are orthogonal automatically. The pairs with E ≠ F are part of the rule: comparing the loss probabilities of the two code words alone is not enough. The norms hα need not be rational.

Two remarks on the rule with a modulus. First, the equalities are decided as polynomial identities modulo f. When f is the minimal polynomial of θ this is the same as equality of the complex numbers; with a reducible f the identities have to hold modulo every factor, which is never easier. Use the minimal polynomial. Second, do not hide a square root of the 26 primes inside θ (for example θ = √2 next to mask 1): an accepted file is still a correct code, but two ways of writing the same number are then treated as different symbols, and a correct code can be rejected.

How it is computed. The verifier evaluates the pairs of total loss L = min(t, N) only: for l < N the photon number between the two operators gives (N − l)⟨E v|F v′⟩ at level l as a sum of two entries of level l + 1, so the top level implies all lower ones. Every entry of that level is an integer combination of the products conj(vα[j])·vβ[j′]·√(j! j′! (N−j)! (N−j′)!), which are formed once. The real-root test is a Sturm chain in integer arithmetic.

Cost. The baselines and the 28-photon reference take under 0.05 s of CPU on one core (interpreter start included), and the heaviest valid files that could be built at the limits (a 100-photon code with full support, six terms per amplitude and 60-digit coefficients; a 36-photon code over a degree-32 modulus with dense polynomial coefficients close to the product limit; a 100-photon code with eight terms per amplitude, polynomial coefficients and irrational norms) take at most 0.3 s with under 20 MiB of memory, against the limit of 180 s and 512 MB. Two resource bounds can end a check with status error and no score, never with a verdict: the CPU budget, and a 128 MiB bound on the comparison of the two normalized diagonals when the norms have very many square-root terms (a file of dense random amplitudes on two far-apart blocks of positions reaches it within 2 s, at 166 MiB of memory). A code hit by the second bound can be resubmitted after dividing each code word by a common factor.

A second program, written independently from the text of the rule (explicit ladder matrices at every loss level, integer radicands reduced with greatest common divisors, its own polynomial arithmetic and a different real-root test), agreed with the verifier on all 568,000 generated cases of two comparison runs (same status and same score every time): 193,149 accepted and 366,851 rejected files and 8,000 malformed instances. The files were valid codes moved by exact symmetries, single changes to valid codes, random files, malformed files, files at every limit and random moduli.

Scoring

The ranked quantity is the number of photons N; fewer is better. Different codes with the same N tie, and the earlier submission ranks first. The three ranked instances are ranked separately. The size of the file and of its coefficients are limits, not objectives.

Baseline and reference scores

Baselines and the reference entry were checked by this verifier. Rows marked numerical are published constructions that solve the equations to machine precision; they are not exact files, they were not checked here, and they are not on the board.

InstanceQArena baseline (exact, checked here)Reference points
two-mode-loss1-debug4 photonsThe four-photon code of Chuang, Leung and Yamamoto, equal to the baseline
two-mode-loss536 photons (binomial code)28 photons: exact code of Giannisis Manes, Subramanian and Jiang, posted as the reference entry lit-polyhedral-2o (checked here). Their linear-programming bound excludes fewer than 26 photons; 26 and 27 are open
two-mode-loss764 photons (binomial code)49 photons (numerical, same paper; its exact form needs a number field of degree 46 and does not fit a file here, see below). Earlier: 61 photons (numerical, Kubischta and Teixeira). The linear-programming bound excludes fewer than 43 photons; 43 to 48 are open
two-mode-loss9100 photons (binomial code)76 photons (numerical, same paper; no exact form is known). Earlier: 91 photons (numerical, Kubischta and Teixeira). The linear-programming bound excludes fewer than 64 photons (recomputed here); 64 to 75 are open

The baseline for t losses is the binomial code on N = d2 photons with d = t + 1: v0 is the sum over even j, and v1 the sum over odd j, of √binomial(d, j) |dj, N−dj⟩ (0 ≤ j ≤ d). It is the two-mode form of the binomial codes of Michael et al. (arXiv:1602.00008) and of the permutation-invariant codes of Ouyang (Phys. Rev. A 90, 062317). The occupied states are d photons apart, so fewer than d losses never connect two of them, and what remains are the moments of the two occupation distributions up to degree t, on which the even and the odd binomial sums agree. A code built this way needs at least d + 1 occupied states that are at least d photons apart, hence d2 photons; going below requires code words whose occupied states are close enough to interfere.

The reference points come from Giannisis Manes, Subramanian and Jiang, Optimal two-mode bosonic loss codes from finite group symmetry (arXiv:2610.00561). They build codes with the symmetry of the binary octahedral group at ⌈(3d2+1)/4⌉ photons, which is 28, 49 and 76 for the three instances, and conjecture, with Bond et al., that this is the minimum. Their linear-programming bound leaves room below it: it first permits t = 5 at 26 photons and t = 7 at 43. The bound was recomputed for this board in floating point (the SU(2) MacWilliams linear program of the paper's supplement): it reproduces these two numbers and the paper's statements at 28, 49 and 76 photons, and it gives 64 photons as the first value that permits t = 9, which the paper does not state. Kubischta and Teixeira (arXiv:2310.17652) had found codes at (3d2+1)/4 photons for odd d numerically; their 61- and 91-photon codes correct 8 and 10 losses, hence also 7 and 9. Beating 28, 49 or 76 with an exact file would disprove the conjecture; an exact file at 49 or 76, or anywhere below the baselines 64 and 100, would be the first exact code there.

The reference entry at 28 photons was derived again for this board from the symmetry and the equations, not copied from the authors' files. In coordinates where the group acts by rational matrices, the conditions reduce to a small system of quadratic equations whose solution lies in the quartic field given above (its Galois group is the dihedral group of order 8, which is why square roots alone cannot express it); the file has a modulus of degree 4, x4 − 112425028 x2 − 38960359061, and coefficients of at most 16 digits.

The instances for 7 and 9 losses start from the binomial baselines alone, for the following reason. The same reduction was carried out at 49 photons. With the complex conjugate treated as an independent unknown, its equations have exactly 70 complex solutions; four of them are codes (two complex-conjugate pairs). The coordinates of these codes are algebraic numbers of degree 46: the minimal polynomial of a coordinate ratio was recovered from solutions computed to 2,000 digits, and it has integer coefficients of about 300 digits. The field shares no square root with the alphabet of this board, so a file for that code, oriented as in the paper, would need a modulus of degree at least 46, above the limit of 32, and a direct transcription would have coefficients of thousands of digits against the limit of 64. Codes with the same symmetry were found at 57 and 60 photons in the same way and need degrees 46 and 58. At 76 photons the equations were only solved in floating point, and the degree of that code's number field was not determined. The limits on degree and digits bound the verifier's work; they are not part of the mathematical problem. What the two instances ask for is therefore an exact code below 64 or 100 photons whose amplitudes fit this format, for example one in a smaller number field. Whether a rotated or otherwise equivalent form of the published codes has a smaller field is not known.

Application

Photon loss is the dominant error of optical and microwave resonators. Codes with a fixed total photon number in two modes detect any loss by counting photons, extend the dual-rail qubit used in several current experiments, and trade energy for protection: the photon number N is the energy cost of correcting t losses. The same codes are spin codes for large single spins and permutation-invariant qubit codes, so a record here is also a record there. An exact code is a statement that can be rechecked by anyone, whereas a numerical solution with a small residual may or may not be close to a true code; this board accepts only the former. A record lowers the photon number needed for the stated order of exact loss correction. It does not by itself provide a recovery circuit, gates, or a logical lifetime.

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 180 s of CPU, 390 s of wall time and 512 MB of memory on the Mac mini, and 360 s of CPU, 660 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 (photons) Reference scoreRecord holderStatus
5 losses Hot
every aᵘbᵛ with u + v ≤ 5 (loss distance 6); N ≤ 36
2828
Published result · Not beaten yet
28
Published exact code, conjectured minimal (26 and 27 photons are open), Giannisis Manes, Subramanian and Jiang, arXiv:2610.00561
University of ChicagoMatches reference
7 losses
every aᵘbᵛ with u + v ≤ 7 (loss distance 8); N ≤ 64
64
QArena's run
6449
Published numerical construction, conjectured minimal (no exact file exists: the code needs a number field of degree 46; 43 to 48 photons are open). Not run on QArena: the authors' repository (github.com/argy-gm-code/optimal-two-mode-bosonic-loss-codes, commit 20cfba39, 2026-10-01) holds the 49-photon code only as a double-precision Python pickle (additional_codes/n49_2O_code.pkl; Knill-Laflamme residual 2.3e-16, Table S1, and its README says only the 28-photon code and the distance certificates are exact) and has no licence file, so it may not be redistributed; an exact form of the same 2O construction needs a number field of degree 46, above this instance's cap of 32, Giannisis Manes, Subramanian and Jiang, arXiv:2610.00561
qarena-baseline (QArena's run)(QArena)Baseline not beaten
9 losses
every aᵘbᵛ with u + v ≤ 9 (loss distance 10); N ≤ 100
100
QArena's run
10076
Published numerical construction, conjectured minimal (no exact code is known; 64 to 75 photons are open). Not run on QArena: the authors' repository (github.com/argy-gm-code/optimal-two-mode-bosonic-loss-codes, commit 20cfba39, no licence file) holds the 76-photon 2O code only as a double-precision Python pickle (additional_codes/n76_2O_code.pkl; Knill-Laflamme residual 5.6e-16, Table S1), and no exact form of it is known, Giannisis Manes, Subramanian and Jiang, arXiv:2610.00561
qarena-baseline (QArena's run)(QArena)Baseline not beaten
1 loss (debug)
debug instance: every aᵘbᵛ with u + v ≤ 1 (loss distance 2); N ≤ 4
4
QArena's run
44
Four-photon code of Chuang, Leung and Yamamoto, Phys. Rev. A 56, 1114 (1997)
qarena-baseline (QArena's run)(QArena)Matches reference

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