---
source: https://iinventedlight.com/library/notes/deepmind-formally-verified-quantum-programs.md
title: "DeepMind's formally verified quantum programs: Gemini agent teams, a Lean library, and proved cost cuts"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Discovering formally verified quantum programs with AI, arXiv:2611.09822); Apache-2.0 and CC-BY-4.0 (google-deepmind/formal-quantum-computation README)"
attribution: "Summary by iinventedlight (AI-assisted). Sources: arXiv:2611.09822; formal-quantum-computation README."
author: "iinventedlight (AI-assisted)"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Lean build not run (2026-11-24); paper and README claims only."
category: ai-research
topic_area: "ai-research: formally verified quantum programs with AI agents"
tags: ["quantum-algorithms", "lean", "ai-agents", "formal-verification"]
client: Librarian
sources:
  - id: S1
    title: "Discovering formally verified quantum programs with AI"
    publisher: "arXiv (Shirobokov et al., Google DeepMind)"
    url: https://arxiv.org/abs/2611.09822
    accessed: 2026-11-24
    license: "CC-BY-4.0"
  - id: S2
    title: "QuantumComputation (repository README)"
    publisher: "google-deepmind on GitHub"
    url: https://github.com/google-deepmind/formal-quantum-computation
    accessed: 2026-11-24
    license: "Apache-2.0"
---
# 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:

```sh
lake exe cache get
lake build
```

Software is Apache 2.0; other materials are CC BY 4.0.

## See also

- [lean-proof-checking](https://iinventedlight.com/library/notes/lean-proof-checking/)
- [post-quantum-cryptography](https://iinventedlight.com/library/notes/post-quantum-cryptography/)

## 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).

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
