DeepMind’s Quantum Agents Make Lean the Referee and the Headline Ratios Reproduce From the Released Files, but 260x of the Arcsin 290x Came From a Stage Classical Simulation Could Check, the 8x and 2.5x Use Refined Baselines, and the Fusion and Grover Figures Moved Between arXiv Versions
I recomputed the five headline ratios in DeepMind’s quantum-algorithm post from the released Lean files and they hold, but 260x of the arcsin 290x came from a stage classical simulation could check,...
On November 23, Google DeepMind and Google Quantum AI published a blog post saying that teams of Gemini 4 agents improved well-known quantum algorithms and that each result was proved in Lean, a formal theorem prover. The numbers are specific: an 11.8x lower computing cost for a fusion-energy simulation, 8x for a photochemistry simulation, 2.5x for a drug-metabolism enzyme, a 2.57x speedup for a Grover search variant, and 290x for a quantum arcsin routine. A claim built on a proof checker should be the easiest kind to audit, so I tried.
Table Of Content
- What the post claims and what the paper measures
- How the pipeline is supposed to work
- The repository: two branches, one scan, one very large check
- The solutions live on a second branch
- What a static scan finds in 697 files
- What re-checking costs
- Recomputing the five ratios
- The arcsin 290x: 260x came before Lean’s own stage
- The baseline cuts both ways
- Baselines: published, refined, and the ratios against each
- The 2.57x: a find-all result in an oracle-rounds model
- Between arXiv versions: the headline moved
- What Lean certifies, and what a human still has to read
- The comparator contract
- Scope choices written into the specifications
- How far the results are from hardware
- What I did not check
- What to watch next
I read the post, the paper behind it (arXiv 2611.09822, version 3 of November 16, plus version 2 and the abstract of version 1), and both branches of the Lean repository, pinned to the commits that were public on November 23. Then I did three things: recomputed every headline ratio from the cost constants written in the released Lean files, counted the proof escape hatches in all 697 Lean files, and rebuilt the Grover peak from the 121-cell table in a Lean file and the baseline matrix printed in the paper’s Figure S7. I did not build the proofs. This machine has no Lean and Mathlib toolchain, and the repository’s own README lists comparator runs that need about 230 GB of memory.
The short result is that the ratios reproduce, and no axiom declaration and no native_decide appear anywhere in the released files. The longer result is about what the ratios are ratios of. Some choices are conservative and some are easy to miss from the blog: 260x of the 290x came from a stage that classical simulation could check, the 8x and 2.5x are measured against baselines the authors refined, the Grover figure is a count of oracle rounds on a grid, and the fusion and Grover numbers moved between arXiv versions.
What the post claims and what the paper measures
The blog is a summary, so most conditions live in the paper and in the docstrings of the Lean files. This table sets each headline beside what is actually specified.
| The post says | The paper and the Lean files specify |
|---|---|
| Fusion: computing cost cut by 11.8x, memory from 5,650 to 4,338 error-corrected qubits | Time evolution of an alpha particle, 218 electrons and 216 fixed protons, to error 0.01, with 50 runs at each of ten times; cost is qubits times T gates; the baseline is built from Table 2 and Equation 12 of the 2024 PNAS paper |
| Photochemistry: 8x cheaper for “a common light-sensitive molecule” | One molecule, C23H20N3O, with 47 nuclei and 187 electrons treated quantum mechanically (5,616 system qubits); one femtosecond of evolution; error 0.01 for every initial state |
| Cytochrome P450: 2.5x, memory from 481 to 333 qubits | A model of Compound I with 63 electrons in 58 orbitals in a fixed tensor-hypercontraction form; the energy of every eigenstate within 0.1 Ha of the ground state to 1 mHa root-mean-square error |
| Grover: a 2.57x speedup for “a specific implementation of Grover’s algorithm” | Finding all k marked items with m parallel queries per round; expected oracle rounds as the list grows; zero error; the peak over a grid of m and k up to 1,024; the find-any peak is 1.22x |
| Arcsin: a 290x speedup | A 25-bit fixed-point arcsin with error at most 1.25e-7, against a published piecewise-polynomial circuit whose own error is about 1e-6 |
How the pipeline is supposed to work
Each task is a Lean file that states the target theorems and leaves typed sorry placeholders (Lean’s marker for an unfilled proof or definition) for the circuit, its qubit count, its claimed cost and the proofs. Agents fill the placeholders in their own workspace. An external verifier then replays every submission in a clean sandbox with the Lean Comparator against the frozen specification. The paper sums up the guarantee in one sentence: “Researchers thus review only the specification before a run and can trust that any found and verified solution is a valid algorithm.” Appendix B adds the human half: “researchers need only audit the physical model and cost conventions of the specification itself.” Everything below is about that division of labour.
The repository: two branches, one scan, one very large check
The solutions live on a second branch
The blog says DeepMind is open-sourcing its Lean library, problem specifications and “verified solutions”. On GitHub that is two branches of one repository. The default branch (commit 489edc7, November 17) holds the library and the specifications, and its README says the discovered programs are on the discoveries branch “in order to enable depending on the framework itself in a more lightweight manner”. The discoveries branch (commit a88de8f, 16:18 UTC on November 23, the day of the post) adds the solutions. So the claim holds, but a reader who clones the default branch gets specifications with placeholders and none of the discovered solutions.
What a static scan finds in 697 files
The script below downloads the pinned archive, strips comments and string literals from every .lean file, and counts four constructs that matter for trust, per group of files. It is a regular-expression scan, not a build, so it shows where such constructs are, not whether the proofs check.
# fqc_scan.py
"""Count proof escape hatches in the Lean files of google-deepmind/formal-quantum-computation (discoveries branch).
Comments and string literals are stripped before counting. Standard library only; downloads a 37 MB archive."""
import collections
import io
import re
import tarfile
import urllib.request
SHA = "a88de8ff65d78af564b2373088ca369dc95f6547"
URL = "https://codeload.github.com/google-deepmind/formal-quantum-computation/tar.gz/" + SHA
PATTERNS = {
"sorry": r"\bsorry\b",
"axiom": r"(?m)^\s*(?:@\[[^\]]*\]\s*)*(?:private\s+|protected\s+)?axiom\b",
"native_decide": r"\bnative_decide\b",
"decide_kernel": r"decide\s*\+kernel|\bdecide!",
}
def strip(src):
out, i, n, depth = [], 0, len(src), 0
while i < n:
if src.startswith("/-", i):
depth += 1
i += 2
elif depth and src.startswith("-/", i):
depth -= 1
i += 2
elif depth:
if src[i] == "\n":
out.append("\n")
i += 1
elif src.startswith("--", i):
j = src.find("\n", i)
i = n if j < 0 else j
elif src[i] == '"':
j = i + 1
while j < n and src[j] != '"':
j += 2 if src[j] == "\\" else 1
i = j + 1
else:
out.append(src[i])
i += 1
return "".join(out)
def group(path):
parts = path.split("/")[1:] # drop the archive's root folder
if parts[0] == "QuantumComputationDiscoveries" and len(parts) > 2:
stem = parts[2].replace(".lean", "")
return "Discoveries/" + ("Grover" if stem.startswith("Grover") else stem)
return parts[0].removesuffix(".lean")
raw = urllib.request.urlopen(urllib.request.Request(URL, headers={"User-Agent": "Mozilla/5.0"}), timeout=300).read()
stats = collections.defaultdict(collections.Counter)
sorry_files = []
with tarfile.open(fileobj=io.BytesIO(raw), mode="r:gz") as tar:
for member in tar:
if not (member.isfile() and member.name.endswith(".lean")):
continue
text = tar.extractfile(member).read().decode("utf-8", errors="replace")
code = strip(text)
g = stats[group(member.name)]
g["files"] += 1
g["lines"] += text.count("\n") + 1
g["MB"] += len(text.encode("utf-8")) / 1e6
for key, pattern in PATTERNS.items():
hits = len(re.findall(pattern, code))
g[key] += hits
if key == "sorry" and hits:
sorry_files.append((hits, member.name.split("/", 1)[1]))
print(f"{'group':<28} {'files':>5} {'lines':>9} {'MB':>6} {'sorry':>6} {'axiom':>6} {'native_decide':>14} {'decide kernel':>14}")
total = collections.Counter()
for name in sorted(stats):
g = stats[name]
total.update(g)
print(f"{name:<28} {g['files']:>5} {g['lines']:>9,} {g['MB']:>6.1f} {g['sorry']:>6} {g['axiom']:>6} {g['native_decide']:>14} {g['decide_kernel']:>14}")
print(f"{'total':<28} {total['files']:>5} {total['lines']:>9,} {total['MB']:>6.1f} {total['sorry']:>6} {total['axiom']:>6} {total['native_decide']:>14} {total['decide_kernel']:>14}")
print("files holding sorry:")
for hits, name in sorted(sorry_files, reverse=True):
print(f" {hits:>3} {name}")
group files lines MB sorry axiom native_decide decide kernel
Discoveries/Arcsin 16 22,556 1.8 0 0 0 568
Discoveries/Grover 204 560,925 37.8 16 0 0 2653
Discoveries/P450GroundEnergy 160 202,391 10.7 0 0 0 237
Discoveries/Photochemistry 74 197,805 26.1 0 0 0 2344
Discoveries/StoppingPower 176 459,968 39.3 0 0 0 336
QuantumComputation 58 11,900 0.5 0 0 0 0
QuantumComputationSpecs 8 3,250 0.2 46 0 0 2
scripts 1 220 0.0 0 0 0 0
total 697 1,459,015 116.4 62 0 0 6140
files holding sorry:
16 QuantumComputationSpecs/Algorithms/Grover.lean
9 QuantumComputationSpecs/Primitives/THCFactorization.lean
8 QuantumComputationDiscoveries/Algorithms/GroverFindAny.lean
8 QuantumComputationDiscoveries/Algorithms/GroverFindAll.lean
6 QuantumComputationSpecs/Algorithms/P450GroundEnergy.lean
5 QuantumComputationSpecs/Primitives/Arcsin.lean
5 QuantumComputationSpecs/Algorithms/StoppingPower.lean
5 QuantumComputationSpecs/Algorithms/Photochemistry.lean
There are 62 sorry tokens, and every one sits where it should. Forty-six are in six of the specification files, which are the placeholders the agents fill. The other 16 are in the two Grover solution modules: each module solves one half of a shared Grover specification and leaves the other half’s placeholders in place, so GroverFindAll.lean carries eight for find-any and GroverFindAny.lean carries eight for find-all, none of which that module’s comparator configuration targets. There is no axiom declaration and no native_decide in any of the 697 files. The Lean reference says the native variant of decide works by “admitting the result via an axiom”, while the kernel variant “uses kernel for reduction instead of the elaborator”. The 6,140 kernel decisions therefore rest on the Lean kernel, not on the compiler.
One more thing the scan shows: the specification library holds a sixth specification, THCFactorization.lean, with nine placeholders and no solution folder. Its challenge configuration points its solution module at itself, so it is an open challenge that the paper’s five applications do not cover.
What re-checking costs
The README of the solutions folder says the proofs “can be checked (slowly)” and prints the table below for the pinned commit.
| Solution | Modules | Lines | Build | Comparator run | Comparator peak RAM |
|---|---|---|---|---|---|
| Grover find-any | 4 | 2,709 | 2 min | 3 min | small |
| Arcsin | 16 | 22,335 | 16 min | 4 min | small |
| Cytochrome P450 | 160 | 199,831 | 21 min | 35 min | 230 GB plus swap |
| Photochemistry | 74 | 196,621 | 2 h 04 min | 59 min | 233 GB plus swap |
| Stopping power (fusion) | 176 | 457,154 | 1 h 41 min | 2 h 27 min | 232 GB plus swap |
| Grover find-all | 200 | 554,952 | 1 h 19 min | 1 h 04 min (sharded) | 28 GB per process, no swap |
Three of the six comparator runs list 230 to 233 GB of memory plus swap, and I could not run any of them here. That is not a criticism of the release. It is a fact about who will be able to repeat the check: for most readers it will mean relying on the verifier run the team describes.
Recomputing the five ratios
Each application’s solution module states its claimed cost as one constant: qubits times T gates. The script below fetches those constants from the pinned commit, divides the paper’s baselines by them, reads the qubit counts out of the same files, and prints what each arXiv version’s abstract says. The baselines are typed in from the paper, and the Lean docstrings repeat them, so this checks the numerators and the arithmetic, not the derivation of the baselines.
# fqc_ledger.py
"""Recompute the headline ratios of DeepMind's quantum-agents paper (arXiv 2611.09822) from the released Lean files.
Pinned to the discoveries branch commit of 2026-11-23. Standard library only; needs network access."""
import html
import re
import urllib.request
SHA = "a88de8ff65d78af564b2373088ca369dc95f6547"
RAW = ("https://raw.githubusercontent.com/google-deepmind/formal-quantum-computation/"
+ SHA + "/QuantumComputationDiscoveries/")
UA = {"User-Agent": "Mozilla/5.0"}
def get(url):
return urllib.request.urlopen(urllib.request.Request(url, headers=UA), timeout=60).read().decode("utf-8")
def lean(path):
return get(RAW + path)
def num(text, name):
return int(re.search(r"(?:abbrev|def) " + name + r" : \S+ := (\d+)", text).group(1))
sp = lean("Algorithms/StoppingPower.lean")
pc = lean("Algorithms/Photochemistry.lean")
p4 = lean("Algorithms/P450GroundEnergy.lean")
ar = lean("Primitives/Arcsin.lean")
claimed = {
"stopping power": num(sp, "stoppingPowerConstCost"),
"photochemistry": num(pc, "photochemistryConstCost"),
"P450": num(p4, "p450GroundEnergyConstCost"),
"arcsin": num(ar, "arcsinK25ConstCost"),
}
# Baselines as the paper states them (P450: 481 qubits x 2.26e9 T gates); the Lean docstrings repeat them.
# "published" is the unrefined figure.
baseline = {"stopping power": 2.709e18, "photochemistry": 4.98e15, "P450": 481 * 2.26e9, "arcsin": 1.08e8}
published = {"stopping power": 2.709e18, "photochemistry": 6.77e15, "P450": 2.26e12, "arcsin": 1.08e8}
print("=== claimed cost (qubits x T gates) in the Lean files against the paper's baselines")
print(f"{'problem':<15} {'claimed in Lean':>21} {'baseline':>10} {'ratio':>7} {'vs published':>13}")
for k, v in claimed.items():
print(f"{k:<15} {v:>21,d} {baseline[k]:>10.3e} {baseline[k] / v:>7.2f} {published[k] / v:>13.2f}")
print("=== qubit counts read from the Lean files")
eta, nb, pb = num(sp, "numElectrons"), num(sp, "electronBits"), num(sp, "projectileBits")
anc = num(sp, "stoppingPowerAncillas")
q_sp = 3 * (eta * nb + pb) + anc
print(f"stopping power: 3 * ({eta} * {nb} + {pb}) + {anc} ancillas = {q_sp} qubits")
a, b, c = re.search(r"giving `(\d+) \+ (\d+) = (\d+)` total qubits", p4).groups()
q_p4 = int(c)
print(f"P450: {a} system + {b} ancilla = {q_p4} qubits")
t_asin = int(re.search(r"(\d+) \* \(2 \* 25 \+ 50\)", ar).group(1))
print(f"arcsin: {t_asin} T gates on {2 * 25 + 50} qubits")
print("=== arcsin: where the 290x was reached")
kick = 4152 * 100 # kickmix stage, paper Section 2.2: 4,152 T gates on 100 qubits
print(f"baseline / kickmix-stage circuit = {1.08e8 / kick:.1f}x")
print(f"kickmix-stage circuit / final circuit = {kick / claimed['arcsin']:.3f}x")
print(f"baseline / final circuit = {1.08e8 / claimed['arcsin']:.1f}x")
print("=== T gates implied by the claimed costs, against the paper's Table S1 ceilings")
t_sp = claimed["stopping power"] / q_sp
t_p4 = claimed["P450"] / q_p4
print(f"stopping power: {t_sp:.3e} T gates over 500 runs = {t_sp / 3e11:.0f}x the 3e11 FASQ ceiling")
print(f"P450: {t_p4:.3e} T gates on {q_p4} qubits (teraquop ceilings: 5e2 to 2e3 qubits, 3e8 to 3e9 T gates)")
print("=== arXiv abstracts by version")
for v in (1, 2, 3):
text = re.sub(r"\s+", " ", html.unescape(re.sub(r"(?s)<[^>]+>", " ", get(f"https://arxiv.org/abs/2611.09822v{v}"))))
when = re.search(r"\[v%d\] (\w+, \d+ \w+ \d+ [\d:]+ UTC)" % v, text).group(1)
up = re.search(r"up to \$?([\d.]+)", text).group(1)
m = re.search(r"by \$?(\d+)\S*?, \$?(\d+)\S*? and \$?([\d.]+)", text)
print(f"v{v} {when}: parallel search up to {up}x; fusion, photochemistry, P450 by {m.group(1)}x, {m.group(2)}x, {m.group(3)}x")
=== claimed cost (qubits x T gates) in the Lean files against the paper's baselines
problem claimed in Lean baseline ratio vs published
stopping power 229,357,900,876,653,900 2.709e+18 11.81 11.81
photochemistry 605,980,010,227,389 4.980e+15 8.22 11.17
P450 436,509,499,221 1.087e+12 2.49 5.18
arcsin 369,800 1.080e+08 292.05 292.05
=== qubit counts read from the Lean files
stopping power: 3 * (218 * 6 + 8) + 390 ancillas = 4338 qubits
P450: 116 system + 217 ancilla = 333 qubits
arcsin: 3698 T gates on 100 qubits
=== arcsin: where the 290x was reached
baseline / kickmix-stage circuit = 260.1x
kickmix-stage circuit / final circuit = 1.123x
baseline / final circuit = 292.0x
=== T gates implied by the claimed costs, against the paper's Table S1 ceilings
stopping power: 5.287e+13 T gates over 500 runs = 176x the 3e11 FASQ ceiling
P450: 1.311e+09 T gates on 333 qubits (teraquop ceilings: 5e2 to 2e3 qubits, 3e8 to 3e9 T gates)
=== arXiv abstracts by version
v1 Fri, 6 Nov 2026 18:08:06 UTC: parallel search up to 1.4x; fusion, photochemistry, P450 by 11x, 8x, 2.5x
v2 Mon, 9 Nov 2026 18:55:19 UTC: parallel search up to 2.55x; fusion, photochemistry, P450 by 11x, 8x, 2.5x
v3 Mon, 16 Nov 2026 18:30:48 UTC: parallel search up to 2.57x; fusion, photochemistry, P450 by 12x, 8x, 2.5x
Four of the five headlines come straight out. The stopping-power file claims 229,357,900,876,653,900, which against the baseline of 2.709e18 gives 11.81 (the blog says 11.8x), on 3 x (218 x 6 + 8) + 390 = 4,338 qubits, exactly the blog’s figure. Photochemistry gives 8.22 against the paper’s rescaled baseline. Cytochrome P450 gives 2.49 on 116 + 217 = 333 qubits. Arcsin is 3,698 T gates on 100 qubits, 369,800 in all, which is 292 times below the baseline the paper uses; the blog rounds that to 290x. The Grover figure needs a different check, below.
The arcsin 290x: 260x came before Lean’s own stage
Section 2.2 of the paper describes two stages for arcsin. In the first, “the agents only consider kickmix circuits, exploiting that solutions can be verified in a matter of seconds”: kickmix is a restricted gate set that a classical computer can simulate efficiently. That stage reached 4,152 T gates on 100 qubits. In the second, “we use our formal verification library to lift the kickmix restriction and further optimize the algorithm, using a new quantum gate set that makes the solution hard to verify outside Lean.” That stage cut the coefficient lookup by a third and the whole circuit to 3,698 T gates.
The ledger output splits the 292x cleanly: the baseline over the kickmix-stage circuit is 260.1x, and the kickmix-stage circuit over the final circuit is 1.123x. So the stage that only Lean could vouch for lowered the cost by about 11 percent, and the 260x was reached where simulation could check each candidate. The paper’s discussion says as much: “Where classical simulation can check candidate circuits, as with arcsin, numerical testing with formal proving on top is effective.” The final 3,698-T-gate circuit is Lean-proved, and the 1.12x is real; the point is where the 290x was earned.
The baseline cuts both ways
Appendix F.2 takes as baseline the published piecewise-polynomial circuit of Häner and coauthors, in the configuration whose error is about 1e-6, above the 1.25e-7 target, “thus providing a lower bound on the spacetime cost”. The 1.08e8 is 245 qubits times 440,576 T gates, and it leaves out persistent registers and smaller blocks. That points toward a larger ratio. The same appendix also notes that a newer circuit for the inverse square root could cut the baseline’s cost by up to 3x, which would leave at least about 97x. The arcsin ratio is therefore best read as roughly two orders of magnitude, with 290x the figure for the baseline the paper chose.
Baselines: published, refined, and the ratios against each
For the three scientific applications the blog does not say which baseline it compares against. The paper does: Figure 3 describes grey points as published baselines and red points as “refined baselines incorporating subsequent methodological improvements from the literature”. The Lean docstrings give the numbers, so the sensitivity is a matter of arithmetic.
| Application | Published figure | Baseline used | Claimed cost | Ratio against baseline used | Ratio against published |
|---|---|---|---|---|---|
| Stopping power | 2.709e18 |
same | 2.294e17 |
11.81 | 11.81 |
| Photochemistry | 6.77e15 |
4.98e15 |
6.06e14 |
8.22 | 11.17 |
| Cytochrome P450 | 2.26e12 |
1.087e12 |
4.365e11 |
2.49 | 5.18 |
The photochemistry baseline rescales the walk steps of the published estimate from about 12.1 million to 8.93 million, using a degree bound from a 2026 preprint by Pocrnic and Motlagh. The P450 baseline starts from the published spectral-amplification estimate of 2.26e12, narrows the angle registers, and applies the logical-circuit options of a 2026 paper on a denser planar surface code to reach 481 qubits and 1.087e12. For P450 the paper says it did this “To be conservative”, and in both cases the effect is to shrink the headline, by half for P450: against the published figures the same solutions would read 11x and 5x instead of 8x and 2.5x. I count that as a conservative choice. It still means the blog’s 8x and 2.5x are not ratios against the numbers in the original papers. The stopping-power baseline, taken from Table 2 and Equation 12 of the PNAS paper, carries no such refinement in the Lean docstring.
The 2.57x: a find-all result in an oracle-rounds model
The Grover result is the one headline that does not come from a cost constant. Section 2.1 of the paper says the setting plainly: “cost is measured solely in oracle queries”, algorithms must succeed with certainty, and they are scored by expected oracle rounds as the list grows, at powers of two up to 1,024 for both the number of parallel queries m and the number of marked items k. Everything else a circuit does, including the heavy unitary steps between queries, is free in that model, and Appendix E says the verified circuits use on the order of (m + k) n qubits and compile each such step into polynomially many elementary gates. This is a different currency from the qubits-times-T-gates of the other four results.
The Lean files hold the exact numbers. The find-any solution declares one relative cost for every cell, 514159265358979323847 / 628318530717958647692, which the file’s own comment puts within 1.86e-21 of 1/2 + 1/pi. The find-all solution declares an exact 121-cell table in GridRouter.lean. Figure S7 prints the best published protocol for each cell as a matrix of two-decimal values in the text layer of the paper’s HTML version, so the script below divides one by the other.
# fqc_grover.py
"""Read the 121-cell find-all cost table from the released Lean file and compare it with the baseline envelope that
Figure S7c of the paper prints (two decimals, transcribed from the figure's text layer). Standard library only."""
import re
import urllib.request
from math import pi
SHA = "a88de8ff65d78af564b2373088ca369dc95f6547"
RAW = ("https://raw.githubusercontent.com/google-deepmind/formal-quantum-computation/" + SHA
+ "/QuantumComputationDiscoveries/Algorithms/Grover/Solution/")
GRID = [2 ** i for i in range(11)]
def get(name):
req = urllib.request.Request(RAW + name, headers={"User-Agent": "Mozilla/5.0"})
return urllib.request.urlopen(req, timeout=60).read().decode("utf-8")
# Figure S7c: best published protocol, relative expected rounds. Rows are m = 1..1024, columns are k = 1..1024.
BASE = [
[0.82, 0.88, 0.88, 0.88, 0.88, 0.88, 0.88, 0.88, 0.88, 0.88, 0.88],
[0.82, 0.95, 0.88, 0.86, 0.82, 0.79, 0.77, 0.75, 0.74, 0.73, 0.73],
[0.82, 0.77, 0.72, 0.68, 0.63, 0.60, 0.57, 0.56, 0.54, 0.53, 0.52],
[0.82, 0.68, 0.64, 0.55, 0.50, 0.46, 0.44, 0.41, 0.40, 0.39, 0.38],
[0.82, 0.63, 0.52, 0.45, 0.40, 0.36, 0.34, 0.31, 0.30, 0.28, 0.28],
[0.82, 0.61, 0.44, 0.41, 0.34, 0.30, 0.26, 0.24, 0.23, 0.21, 0.20],
[0.82, 0.60, 0.40, 0.35, 0.28, 0.24, 0.21, 0.19, 0.18, 0.16, 0.15],
[0.82, 0.59, 0.38, 0.29, 0.26, 0.21, 0.18, 0.16, 0.14, 0.13, 0.12],
[0.82, 0.59, 0.37, 0.26, 0.23, 0.18, 0.16, 0.13, 0.11, 0.10, 0.09],
[0.82, 0.59, 0.36, 0.24, 0.19, 0.17, 0.13, 0.11, 0.10, 0.08, 0.07],
[0.82, 0.59, 0.36, 0.24, 0.17, 0.16, 0.12, 0.10, 0.08, 0.07, 0.06],
]
router = get("GridRouter.lean")
block = router[router.index("def gridRelCost"):]
block = block[:block.index("\ndef ", 10)]
table, m = {}, None
for line in block.splitlines()[1:]:
s = line.strip()
mm = re.match(r"(?:else )?if m == (\d+) then", s)
if mm:
m = int(mm.group(1))
continue
kk = re.match(r"(?:else )?if k == (\d+) then (.*)", s)
if kk:
expr = kk.group(2).strip()
frac = re.match(r"NNRat\.divNat (\d+) (\d+)", expr)
if frac:
table[(m, int(kk.group(1)))] = int(frac.group(1)) / int(frac.group(2))
elif expr == "boundaryRelCost":
table[(m, int(kk.group(1)))] = (pi + 2) / (2 * pi)
print("cells read from gridRelCost:", len(table))
any_cost = re.search(r"def relCost \(_m _k : \S+\) : \S+ :=\s*(\d+) / (\d+)", get("FindAny.lean"))
print(f"find-any relCost, one value for every (m, k): {int(any_cost.group(1)) / int(any_cost.group(2)):.6f}"
f" 1/2 + 1/pi = {0.5 + 1 / pi:.6f}")
lo = min(table, key=table.get)
print(f"find-all: smallest cell m={lo[0]} k={lo[1]} = {table[lo]:.4f}, k = 1 column = {table[(1024, 1)]:.4f}")
ratio = {(m, k): BASE[i][j] / table[(m, k)] for i, m in enumerate(GRID) for j, k in enumerate(GRID)}
top = sorted(ratio, key=ratio.get, reverse=True)[:5]
print("largest baseline / new ratios (baseline rounded to two decimals):")
for m, k in top:
print(f" m={m:>4} k={k:>4} baseline {BASE[GRID.index(m)][GRID.index(k)]:.2f} / new {table[(m, k)]:.4f} = {ratio[(m, k)]:.2f}x")
print("cells with ratio >= 2.0:", sum(1 for v in ratio.values() if v >= 2.0), "of", len(ratio))
print("cells with k >= 2 and ratio < 1.0:", sum(1 for (m, k), v in ratio.items() if k >= 2 and v < 1.0))
cells read from gridRelCost: 121
find-any relCost, one value for every (m, k): 0.818310 1/2 + 1/pi = 0.818310
find-all: smallest cell m=1024 k=1024 = 0.0242, k = 1 column = 0.8183
largest baseline / new ratios (baseline rounded to two decimals):
m=1024 k= 512 baseline 0.07 / new 0.0270 = 2.59x
m= 512 k= 256 baseline 0.10 / new 0.0387 = 2.58x
m=1024 k=1024 baseline 0.06 / new 0.0242 = 2.48x
m= 512 k= 512 baseline 0.08 / new 0.0343 = 2.33x
m= 256 k= 128 baseline 0.13 / new 0.0558 = 2.33x
cells with ratio >= 2.0: 21 of 121
cells with k >= 2 and ratio < 1.0: 0
The peak ratios are 2.59 at 1,024 parallel queries and 512 marked items and 2.58 at 512 and 256, against the paper’s 2.57x. The baseline matrix is rounded to two decimals, and a printed 0.07 can be anything from 0.065 to 0.075, so the agreement is within rounding. Three further details are worth knowing. The two highest cells sit where m is twice k, in a regime of hundreds of parallel queries per round and a list that grows without bound. Twenty-one of the 121 cells reach 2x or more, and none of the 110 cells with k of at least 2 falls below the published protocols. And the find-any 1.22x is not a new trend: the circuit holds the single-register constant of 0.818 in every cell, while the best published find-any protocol for many queries and many targets drifts toward 1.00, so 0.997 over 0.818 is the 1.22x.
The post’s sentence, “a 2.57x speedup for a specific implementation of Grover’s algorithm”, compresses a family of circuits on a grid and a count of oracle rounds into one number. It is a real result, and the repository makes it checkable, but nothing in the sentence tells a reader it is a find-all result in a query-complexity model.
Between arXiv versions: the headline moved
The paper has three versions. The ledger script fetched each version’s abstract page, and I compared the body text of versions 2 and 3 directly. Version 1’s HTML shows only its abstract, so its body is not compared.
| Version | Posted (UTC) | Abstract: parallel search | Abstract: fusion, photochemistry, P450 | Body: fusion | Body: photochemistry |
|---|---|---|---|---|---|
| v1 | Nov 6, 18:08 | up to 1.4x | 11x, 8x, 2.5x | not compared | not compared |
| v2 | Nov 9, 18:55 | up to 2.55x | 11x, 8x, 2.5x | 4,374 qubits, 10.9x | 6.16e14, 8.08x |
| v3 | Nov 16, 18:30 | up to 2.57x | 12x, 8x, 2.5x | 4,338 qubits, 11.8x | 6.06e14, 8.22x |
In ten days the parallel-search headline went from 1.4x to 2.55x to 2.57x, and the fusion result moved from 10.9x on 4,374 qubits to 11.8x on 4,338. Revising a preprint is ordinary, and the released Lean constants match version 3 (11.81 and 8.22), not version 2. But it means these ratios are a snapshot, since the figures were still being updated on November 16, and that the Lean constants, not the prose, are the record to cite.
What Lean certifies, and what a human still has to read
The comparator contract
Each solution has a configuration file in the specifications library. For find-all it names the four target theorems (correctness, the claimed cells, and the cost bound), the four definitions the solution fills in, permits only the three standard axioms propext, Quot.sound and Classical.choice, and sets allow_disproofs to false. Every configuration lists the correctness theorem, because a cost bound alone is met by a trivial program. This is a tight contract, and it is why the leftover placeholders in the Grover modules do not matter to the check. What it cannot do is check the statement of the specification against physics.
Scope choices written into the specifications
The Lean docstrings state several limits that the blog does not. The stopping-power specification costs the time evolutions only: “it does not target an estimate of the stopping power to a given relative accuracy.” The photochemistry specification leaves the photoexcited initial state arbitrary, and its preparation “is not costed”. Cost counts qubits and T gates, charges four T gates per Toffoli, and treats measurements as free. The paper adds that loopholes in the specifications themselves were found during the runs, “such as exploiting how Toffoli gates were counted without improving the circuit”, and that teams closed them by revising the specification. It also concedes that “agents cannot optimize beyond” the specification, and that, to match the baseline, the photochemistry specification “requires correctness on all input states, even unphysical ones that break exchange symmetry”.
None of this undermines the proofs. It means the sentence “verified” attaches to a statement a human wrote, in a cost model a human chose, and that is exactly the division of labour the paper describes. I made the same distinction for DeepMind’s Signal protocol proofs, and it applies to the Lean claims about the exponential time hypothesis and to a Verus contract that accepted a login which answers every attempt with a 500.
How far the results are from hardware
The paper’s discussion says: “Our end-to-end simulations still demand far more resources than projected for the first fault-tolerant quantum computers.” The ledger output puts numbers on that using the paper’s Table S1. The stopping-power claim is 5.287e13 T gates over its 500 runs, 176 times the top of the table’s range of T-gate ceilings for application-scale machines (3e11). The P450 claim is 333 qubits and 1.311e9 T gates, inside the table’s teraquop ranges of 500 to 2,000 qubits and 300 million to 3 billion T gates. The blog says the same thing more gently, that the algorithms “would still demand more computational resources than the first error-corrected quantum computers are likely to provide”. My arithmetic did not include photochemistry, whose ancilla count I did not extract.
What I did not check
- I did not build or run any proof. The Lean toolchain is not installed here, and three of the six comparator runs list 230 to 233 GB of memory in the README.
- The baselines are typed in from the paper and the Lean docstrings. I did not re-derive the 2024 stopping-power estimate, the photochemistry rescaling or the P450 refinement.
- Figure S7’s values are rounded to two decimals, so my 2.59 and 2.58 agree with the paper’s 2.57x only within that rounding.
- The scan is a regular-expression pass over source text. It finds no custom axioms, but it cannot say that every proof elaborates, which is what the comparator runs are for.
- I did not test whether the Hamiltonians in the specifications match the physical systems, or whether Q times T tracks hardware cost. The paper’s Appendix D lists two regimes where it does not.
- Version 1 of the paper was compared through its abstract only, and the agent-by-agent credit (the paper’s split of 61, 15 and 24 percent among within-team ideas, wiki entries and conferences) is the authors’ own classification.
What to watch next
- The exact baseline-envelope values behind Figure S7, published as data beside the Lean tables, would turn the 2.57x into a one-line check.
- An independent comparator run on a large-memory machine, even if only the sharded Grover find-all check, which the README sizes at 28 GB per process.
- Whether the discoveries branch moves again: it has two commits, and the constants in it already differ from version 2 of the paper.
- A solution for the open
THCFactorizationspecification, or a statement that it is not part of this project.
Sources: the DeepMind post, the paper in version 1, version 2 and version 3, the repository at commit a88de8f (its solutions README and StoppingPower.lean), and the Lean tactic reference.








No Comment! Be the first one.