DeepMind's Gemini 4 agents cut quantum algorithm costs, proved in Lean

Google DeepMind, working with Google Quantum AI, has published a paper in which teams of Gemini 4 agents improved well-known quantum algorithms and produced more efficient quantum circuits. A circuit is the set of instructions telling a quantum computer how to carry out an algorithm. The starting problem, as DeepMind frames it, is that even with the best known algorithms, some important applications need more resources than early quantum hardware will be able to support.
There is also a verification problem. Resource-intensive circuits cannot be tested on classical computers or on today's small quantum processors, so their correctness has to be proved mathematically. The agent teams proved each result using Lean, a formal theorem prover. DeepMind built a new open-source Lean library for quantum algorithms that teams of collaborating agents could use, so their ideas were backed by mathematical correctness guarantees. Humans set the research direction by specifying the problems and supervised the agents' progress.
The results fall into three groups.
Fusion: the agents found a quantum circuit that helps calculate an important property of inertial confinement fusion, a fusion method that uses lasers to compress hydrogen fuel until ignition. The required computing cost, a metric combining required qubits and operations, fell by 11.8×. Required memory dropped from 5,650 to 4,338 error-corrected qubits.
Chemistry and drug metabolism: for simulating molecules in drug metabolism and certain photochemical reactions, which are hard for classical computers to simulate, the agents made quantum simulation of a common light-sensitive molecule 8× cheaper by simplifying how the algorithm tracks particle positions and electric forces. For Cytochrome P450, an enzyme that breaks down most human medicines and matters for drug design, they found a 2.5× improvement and lowered memory from 481 to 333 qubits by replacing bulky memory lookups.
Building blocks: the agents found a 2.57x speedup for a specific implementation of Grover's algorithm, a foundational quantum operation that searches an unsorted list. They also found a 290x speedup for arcsin, a common routine many quantum algorithms use to load numbers into quantum states.
DeepMind is candid about the limit: running these algorithms in scientific simulations would still demand more computational resources than the first error-corrected quantum computers are likely to provide, though it calls the improvements significant. It says the optimized circuits could one day help run simulations for challenges from fusion energy to drug design, and that the method is not limited to those areas. The Lean library, problem specifications and verified solutions are being open-sourced on GitHub. DeepMind adds that the same approach could also accelerate other parts of quantum computing research and scientific discovery more broadly.
Key facts
- Teams of Gemini 4 agents improved well-known quantum algorithms; the work is a collaboration between Google DeepMind and Google Quantum AI.
- For a circuit calculating a property of inertial confinement fusion, computing cost (qubits and operations combined) fell 11.8×, and memory dropped from 5,650 to 4,338 error-corrected qubits.
- Other results: 8× cheaper simulation of a common light-sensitive molecule, 2.5× improvement and memory from 481 to 333 qubits for Cytochrome P450, a 2.57x speedup for a specific Grover's algorithm implementation, and a 290x speedup for arcsin.
- Each result was proved correct in the Lean theorem prover; the Lean library, problem specifications and verified solutions are open-sourced on GitHub.
- Even so, running these algorithms in scientific simulations would still demand more resources than the first error-corrected quantum computers are likely to provide.
Why it matters
Quantum hardware is expected to be small at first, and the algorithms for useful problems are hungry for qubits and operations. Cutting a fusion-related circuit's computing cost by 11.8× and its memory from 5,650 to 4,338 error-corrected qubits narrows that gap, even if it does not close it. The second point is method. Because the circuits cannot be run and checked on any machine available today, the agents' output was proved in Lean rather than tested. DeepMind presents that pairing of agent search and proof checking as the way to get results that can be trusted without running them.
Who it affects
Quantum algorithm researchers and quantum computing teams are the direct audience, since the open-sourced Lean library and verified solutions are meant to help the community build on the work. The application areas DeepMind names are fusion energy research, drug design and photochemistry, where the results touch simulations of inertial confinement fusion, drug metabolism via Cytochrome P450, and light-sensitive molecules. The source also frames the approach as relevant to scientific discovery more broadly.
How to use it
The practical entry point is the open-source material on GitHub: the Lean library for quantum algorithms, the problem specifications and the verified solutions. Researchers can study the verified circuits or reuse the library to set up their own agent teams with correctness guarantees. DeepMind describes its own workflow as specifying the problems for the agent teams and supervising their progress.
How solid is it
The correctness of each circuit rests on formal proofs in Lean, which is a stronger guarantee than testing. The claims about cost and speed, though, come from DeepMind's own blog post about its paper. The baseline algorithms or prior circuits against which the 11.8x, 8x, 2.5x, 2.57x and 290x figures are measured are not specified. The light-sensitive molecule in the 8x result is not named, and the 2.5x Cytochrome P450 improvement is not defined as a specific metric. No independent verification or outside reaction is reported.
Risks and caveats
DeepMind states that running these algorithms in scientific simulations would still demand more computational resources than the first error-corrected quantum computers are likely to provide. The applications are framed as things the circuits could one day help with, and no timescale is given for when quantum hardware could run these simulations. The source also does not report the compute cost, number of agents or time the agent teams needed, and gives no details of Gemini 4 beyond the name.
“Proof-checked AI search compresses work that once took years of manual design, empowering researchers to focus on choosing problems and interpreting results.”
— Google DeepMind blog post