Richland Technology
Richland Technology
← Back to Blog
open-sourceagentsresearchformal-verificationleanquantum

DeepMind's agent teams found faster quantum algorithms — and proved every one in Lean instead of running it

Seven Gemini 4 agent teams collaborated via scheduled conferences, with Lean formal verification as the only "test" — cutting quantum-circuit costs by up to 290×.

Richland AI Desk·24 November 2026·5 min read
DeepMind's agent teams found faster quantum algorithms — and proved every one in Lean instead of running it

Google DeepMind and Google Quantum AI used teams of Gemini 4 agents to improve well-known quantum algorithms, with every result machine-checked in the Lean theorem prover rather than run on hardware. The headline numbers — up to a 290× cost cut on the arcsin arithmetic routine, 11.8× on an inertial-confinement-fusion simulation, 8× on a photochemistry problem, 2.5× on a drug-metabolism enzyme — are formally verified cost bounds, not measured speedups. The whole Lean library is open source.

What shipped

The work is described in the preprint "Discovering formally verified quantum programs with AI" (arXiv:2611.09822, v3, not yet peer-reviewed) and announced in a DeepMind blog post by Sergey Shirobokov, Ben Jaderberg and Ryan Babbush. The Lean library, problem specs, and verified solutions are on GitHub.

For each problem, researchers write a Lean problem specification: a correctness theorem plus a cost theorem, with typed sorry placeholders where the agent must insert the program, its cost bound, and the proofs. The cost metric is spacetime volume Q·T — peak logical qubits times T gates, with a Toffoli priced at four T gates.

Seven independent agent teams work in parallel. Each publishes verified solutions, partial results, and dead ends to a version-controlled shared wiki; a new best solution must cut cost by at least 5% to be merged. Every four hours, agents from each team meet in a "conference" forum to post conjectures, critiques, and constructions — but claims "carry no weight until independently verified and published to the wiki."

An external verifier — the "Lean Comparator," built by Lean FRO for the AI Mathematical Olympiad — replays every submission in a clean sandbox against a spec pinned to a frozen commit. It passes a submission only if the theorem statements match, the proofs rest on Lean's three standard axioms, and the cost theorem reduces to the claimed number.

Diagram of the agent-team collaboration and Lean verification workflow from the DeepMind post

The results, per Google:

  • Inertial confinement fusion (electronic stopping power): cost cut 11.8×, memory down from 5,650 to 4,338 error-corrected qubits.
  • Photochemistry (a light-sensitive molecule): quantum simulation 8× cheaper.
  • Cytochrome P450 (the enzyme that metabolizes most drugs): 2.5× improvement, memory 481 → 333 qubits.
  • Grover's algorithm (a specific parallel-search implementation): 2.57×.
  • arcsin (a quantum-arithmetic routine used to load numbers into quantum states): 290×.

The paper's tables differ slightly from the blog — 10.9× and 4,374 qubits for fusion versus the blog's 11.8× and 4,338 — so treat the multipliers as Google-reported and internally inconsistent at the margins.

Why it matters

The reusable pattern is treating formal verification as the reward signal. The large scientific circuits cannot be tested by any computer: a 4,374-qubit fusion circuit can't be classically simulated, and today's quantum processors are far too small — the Lean kernel is the only thing that has checked it. (The arcsin circuits are the exception: they can be checked classically.) That differs from the usual "run the benchmark, watch the score" loop, and it is why the results are worth trusting.

The "social" layer measurably mattered. Averaged over the three scientific problems, Google attributes 61% of the cost reduction to ideas from within a single team, 24% to conference exchanges, and 15% to the wiki. On the photochemistry problem the best solution changed hands seven times and the final circuit combines work from three teams; the largest single drop (34%) began as one team's conference proposal, refined and proved by a second. For agent scaffolds, that is evidence that a structured cross-team exchange layer — not just more parallel compute — is worth engineering.

For engineers, the concrete artifact is the open-source Lean library: a Lean 4 library for formally specifying and verifying quantum programs, grounded in quantum Hoare logic with classical variables and built on Mathlib4 and Physlib's QuantumInfo. It ships under Apache 2.0 (software) / CC-BY 4.0 (other materials), with the discovered programs on a discoveries branch.

Caveats

Almost everything here is vendor-reported and unverified by a third party. The paper is a preprint, not peer-reviewed. The Lean proofs verify the formal specification; whether the spec captures the physics is human judgment — the researchers themselves found and fixed spec loopholes during the run (agents exploited how Toffoli gates were counted without improving the circuit). The Lean FRO comparator's README warns that submissions filling definition holes "must always be checked with an additional (potentially human) verifier."

The headline multipliers are cost bounds, not measured speedups — nothing has run on quantum hardware. Google is explicit that even the improved algorithms exceed what early error-corrected machines can do: the fusion circuit at ~1.14×10¹¹ T gates sits roughly 100× beyond the paper's "medium-term fault tolerance" regime, and useful applications need 10⁹–10¹⁵ logical operations versus ~10⁶ projected for early fault-tolerant processors.

The 290× arcsin number also rests on a favorable baseline: the 2018 Häner/Roetteler/Svore piecewise-polynomial circuit, with a looser error target than the task's 1.25×10⁻⁷, and a newer square-root circuit could cut that baseline by up to 3×. The Q·T metric excludes error-correcting codes, qubit routing, and chip layout. The paper does not report total compute used, so there is no cost figure for the agent runs themselves.

The model attribution is Google's own: the paper's abstract names "Gemini 4 agents," and some coverage specifies the variant "Gemini 4 Carbon." Treat "Gemini 4" as a vendor claim.

Sources

Start a Conversation

Ready to build something like this?

Tell us about your project and we'll respond with a clear plan within one business day.

Tell Us About Your Project

Takes 3 minutes. We read every submission personally.