Skip to main content
KetQat

Appearance

Topic · advanced

Quantum Complexity Theory

What quantum computers can and cannot do efficiently - the classes BQP and QMA, the QMA-completeness of the local Hamiltonian problem, the known inclusions between quantum and classical classes, oracle separations, query lower bounds, and MIP* = RE.

ExpositionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Overview

Quantum complexity theory classifies computational problems by the quantum resources needed to solve them. Its central class, BQP, captures what a quantum computer can do in polynomial time with bounded error; it was defined by Bernstein and Vazirani. Its central "NP-like" class, QMA, captures problems whose solutions can be checked by a quantum computer given a quantum proof, and its canonical complete problem, estimating the ground-state energy of a local Hamiltonian, connects computer science with many-body physics.

The field gives three kinds of answers. Containments that are proved outright, such as BQP⊆PP\mathrm{BQP} \subseteq \mathrm{PP}. Relativised and query results, which prove separations or lower bounds in a model where the input is accessed through an oracle. And completeness results, which show a problem is as hard as anything in a class. No unconditional separation of BQP from classical classes is known, and the containments below explain why one would be very hard to prove.

Intuition

A quantum computation can be written as a sum over exponentially many computational paths, each with a complex amplitude, and the answer comes from interference between them. Adding up exponentially many signed terms is exactly what the classical class PP can do, which is why BQP sits inside PP. Conversely, the ability to interfere paths gives quantum algorithms an advantage when a problem has hidden algebraic structure (periods, as in Shor's algorithm) but only a quadratic advantage for unstructured search, as the lower bounds show.

For QMA, Kitaev's insight was to turn time into space: the whole history of a verification is stored as one quantum state, the history state, and checking each step locally becomes a sum of local energy penalties. A low-energy state is then a valid accepting computation. The lesson Complexity and advantage introduces these classes with worked examples.

Prerequisites

The quantum circuit model, deterministic and randomised classical complexity (P, NP, BPP, PSPACE, reductions), and basic spectral theory of Hermitian matrices.

Mathematical Definitions

DefinitionBQP (bounded-error quantum polynomial time)Established definition

Fix a finite approximately universal gate set, for example {H,T,CNOT}\{H, T, \mathrm{CNOT}\}. A language L⊆{0,1}∗L \subseteq \{0,1\}^* is in BQP if there are a polynomial pp and a uniform family of circuits {Cn}n≥1\{C_n\}_{n \ge 1}, where CnC_n acts on n+p(n)n + p(n) qubits and has at most p(n)p(n) gates, such that for every x∈{0,1}nx \in \{0,1\}^n, running CnC_n on ∣x⟩∣0p(n)⟩\ket{x}\ket{0^{p(n)}} and measuring the first qubit gives

Pr⁡[output 1]≥23  if x∈L,Pr⁡[output 1]≤13  if x∉L.\Pr[\text{output } 1] \ge \tfrac23 \ \text{ if } x \in L, \qquad \Pr[\text{output } 1] \le \tfrac13 \ \text{ if } x \notin L .

For a promise problem Π=(Πyes,Πno)\Pi = (\Pi_{\mathrm{yes}}, \Pi_{\mathrm{no}}), a pair of disjoint sets of strings, the same conditions are required only for x∈Πyesx \in \Pi_{\mathrm{yes}} and x∈Πnox \in \Pi_{\mathrm{no}}, and nothing is required on other strings; this defines PromiseBQP. Completeness results for approximation problems, such as estimating a Jones polynomial, are statements about PromiseBQP, conventionally written BQP.

The definition is robust.

  • Error. Any pair of thresholds separated by an inverse polynomial, 12+1/q(n)\tfrac12 + 1/q(n) and 12−1/q(n)\tfrac12 - 1/q(n), gives the same class, and so does error 2−r(n)2^{-r(n)} for any polynomial rr: run the circuit O(q(n)2r(n))O(q(n)^2 r(n)) times on fresh ancillas and take the majority, which by the Chernoff bound errs with probability 2−r(n)2^{-r(n)}.
  • Gate set. Any two finite universal gate sets whose gates have efficiently computable entries give the same class, because the Solovay–Kitaev theorem translates each gate to accuracy 1/poly(n)1/\mathrm{poly}(n) with polylogarithmic overhead, and a total operator-norm error δ\delta changes acceptance probabilities by at most 2δ2\delta.
  • Model. The class was defined by Bernstein and Vazirani for quantum Turing machines; Yao showed that uniform polynomial-size circuits give the same class.

Textbook treatments: section 4.5.5 of Nielsen and Chuang and Kitaev, Shen and Vyalyi.

DefinitionQMA (quantum Merlin–Arthur)Established definition

A promise problem Π=(Πyes,Πno)\Pi = (\Pi_{\mathrm{yes}}, \Pi_{\mathrm{no}}) is in QMA if there are polynomials p,qp, q and a uniform family of polynomial-size quantum circuits VxV_x (the verifier, generated in classical polynomial time from the input xx) acting on a witness register of p(∣x∣)p(\abs{x}) qubits and an ancilla register of q(∣x∣)q(\abs{x}) qubits initialised to ∣0⟩\ket{0}, followed by measurement of one output qubit, such that

  • completeness: if x∈Πyesx \in \Pi_{\mathrm{yes}}, there is a state ∣ψ⟩\ket{\psi} of p(∣x∣)p(\abs{x}) qubits with Pr⁡[Vx accepts ∣ψ⟩]≥23\Pr[V_x \text{ accepts } \ket{\psi}] \ge \tfrac23;
  • soundness: if x∈Πnox \in \Pi_{\mathrm{no}}, every state ∣ψ⟩\ket{\psi} (equivalently every mixed state) of p(∣x∣)p(\abs{x}) qubits gives Pr⁡[Vx accepts ∣ψ⟩]≤13\Pr[V_x \text{ accepts } \ket{\psi}] \le \tfrac13.

The constants can be replaced by 1−2−r1 - 2^{-r} and 2−r2^{-r} for any polynomial rr. The naive approach of measuring several copies does not obviously work, because a dishonest witness may entangle the copies; the parallel-repetition analysis that handles this is in Kitaev, Shen and Vyalyi, where the class appears under the name BQNP. Restricting the witness to a classical string gives the class QCMA, and removing the witness gives BQP, so NP⊆QCMA⊆QMA\mathrm{NP} \subseteq \mathrm{QCMA} \subseteq \mathrm{QMA} and BQP⊆QMA\mathrm{BQP} \subseteq \mathrm{QMA}. The canonical QMA-complete problem is the local Hamiltonian problem (Kempe, Kitaev and Regev).

Definitionk-local Hamiltonian problemEstablished definition

Fix an integer k≥1k \ge 1. An instance of the kk-local Hamiltonian problem consists of

  • a Hamiltonian H=∑j=1mHjH = \sum_{j=1}^{m} H_j on nn qubits with m≤poly(n)m \le \mathrm{poly}(n), where each HjH_j is Hermitian, acts nontrivially on at most kk qubits, satisfies ∥Hj∥≤poly(n)\norm{H_j} \le \mathrm{poly}(n), and has matrix entries specified with poly(n)\mathrm{poly}(n) bits;
  • two numbers a<ba < b with b−a≥1/poly(n)b - a \ge 1/\mathrm{poly}(n), the promise gap.

It is promised that the smallest eigenvalue λmin⁡(H)\lambda_{\min}(H) satisfies either λmin⁡(H)≤a\lambda_{\min}(H) \le a (a yes-instance) or λmin⁡(H)≥b\lambda_{\min}(H) \ge b (a no-instance); the task is to decide which. Because of the promise it is a promise problem. A ground state is a natural QMA witness for a yes-instance: the verifier estimates its energy by measuring a randomly chosen term. This formulation follows Kitaev, Shen and Vyalyi and Kempe, Kitaev and Regev.

Theorems

Placing BQP among classical classes

TheoremBPP ⊆ BQP ⊆ PP ⊆ PSPACEEstablished result
BPP⊆BQP⊆PP⊆PSPACE.\mathrm{BPP} \subseteq \mathrm{BQP} \subseteq \mathrm{PP} \subseteq \mathrm{PSPACE}.

Here PP (Gill) is the class of languages LL for which a nondeterministic polynomial-time machine, all of whose computation paths have the same length, accepts on more than half of its paths exactly when x∈Lx \in L.

BQP⊆PSPACE\mathrm{BQP} \subseteq \mathrm{PSPACE} is due to Bernstein and Vazirani, and the sharper BQP⊆PP\mathrm{BQP} \subseteq \mathrm{PP} to Adleman, DeMarrais and Huang. Fortnow and Rogers strengthened the latter to PPBQP=PP\mathrm{PP}^{\mathrm{BQP}} = \mathrm{PP}.

Consequence. If P=PSPACE\mathrm{P} = \mathrm{PSPACE} then BQP⊆PSPACE=P⊆BPP\mathrm{BQP} \subseteq \mathrm{PSPACE} = \mathrm{P} \subseteq \mathrm{BPP}. So a proof that BQP≠BPP\mathrm{BQP} \neq \mathrm{BPP} would prove P≠PSPACE\mathrm{P} \neq \mathrm{PSPACE}, a major open problem of classical complexity theory; this is why every known quantum speedup for a decision problem is either relative to an oracle or conditional on an unproven assumption such as the classical hardness of factoring.

Holds when
  • BQP is defined with a gate set whose amplitudes are efficiently computable; the proof uses Toffoli and Hadamard, which is computationally universal.
Proof · Proof that BPP ⊆ BQP ⊆ PP ⊆ PSPACE

BPP ⊆ BQP. A BPP algorithm is a deterministic polynomial-time computation A(x,r)A(x, r) on the input xx and a uniformly random string r∈{0,1}sr \in \{0,1\}^{s}. Every deterministic computation can be made reversible with polynomial overhead and written as a circuit of Toffoli and NOT gates acting on ∣x⟩∣r⟩∣0⋯0⟩\ket{x}\ket{r}\ket{0\cdots0} (section 3.2.5 of Nielsen and Chuang). Prepare rr by applying HH to ss fresh qubits in ∣0⟩\ket{0}, giving 2−s/2∑r∣r⟩2^{-s/2}\sum_r \ket{r}, and run the reversible circuit. Since the circuit permutes basis states, measuring the output bit gives outcome 1 with probability 2−s #{r:A(x,r)=1}2^{-s}\,\#\{r : A(x,r) = 1\}, exactly the classical acceptance probability.

BQP ⊆ PP. By the results of Shi (with a short proof by Aharonov), every language in BQP is decided, with the same acceptance probabilities up to an arbitrarily small change that preserves the 23\tfrac23 versus 13\tfrac13 gap after amplification, by a uniform family of polynomial-size circuits whose gates are Toffoli and HH and whose amplitudes are therefore real. Fix the input xx and such a circuit GL⋯G1G_L \cdots G_1 on basis input z0=x 0⋯0z_0 = x\,0\cdots0, and let hh be the number of Hadamards.

Paths. For b∈{0,1}hb \in \{0,1\}^h define basis strings z0,z1,…,zLz_0, z_1, \dots, z_L and a sign s(b)s(b): if GjG_j is a Toffoli, zj=Gj(zj−1)z_j = G_j(z_{j-1}); if GjG_j is the ii-th Hadamard, acting on qubit qq, then zjz_j equals zj−1z_{j-1} with bit qq replaced by bib_i, and the sign picks up a factor (−1)zj−1[q] bi(-1)^{z_{j-1}[q]\, b_i}. Write end(b)=zL\mathrm{end}(b) = z_L. Since H∣a⟩=2−1/2∑c∈{0,1}(−1)ac∣c⟩H\ket{a} = 2^{-1/2}\sum_{c \in \{0,1\}} (-1)^{ac}\ket{c} and Toffoli permutes basis states, induction on jj and linearity give

GL⋯G1∣z0⟩=2−h/2∑b∈{0,1}hs(b) ∣end(b)⟩,⟨y∣GL⋯G1∣z0⟩=2−h/2∑b: end(b)=ys(b).G_L \cdots G_1 \ket{z_0} = 2^{-h/2} \sum_{b \in \{0,1\}^h} s(b)\, \ket{\mathrm{end}(b)} , \qquad \bra{y} G_L \cdots G_1 \ket{z_0} = 2^{-h/2} \sum_{b :\, \mathrm{end}(b) = y} s(b).

Bias. Let χ(y)=+1\chi(y) = +1 if the output bit of yy is 1 and −1-1 otherwise. With P1P_1 and P0P_0 the probabilities of outputs 1 and 0, and real amplitudes,

P1−P0=∑yχ(y) ⟨y∣GL⋯G1∣z0⟩2=2−h∑b,b′∈{0,1}hend(b)=end(b′)s(b) s(b′) χ(end(b)).P_1 - P_0 = \sum_y \chi(y)\, \bra{y} G_L \cdots G_1 \ket{z_0}^2 = 2^{-h} \sum_{\substack{b, b' \in \{0,1\}^h \\ \mathrm{end}(b) = \mathrm{end}(b')}} s(b)\, s(b')\, \chi(\mathrm{end}(b)).

A majority machine. Let MM be the nondeterministic machine that, on input xx, computes the circuit (possible in polynomial time by uniformity), guesses b,b′∈{0,1}hb, b' \in \{0,1\}^h and one further bit cc, and simulates both paths, computing end(b)\mathrm{end}(b), end(b′)\mathrm{end}(b'), s(b)s(b) and s(b′)s(b') in polynomial time. If end(b)≠end(b′)\mathrm{end}(b) \ne \mathrm{end}(b') it accepts if and only if c=0c = 0. Otherwise it accepts if and only if σ=s(b)s(b′)χ(end(b))=+1\sigma = s(b) s(b') \chi(\mathrm{end}(b)) = +1, whatever cc is. All computation paths have the same length. Pairs with different endpoints contribute one accepting and one rejecting path; pairs with equal endpoints contribute two accepting paths if σ=+1\sigma = +1 and two rejecting paths if σ=−1\sigma = -1. Hence

#accept(x)−#reject(x)=2∑end(b)=end(b′)σ=2h+1(P1−P0).\#\mathrm{accept}(x) - \#\mathrm{reject}(x) = 2 \sum_{\mathrm{end}(b) = \mathrm{end}(b')} \sigma = 2^{h+1} (P_1 - P_0).

If x∈Lx \in L then P1−P0≥13>0P_1 - P_0 \ge \tfrac13 > 0, so more than half of the paths of MM accept; if x∉Lx \notin L then P1−P0≤−13<0P_1 - P_0 \le -\tfrac13 < 0, so fewer than half do. Thus L∈PPL \in \mathrm{PP}. This proves the containment of Adleman, DeMarrais and Huang by a path-counting argument written with the Toffoli–Hadamard gate set; their original proof is set up differently.

PP ⊆ PSPACE. Given a PP machine with paths of length p(n)p(n), enumerate the strings of nondeterministic choices in lexicographic order, simulating each path in polynomial space and reusing that space, and keep a p(n)+1p(n)+1-bit counter of accepting paths. At the end compare the counter with 2p(n)−12^{p(n)-1}. Combined with the previous step this gives BQP⊆PSPACE\mathrm{BQP} \subseteq \mathrm{PSPACE}, which was first proved by Bernstein and Vazirani.

Factoring, in its decision version, is in NP∩coNP\mathrm{NP} \cap \mathrm{coNP} and in BQP by Shor's algorithm; it is not believed to be NP-complete. Whether NP⊆BQP\mathrm{NP} \subseteq \mathrm{BQP} is open, and so is whether BQP⊆NP\mathrm{BQP} \subseteq \mathrm{NP}.

Hamiltonian complexity

TheoremThe local Hamiltonian problem is QMA-completeEstablished result

For every k≥2k \ge 2, the kk-local Hamiltonian problem is QMA-complete: it lies in QMA, and every problem in QMA reduces to it by a classical polynomial-time (Karp) reduction. For k=1k = 1 the problem is in P, since a sum of single-qubit terms is minimised qubit by qubit.

Attribution. Kitaev proved QMA-completeness for k=5k = 5; the proof is in Kitaev, Shen and Vyalyi. Completeness for k=3k = 3 was known before Kempe, Kitaev and Regev, who settled k=2k = 2, giving two proofs, one by elementary linear algebra and one by perturbation theory.

Idea of hardness. Given a verifier circuit UT⋯U1U_T \cdots U_1, add a clock register and build H=Hin+Hout+Hprop+HclockH = H_{\mathrm{in}} + H_{\mathrm{out}} + H_{\mathrm{prop}} + H_{\mathrm{clock}}. HpropH_{\mathrm{prop}} has zero-energy states exactly on history states

∣η⟩=1T+1∑t=0TUt⋯U1∣ξ⟩⊗∣t⟩,\ket{\eta} = \frac{1}{\sqrt{T+1}} \sum_{t=0}^{T} U_t \cdots U_1 \ket{\xi} \otimes \ket{t} ,

HinH_{\mathrm{in}} penalises a wrongly initialised ancilla, HoutH_{\mathrm{out}} penalises rejection at time TT, and HclockH_{\mathrm{clock}} penalises invalid clock encodings. If some witness is accepted with high probability, its history state has low energy; if every witness is rejected with high probability, every state has energy at least an inverse polynomial in TT higher. The size of that gap is governed by the propagation-Hamiltonian spectrum.

Holds when
  • The promise gap b−ab - a is at least an inverse polynomial in the number of qubits.
  • Completeness is for the promise class (PromiseQMA), conventionally written QMA.
EquationSpectrum of the Feynman–Kitaev propagation HamiltonianEstablished result
spec⁡(∑t=1THprop,t)={1−cos⁡πkT+1  :  k=0,1,…,T}\operatorname{spec}\Big(\sum_{t=1}^{T} H_{\mathrm{prop},t}\Big) = \Big\{ 1 - \cos\frac{\pi k}{T+1} \;:\; k = 0, 1, \dots, T \Big\}

Conjugating by the unitary W=∑t=0TUt⋯U1⊗∣t⟩⟨t∣W = \sum_{t=0}^{T} U_t \cdots U_1 \otimes \ketbra{t}{t} removes the gates: W†Hprop,tW=I⊗12(∣t⟩⟨t∣+∣t−1⟩⟨t−1∣−∣t⟩⟨t−1∣−∣t−1⟩⟨t∣)W\dagg H_{\mathrm{prop},t} W = I \otimes \tfrac12 \big(\ketbra{t}{t} + \ketbra{t-1}{t-1} - \ketbra{t}{t-1} - \ketbra{t-1}{t}\big), because (Ut⋯U1)† Ut (Ut−1⋯U1)=I(U_t \cdots U_1)\dagg\, U_t\, (U_{t-1} \cdots U_1) = I. Summing over tt gives I⊗12LI \otimes \tfrac12 L, where LL is the Laplacian of the path graph on the vertices 0,…,T0, \dots, T, whose eigenvalues are 2−2cos⁡(πk/(T+1))2 - 2\cos(\pi k/(T+1)). The zero eigenspace consists of the history states; the next eigenvalue is

1−cos⁡πT+1  ≈  π22(T+1)2.1 - \cos\frac{\pi}{T+1} \;\approx\; \frac{\pi^2}{2(T+1)^2}.

This inverse-quadratic gap, combined with the penalty terms, is why Kitaev's construction yields a promise gap that is only inverse-polynomial in TT (Kitaev, Shen and Vyalyi).

Holds when
  • Clock states ∣t⟩\ket{t}, t=0,…,Tt = 0, \dots, T, are orthonormal (an idealised clock; physical constructions encode it in qubits and add a clock penalty).
  • Hprop,t=12(I⊗∣t⟩⟨t∣+I⊗∣t−1⟩⟨t−1∣−Ut⊗∣t⟩⟨t−1∣−Ut†⊗∣t−1⟩⟨t∣)H_{\mathrm{prop},t} = \tfrac12\big( I \otimes \ketbra{t}{t} + I \otimes \ketbra{t-1}{t-1} - U_t \otimes \ketbra{t}{t-1} - U_t\dagg \otimes \ketbra{t-1}{t} \big) with UtU_t unitary.
  • Each eigenvalue occurs with multiplicity equal to the dimension of the computational register.

Oracle separations

Relative to oracles, quantum computation is provably more powerful than classical computation. Bernstein and Vazirani gave an oracle problem (recursive Fourier sampling) with a superpolynomial separation between BQP and BPP; Simon gave an exponential one, whose structure inspired Shor's algorithm; and Raz and Tal constructed an oracle relative to which BQP is not contained in the polynomial hierarchy PH. In the other direction, Fortnow and Rogers gave an oracle relative to which P=BQP\mathrm{P} = \mathrm{BQP} while PH is infinite. Oracle results do not settle the unrelativised questions, but they rule out proof techniques that relativise.

Query lower bounds

TheoremQuantum query lower bound for unstructured searchEstablished result

Suppose a quantum algorithm making TT queries outputs, for every x∈{0,…,N−1}x \in \{0, \dots, N-1\}, the value xx with probability at least 1/21/2 when run with the oracle OxO_x. Then

T  ≥  316N−32N,T \;\ge\; \frac{3}{16}\sqrt{N} - \frac{3}{2\sqrt N} ,

so T=Ω(N)T = \Omega(\sqrt N). The same bound holds for the bit oracle ∣y⟩∣b⟩↦∣y⟩∣b⊕[y=x]⟩\ket{y}\ket{b} \mapsto \ket{y}\ket{b \oplus [y = x]}, which is equivalent to OxO_x up to one ancilla.

This is the theorem of Bennett, Bernstein, Brassard and Vazirani, who used it to show that, relative to a random oracle, NP\mathsf{NP} is not contained in BQTIME(o(2n/2))\mathsf{BQTIME}(o(2^{n/2})). Boyer, Brassard, Høyer and Tapp sharpened the constant, and Zalka proved that Grover's algorithm is exactly optimal: no algorithm with fewer queries achieves the same success probability. The constant 3/163/16 above is not tight: the standard hybrid argument already gives T≥N2(2−2/N−2−2)≈0.32NT \ge \tfrac{\sqrt N}{2}\big(\sqrt{2 - 2/\sqrt N} - \sqrt{2 - \sqrt 2}\big) \approx 0.32\sqrt N, and Grover search uses about (π/4)N(\pi/4)\sqrt N queries.

Holds when
  • Query model - the algorithm is a sequence of fixed unitaries interleaved with TT calls to the oracle; only oracle calls are counted.
  • For x∈{0,…,N−1}x \in \{0, \dots, N-1\} the oracle OxO_x multiplies the query basis state ∣x⟩\ket{x} by −1-1 and acts as the identity on all other query states and on the workspace.
Proof · Proof of the search lower bound (hybrid argument)

Setup. The algorithm acts on a query register with basis {∣y⟩:0≤y<N}\{\ket{y} : 0 \le y < N\} and a workspace. With oracle OO it produces UTOUT−1O⋯U1OU0∣0⟩U_T O U_{T-1} O \cdots U_1 O U_0 \ket{0} for fixed unitaries U0,…,UTU_0, \dots, U_T. Write ∣ψtx⟩\ket{\psi_t^x} for the state just after UtU_t when the oracle is OxO_x, and ∣ψt⟩\ket{\psi_t} for the same with every oracle call replaced by the identity. Let Πx=∣x⟩⟨x∣⊗I\Pi_x = \ketbra{x}{x} \otimes I, so that Ox=I−2ΠxO_x = I - 2\Pi_x, and put Dtx=∥∣ψtx⟩−∣ψt⟩∥D_t^x = \lVert \ket{\psi_t^x} - \ket{\psi_t} \rVert; D0x=0D_0^x = 0.

One query moves the state little. Since ∣ψt+1x⟩−∣ψt+1⟩=Ut+1(Ox∣ψtx⟩−∣ψt⟩)\ket{\psi_{t+1}^x} - \ket{\psi_{t+1}} = U_{t+1}\big(O_x\ket{\psi_t^x} - \ket{\psi_t}\big) and Ox∣ψtx⟩−∣ψt⟩=Ox(∣ψtx⟩−∣ψt⟩)+(Ox−I)∣ψt⟩O_x\ket{\psi_t^x} - \ket{\psi_t} = O_x(\ket{\psi_t^x} - \ket{\psi_t}) + (O_x - I)\ket{\psi_t},

Dt+1x≤Dtx+∥(Ox−I)∣ψt⟩∥=Dtx+2∥Πx∣ψt⟩∥.D_{t+1}^x \le D_t^x + \lVert (O_x - I)\ket{\psi_t} \rVert = D_t^x + 2\lVert \Pi_x\ket{\psi_t} \rVert .

Hence DTx≤2∑t=0T−1∥Πx∣ψt⟩∥D_T^x \le 2\sum_{t=0}^{T-1} \lVert\Pi_x\ket{\psi_t}\rVert.

Summing over the marked position. For each tt, ∑x∥Πx∣ψt⟩∥2=∥∣ψt⟩∥2=1\sum_x \lVert\Pi_x\ket{\psi_t}\rVert^2 = \lVert\ket{\psi_t}\rVert^2 = 1, so by Cauchy–Schwarz ∑x∥Πx∣ψt⟩∥≤N\sum_x \lVert\Pi_x\ket{\psi_t}\rVert \le \sqrt N. Therefore

∑x=0N−1DTx≤2TN.\sum_{x=0}^{N-1} D_T^x \le 2T\sqrt N .

Success forces movement. Let pxp_x be the probability that the final measurement outputs xx on the state ∣ψT⟩\ket{\psi_T} (empty oracle). Since ∑xpx≤1\sum_x p_x \le 1, at most N/4N/4 indices have px>4/Np_x > 4/N, so at least 3N/43N/4 indices satisfy px≤4/Np_x \le 4/N. For each of these, the outcome xx has probability at least 1/21/2 on ∣ψTx⟩\ket{\psi_T^x} and at most 4/N4/N on ∣ψT⟩\ket{\psi_T}. The difference of the probabilities of one outcome is at most the trace distance of the two states, which for unit vectors ∣u⟩,∣v⟩\ket u, \ket v is 1−∣⟨u∣v⟩∣2≤∥∣u⟩−∣v⟩∥\sqrt{1 - \lvert\braket{u}{v}\rvert^2} \le \lVert\ket u - \ket v\rVert (because 1−∣⟨u∣v⟩∣2≤2(1−Re⁡⟨u∣v⟩)1 - \lvert\braket{u}{v}\rvert^2 \le 2(1 - \operatorname{Re}\braket{u}{v})). Hence DTx≥1/2−4/ND_T^x \ge 1/2 - 4/N for at least 3N/43N/4 values of xx, and

2TN≥∑xDTx≥3N4(12−4N)=3N8−3.2T\sqrt N \ge \sum_x D_T^x \ge \frac{3N}{4}\Big(\frac12 - \frac4N\Big) = \frac{3N}{8} - 3 .

Dividing by 2N2\sqrt N gives T≥316N−32NT \ge \tfrac{3}{16}\sqrt N - \tfrac{3}{2\sqrt N}.

Bit oracle. With an ancilla prepared in ∣−⟩\ket{-}, the bit oracle acts as OxO_x on the remaining registers; conversely OxO_x is the bit oracle conjugated by fixed gates on an ancilla. Any algorithm for one oracle is thus an algorithm for the other with the same number of queries, and the bound transfers.

This is the hybrid argument of Bennett, Bernstein, Brassard and Vazirani; section 6.6 of Nielsen and Chuang gives a closely related version for the exact case.

TheoremPolynomial method for quantum query lower boundsEstablished result

For every TT-query quantum algorithm there is a real multilinear polynomial pp in x1,…,xNx_1, \dots, x_N of degree at most 2T2T such that

Pr⁡[the algorithm accepts on input x]=p(x)for every x∈{0,1}N.\Pr[\text{the algorithm accepts on input } x] = p(x) \qquad \text{for every } x \in \{0,1\}^N .

Consequence. For f:{0,1}N→{0,1}f : \{0,1\}^N \to \{0,1\} let deg⁡~ε(f)\widetilde{\deg}_\varepsilon(f) be the least degree of a real polynomial pp with ∣p(x)−f(x)∣≤ε\abs{p(x) - f(x)} \le \varepsilon for all xx, and deg⁡(f)\deg(f) the degree of its exact multilinear representation. If an algorithm computes ff with error at most ε\varepsilon using TT queries, then T≥deg⁡~ε(f)/2T \ge \widetilde{\deg}_\varepsilon(f)/2; an exact algorithm needs T≥deg⁡(f)/2T \ge \deg(f)/2.

The lemma is due to Beals, Buhrman, Cleve, Mosca and de Wolf, who used it to show, among other results, that parity of NN bits needs N/2N/2 queries even with bounded error, and that for every total Boolean function the bounded-error quantum query complexity is polynomially related to the deterministic classical one (the classical complexity is O(T6)O(T^6)).

Holds when
  • Input x∈{0,1}Nx \in \{0,1\}^N accessed only through the oracle Ox∣i,b,w⟩=∣i,b⊕xi,w⟩O_x \ket{i, b, w} = \ket{i, b \oplus x_i, w}; the unitaries between queries do not depend on xx.
  • A TT-query algorithm prepares UTOxUT−1Ox⋯OxU0∣0⟩U_T O_x U_{T-1} O_x \cdots O_x U_0 \ket{0} and accepts on a fixed set of basis states.
Proof · Proof of the polynomial method lemma

Claim. After kk queries (that is, after applying UkOx⋯OxU0U_k O_x \cdots O_x U_0), the state is ∑zαz(x)∣z⟩\sum_z \alpha_z(x) \ket{z}, where each amplitude αz\alpha_z is a complex multilinear polynomial in x1,…,xNx_1, \dots, x_N of degree at most kk. Basis states are written z=(i,b,w)z = (i, b, w) with ii the query index, bb the answer bit and ww the workspace.

Base case. Before the first query the state is U0∣0⟩U_0\ket{0}, whose amplitudes do not depend on xx: degree 0.

Query step. Suppose the state is ∑zαz(x)∣z⟩\sum_z \alpha_z(x)\ket{z} with deg⁡αz≤k\deg \alpha_z \le k. Since Ox∣i,b,w⟩=∣i,b⊕xi,w⟩O_x\ket{i, b, w} = \ket{i, b \oplus x_i, w}, the amplitude of ∣i,b,w⟩\ket{i, b, w} after the query is

αi,b,w′(x)=(1−xi) αi,b,w(x)+xi αi,1−b,w(x),\alpha'_{i,b,w}(x) = (1 - x_i)\, \alpha_{i,b,w}(x) + x_i\, \alpha_{i,1-b,w}(x),

because the basis state ∣i,b,w⟩\ket{i, b, w} is reached from ∣i,b,w⟩\ket{i, b, w} when xi=0x_i = 0 and from ∣i,1−b,w⟩\ket{i, 1-b, w} when xi=1x_i = 1. This has degree at most k+1k+1. On {0,1}N\{0,1\}^N we have xi2=xix_i^2 = x_i, so any power can be reduced and the polynomial taken multilinear without raising the degree.

Unitary step. Uk+1U_{k+1} does not depend on xx, so each new amplitude is a fixed linear combination of the old ones and its degree does not increase.

By induction the claim holds for k=Tk = T.

Acceptance probability. Write αz=βz+iγz\alpha_z = \beta_z + i\gamma_z with βz\beta_z, γz\gamma_z real polynomials (take real and imaginary parts of the coefficients); each has degree at most TT. The acceptance probability is

p(x)=∑z∈Acc∣αz(x)∣2=∑z∈Acc(βz(x)2+γz(x)2),p(x) = \sum_{z \in \mathrm{Acc}} \abs{\alpha_z(x)}^2 = \sum_{z \in \mathrm{Acc}} \left( \beta_z(x)^2 + \gamma_z(x)^2 \right),

a real polynomial of degree at most 2T2T; reducing xi2→xix_i^2 \to x_i makes it multilinear.

Consequence. If the algorithm errs with probability at most ε\varepsilon, then p(x)≥1−εp(x) \ge 1-\varepsilon when f(x)=1f(x) = 1 and p(x)≤εp(x) \le \varepsilon when f(x)=0f(x) = 0, so ∣p(x)−f(x)∣≤ε\abs{p(x) - f(x)} \le \varepsilon on {0,1}N\{0,1\}^N and 2T≥deg⁡p≥deg⁡~ε(f)2T \ge \deg p \ge \widetilde{\deg}_\varepsilon(f). For an exact algorithm p=fp = f on the cube, and since the multilinear representation of a function on {0,1}N\{0,1\}^N is unique, 2T≥deg⁡(f)2T \ge \deg(f). This is the argument of Beals, Buhrman, Cleve, Mosca and de Wolf.

TheoremAmbainis adversary boundEstablished result

Let X⊆f−1(0)X \subseteq f^{-1}(0), Y⊆f−1(1)Y \subseteq f^{-1}(1) and let R⊆X×YR \subseteq X \times Y be a relation such that

  • every x∈Xx \in X is related to at least mm elements of YY;
  • every y∈Yy \in Y is related to at least m′m' elements of XX;
  • for every x∈Xx \in X and index ii, at most ℓ\ell elements yy with (x,y)∈R(x, y) \in R have yi≠xiy_i \ne x_i;
  • for every y∈Yy \in Y and index ii, at most ℓ′\ell' elements xx with (x,y)∈R(x, y) \in R have xi≠yix_i \ne y_i.

Then every quantum algorithm computing ff with bounded error makes

Ω ⁣(m m′ℓ ℓ′)\Omega\!\left( \sqrt{\frac{m\, m'}{\ell\, \ell'}} \right)

queries. For OR on NN bits, take X={0N}X = \{0^N\}, YY the NN strings of weight one and R=X×YR = X \times Y: then m=Nm = N, m′=1m' = 1, ℓ=ℓ′=1\ell = \ell' = 1, and the bound is Ω(N)\Omega(\sqrt{N}). The method, which runs the algorithm on a superposition of inputs and tracks the entanglement between input and workspace, is due to Ambainis, who used it to prove new Ω(N)\Omega(\sqrt{N}) bounds for inverting a permutation and for an AND of ORs.

Holds when
  • Boolean function ff on a subset of {0,1}N\{0,1\}^N, accessed by the standard query oracle; bounded error.

Interactive proofs

TheoremMIP* = REPreprint result
MIP∗=RE.\mathrm{MIP}^* = \mathrm{RE}.

Here MIP∗\mathrm{MIP}^* is the class of languages with multiprover interactive proofs in which the provers may share entanglement, and RE the class of recursively enumerable languages (those for which some Turing machine halts and accepts on exactly the members; the halting problem is the standard example). The proof, by Ji, Natarajan, Vidick, Wright and Yuen, gives an efficient reduction from the halting problem to deciding whether a two-player nonlocal game has entangled value 1 or at most 12\tfrac12. Through known equivalences this yields a negative answer to Tsirelson's problem: the set of correlations obtainable in the tensor-product model is not dense in the commuting-operator set, and Connes' embedding conjecture is false.

Status. As of 2026-11 the complete proof is the authors' arXiv manuscript; a research-highlight version appeared in Communications of the ACM. The record is labelled preprint for that reason.

By contrast, with a single prover and quantum messages, QIP=PSPACE\mathrm{QIP} = \mathrm{PSPACE} (Jain, Ji, Upadhyay and Watrous): entanglement between provers, not quantum communication, is the source of the extra power.

Holds when
  • Provers share an arbitrary finite-dimensional entangled state in the tensor-product model and cannot communicate.
  • The verifier is classical, randomised and polynomial time.

Detailed Derivations and Proofs

The proofs of the containments and of the polynomial method are attached to their statements above. For the local Hamiltonian problem, membership in QMA is the easier half: given a claimed ground state, the verifier picks a term HjH_j at random and performs a two-outcome measurement whose acceptance probability is an affine, decreasing function of ⟨ψ∣Hj∣ψ⟩\bra{\psi} H_j \ket{\psi}, so the average acceptance probability separates the yes and no cases by an inverse polynomial, which is then amplified. QMA-hardness via the circuit-to-Hamiltonian construction is proved in full for k=5k = 5 in Kitaev, Shen and Vyalyi and for k=2k = 2 in Kempe, Kitaev and Regev; this page proves only the spectral fact behind the promise gap, in the propagation-Hamiltonian record.

Worked Examples

The promise gap for small and large circuits

For a verifier with T=3T = 3 gates the propagation Hamiltonian has eigenvalues 1−cos⁡(πk/4)1 - \cos(\pi k/4) for k=0,1,2,3k = 0, 1, 2, 3:

0,1−22≈0.293,1,1+22≈1.707,0, \quad 1 - \tfrac{\sqrt2}{2} \approx 0.293, \quad 1, \quad 1 + \tfrac{\sqrt2}{2} \approx 1.707 ,

each with multiplicity equal to the dimension of the computational register. For T=100T = 100 the gap above the history states is 1−cos⁡(π/101)≈4.84×10−41 - \cos(\pi/101) \approx 4.84 \times 10^{-4}, close to the estimate π2/(2⋅1012)≈4.84×10−4\pi^2/(2 \cdot 101^2) \approx 4.84 \times 10^{-4}. The gap shrinks quadratically with circuit length, which is the origin of the inverse-polynomial promise gap.

Parity needs N/2N/2 queries

For N=2N = 2, x1⊕x2=x1+x2−2x1x2x_1 \oplus x_2 = x_1 + x_2 - 2 x_1 x_2 has degree 2, so by the polynomial method at least one query is needed, and Deutsch's algorithm uses exactly one. For general NN, the multilinear representation of parity is

PARITYN(x)=1−∏i=1N(1−2xi)2,\mathrm{PARITY}_N(x) = \frac{1 - \prod_{i=1}^{N} (1 - 2x_i)}{2},

of degree NN, so an exact algorithm needs at least N/2N/2 queries; pairing the bits and computing each pair's parity with one query attains ⌈N/2⌉\lceil N/2 \rceil. Beals et al. show that even bounded error does not help: N/2N/2 queries remain necessary. A quantum computer therefore halves, but cannot do better than halve, the classical cost NN.

The adversary bound for OR

With X={0N}X = \{0^N\} and YY the weight-one strings, the adversary bound has m=Nm = N, m′=1m' = 1, ℓ=ℓ′=1\ell = \ell' = 1, giving Ω(N)\Omega(\sqrt{N}). For N=106N = 10^6 this means of order 10310^3 queries, against the ≈π4N≈785\approx \tfrac{\pi}{4}\sqrt{N} \approx 785 used by Grover's algorithm for a single marked item.

Limitations and Common Pitfalls

  • Worst case is not typical case. QMA-hardness of the local Hamiltonian problem says that no efficient algorithm handles every instance; it says nothing about the structured Hamiltonians of chemistry or materials, and nothing about whether a heuristic works on them.
  • Promise problems behave differently from languages. Completeness for approximation problems is completeness for the promise class. Arguments of the form "in NP∩coNP\mathrm{NP} \cap \mathrm{coNP}, hence not NP-hard unless NP=coNP\mathrm{NP} = \mathrm{coNP}" hold for languages but can fail for promise problems under Cook reductions.
  • No unconditional separation is known. BQP≠BPP\mathrm{BQP} \ne \mathrm{BPP} would imply P≠PSPACE\mathrm{P} \ne \mathrm{PSPACE}; every speedup for a decision problem is oracle-relative or rests on an unproven assumption.
  • Oracle results do not transfer automatically. An oracle separation shows what relativising techniques cannot prove; it is not evidence about the unrelativised world by itself.
  • Query complexity is not time complexity. A query lower bound bounds oracle calls; the gates between queries may be expensive or cheap independently.
  • Sampling is not decision. Advantage experiments use sampling tasks, not BQP decision problems; see quantum advantage.

Open Problems

Whether BQP≠BPP\mathrm{BQP} \ne \mathrm{BPP} without oracles, the relationship between BQP and NP, and whether the local Hamiltonian problem remains QMA-hard when the promise gap is a constant fraction of the norm (the quantum PCP conjecture, surveyed by Aharonov, Arad and Vidick) are open. This page records no new problems.

Builds on

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Ethan Bernstein, Umesh Vazirani (1997). Quantum complexity theory. SIAM Journal on Computing 26(5), 1411-1473. doi:10.1137/S0097539796300921
  2. Andrew Chi-Chih Yao (1993). Quantum circuit complexity. Proceedings of the 34th Annual Symposium on Foundations of Computer Science (FOCS), 352-361. doi:10.1109/SFCS.1993.366852
  3. Leonard M. Adleman, Jonathan DeMarrais, Ming-Deh A. Huang (1997). Quantum computability. SIAM Journal on Computing 26(5), 1524-1540. doi:10.1137/S0097539795293639
  4. Lance Fortnow, John Rogers (1999). Complexity Limitations on Quantum Computation. Journal of Computer and System Sciences 59, 240-252. doi:10.1006/jcss.1999.1651arXiv:cs/9811023
  5. Daniel R. Simon (1997). On the Power of Quantum Computation. SIAM Journal on Computing 26, 1474-1483. doi:10.1137/S0097539796298637
  6. Ran Raz, Avishay Tal (2022). Oracle Separation of BQP and PH. Journal of the ACM 69, 1-21. doi:10.1145/3530258
  7. Charles H. Bennett, Ethan Bernstein, Gilles Brassard, Umesh Vazirani (1997). Strengths and weaknesses of quantum computing. SIAM Journal on Computing 26(5), 1510-1523. doi:10.1137/S0097539796300933arXiv:quant-ph/9701001
  8. Robert Beals, Harry Buhrman, Richard Cleve, … Ronald de Wolf (2001). Quantum lower bounds by polynomials. Journal of the ACM 48, 778-797. doi:10.1145/502090.502097arXiv:quant-ph/9802049
  9. Andris Ambainis (2002). Quantum lower bounds by quantum arguments. Journal of Computer and System Sciences 64, 750-767. doi:10.1006/jcss.2002.1826arXiv:quant-ph/0002066
  10. A. Yu. Kitaev, A. H. Shen, M. N. Vyalyi (2002). Classical and Quantum Computation. Graduate Studies in Mathematics 47, American Mathematical Society. doi:10.1090/gsm/047
  11. Julia Kempe, Alexei Kitaev, Oded Regev (2006). The Complexity of the Local Hamiltonian Problem. SIAM Journal on Computing 35, 1070-1097. doi:10.1137/S0097539704445226arXiv:quant-ph/0406180
  12. Rahul Jain, Zhengfeng Ji, Sarvagya Upadhyay, John Watrous (2011). QIP = PSPACE. Journal of the ACM 58, 1-27. doi:10.1145/2049697.2049704arXiv:0907.4737
  13. Zhengfeng Ji, Anand Natarajan, Thomas Vidick, … Henry Yuen (2021). MIP* = RE. Communications of the ACM 64, 131-138. doi:10.1145/3485628arXiv:2001.04383
  14. Dorit Aharonov, Itai Arad, Thomas Vidick (2013). The quantum PCP conjecture. ACM SIGACT News 44(2), 47-79. doi:10.1145/2491533.2491549arXiv:1309.7495
  15. Peter W. Shor (1997). Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM Journal on Computing 26(5), 1484-1509. doi:10.1137/S0097539795293172arXiv:quant-ph/9508027
  16. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667
  17. John Gill (1977). Computational Complexity of Probabilistic Turing Machines. SIAM Journal on Computing 6, 675-695. doi:10.1137/0206049
  18. Yaoyun Shi (2003). Both Toffoli and Controlled-NOT need little help to do universal quantum computation. Quantum Information and Computation 3, 84-92. doi:10.26421/QIC3.1-7arXiv:quant-ph/0205115
  19. Dorit Aharonov (2003). A Simple Proof that Toffoli and Hadamard are Quantum Universal. arXiv:quant-ph/0301040
  20. Christof Zalka (1999). Grover's quantum searching algorithm is optimal. Physical Review A 60, 2746. doi:10.1103/PhysRevA.60.2746arXiv:quant-ph/9711070
  21. Michel Boyer, Gilles Brassard, Peter Høyer, Alain Tapp (1998). Tight bounds on quantum searching. Fortschritte der Physik 46, 493-505. arXiv:quant-ph/9605034

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Topic body only (embedded records carry their own review states). Worked examples recomputed (T = 3 eigenvalues 0, 0.293, 1, 1.707; T = 100 gap 4.837e-4 vs pi^2/(2 101^2) = 4.838e-4; parity multilinear form and ceil(N/2) pairing; (pi/4) sqrt(1e6) = 785). Statements compared with Watrous arXiv:0804.3401 (Sections IV.5-IV.6, V), Fortnow-Rogers arXiv:cs/9811023 abstract (oracle with P = BQP and infinite PH), Beals et al. arXiv:quant-ph/9802049 (PARITY N/2 with bounded error), Kempe-Kitaev-Regev arXiv:quant-ph/0406180 (KSV 5-local, 2-local), Aharonov-Arad-Vidick arXiv:1309.7495 abstract (quantum PCP), Raz-Tal title and metadata via Crossref (JACM 69, 2022; theorem statement from the title). Simon and Bernstein-Vazirani oracle separations compared with Aharonov's review arXiv:quant-ph/9812037 and Watrous Section IV.6.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 9eda4052c53d0ca5. Source file knowledge/records/topic/quantum-complexity-theory.md in the content repository (readable there once it is public).