Fewest two-qubit gates to prepare the logical zero state of IBM's gross code
The unverified preparation is the first stage of every verified-preparation scheme for the gross code, so its two-qubit gate count is the number of places where a fault can enter before verification. Published circuits differ by a factor of two on it (330 to 687 CX), and a simple construction ties the smallest of them at a shallower depth. How few entangling gates does the logical zero state of IBM's memory code 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: 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 300 s of CPU, 570 s of wall time and 2,048 MB of memory on the Mac mini, and 600 s of CPU, 1,020 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 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 codeprep gross-144 example/gross-144.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 |
| codeprep.py | Validates submissions for this problem |
How verification works
The verifier reads the instance's X-check matrix (QECirc's matrix, 66 independent rows) and computes a basis of the Z-type operators that commute with it. These 144 operators, +X on every check row and +Z on every kernel vector, fix the logical zero state uniquely. The verifier conjugates them through the circuit backwards with exact bit operations and signs, and accepts exactly when every one comes out as a product of Z operators with sign +1, that is, when every one stabilizes the final state. Any gate list that reaches the state is accepted, however it was found. A second program, written independently from the contract, simulates the circuit forwards and tests the same operators by elimination; the two agreed on every file of the pre-launch cross-check (see the statement).