Google DeepMind has publicly released Lean 4 libraries and verified solutions for checking quantum algorithms discovered by Gemini 4 agents, including one with a projected 290-fold reduction in computational cost.
Google DeepMind has made a Lean 4 framework publicly available for validating quantum algorithms created by its Gemini 4 agents. The release includes mathematical definitions, formal specifications and verified solutions, with the code available through GitHub.
The framework builds on the Mathlib and Physlib libraries. Its QuantumComputation component provides quantum-programming utilities and mathematical foundations, while QuantumComputationSpecs defines optimization problems and correctness criteria.
The system uses quantum Hoare logic and measures estimated resource consumption through logical-qubit and T-gate counts. In the largest reported improvement, a fixed-point arcsin algorithm was reduced from 245 qubits and at least 440,576 T gates to 100 qubits and 3,698 T gates, a projected 290-fold reduction in computational cost.
Other reported projections include an approximately eightfold reduction for a photochemical simulation, a 2.5-fold improvement for a cytochrome P450 simulation and an 11.8-fold reduction for an inertial-confinement-fusion simulation. These are formally verified resource estimates, not results from executing the simulations on quantum hardware.
Google distributes the framework under the Apache 2.0 license and keeps verified algorithms in a dedicated discoveries branch. The agent-coordination infrastructure remains undisclosed, and the current resource model does not fully account for classical computation and control flow; Google plans to expand those cost models in later iterations.