DeepMind uses AI agents and Lean to optimize quantum algorithms
Google DeepMind deployed teams of Gemini 4 agents to reduce resource costs for key quantum algorithms, verifying results with the Lean theorem prover.
Google DeepMind has demonstrated a new method for optimizing quantum algorithms by deploying teams of AI agents. Published on November 23, 2026, the research shows how independent agent groups can collaboratively improve circuit efficiency while using formal verification to guarantee mathematical correctness.
What happened
Quantum computers promise to solve problems that are intractable for classical supercomputers, but current hardware limitations remain a significant barrier. Even the most efficient known algorithms often require more resources than early error-corrected quantum processors can provide. To address this, DeepMind researchers used teams of Gemini 4 agents to redesign well-known quantum circuits, aiming to lower the computational cost and memory requirements for critical scientific simulations.
The team focused on applications with high societal impact, such as inertial confinement fusion and drug design. For fusion energy simulations, the agents reduced the computing cost by a factor of 11.8 and lowered the memory requirement from 5,650 to 4,338 error-corrected qubits. In drug metabolism studies, they achieved an 8x cost reduction for simulating light-sensitive molecules and a 2.5x improvement for Cytochrome P450, an enzyme crucial for breaking down medicines. The memory needed for the latter dropped from 481 to 333 qubits.
Beyond specific scientific applications, the agents also optimized fundamental building blocks. They found a 2.57x speedup for a specific implementation of Grover’s algorithm, which searches unsorted lists, and a massive 290x speedup for arcsin, a routine used to load numbers into quantum states. While these optimized circuits still demand more resources than today’s hardware offers, the improvements significantly narrow the gap between theoretical potential and practical feasibility.
How it works
The core innovation lies in combining agentic AI with formal verification. Because classical computers cannot simulate large-scale quantum circuits, and current quantum processors are too small to test them empirically, the researchers relied on mathematical proof. They used Lean, a formal theorem prover, to verify every proposed optimization. This ensures that the improved circuits are not just heuristically better but mathematically guaranteed to produce the correct results.
The process involved multiple independent teams of Gemini 4 agents working on the same problems. Every four hours, these agents convened at a virtual conference to trade ideas, debate approaches, and compare findings. This collaborative loop allowed the teams to iteratively refine their strategies. As the agents shared insights, the computational cost of the resulting circuits gradually decreased. The researchers supervised the process by defining the problem specifications, while the agents handled the complex search for optimal circuit structures.
To support further research, DeepMind open-sourced their Lean library for quantum algorithms, along with the problem specifications and verified solutions on GitHub. This framework allows other researchers to use collaborating agents with built-in correctness guarantees, potentially accelerating discovery in other areas of quantum computing and science.
Key details
- Agents used: Teams of Gemini 4 agents worked independently and collaboratively.
- Verification tool: Lean formal theorem prover ensured mathematical correctness of all optimizations.
- Fusion simulation: Computing cost reduced by 11.8x; qubit memory lowered from 5,650 to 4,338.
- Drug design: Cytochrome P450 simulation cost reduced by 2.5x; qubit memory lowered from 481 to 333.
- Fundamental algorithms: Grover’s algorithm saw a 2.57x speedup; arcsin routine saw a 290x speedup.
- Open source: The Lean library, problem specs, and solutions are available on GitHub.
Why it matters
For engineers and researchers in quantum computing, the bottleneck is often not just hardware quality but algorithmic efficiency. Reducing the number of required qubits and operations directly translates to earlier viability for real-world applications. By automating the search for optimized circuits, this approach compresses work that previously took years of manual design into a much shorter timeframe. This allows human experts to focus on defining high-value problems rather than getting bogged down in low-level circuit optimization.
The use of formal verification addresses a critical trust issue in AI-generated code. In quantum computing, where empirical testing is limited by hardware scale, mathematical proof is the only reliable validation method. Integrating Lean with agentic workflows provides a blueprint for developing reliable AI systems in other domains where correctness is non-negotiable, such as safety-critical software or cryptographic protocols.
What you can do
- Explore the open-source Lean library for quantum algorithms on GitHub to understand the verification framework.
- Study the provided problem specifications to see how complex scientific challenges are translated into formal constraints.
- Experiment with the verified solutions to benchmark your own quantum circuit designs against these optimized baselines.
- Investigate how formal verification tools like Lean can be integrated into your current AI development workflows for higher reliability.
- Follow updates from Google DeepMind and Google Quantum AI to track further applications of agentic teams in scientific discovery.
- Consider applying similar multi-agent collaborative structures to other optimization problems in your engineering tasks.



