Researchers at Google DeepMind and Google Quantum AI used teams of Gemini 4 agents to make established quantum algorithms more efficient. They checked the results with Lean, a formal theorem prover, and are making the Lean library used in the work, the problem specifications and the verified solutions available as open source on GitHub.
Quantum computers may eventually solve problems beyond the reach of classical supercomputers. For some important applications, however, even the best known quantum algorithms require more resources than early quantum hardware is expected to provide. The researchers therefore optimized quantum circuits, which describe the instructions a quantum computer follows to execute an algorithm.
Because resource-intensive circuits cannot be tested on either classical computers or today's small quantum processors, the team established their correctness through mathematical proof. The researchers specified the problems and supervised the agents' progress; the library built in Lean allowed the collaborating agents' results to be formally checked.
Simulating fusion and molecules
One optimized circuit helps calculate an important property of inertial confinement fusion. In this approach, lasers compress hydrogen fuel until a fusion reaction ignites. The agents reduced the computational cost, a metric combining the qubits and operations required, by a factor of 11.8, while lowering memory requirements from 5,650 to 4,338 error-corrected qubits.
The team also improved simulations of molecules involved in drug metabolism and certain photochemical reactions. These are complex processes that are difficult for classical computers to model. For a common light-sensitive molecule, the agents made quantum simulation eight times cheaper by simplifying how the algorithm tracks particle positions and electric forces.
For the enzyme Cytochrome P450, which breaks down most human medicines and is important in drug design, they achieved a 2.5-fold cost reduction. Memory requirements fell from 481 to 333 qubits after they replaced resource-intensive memory lookups.
Fundamental algorithms and limitations
The researchers also improved a fundamental quantum algorithm and a widely used arithmetic building block. A particular implementation of Grover's algorithm, which searches an unsorted list, achieved a 2.57-fold speedup. A routine for calculating arcsin, used by many quantum algorithms to load numbers into quantum states, became 290 times faster.
Despite the gains, scientific simulations using these algorithms are still expected to require more computing resources than the first error-corrected quantum computers can provide. The approach is not limited to fusion or drug design, however: the researchers say proof-checked AI search could accelerate work in other areas of quantum computing and scientific discovery more broadly.



