DeepMind's AI Agents Sped Up Quantum Algorithms: What Was Proved
Gemini agents found cheaper quantum circuits, each proved correct in Lean: 2.5x on P450, 481 to 333 qubits. What it shows and why it isn't about crypto.

Google DeepMind and Google Quantum AI used teams of AI agents to find cheaper versions of known quantum algorithms, and proved each new version correct, with its cost bounds, in the Lean theorem prover. One example: a drug-metabolism simulation became 2.5 times cheaper and needs 333 qubits instead of 481. The work makes no claim about breaking encryption.
Sources checked 28 November 2026.
The results are in a DeepMind blog post of 23 November 2026 and the paper Discovering formally verified quantum programs with AI on arXiv (25 authors; first posted 6 November 2026, version 3 on 16 November 2026). arXiv is a preprint server, so the paper has not been through peer review.
Did AI discover new quantum algorithms?
Not new ones. The agents took quantum algorithms that experts had already published and searched for versions that use fewer resources. Researchers wrote a formal specification of each problem and launched independent teams of agents built on Gemini 4 Carbon models, the paper says, with "high-level optimization prompts".
The blog describes how the teams worked. An idea was checked in Lean before it entered a shared notebook, and agents from the separate teams met at what the paper calls "scheduled forum conferences" to critique each other's proposals. Humans chose the problems and supervised progress.
The output is not a new kind of quantum computer or a new physics result. It is better-engineered programs, each with a machine-checked proof.
What is Lean, and why does a proof matter here?
Lean is a programming language and proof assistant: you write a mathematical claim and a proof, and the computer checks every step. If the proof is wrong, it does not compile.
That matters for quantum programs because there is no easy way to test them. The blog notes that these circuits cannot be run on classical computers or on today's small quantum processors at the sizes that matter. A proof is the substitute for a test.
The team released the Lean library on GitHub as formal-quantum-computation. Its README describes it as a Lean 4 library "grounded in quantum Hoare logic with classical variables", with a separate set of specifications and benchmark challenges.
Which quantum algorithms got faster, and by how much?
The paper reports five headline results. Each figure compares the agents' solution with the best published baseline the authors used:
| Problem | What it is for | Result reported in the paper |
|---|---|---|
| Cytochrome P450 | Simulating Compound I of Cytochrome P450, enzymes that the paper says "break down most human medicines" | Spacetime cost 4.37×10¹¹, a 2.49× reduction (2.5× in the abstract); baseline on 481 logical qubits, solution at 333 qubits |
| Fusion stopping power | A property relevant to laser-driven (inertial confinement) fusion | 11.8× lower spacetime cost; 4,338 logical qubits against a baseline of 5,650 |
| Photochemistry (C23H20N3O) | Time evolution of a light-sensitive molecule | 6.06×10¹⁴, an 8.22× reduction from 4.98×10¹⁵ |
| Grover search | Finding all marked items in an unstructured search | Up to 2.57× fewer expected oracle rounds when there are two or more targets; 1.22× for finding any one |
| arcsin routine | A building block that loads numbers into quantum states | 290× below a piecewise-polynomial baseline |
In practice: the P450 result is the clearest illustration. The paper sets a cumulative baseline of 1.09×10¹² on 481 logical qubits, built from the best published estimate plus later compilation improvements. The agents' solution comes in at 4.37×10¹¹. The 333-qubit figure appears in the paper's Figure 1b and in the blog, which says the saving came from replacing bulky memory lookups.
What is "spacetime cost"?
It is the paper's yardstick for fault-tolerant circuits, defined as "the number Q of qubits times the number 𝒯 of T gates". T gates are the expensive operations on error-corrected hardware, so the product captures both how big the machine must be and how long the run takes.
The qubits here are logical qubits, meaning reliable qubits built from many physical ones through error correction. Our explainer on logical qubits and error correction covers why that distinction matters.
Do faster quantum algorithms change the Q-Day timeline?
No. Q-Day is the day a quantum computer can break today's public-key encryption, explained in our Q-Day guide. This work does not touch that question.
None of the five problems is cryptographic. The paper's introduction names cryptanalysis in its first paragraph, as one of the general areas quantum computers may one day tackle. None of its five headline results concerns Shor's algorithm, RSA, factoring or elliptic curves, and the blog does not discuss cryptography at all.
The method could in principle be pointed at other algorithms. The paper does not do that, and we will not guess at what it would find. Any future claim about code-breaking costs deserves the same reading as any other estimate: which qubits, which error model, which assumptions. Our checklist for that is in reading the cat-qubit RSA-2048 estimate.
Your post-quantum plan does not change because of this paper.
What the agent results do not show
The blog is direct about the main one: running these algorithms in full scientific simulations would still need more computing resources than the first error-corrected quantum computers are likely to provide. Cheaper does not yet mean runnable.
Three more to keep in mind:
- A proof covers the specification. Lean confirms that the program does what the formal statement says. If a specification missed something about the real problem, the proof would not catch it. Researchers, not agents, wrote the specifications.
- Baselines come from earlier papers. The speedups are measured against published figures and formulas, which the authors re-evaluated; for fusion, for example, they take "the 5,650 logical qubits and parameters in its Table 2" of the earlier work.
- Preprint status. The results have not been through peer review yet.
Why does this matter beyond quantum?
Because it pairs AI-generated work with a check that does not depend on trusting the AI. The agents could propose anything; only ideas that passed Lean's checker counted.
That is the same pattern we described in AI for science research: AI moves fastest where an answer can be verified cheaply. Here the verifier is a proof checker rather than a lab.
Going deeper: for security and IT teams
What is formally verified, and what is not. According to the paper, the library proves both functional correctness and resource bounds. Correctness uses Hoare triples (precondition, program, postcondition), "proved backwards from the postcondition by computing the weakest preconditions". Cost uses a resource-counting framework that "proves bounds on both expected and worst-case resource costs across branches and loops". A checker then confirms "that all target theorems, underlying definitions, and allowed axioms are unchanged", which stops an agent from proving an easier theorem than the one asked for.
The trusted computing base. As with any formal method, you trust the Lean kernel, the libraries the work builds on (Mathlib, and QuantumInfo from Physlib, at pinned tagged releases per the README), the list of allowed axioms, and above all the human-written specifications. The paper's overview of its checker (section 1.2) refers to "allowed axioms" without naming them, so look up the allow-list in the repository before relying on the proofs. The cost model counts logical qubits and T gates, so read the guarantees as being about logical circuits on an ideal error-corrected machine, not about noisy hardware.
The cost model and its assumptions. Spacetime cost Q·𝒯 counts logical qubits and T gates. It does not count classical control or decoding work; the README names "explicit models for costing classical computation and control flow" as the next planned milestone. The Grover result uses a different metric again: oracle queries, with the oracle "assumed to dominate runtime".
Reproducing it. The repository is public under Apache-2.0 (software) and CC-BY 4.0 (other materials). The README's build steps are lake exe cache get then lake build; the discovered programs sit on a separate discoveries branch. Building it locally is the evidence that the proofs check, rather than relying on the paper's claim. The README also states "This is not an official Google product", so treat it as research code, not a supported tool.
Threat model, for the AI side. The design is a useful reference for anyone letting agents write code. The agent is treated as untrusted: it may produce wrong or misleading output, or game the objective. The controls are a fixed specification the agent cannot edit, a mechanical checker that accepts only valid proofs, and a check that the target theorems have not been altered. That maps to familiar software controls: protected test suites, signed build definitions and separation between whoever writes the code and whoever defines acceptance.
Where this does and does not touch cryptography. None of the verified programs is a cryptanalytic algorithm. Cryptographic resource estimates such as those for RSA-2048 come from separate papers with their own cost models, and nothing in this paper revises them. Migration guidance therefore stays as published: key establishment on ML-KEM (FIPS 203) or hybrid exchange, signatures on ML-DSA (FIPS 204) or SLH-DSA (FIPS 205), on the dates in NIST IR 8547.
What to ask. If a vendor cites "formally verified" quantum or AI-generated code: verified against which specification, written by whom? Which axioms are allowed? Does the proof cover cost as well as correctness? Can we build the proofs ourselves?
Key takeaways
- Gemini-based agent teams found cheaper versions of five known quantum algorithms, each proved correct in Lean.
- Headline results: 2.5× on Cytochrome P450 (481 to 333 qubits), 11.8× on fusion, 8.22× on photochemistry, up to 2.57× on Grover search and 290× on an arcsin routine.
- The proofs cover correctness and resource bounds against human-written specifications, on ideal logical qubits.
- Full simulations still need more than early error-corrected machines are likely to offer.
- No cryptography result: Q-Day estimates and post-quantum plans are unchanged.
Sources
- Google DeepMind: Finding faster quantum algorithms with agents and formal verification (Shirobokov, Jaderberg, Babbush; 23 November 2026)
- arXiv: Discovering formally verified quantum programs with AI (Shirobokov, Jaderberg, Hristova et al.; arXiv 2611.09822, v1 6 November 2026, v3 16 November 2026; preprint)
- GitHub: google-deepmind/formal-quantum-computation (Lean 4 library and specifications; README read 28 November 2026)
Spotted a mistake? Report a correction.