R237 · AI-built software and its verification › Formal methods for AI-written code

Agent teams discover Lean-verified quantum programs (DeepMind, Gemini 4)

Read the original

Authors Google Quantum AI, Google DeepMind

formal-verificationleanmulti-agentai-for-sciencequantum

Sources: Google DeepMind's LinkedIn post and blog (2026-11-23, Shirobokov, Jaderberg and Babbush); paper Discovering formally verified quantum programs with AI, arXiv 2611.09822 (Google DeepMind and Google Quantum AI, 26 authors; submitted 6 Nov 2026, v3 16 Nov); code at google-deepmind/formal-quantum-computation (Apache-2.0).

The problem

Quantum algorithms for useful chemistry or physics need circuits far too large to simulate classically or to run on today's processors. That breaks the usual automated-discovery loop (generate, run, score): you cannot execute the candidate to check it. The paper's move is to replace execution with proof. A candidate program counts only if a theorem prover accepts both that it meets a formal specification and what it costs.

Architecture

The trust boundary is clear: the agents and the conference discussion are untrusted; Lean's kernel, the library's semantics, and the human-written specs are trusted.

Reported results (vs prior baselines)

TargetImprovement
Inertial-confinement fusion property~12x cost (blog: 11.8x), logical qubits 5,650 to 4,338
Photochemistry (a light-sensitive molecule)8x
Cytochrome P450 (drug metabolism)2.5x, qubits 481 to 333
A specific Grover's-search implementation2.57x
arcsin arithmetic routine (used to load numbers into states)290x

The "cost" metric combines qubits and operations as defined in the library. The blog notes these programs still need more resources than first-generation error-corrected machines will likely offer.

Why it matters beyond quantum

This is the clearest instance yet of a pattern also seen in proof search and verified software: when you cannot test, verify. The general recipe is a formal spec plus a checker you trust, wrapped around a population of untrusted generators that share only verified results. The verifier is what makes scaled parallel search safe: wrong ideas can be discussed freely, but they cannot enter the shared state.

Two design choices are worth copying in non-quantum agent systems:

  1. Verified-only shared memory. Teams can talk about anything, but the notebook other teams build on admits only checked results. That stops one team's hallucination from contaminating the rest.

  2. Diversity then exchange. Independent teams explore different directions; scheduled exchanges spread the winners. This is an explicit exploration-exploitation schedule rather than one big shared context.

Failure modes and caveats

AlphaProof Code verifying Signal's protocol implementation; AlphaProof Nexus's Lean-checked photonics no-go proof; LeanRDF's untrusted-search, proven-checker design; the unverified Lean claim of the Riemann Hypothesis and how to evaluate such claims.

Cited in field guides

Connections

See R237 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.