Correct photon loss with fewer photons
Protect a qubit against photon loss with fewer photons.
Verifier
The verifier checks your file and computes its score. QArena runs the same code on every submission.
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.
Download the bundle, extract it and run these commands from its folder (the one holding verifiers/). The bundle
includes an accepted example file.
python3 -I verifiers/run_one.py bloss two-mode-loss5 example/two-mode-loss5.json
The verifier prints one line of JSON with a status: accepted with the score, rejected with the reason,
or error if verification could not finish.
Files
| File | Role |
|---|---|
| run_one.py | Runs the verifier |
| common.py | Shared helpers |
| bloss.py | Validates submissions for this problem |
How verification works
The verifier works in exact arithmetic: Gaussian integers, square roots of squarefree products of the primes up to 101 and, when the file declares one, a real algebraic number θ reduced modulo its polynomial. It multiplies the amplitudes pairwise once, attaches the square roots of factorials that the loss operators produce, and obtains every Knill–Laflamme entry at the highest loss order as an integer combination of these products with binomial weights; the lower orders follow from an exact identity. An entry counts as zero only when every coefficient is zero, so a residual of 10⁻¹⁶ is a rejection. The norms of the two code words need not be rational. A second, independently written program builds the loss operators as explicit sparse matrices, checks every loss order directly and agreed with the verifier on every test case.