Google DeepMind has set teams of Gemini 4 agents loose on well-known quantum algorithms and found significantly cheaper variants. What makes these DeepMind quantum algorithms special: because quantum circuits this large cannot be tested on classical computers or today’s quantum processors, the agents proved every result mathematically in the Lean proof assistant. For one calculation from fusion research, DeepMind says the cost fell by a factor of 11.8. The Lean library, problem specifications and verified solutions are available as open source on GitHub.
What the DeepMind quantum algorithms are about
Quantum computers are expected to one day solve problems that classical supercomputers cannot. The catch, which DeepMind itself names in its blog post from November 23: even with the best known algorithms, many important applications need more resources than the first error-corrected quantum computers are likely to provide. Better algorithms therefore matter as much as better hardware.
Such improvements usually take years of collaboration between experts. DeepMind and Google Quantum AI wanted to see whether AI agents could speed up that process. The problem: the interesting circuits are too large to simulate. An agent could easily propose a solution that looks good but is wrong. The team’s answer is formal verification.
Lean as the referee
Lean is a proof assistant in which mathematical statements are written so that a computer can check every proof step. For this project, the team built its own library called QuantumComputation. It builds on Mathlib and the QuantumInfo library from Physlib and adds a programming language for classical-quantum programs, a matching Hoare logic for correctness proofs and resource counting, for example of the number of qubits and costly T gates.
According to the paper on arXiv, a task looks like this: researchers write a Lean file with the target theorems for correctness and cost and leave placeholders open. The agents have to fill those gaps with a program, a cost bound and the matching proofs. Because agents can freely modify files in their workspace, they could in theory cheat, for example by weakening statements, changing definitions or adding axioms. An external verifier therefore checks every submission against the frozen specification and confirms that target theorems, definitions and allowed axioms are unchanged.
Agent teams with a wiki and conferences
The way the work was organized is also notable. For each problem, independent teams of Gemini 4 agents started out with only general optimization prompts, not problem-specific ideas. Each researcher could choose their own team setup, from a single agent to hierarchical teams targeting individual subroutines. Verified solutions, partial results and dead ends went into a shared wiki.
Every four hours, agents from the different teams met at a virtual conference to trade ideas, critique claims and propose candidates for other teams to test. Unproven conjectures only counted as results once they were verified. According to DeepMind, costs fell step by step over the course of the experiment as the teams found increasingly effective ideas.
The results in numbers
- Fusion: For an important property of inertial confinement fusion, in which lasers compress hydrogen fuel until ignition, the computing cost fell by a factor of 11.8. Memory requirements dropped from 5,650 to 4,338 error-corrected qubits. The paper rounds this figure to a factor of 12.
- Photochemistry: For a common light-sensitive molecule, quantum simulation became eight times cheaper.
- Drug metabolism: For cytochrome P450, an enzyme that breaks down most medicines in the body, the agents found a 2.5x improvement and lowered memory from 481 to 333 qubits.
- Building blocks: For a specific implementation of Grover’s search algorithm, the agents found a speedup of up to 2.57x, and for the arcsin routine, which many quantum algorithms use to load numbers into quantum states, a 290x speedup.
For “computing cost,” DeepMind uses a metric that combines the required qubits and operations. The results therefore apply to a fixed cost model, not to measurements on real hardware.
What the study does not show
DeepMind is cautious in its framing. Even with the new circuits, the simulations would still need far more resources than are expected for the first fault-tolerant quantum computers. Reaching early hardware would require further improvements by orders of magnitude. The paper also notes that agents can only optimize as far as the specification allows. The authors themselves give examples where the chosen problem setup rules out improvements that the literature recently achieved, for instance for cytochrome P450.
The path to real machines is also still open. That would require extending the formal specifications to error-correcting codes, qubit routing and physical layout. The GitHub repository names explicit cost models for classical computation and control flow as the next milestone. The solutions described in the paper are on the “discoveries” branch, and the project is licensed under Apache 2.0.
If you want to take a look yourself, the formal-quantum-computation repository contains two Lean libraries: QuantumComputation with the foundations, the Hoare logic and resource counting, and QuantumComputationSpecs with specifications and benchmark challenges for automated theorem proving and AI-assisted program discovery. The project is built with the Lean tool lake. The work was a collaboration between Google DeepMind and Google Quantum AI, and the paper lists 25 authors.
Our take: proofs instead of benchmarks
The project fits a trend we have reported on several times recently. In the Riemann proof with Claude, Lean was also the decisive checker, and with RSA-1024, DeepMind agents had already hunted for cryptographic weaknesses. What is new here is the combination of many competing agent teams, a shared knowledge base and a checker that, according to DeepMind, the agents cannot game. As a result, people only need to review the specification up front, not every single solution.
For IT security, this is a signal with two sides. Cheaper quantum algorithms bring useful applications closer, but in the medium term also the day when today’s cryptography comes under pressure. Projects like EIP-8450 for quantum-safe Ethereum keys show that preparation is already under way. The DeepMind results, however, concern simulations from physics and chemistry, not breaking encryption. Anyone who reads a breakthrough for everyday quantum computing into this is stretching the study. 404: Production-ready quantum computer not found.




