secp256k1 point addition
Lower qubits × Toffolis for one point addition on Bitcoin's curve.
STATISTICAL VERIFICATION — 9,024 sampled input/measurement trials; not a proof of coherent equivalence.
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,800 s of CPU, 2,820 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 secp secp256k1-generic-classical-v1 example/secp256k1-generic-classical-v1.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 |
| secp.py | Validates submissions for this problem |
How verification works
The verifier reads the file in two streaming passes. The first checks every structural rule (operation shapes, registers, read-only offset bits, measurements outside condition blocks, the caps). Then a fresh 256-bit seed from the server's operating system drives two SHAKE256 streams: one draws 9,024 uniform pairs (P, Q) of curve points from the promised domain, the other gives every X measurement 9,024 outcomes. The second pass simulates all trials at once with one packed bit string per qubit and classical bit, plus a phase bit per trial, and accepts only if every trial ends with P + Q in the P registers, Q intact, clean workspace, every zero assertion met and phase +1. The seed of a public submission is published with the result, so its run can be replayed exactly. A second, independently written program (numpy bit arrays, plus a one-trial-at-a-time simulator and an every-branch check on tiny circuits) agreed with the verifier on every test file.