Build the most erasure-proof 20-qubit memory
Which twenty-qubit code best keeps four qubits through random erasures?
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 60 s of CPU, 210 s of wall time and 512 MB of memory on the Mac mini, and 120 s of CPU, 300 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 -m pip install -r requirements.txt python3 -I verifiers/run_one.py erasure em-5-1-p10 example/em-5-1-p10.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 |
| erasure.py | Validates submissions for this problem |
How verification works
The verifier checks that the file has exactly 16 strings of 20 letters, that every pair commutes and that the 16 are independent over GF(2). An erasure set E is correctable when every Pauli operator on E that commutes with the stabilizers is itself a stabilizer. With r(E) the GF(2) rank of the generator matrix restricted to the qubits of E, that holds exactly when 2|E| − r(E) = 16 − r(complement of E). A subset recursion computes r for all 1,048,576 sets with integer arithmetic, and P = Σ Nⱼ (1/10)ʲ (9/10)²⁰⁻ʲ is summed as an exact fraction, Nⱼ being the number of correctable sets of size j. Nothing is sampled and no floating-point number enters a decision. A second program, written separately from the specification, enumerates all 16,777,216 elements of the normalizer, marks the supports of the logical operators, closes them upward over supersets and counts the uncorrectable sets; it agreed with the verifier on every test file (see the statement for the counts).