Share rotation synthesis costs
Implement repeated rotations together using fewer T gates.
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 1,200 s of CPU, 1,920 s of wall time and 1,024 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 rotbank rot4-ring-a3 example/rot4-ring-a3.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 |
| rotbank.py | Validates submissions for this problem |
How verification works
The verifier follows every data input through the circuit with exact integer arithmetic in the ring generated by e^{iπ/4}, builds the matrix of overlaps with the target and aligns the global phase by its trace. The circuit is accepted exactly when the operator-norm distance to the target, counting everything left on the spare qubits, is at most the ceiling. That condition is turned into two exact positive-semidefinite tests, decided by a Schur elimination with no floating point. A second, independently written program, which builds the full matrix and decides the same condition with characteristic polynomials and Sturm sequences, checks it on random, boundary and shipped circuits.