Subject: Personal Best (Gold) – cost model can be changed from inside the submission
Hi QHack team,
We’d like to report a scoring issue in the Personal Best (Bronze/Silver/Gold) challenges.
What happens
`submission_circ` runs inside `compile_circuit`, in the same module as the grader. So a submission can change grader globals such as `GATE_COSTS` (for example, setting the RX/RY/RZ cost to 0), or `ROTATION_COST`, before `tape_cost` runs. The circuit stays exactly as expensive, but the reported cost drops and Gold is awarded.
Why we think this matters
An honest circuit can’t reach Gold under the stated cost model:
- A Haar-random 5-qubit unitary has 4^5 - 1 = 1023 real parameters. Only RX/RY/RZ angles carry continuous parameters (GlobalPhase is a scalar), so an exact circuit needs at least 1023 rotations, a cost of 45,012. That is a 21.06% saving at most, and Gold needs 60% (cost <= 22,809).
- Replacing rotations with Clifford+T approximations doesn’t help at the required 1e-8 entrywise accuracy. Each rotation then needs roughly 76-90 T gates (gridsynth / counting bound), more than the 44 a rotation costs.
- Our team reached the 1023-rotation optimum (Silver, 21.0%) and verified both bounds numerically against the grader’s own simulation.
Many teams reached Gold within minutes of Group 3 unlocking, which is consistent with the cost table being modified rather than with a new synthesis method.
Suggested fix
Re-grade Personal Best submissions with the cost and accuracy computed in a separate, unmodifiable context: for example, take the tape the submission produces, then run `compile_circuit`, `tape_cost` and `tape_matrix` in a fresh process (or on deep copies of the grader constants). Alternatively, check that `GATE_COSTS`, `ROTATION_COST`, `AUX_WIRE_FACTOR`, `ATOL` and the grader functions are unchanged after `submission_circ` returns.
Thanks for running QHack. We’re happy to share our analysis scripts if that helps.