Formally verified harness for Shor's order finding algorithm with $O(n^{2+\epsilon})$ gate cost
Anirudh Suresh, Joshua M. Courtney, Runzhou Tao, Yudong Cao
Key points
From the paper's conclusion- We present a formally verified harness that ingests a design specification (namely a "policy" that describes a recursive circuit design scheme) from an external source, which may be an AI agent, and produces a set of formalized proofs covering mathematical correctness of the algorithm implementation, asymptotic scaling of the end-to-end gate cost, as well as the correctness of translating the veri
Abstract
It is commonly understood that factoring a general $n$-bit biprime via Shor's order finding algorithm requires $\widetilde{O}(n^3)$ gates by leveraging schoolbook integer arithmetics for addition and multiplication. Recent developments in quantum arithmetic circuits leveraging recursive Toom-Cook schemes have improved the cost scaling to $O(n^{2+\epsilon})$. Here $\epsilon>0$ depends on algorithm implementation details of the recursive multiplication steps, which allow for a vast number of design choices. The challenge in navigating such design space also presents an opportunity for demonstrating innovative practices in quantum software engineering in the era of open agentic science. We present a formally verified harness that ingests a design specification (namely a "policy" that describes a recursive circuit design scheme) from an external source, which may be an AI agent, and produces a set of formalized proofs covering mathematical correctness of the algorithm implementation, asymptotic scaling of the end-to-end gate cost, as well as the correctness of translating the verified algorithm to a detailed circuit implementation with an intermediate representation. The harness is published as an open challenge where human researchers and AI agents can search for more efficient factoring circuits while retaining machine-checked guarantees of correctness and end-to-end asymptotic complexity.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Reducing RSA-2048 Factoring Resources Below One Billion Toffolis via LLM-Driven Verifiable Quantum CompilationarXiv · 2026
- SAQR-QC: A Logic for Scalable but Approximate Quantitative Reasoning about Quantum CircuitsProceedings of the ACM on Programming Languages · 2026
- Automating quantum circuit optimization with AI agentsarXiv · 2026
- The Cost of a Real Grover Oracle: Minecraft Seed Search from Software to Quantum HardwarearXiv · 2026
- Connecting Quantum Proof Systems and Hoare LogicarXiv · 2026
- Discovering state-of-the-art quantum circuits with large language modelsarXiv · 2026