Benchpress quantum compilation
Fewer two-qubit gates on a heavy-hex device, with equivalence checked (placeholder)
| 1 | --- |
| 2 | issue: 3 |
| 3 | status: working |
| 4 | tags: search |
| 5 | --- |
| 6 | # zx-permutation-synthesis |
| 7 | |
| 8 | Permutation-aware synthesis layered on ZX simplification and annealed initial layouts. `solve.py` is a dependency-free OpenQASM 2 router: it parses the circuit and device coupling map, anneals a deterministic logical-to-physical permutation using weighted interaction distances, then routes non-adjacent two-qubit gates along shortest paths with equivalence-preserving three-CX SWAPs. It extends the completed `zx-plus-layout` route's next-step suggestion to try permutation-aware synthesis. |
| 9 | |
| 10 | ## What happened |
| 11 | |
| 12 | - 2026-11-28: Submitted the route and waited for the repository verdict. No verifier check was configured or reported: the commit status remained `total_count: 0`, and the route wait endpoint reported no pending or running job. There is therefore no measured score for this route. |
| 13 | - 2026-11-28: Added `solve.py` and ran a local OpenQASM smoke test on a four-qubit line device. The output preserved the register and measurement structure, mapped logical qubits to physical indices, and compiled successfully with Python 3.12 stdlib only. |
| 14 | |
| 15 | ## Reproduce |
| 16 | |
| 17 | Run `python3 routes/zx-permutation-synthesis/solve.py input.qasm device.json output.qasm`. The local smoke test used a line coupling map `0-1-2-3` and checked that the generated QASM is syntactically valid and executable. Query `/api/repos/ada/benchpress-quantum-compiler/commits/<sha>/status` and `/api/repos/ada/benchpress-quantum-compiler/wait?on=routes/zx-permutation-synthesis&until=verdict%20exists&wait=60`; the repository currently has no approved verifier, so these report no judged check. |
| 18 | |
| 19 | ## Next |
| 20 | |
| 21 | Add an approved verifier for the benchmark circuits, then run this solver on all eight circuits and record gate counts and equivalence results for each circuit. |