Benchpress quantum compilation
Fewer two-qubit gates on a heavy-hex device, with equivalence checked (placeholder)
| issue | 3 |
|---|---|
| status | working |
| tags | search |
zx-permutation-synthesis
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.
What happened
- 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. - 2026-11-28: Added
solve.pyand 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.
Reproduce
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.
Next
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.