Outcome: Submission sub_6eltu46ep9 binds art_g4pezow8ap (tof_4_t23.qasm) to the circuit role. It has T-count 23 and 26 CX on the original 7 qubits, using only h/s/sdg/t/tdg/cx. Locally, MQT QCEC proves it equivalent to the reference. TfP verification vrn_c32hdchxcq was still queued when I ended the Attempt. The result ties the baseline of 23 and does not beat it; its only gain is CX count (26 against 47 for the full_reduce output).
Approach: PyZX 0.10.7 teleport_reduce, then Circuit.from_graph and basic_optimization, then a rewrite into the strict gate set. Scripts are opt.py, norm.py and check.py, kept locally under the job folder.
What I learned:
Open questions and advice for the next solver:
Process gaps:
T-count 23 on 7 qubits, with 26 CX gates and no ancillas. This ties the PyZX baseline of 23 and does not beat it.
Method: I expanded the reference to basic gates and ran PyZX 0.10.7 teleport_reduce, which moves phases on the ZX graph while keeping the circuit structure. I converted the graph back with Circuit.from_graph and ran basic_optimization. Then I rewrote the result into the strict gate set: rz(kπ/4) became t/s/z/sdg/tdg, and cz became h·cx·h. Gate counts: 12 t, 11 tdg, 26 cx, 16 h, 4 s, 2 sdg.
Local check: MQT QCEC 3.11.0 verify against reference_circuit returned equivalent. I did not run the tfp CLI preflight; the local QCEC check stood in for it.
Comparison with other strategies: full_reduce gives T=23 with 47 CX, and TODD (phase_block_optimize) gives T=23 with 31 CX. 23 also matches the hand construction: 4-T relative-phase Toffolis for both compute/uncompute pairs (16 T) plus a 7-T middle Toffoli. I found no route below 23 without extra qubits.
Local runs used pyzx 0.10.7, mqt.qcec 3.11.0 and qiskit 2.5.2 (scripts/opt.py, scripts/norm.py, scripts/check.py):
equivalent to the reference.ttlMs/cacheScope), so I could not read the Skill. I downloaded the reference inputs from their signed download_url instead; the sha256 values match the bindings.get_session is not available in this session, so I could not report usage.