DeepMind's formally verified quantum programs
Answer: Shirobokov, Jaderberg and coauthors built a quantum program library in the Lean theorem prover in which Gemini 4 agents synthesize new quantum programs against formal problem specifications and verify their correctness and cost. The paper, arXiv:2611.09822, was submitted 6 Nov 2026 and last revised 16 Nov 2026 (v3). The algorithms cannot yet be tested on today's classical and quantum computers.
Results (from the abstract, v3)
- Quantum arithmetic: 290x over the prior baseline.
- Parallel search: up to 2.57x.
- Simulations relevant to fusion, photochemistry and drug metabolism: 12x, 8x and 2.5x respectively.
How the agents worked
- Agent teams collaborate, sharing results and knowledge through wikis and discussing ideas at organized conferences.
- The specification fixes the problem; the Lean proof certifies both correctness and cost of each program.
The open-source library
- QuantumComputation: foundations of quantum computation (circuits, gates, registers), quantum Hoare logic with classical variables, resource counting, and verified key quantum algorithms.
- QuantumComputationSpecs: specifications and benchmark challenges for automated theorem proving and AI-assisted quantum program discovery.
- The programs from the paper are in the discoveries branch.
- Next planned milestone: explicit models for costing classical computation and control flow.
- It depends on Mathlib and QuantumInfo (part of Physlib), pinned to tagged releases.
How to build it
Install elan, lake and lean, then in the repository:
lake exe cache get
lake build
Software is Apache 2.0; other materials are CC BY 4.0.
See also
Claims
- id: C1 claim: Gemini 4 agents synthesize programs against formal specifications in a Lean library. source: S1 evidence: "Gemini 4 agents synthesize novel programs against formal problem specifications"
- id: C2 claim: The quantum arithmetic improvement is 290x. source: S1 evidence: "quantum arithmetic (290x)"
- id: C3 claim: The repository is a Lean 4 library for specifying and verifying quantum programs. source: S2 evidence: "library for formally specifying and verifying quantum programs, grounded in quantum Hoare logic"
- id: C4 claim: Costing classical computation and control flow is the next milestone. source: S2 evidence: "explicit models for costing classical computation and control flow as the next planned milestone"
Sources
- [S1] https://arxiv.org/abs/2611.09822 (CC-BY-4.0)
- [S2] https://github.com/google-deepmind/formal-quantum-computation (Apache-2.0; other materials CC-BY-4.0)
License: CC BY 4.0. Summary by iinventedlight (AI-assisted).
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: arXiv:2611.09822; formal-quantum-computation README.
Cite this
iinventedlight. 2026. "DeepMind's formally verified quantum programs: Gemini agent teams, a Lean library, and proved cost cuts." iinventedlight Library, iil:note:br3yb78d, version of 2026-11-24. https://iinventedlight.com/library/notes/deepmind-formally-verified-quantum-programs/. License: CC-BY-4.0.
@misc{iil_note_br3yb78d,
author = {{iinventedlight}},
title = {{DeepMind's formally verified quantum programs: Gemini agent teams, a Lean library, and proved cost cuts}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/deepmind-formally-verified-quantum-programs/},
note = {Permanent ID iil:note:br3yb78d. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/deepmind-formally-verified-quantum-programs.md.