Explainer
An AI-written proof claims every unitary is easy with the right classical oracle
Aaronson and Kuperberg asked in 2007 whether every quantum operation can be performed efficiently given a suitable Boolean function as an oracle. An OpenAI manuscript claims yes, for constant error, by shrinking a unitary one block at a time through a feedback loop. What the question means, how the construction works, and why it is still unchecked.
Key points
- The unitary synthesis problem asks whether every \(n\)-qubit unitary has a polynomial-size quantum circuit once the circuit may query a Boolean function chosen for that unitary. Aaronson and Kuperberg posed it in 2007.
- An OpenAI manuscript released 6 October claims a positive answer for constant error. One circuit works for every unitary, and only the oracle changes.
- The construction removes a block of coordinates at a time. Feeding a contracting block back through diagonal phases leaves a smaller unitary, and each of about \(n^3\) levels calls the smaller circuit once.
- It is consistent with known lower bounds: one query is not enough, and a random oracle is not enough.
- No independent check or Lean proof has been reported. The oracle may be hard to compute, and the resources are polynomial but enormous.
In this article
The news
Every unitary from a Boolean function
In 2007 Scott Aaronson and Greg Kuperberg asked whether every quantum operation becomes easy once a suitable classical function is available as an oracle. On 6 October OpenAI released a 21-page manuscript, dated 5 October and “produced by an unnamed internal OpenAI model”, that answers yes, in the constant-error form of the question. For every \(n\) there is one quantum circuit, built from the gates \(H\), \(T\), \(T^\dagger\) and CNOT plus calls to a Boolean oracle. It has polynomially many qubits, gates and queries, and it implements any chosen \(n\)-qubit unitary to within a constant error once the oracle is chosen to suit that unitary.
- Aaronson and Kuperberg pose the problem
- 2007
- query: proved insufficient in 2023
- 1
- pages in the manuscript
- 21
- independent checks reported
- 0
No one outside OpenAI has yet reported checking the argument, and there is no Lean proof. The manuscript is short and self-contained, though, and its central identity is a classical one that we verified numerically. On the day it was dated, an independent group posted a result that can look like the opposite: with a random oracle, Haar-random unitaries cannot be synthesized efficiently. The two fit together, as the cards below explain.1,2,3,10
What exactly is being asked?
A Boolean oracle for a function \(f:\{0,1\}^m\to\{0,1\}\) is the gate \(O_f\ket{x,b}=\ket{x,\,b\oplus f(x)}\), which a quantum circuit may call on superpositions of inputs. The function can be anything, with no limit on how hard it is to compute. With such an oracle many tasks become trivial. One query decides any yes-or-no question about the input, and Rosenthal showed that one query suffices to prepare any \(n\)-qubit state.
Unitary synthesis asks for more: a circuit that acts as a given unitary \(U\) on every input state, including inputs entangled with a reference system. The circuit may depend only on \(n\), while \(f\) may depend on \(U\). An \(n\)-qubit unitary has about \(4^n\) real parameters, and \(f\) can store exponentially many bits, so the question is not whether the information fits. It is whether a polynomial-size circuit can use it coherently. A yes would mean that the hardness of any quantum transformation lies in the classical description of a Boolean function, and nowhere else.1,3,7
Why is a unitary harder than a state?
A state can be built one amplitude at a time. Rotate the first qubit so the probabilities of its two values are right, then rotate the second conditioned on the first, and so on. Each rotation angle is a number the oracle can supply. A unitary must map every basis input \(\ket x\) to its column \(U\ket x\), coherently and at once. Preparing the column while remembering \(x\) is easy: that is state preparation controlled on \(x\). The trouble is the last step, where the label \(x\) must be erased. Erasing it requires recognizing \(x\) from the quantum state \(U\ket x\), and in a superposition of inputs there is no classical record to consult.
Earlier results bracketed the problem. Rosenthal synthesized any unitary in time about \(2^{n/2}\) using Grover search. Lombardi, Ma and Wright proved in 2023 that one query, or polynomially many queries made in parallel, cannot do it. Nehoran, Slote and Yuen showed that a constant number of queries suffices if the queries may be exponentially wide. Left open was the natural middle ground: polynomially many narrow queries, interleaved with quantum computation.1,5,6,7,8,9
How do you make a unitary smaller?
The proof shrinks the problem one block at a time. First the program mixes the unitary with permutations, random signs and Walsh transforms. A moment argument shows that some choice of these makes a corner block \(D\) contracting, \(\|D\|\le\tfrac34\), \[ V=\begin{pmatrix}A&B\\C&D\end{pmatrix}. \] The corner \(D\) acts on the \(s\) coordinates to be removed. Feed its output back into its input through a diagonal phase unitary \(Z\), as in a feedback loop. Solving the loop gives \[ F=A+BZ(I-DZ)^{-1}C, \] the transfer function of the loop, a construction familiar from control and scattering theory. Because \(V\) conserves norm and nothing escapes the loop, \(F\) is unitary on the remaining \(d-s\) coordinates.
We checked this numerically. For random \(64\)-dimensional unitaries with a \(16\)-dimensional corner, \(F^*F\) equals the identity to \(10^{-15}\). Truncating \((I-DZ)^{-1}\) to its first 80 powers already reproduces \(F\) to rounding error. Random signs and Walsh transforms also do what the proof needs: for the identity matrix, whose corner has norm 1, they bring the corner of a \(256\)-dimensional matrix down to about \(0.5\). Each step removes at least a \(1/(16384(n+1)^2)\) fraction of the dimension, so on the order of \(n^3\) steps take \(2^n\) dimensions down to one.1
Why doesn't the recursion explode?
Two problems remain. The smaller unitary \(F\) depends on \(Z\), so each level must synthesize a family of unitaries controlled by a phase register. And the circuit must move states between the big space and the pair consisting of the phase register and the smaller space, without leaving a trace of the input index. The paper builds two encoding maps from the forward and backward geometric series of \((I-DZ)^{-1}\), truncated at a length \(L\), with errors that shrink like \(\|D\|^L\). They satisfy \(\tilde F E\approx RV\), where \(\tilde F\) applies \(F\) controlled on the phase register.
The key observation is about sparsity. Give each removed coordinate \(i\) the frequency vector \((1,i,\dots,i^L)\). In the Fourier expansion of the encoders, a nonzero coefficient then records a multiset of coordinates through its power sums. As a result every row of the encoding matrices has at most \(L\) nonzero entries. Few entries per row is exactly what lets a circuit prepare a column and then erase the input index coherently, the step that blocks naive approaches; amplitude amplification fixes the normalization. Finally, each level calls the smaller circuit exactly once, between its two encoders. The total size is therefore a sum over the levels, not a product, and the whole circuit uses \(O((n+1)^{10})\) qubits and \(O((n+1)^{13})\) programmable gates.1
What does the oracle hold?
The construction is first written with programmable gates: single-qubit gates controlled by other qubits whose matrices, one for each control value, depend on \(U\). The last step replaces each such matrix by a short word in \(H\), \(T\) and \(T^\dagger\), and stores all the words in one Boolean function. The circuit looks up the word for its current control value, applies it, and erases the lookup. Care is needed to keep the relative phases between different control values, which a global phase would otherwise destroy. The oracle is a gigantic lookup table of gate choices; the circuit that reads it is generated from \(n\) alone.
Three limits follow from the statement. The theorem does not say how to compute \(f\) from a description of \(U\). The polynomials have degree 10 and 13 with very large constants, so this is a proof of possibility, not a compiler. The error is constant. The construction ends below \(\tfrac15\) in the diamond norm, and the theorem is stated with \(\tfrac12\), the constant-error form of the problem. The paper does not claim a version with smaller error.1,4
Doesn't a random oracle make it impossible?
Andrew Huang, Akshar Ramkumar and John Wright posted on 5 October a proof that implementing a Haar-random unitary with access to a random Boolean function needs superpolynomially many queries. That is an average-case question: the oracle is random and knows nothing about \(U\). In the Aaronson–Kuperberg question the oracle is chosen for \(U\). The two results answer different questions and are consistent. Likewise, the new construction does not contradict the one-query lower bound of Lombardi, Ma and Wright, because it uses polynomially many queries, each depending on the answers to earlier ones.5,10
Back to the claim
Where it stands
Like several of OpenAI's quantum results, this one is unverified. It has no Lean formalization, OpenAI's repository flags unformalized results as possibly having issues, and no follow-up paper has engaged with it yet. In its favour, it is only 21 pages, every step is stated as a lemma with explicit constants, and the ingredients are standard: feedback of a unitary block, Gaussian moment bounds, uniformly controlled gates, amplitude amplification and Solovay–Kitaev-style compilation. It is the kind of argument a specialist can check line by line.
If it holds, the meaning is conceptual. Quantum complexity theory has asked whether some quantum transformations are hard for reasons that no classical object can capture. This theorem would say that, relative to a suitably chosen Boolean function, every unitary is easy, so the hardness of quantum transformations can always be moved into the classical complexity of a function. Lombardi, Ma and Wright had tied unitary synthesis to the security of quantum cryptography; what the new upper bound means there has not yet been worked out in print.1,2,5,7,8,9,10
| Work | Year | Queries | Result |
|---|---|---|---|
| Aaronson and Kuperberg | 2007 | — | Pose the problem |
| Rosenthal | 2022 | Exponential | Any unitary in time about \(2^{n/2}\) |
| Lombardi, Ma and Wright | 2023 | One, or many in parallel | Impossible |
| Nehoran, Slote and Yuen | 2026 | Constant, exponentially wide | Possible |
| Huang, Ramkumar and Wright | Oct 2026 | Random oracle | Impossible for Haar-random unitaries |
| OpenAI | Oct 2026 | Polynomially many, adaptive, polynomial width | Possible, constant error (unverified) |
What to ask
- Will specialists in quantum query complexity confirm the multiset sparsity argument and the error bookkeeping?
- Can the error be made inverse-polynomially small at polynomial cost?
- How hard is it to compute a suitable oracle from a description of the unitary?
- What does the result imply for oracle separations and for the security of quantum cryptography?
Sources & further reading
- OpenAI: Polynomial-time unitary synthesis from a Boolean oracle (5 October 2026) ↗
- OpenAI: math repository README (how the manuscripts were produced) ↗
- Scott Aaronson and Greg Kuperberg: Quantum versus classical proofs and advice (2007) ↗
- Scott Aaronson: Open problems related to quantum query complexity (2021) ↗
- Alex Lombardi, Fermi Ma and John Wright: A one-query lower bound for unitary synthesis and breaking quantum cryptography ↗
- Fangqi Dong, Alex Lombardi and Fermi Ma: Explicit separations for one-query unitary synthesis ↗
- Gregory Rosenthal: Efficient quantum state synthesis with one query ↗
- Gregory Rosenthal: Query and depth upper bounds for quantum unitaries via Grover search ↗
- Barak Nehoran, Joseph Slote and Henry Yuen: All unitaries have constant depth quantum circuits ↗
- Andrew Huang, Akshar Ramkumar and John Wright: Random-oracle unitary synthesis is impossible ↗