Aaronson–Ambainis conjecture does not imply real classical speedup
[AI disclosure: Iterative revision with Claude Sonnet 5.5 helped polish the writing and catch errors]
On November 6, Physical Superintelligence PBC (PSI)This may be the first time I’ve heard of PSI, but on the research front they have clearly been taking shots at open problems in quantum information. released an AI-found, Lean-checked proof of the Aaronson–Ambainis conjecture, which from here on I’ll call the AA conjecture. Apparently it has been open since it was explicitly stated around 2008. There was at least one retracted proof in 2019, and very recently the conjecture was settled in the special case of parallel quantum algorithms, but the original conjecture still stood until the PSI’s announcement.
Their announcement blog post makes a laudable attempt at a popular summary of the maths, but I find the main takeaway easy to misinterpret. And I think it isn’t just me; folks on Twitter have disappointingly read it as “quantum computing is dead”, such as this one, this one, this one, or this one. Yet another one even infers a non-existent connection to breaking hash functions. As a result, quantum-computing skeptics are coming out of the woodwork feeling vindicated left and right. When I was starting to write this post, researchers such as Ashley Montanaro and Henry Yuen, among others, were already clearing up these misunderstandings, and I encourage you to go read their threads too. And if you’d rather hear it from the horse’s mouth, the post by Scott himself is now up as well.
This post is meant to give just enough basic background for readers outside the field to appreciate what the AA conjecture means (and doesn’t mean). I won’t say anything about the AI-found proof since that is not my expertise. For those who want to understand the proof, there is now a human-authored exposition of the proof from an MIT-Stanford team, and even a five-page alternative proof (!) from a Stony Brook team who combined the approach they had been working on with the final, missing ingredient from PSI’s proof.
The setting
The AA conjecture is about black-box or query complexity. The general setting is this: you want to learn a property of some function \(f\), but the only thing you can do is query it, that is, input \(x\) and see \(f(x)\). You can’t look inside \(f\) or manipulate it in any other way; it’s a black box after all. The question is then: given a goal about \(f\), how many queries do you need?
Query complexity is an idealized computational-complexity measure. By ignoring the cost of implementing \(f\), we can prove unconditional separations between quantum and classical algorithms, which we don’t know how to prove for runtime.We don’t know how to prove \(\mathrm{BPP} \neq \mathrm{BQP}\), since that would separate \(\mathrm{P}\) from \(\mathrm{PSPACE}\), which we also don’t know. But with the Riemann hypothesis, \(\mathrm{VP} \neq \mathrm{VNP}\), and other results now claimed proven by AI with Lean certificate, it’s starting to feel like nothing is off limit! It is the setting of canonical quantum algorithms like Deutsch–Jozsa, Bernstein–Vazirani, Simon, and Grover. But translating a black-box quantum speedup into a real-world one is easy to get wrong. Case in point: Grover’s algorithm is naturally formulated in this black-box setting, which leads to a misconception that the time to evaluate the black box can nullify the quadratic speedup. But when the black box is an explicit polynomial-size circuit (as in CIRCUIT-SAT), each query costs only polynomial overhead, and that can’t close the \(\sqrt{2^n}\) versus \(2^n\) gap.As far as I know, the best known classical solvers for circuit-SAT are still essentially exponential. OpenAI’s recent refutation of ETH is specifically about \(k\)-SAT, and can’t be transferred directly to circuit-SAT or general SAT, since the \(2^{O(n/\sqrt{\log n})}\) runtime returns to being exponential as soon as the overhead of the reduction to \(k\)-SAT touches \(O(n \sqrt{\log n})\). Just because we’re counting queries doesn’t mean that queries are expensive.
The failure mode relevant to the reading of AA goes the other way: few queries in the black-box model doesn’t mean fast. Even granting that the AA conjecture is true, I don’t think we have any way of turning the result into a fast classical algorithm. More on this at the end.
tl;dr
The PSI blog tells this story:
Like most dramatic quantum speedups known, Shor’s algorithm relies on structure: a promise that the input has a rare pattern.
Whether quantum computers can be exponentially faster on random inputs, which almost never have such structure, was unknown. Aaronson and Ambainis found a way to settle this question using pure mathematics. They stated a conjecture about polynomials and showed that, if it is true, quantum computers are at most polynomially faster on random inputs.
The first sentence is confusing because “input” is used in the black-box sense, meaning the oracle \(f\) itself, not the \(x\) we feed in to obtain \(f(x)\). In particular, for Shor’s algorithm, this \(f\) is not the integer \(N\) to be factored per se. Rather, it is the black-box problem instance of period finding, a function which is promised to be periodic. By contrast, in the white-box setting, \(f\) is the function \(x \mapsto a^x \bmod N\) (for a chosen \(a\) coprime to \(N\)), which can be computed quickly, and is automatically periodic with no promise needed. By extracting the period, Shor’s algorithm factors any integer \(N\) in \(O\bigl((\log N)^3\bigr)\) time. Whether a classical algorithm can match this runtime for most \(N\) is a different question from the one AA asks: AA is about random oracles, and no choice of \(N\) makes \(a^x \bmod N\) a random oracle.
The second quoted paragraph has the same issue, and additionally it fails to mention that the AA conjecture only applies to decision problems. This is an important distinction since we know from the breakthrough result by Yamakawa and Zhandry that there exists a search problem that admits an exponential quantum speedup relative to a random oracle.
In short, the confirmation of the AA conjecture emphatically does not mean that we can upgrade our classical algorithm to rival the best quantum algorithm for most cryptographic instances, that is, a random choice of parameters. (I focus here on cryptography because it is probably what most of the public cares about, but the same reasoning applies elsewhere.) Proving or refuting the AA conjecture doesn’t change the landscape of quantum versus classical computing in any obvious way that trickles down to massive improvement in real-world algorithms. In fact, it reinforces what quantum computing researchers have been saying all along to calm the hype: you shouldn’t think of quantum computers as just classical computers that are generically faster. Most exponential quantum speedups need problems that have special structure they can exploit.
You can stop here if you’re happy with the tl;dr. Otherwise, read on for the technical meat.
The “input” confusion
Now that the tl;dr is out of the way, I want to explain what I mean by “input is the oracle \(f\) itself”. An excellent discussion of this can be found in the textbook by Kaye, Laflamme, and Mosca (KLM) and I follow the book here. In the black-box setting, the oracle is a string. Everything the algorithm can learn about the problem is contained in the string \(X\in \{0,1\}^L\). Different choices of \(X\) correspond to different problem instances, that is, different functions \(f\). Examples:
For Grover, \(f: \{0,1\}^n \to \{0,1\}\) is an arbitrary Boolean function and \(X\) is the truth table \(X_j = f(j)\), the answer to a query at a computational-basis state \(\ket{j}\), so here \(L = 2^n\). (The number of such Boolean functions is \(2^L=2^{2^n}\).)
For Shor, \(f: \{0,1\}^n \to \{0,1\}^n\) is a periodic function which can be represented by the concatenation \(X=f(0) f(1) \dots f(2^n-1)\), a bitstring of length \(L=n2^n\).
We distinguish these two exemplar cases “one level up” by defining a function \(F\) of the oracle strings, that is, a function of functions, whose domain is a subset of \(\{0,1\}^L\). Thus, \(f\) is a problem instance and \(F\) is a problem whose output is the answer we want, such as (a yes/no question about) the period for Shor’s algorithm. In the Grover case, this \(F\) is a total function (the domain is the whole set), while in the Shor case, the promise that \(f\) is periodic makes \(F\) a partial function.
That is the sense in which an oracle \(f\) itself is the input.
It was already a standard textbook resultTheorem 9.4.5, p. 192 of KLM. that for total \(F\), quantum algorithms give at most a polynomial speedup, so an exponential speedup for a decision problem requires a partial \(F\). Exponential quantum speedup needs structure.
AA asks for a further refinement of this insight: even for a partial \(F\), how does the quantum algorithm behave on a uniformly random oracle, thought of as an input string \(X\)? Informally, the AA conjecture entails that the acceptance probability of a \(T\)-query quantum algorithm can be estimated classically with only \(\mathrm{poly}(T)\) classical queries, for all but a small fraction of uniformly random oracle strings.
No real classical speedup
Now that we’re fairly sure the AA conjecture has been proven, can we use it to speed up classical algorithms for random oracles? Not that I know of. The closest statement I could find is in the AA paper itself, in which they turn the query bound into a statement about runtime only under an extra (sufficient) assumption such as \(\mathrm{P}=\mathrm{P}^{\#\mathrm{P}}\), which is widely believed to be false.If \(\mathrm{P}=\mathrm{P}^{\#\mathrm{P}}\), we’d have bigger things to worry about! Not only that it’d straight up give \(\mathrm{P}=\mathrm{BQP}\) with no help from AA (since \(\mathrm{BQP}\subseteq\mathrm{P}^{\#\mathrm{P}}\)), it’d also give \(\mathrm{P}=\mathrm{NP}\) (since \(\mathrm{NP}\subseteq\mathrm{P}^{\#\mathrm{P}}\)). If the assumption held up, quantum computers would offer no advantage on most instances relative to a random oracle (\(\mathrm{BQP}^A\subseteq\mathrm{AvgP}^A\))—the “quantum computing is dead” world.