Gemini 4 agents cut quantum algorithm costs up to 290x
Teams of Google DeepMind's Gemini 4 agents found cheaper versions of five quantum algorithms, from arithmetic to fusion and drug chemistry, and proved each one correct in the Lean theorem prover. The biggest cut was 290 times.

Listen to this articleListen
Teams of Google DeepMind’s Gemini 4 agents have found cheaper versions of five well-known quantum algorithms, and proved every one of them correct with a mathematical proof checker. The biggest cut was 290 times, for a routine that computes the arcsin function on a quantum computer. A simulation for fusion energy became 11.8 times cheaper, one for a light-sensitive molecule 8 times and one for a liver enzyme that breaks down most medicines 2.5 times.
Google DeepMind announced the results on 23 November 2026, from work with Google Quantum AI. “In a new paper, we used teams of Gemini 4 agents to improve well-known quantum algorithms,” wrote Sergey Shirobokov, Ben Jaderberg and Ryan Babbush, three of the 25 authors of the paper behind it, Discovering formally verified quantum programs with AI (arXiv 2611.09822, first posted on 6 November 2026).
What did the Gemini 4 agents find?
The agents rewrote five quantum algorithms so that they need fewer qubits, fewer expensive operations, or both. Cost here is the paper’s “spacetime” measure: the number of qubits multiplied by the number of T gates, the most expensive operation on an error-corrected quantum computer. A lower figure means a smaller machine can run the job, or the same machine finishes sooner.
| Problem | What it is for | Cheaper by | Detail |
|---|---|---|---|
| Fixed-point arcsin | Arithmetic inside many quantum programs | 290 times | Cost from more than 108 million to 370,000: 3,698 T gates on 100 qubits |
| Alpha-particle stopping in warm dense hydrogen | Fusion energy | 11.8 times | Qubits from 5,650 to 4,338 |
| Motion of a light-sensitive molecule, C23H20N3O | Photochemistry | 8 times | Cost from 4.98 × 10¹⁵ to 6.16 × 10¹⁴ |
| Cytochrome P450 Compound I | How the liver breaks down drugs | 2.5 times | Qubits from 481 to 333 |
| Parallel Grover search | Searching for marked items | 1.4 times | Up to 1.41 times fewer rounds than the best published methods |
The arcsin result went in two steps. The agents first cut the cost to about 415,000 using a family of circuits the researchers call “kickmix”, then dropped that restriction and found a design 11% cheaper again. The best previous published method, a piecewise-polynomial construction, cost more than 108 million on the same measure.
For fusion, DeepMind’s post gives the newest figures, 11.8 times cheaper on 4,338 qubits; the 6 November paper reported 10.9 times on 4,374. For Grover’s search algorithm the post also reports a 2.57 times speed-up for “a specific implementation”.

How did the agent teams work?
Several teams of Gemini 4 agents competed on the same problems, and an idea counted only once the Lean theorem prover had checked it. Each researcher chose a team layout, “from a single agent iterating on a candidate to hierarchical teams”. Proven ideas went into a shared notebook that every team could read.
“Every four hours, agents from each team met at a virtual conference to trade, debate and compare ideas,” the DeepMind post says. As better ideas spread, the best cost on each problem kept falling until the experiment ended. On the light-sensitive molecule, seven teams competed and the leading result changed hands seven times after Team 1’s first run.

Why prove a quantum algorithm in Lean?
Lean is a programming language that checks mathematical proofs line by line, so a result proved in it is correct as stated. That is useful because large quantum circuits are too resource-intensive to test on an ordinary computer, and today’s small quantum processors cannot run them yet. DeepMind’s Lean library lets the agents prove both that a circuit computes the right answer and exactly how many qubits and T gates it uses.
The researchers wrote each problem as a fixed specification with the proofs left blank, and the agents had to fill them in. The paper warns that agents “may exploit loopholes” by weakening theorem statements, altering definitions or adding axioms, so a separate checker confirmed that every theorem, definition and axiom was left as written. The researchers also tightened the specifications themselves after agents found gaps in them, such as how Toffoli gates were counted.
DeepMind has released the Lean library, the problem specifications and the verified solutions as formal-quantum-computation on GitHub, so anyone can rerun the proofs.
How far are these algorithms from real quantum computers?
The improved fusion simulation still needs 4,338 error-corrected qubits, and the simulations as a group need more resources than the first error-corrected quantum computers are expected to provide. The paper puts many promising applications at 10⁹ to 10¹⁵ logical operations, against roughly one million operations projected for early fault-tolerant machines. Each cut of 2.5 or 11.8 times brings those jobs closer to the hardware that is coming.

The gains also stay inside the problems as the researchers wrote them, since the agents “cannot optimize beyond them”. The drug-metabolism problem, for example, fixed one mathematical description of the molecule, which “excludes the representation advances behind recent gains” made by other groups.
What does this mean for encryption?
The five problems in this work are arithmetic, search, fusion, photochemistry and drug metabolism. Attacks on today’s public-key encryption rely on Shor’s algorithm, which the paper cites as background alongside earlier estimates for breaking RSA.
Google DeepMind’s encryption research runs as a separate project. On 9 November we reported how its agents helped cryptographers cut the cost of attacking legacy 1024-bit RSA on ordinary computers, a result that leaves 2048-bit keys out of practical reach.
Sources
- Google DeepMind: Finding faster quantum algorithms with agents and formal verification, 23 November 2026deepmind.google
- Shirobokov, Jaderberg et al.: Discovering formally verified quantum programs with AI, arXiv 2611.09822arxiv.org
- Google DeepMind: formal-quantum-computation Lean library on GitHubgithub.com


