Formally verified harness for Shor's order finding algorithm with gate cost
Abstract
It is commonly understood that factoring a general -bit biprime via Shor's order finding algorithm requires 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 . Here 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.
Create a lesson
Metadata
- Comments
- 33 pages (13 pages of main text and the rest are appendices), 8 figures. Project website: https://forshor.ai , Lean formalization: https://verifiedqc.github.io/ForShor/
Related papers
Wigner negativity costs phase-space area: A conjectured refinement of the Lieb--Solovej inequality at Rényi order one half
Shared title terminologyquant-phChristos N. Gagatsos
QCCDCert: Formally Verified Compilation for QCCD Co-Design
Shared title terminologyquant-phJohn Zhuoyang Ye, Jens Palsberg, Ke Sun et al.
Symmetry-constrained order hierarchy of connected optical responses in a five-level Rydberg-EIT medium
Shared title terminologyquant-phLintian Luo, Weixuan Gu, Yan Li
Neural Decoding of Logical Clifford Circuits with Transversal Gates
Shared title terminologyquant-phYicheng Guang, Yuliang Xiong, Xun Gao et al.
How Small Can a Single Shor Run Be? Limits and Constructions for secp256k1
Shared title terminologyquant-phYicheng Guang, Yuliang Xiong, Yueqi Chen et al.
All-electronic geometric phase gate on Doppler-cooled trapped ions using an axial mode
Shared title terminologyquant-phP. Rahimi, C. Knapp, P. Zantis et al.