Lean-QuantumAlg: A Framework for AI Agents to Produce Quantum Algorithms that Humans Can Trust
Lei Zhang, Mingrui Jing, Yusheng Zhao, Jiahong Liu, Xin Wang
Key points
From the paper's conclusion- We demonstrate the framework on nine AI-formalized quantum algorithms, from Grover search to quantum attacks on RSA-2048 and P-256, with less than 1% of each algorithm's imported source code requiring statement-level human review once the shared framework has been audited.
Abstract
AI agents are increasingly capable of constructing quantum algorithms and proofs, yet machine-checked proofs alone cannot guarantee that the intended problem is solved or that resource claims match the verified computation.Here we introduce Lean-QuantumAlg, a Lean 4 framework for trustworthy AI-assisted development of quantum algorithms.Its Algorithm-Solves-Problem contract binds correctness, success probability, borrowed-state restoration and quantum and classical resource bounds to a single execution, while separating the guarantees that Lean checks from the problem specifications and execution models that humans review. We demonstrate the framework on nine AI-formalized quantum algorithms, from Grover search to quantum attacks on RSA-2048 and P-256, with less than 1% of each algorithm's imported source code requiring statement-level human review once the shared framework has been audited. By integrating reusable mathematical foundations, certified algorithmic primitives and execution-grounded verification, Lean-QuantumAlg provides a basis for AI agents to construct and certify quantum algorithms, opening a path toward scalable AI-driven discovery of quantum algorithms.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Discovering formally verified quantum programs with AIarXiv · 2026
- Automating quantum circuit optimization with AI agentsarXiv · 2026
- Leveraging verifiable structure in quantum circuits to find more efficient compilations with agentic AIarXiv · 2026
- Proof-Carrying Contracts: Commitments AI Agents Cannot BreakarXiv · 2026
- Agentic AI for Discovering Fault-Tolerant Quantum CircuitsarXiv · 2026
- Trust, Accountability and Control: Post-Quantum Authentication and Evidence-Driven Authorization for Artificial Intelligence AgentsInformation · 2026