Lean-Mechanized QPPM Compiler Cuts Verified Logical Measurement Depth 17.9% on QASMBench
The paper presents the first fully mechanized verification of a Pauli-product measurement compiler in Lean, proving both semantic preservation and depth reduction on QASMBench. It unifies quantum Hoare logic with classical outcome tracking to certify fault-tolerant compilation steps. The approach supplies machine-checked depth and error bounds rather than relying on unverified optimizers.
The work defines QPPM as a terminating language whose weakest-precondition semantics, expressed via store-indexed matrix assertions, directly encodes both quantum state and classical outcome constraints required for fault-tolerant gate compilation. Soundness and relative completeness follow immediately from termination, enabling compositional verification of Clifford+T lowering, magic-state injection, outcome hiding, and post-optimization scheduling without separate proof obligations for each transformation.
Prior quantum Hoare logics handled either pure state evolution or classical control separately; the present calculus unifies them so that an optimizer pass can be shown to preserve every externally observable outcome while eliminating redundant measurements. A separate approximation relation then bounds synthesis error propagation to trace distance, allowing the pipeline to select the lowest certified-depth circuit whose error remains below a user threshold.
The 17.9% depth reduction is measured on logical rounds after verified reordering and fusion, yet the evaluation remains confined to small-suite circuits; scaling the certificate-checked pipeline to circuits with hundreds of logical qubits will require both larger verified magic-state factories and tighter integration with surface-code lattice surgery schedulers already under active development.
Next steps include extending the mechanization to lattice-surgery primitives and embedding the certificate generator inside existing compilers such as t|ket> or Qiskit so that depth bounds become part of routine compilation rather than post-hoc verification.
QPPM team: By end of 2027 at least one open-source quantum compiler will ship the verified fusion pass on circuits exceeding 50 logical qubits with certified depth bounds.
Sources (2)
- [1]Primary Source(https://arxiv.org/abs/2610.31694)
- [2]Supporting Source(https://arxiv.org/abs/1311.6104)