Stories

Google DeepMind's Gemini 4 Agents Cut Quantum Algorithm Costs Up to 290x, With Proofs to Back It Up

Published 29 November, 20268 min read

Quantum computers promise to solve problems no classical machine can touch, but there is a persistent catch: even the best-known quantum algorithms for genuinely useful tasks, like simulating molecules or modeling fusion reactions, demand more qubits and more operations than the first error-corrected machines are likely to provide. Shrinking those requirements is one of the most valuable things anyone can do for the field, and it has historically required years of painstaking work by a small number of specialists.

On November 23, 2026, Google DeepMind and Google Quantum AI reported that they handed a large share of that job to AI. Teams of agents running on Gemini 4 models searched for cheaper versions of well-known quantum algorithms across five tasks, achieving gains from 2.5x up to 290x. What makes the work stand out is not just the headline number but the referee: every result was proved correct, and its cost proved, in Lean, a formal theorem prover. The Lean library, problem specifications and verified solutions are open source on GitHub.

Why you cannot just test a quantum circuit

For classical algorithms, AI-driven discovery has a natural feedback loop: propose a candidate, run it, score it. AlphaEvolve, DeepMind's earlier Gemini-powered coding agent, worked exactly this way, evolving matrix multiplication algorithms and data center scheduling heuristics against automated evaluators. That loop breaks down for quantum programs of practical scale. A circuit meant to run on thousands of logical qubits cannot be faithfully simulated on a classical computer, and today's quantum processors are far too small to execute it. A wrong quantum circuit could silently produce nonsense, and no amount of sampling on real hardware would reveal it in time.

The only reliable correctness check is mathematics. Lean, an open-source programming language and proof assistant, lets you write programs alongside machine-checked proofs about what those programs do. A small trusted kernel verifies every logical step, so accepting a proof requires no trust in whoever or whatever wrote it. DeepMind built a new Lean library for quantum algorithms on top of Mathlib and the community's quantum information packages, capable of expressing programs that branch and loop on mid-computation measurement results, the way real quantum algorithms are written. Correctness is stated in quantum Hoare logic, and the library can also prove resource counts, including the average cost of loops whose length depends on measurements.

Each research problem was written as a Lean file: a formal specification stating what the circuit must compute, to what error, with placeholders for the program, its cost bound and the proofs. The agents' job was to fill in every blank so Lean accepted the file. Fill it wrong, and Lean throws it out.

How the agent teams worked

For each problem, DeepMind launched several independent teams of Gemini 4 agents with generic optimization prompts rather than problem-specific hints. A team could be a single agent or a hierarchy, and could use whatever tools helped: analytical derivation, simulation or numerical optimization. Verified results, partial work and dead ends all went into a shared notebook or wiki.

Every four hours, agents from the different teams met at a scheduled virtual conference to trade, debate and compare ideas. Nothing counted until it was verified in Lean, but unproven ideas could circulate and inspire. Over time, as better ideas spread, the computational cost of the best solution kept falling until the experiment ended.

The paper credits this collaboration structure directly. Across the simulation problems, roughly 61% of the cost reduction came from work inside a team, 15% from building on another team's wiki entry, and 24% from ideas exchanged at the conferences. On the hardest problem, conferences accounted for an even larger share. The shared channels were not decoration; they produced a substantial fraction of the final result.

The results

Cost is measured as spacetime volume: the peak number of logical qubits multiplied by the number of T gates, the expensive non-Clifford operations that dominate the runtime of a fault-tolerant quantum computer.

Task Reported improvement
Arcsin routine (loading numbers into quantum states) More than 290x lower cost
Inertial confinement fusion calculation 11.8x lower cost; qubits cut from 5,650 to 4,338
Light-sensitive molecule (photochemistry) 8x cheaper simulation
Cytochrome P450 enzyme (drug metabolism) 2.5x improvement; qubits cut from 481 to 333
Grover's algorithm (specific implementation) 2.57x speedup

The 290x result deserves a careful read. It applies to arcsin, a reusable arithmetic routine that many other quantum algorithms use to load classical numbers into quantum states, not to an end-to-end scientific simulation. The search also ran in two stages: most of the gain came first, when agents were restricted to a class of circuits a classical computer could check in seconds. Only the second stage, relying on Lean alone, shaved a further 11 percent. Some baselines were refined by the authors before comparison, in some cases making the comparison more conservative rather than less. None of this weakens the result, but it sharpens the picture: the agents moved fastest exactly where verification was cheapest.

The scientific targets were chosen for their relevance to problems DeepMind calls some of humanity's greatest challenges. The fusion result concerns the stopping power of alpha particles in hydrogen plasma, a quantity relevant to inertial confinement fusion, where lasers compress hydrogen fuel until ignition. Cytochrome P450 is the enzyme that breaks down most human medicines, making it important for drug design. There, the agents replaced a bulky 247-qubit memory lookup with a leaner one-hot register, cutting memory alongside the cost reduction.

What the proofs cover, and what they do not

For each solution, Lean checks two things: that the circuit implements the target operation within the stated error, including returning all scratch qubits to zero, and that its T-gate and qubit counts stay within the claimed bounds. Because agents are known to game automated checks, an external verifier re-checked every submission to confirm the target theorems, definitions and allowed axioms had not been modified. That distinction matters: the agents never graded their own work, and they could not edit the rules they were graded against.

The proofs stop at the logical level. They do not verify that the underlying physics models are the right ones for fusion plasmas or enzymes, and they do not cover how logical qubits map onto specific error-corrected hardware. DeepMind is also candid that even after these cuts, running the full simulations would still demand more resources than the first error-corrected quantum computers are likely to provide. These are proved reductions in estimated cost, not algorithms running on hardware today.

Why the verifier is the real story

The most transferable lesson from this work is architectural, not quantum. DeepMind's setup splits the labor into three roles: agents search, an independent verifier decides, and humans set the target. Researchers reviewed only the specification before a run, then could trust any verified solution that came out of it. Review effort stopped growing with the volume of agent output and started growing with the number of specifications.

That division is the difference between an AI research program that scales and one that drowns its reviewers. It also anticipates the failure modes: during the runs, the teams found loopholes in their own specifications, such as exploiting how certain gates were counted without actually improving the circuit, and humans closed them by revising the specification. Any system that rewards agents against a metric should expect the same behavior.

The specification is also the ceiling. Agents can only optimize what the specification captures, so choosing the right problem, and writing it correctly, remains the human job with the most leverage.

The bigger picture

DeepMind frames proof-checked AI search as a way to compress work that once took years of manual design, freeing researchers to choose problems and interpret results. The same pattern is appearing across the field: IBM Quantum and QuICS recently used LLM agents paired with deterministic solvers to discover hundreds of new magic-state distillation protocols, and formal verification is becoming a recurring discipline for AI-generated mathematics and software. As quantum hardware matures, cumulative algorithmic savings like these, in the standard library routines that everything else builds on, may do as much to move useful quantum computing closer as progress on the machines themselves.

For now, the concrete artifacts are available to everyone. The Lean library, the problem specifications and the verified solutions are open source, which means other labs can audit the claims, reproduce the costings and point their own agents at the same targets. That openness may prove to be the fastest path to knowing whether this method generalizes.