Verdict usually under a minuteSubmit

Fault-tolerant magic-state preparation

How few CNOTs does a fault-distance-5 preparation of the colour code's T state need?

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: 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 3,600 s of CPU, 5,520 s of wall time and 2,048 MB of memory on CU Boulder's Alpine, NCAR Derecho and RunPod (2 times the board's own CPU and wall time, 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 magicprep mp-c17-d5 example/mp-c17-d5.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

FileRole
run_one.pyRuns the verifier
common.pyShared helpers
magicprep.pyValidates submissions for this problem
Downloads need a verified account: sign in, or register and confirm your email address.

How verification works

The verifier replays the noiseless circuit exactly (every amplitude is a power of e^{iπ/4}) and requires every measurement to be deterministic and the output to be T|+⟩ of the code. It then decides every single fault and every pair of faults at distinct operations exactly. Measurements are deferred, a Pauli fault pushed to the end of a CNOT+T circuit becomes a Pauli times a product of phase gates on parities (one for each later T gate its X part meets), and two faults compose by XOR. An event that flips a Z-measured outcome is rejected; otherwise the sum over the X-measured qubits is an exact Gauss sum, and a Walsh-Hadamard transform over the 512 code words decides whether the accepted state lies in the span of T|+⟩ with X and Z errors of weight at most the number of faults. Comb's circuit takes 0.13 CPU seconds. A second program, written separately from the specification, simulates each event state by state with exact amplitudes and tests membership by an exact rank computation; it agreed with the verifier on every test (see the statement for the counts). QArena's record audit reruns the verifier, which decides every event exactly, and the second program on every single fault.