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 . 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
Fix a finite approximately universal gate set, for example . A language is in BQP if there are a polynomial and a uniform family of circuits , where acts on qubits and has at most gates, such that for every , running on and measuring the first qubit gives
For a promise problem , a pair of disjoint sets of strings, the same conditions are required only for and , 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, and , gives the same class, and so does error for any polynomial : run the circuit times on fresh ancillas and take the majority, which by the Chernoff bound errs with probability .
- 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 with polylogarithmic overhead, and a total operator-norm error changes acceptance probabilities by at most .
- 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.
A promise problem is in QMA if there are polynomials and a uniform family of polynomial-size quantum circuits (the verifier, generated in classical polynomial time from the input ) acting on a witness register of qubits and an ancilla register of qubits initialised to , followed by measurement of one output qubit, such that
- completeness: if , there is a state of qubits with ;
- soundness: if , every state (equivalently every mixed state) of qubits gives .
The constants can be replaced by and for any polynomial . 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 and . The canonical QMA-complete problem is the local Hamiltonian problem (Kempe, Kitaev and Regev).
Fix an integer . An instance of the -local Hamiltonian problem consists of
- a Hamiltonian on qubits with , where each is Hermitian, acts nontrivially on at most qubits, satisfies , and has matrix entries specified with bits;
- two numbers with , the promise gap.
It is promised that the smallest eigenvalue satisfies either (a yes-instance) or (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
Here PP (Gill) is the class of languages 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 .
is due to Bernstein and Vazirani, and the sharper to Adleman, DeMarrais and Huang. Fortnow and Rogers strengthened the latter to .
Consequence. If then . So a proof that would prove , 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.
- 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 on the input and a uniformly random string . Every deterministic computation can be made reversible with polynomial overhead and written as a circuit of Toffoli and NOT gates acting on (section 3.2.5 of Nielsen and Chuang). Prepare by applying to fresh qubits in , giving , and run the reversible circuit. Since the circuit permutes basis states, measuring the output bit gives outcome 1 with probability , 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 versus gap after amplification, by a uniform family of polynomial-size circuits whose gates are Toffoli and and whose amplitudes are therefore real. Fix the input and such a circuit on basis input , and let be the number of Hadamards.
Paths. For define basis strings and a sign : if is a Toffoli, ; if is the -th Hadamard, acting on qubit , then equals with bit replaced by , and the sign picks up a factor . Write . Since and Toffoli permutes basis states, induction on and linearity give
Bias. Let if the output bit of is 1 and otherwise. With and the probabilities of outputs 1 and 0, and real amplitudes,
A majority machine. Let be the nondeterministic machine that, on input , computes the circuit (possible in polynomial time by uniformity), guesses and one further bit , and simulates both paths, computing , , and in polynomial time. If it accepts if and only if . Otherwise it accepts if and only if , whatever 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 and two rejecting paths if . Hence
If then , so more than half of the paths of accept; if then , so fewer than half do. Thus . 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 , enumerate the strings of nondeterministic choices in lexicographic order, simulating each path in polynomial space and reusing that space, and keep a -bit counter of accepting paths. At the end compare the counter with . Combined with the previous step this gives , which was first proved by Bernstein and Vazirani.
Factoring, in its decision version, is in and in BQP by Shor's algorithm; it is not believed to be NP-complete. Whether is open, and so is whether .
Hamiltonian complexity
For every , the -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 the problem is in P, since a sum of single-qubit terms is minimised qubit by qubit.
Attribution. Kitaev proved QMA-completeness for ; the proof is in Kitaev, Shen and Vyalyi. Completeness for was known before Kempe, Kitaev and Regev, who settled , giving two proofs, one by elementary linear algebra and one by perturbation theory.
Idea of hardness. Given a verifier circuit , add a clock register and build . has zero-energy states exactly on history states
penalises a wrongly initialised ancilla, penalises rejection at time , and 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 higher. The size of that gap is governed by the propagation-Hamiltonian spectrum.
- The promise gap is at least an inverse polynomial in the number of qubits.
- Completeness is for the promise class (PromiseQMA), conventionally written QMA.
Conjugating by the unitary removes the gates: , because . Summing over gives , where is the Laplacian of the path graph on the vertices , whose eigenvalues are . The zero eigenspace consists of the history states; the next eigenvalue is
This inverse-quadratic gap, combined with the penalty terms, is why Kitaev's construction yields a promise gap that is only inverse-polynomial in (Kitaev, Shen and Vyalyi).
- Clock states , , are orthonormal (an idealised clock; physical constructions encode it in qubits and add a clock penalty).
- with 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 while PH is infinite. Oracle results do not settle the unrelativised questions, but they rule out proof techniques that relativise.
Query lower bounds
Suppose a quantum algorithm making queries outputs, for every , the value with probability at least when run with the oracle . Then
so . The same bound holds for the bit oracle , which is equivalent to 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, is not contained in . 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 above is not tight: the standard hybrid argument already gives , and Grover search uses about queries.
- Query model - the algorithm is a sequence of fixed unitaries interleaved with calls to the oracle; only oracle calls are counted.
- For the oracle multiplies the query basis state by 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 and a workspace. With oracle it produces for fixed unitaries . Write for the state just after when the oracle is , and for the same with every oracle call replaced by the identity. Let , so that , and put ; .
One query moves the state little. Since and ,
Hence .
Summing over the marked position. For each , , so by Cauchy–Schwarz . Therefore
Success forces movement. Let be the probability that the final measurement outputs on the state (empty oracle). Since , at most indices have , so at least indices satisfy . For each of these, the outcome has probability at least on and at most on . The difference of the probabilities of one outcome is at most the trace distance of the two states, which for unit vectors is (because ). Hence for at least values of , and
Dividing by gives .
Bit oracle. With an ancilla prepared in , the bit oracle acts as on the remaining registers; conversely 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.
For every -query quantum algorithm there is a real multilinear polynomial in of degree at most such that
Consequence. For let be the least degree of a real polynomial with for all , and the degree of its exact multilinear representation. If an algorithm computes with error at most using queries, then ; an exact algorithm needs .
The lemma is due to Beals, Buhrman, Cleve, Mosca and de Wolf, who used it to show, among other results, that parity of bits needs 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 ).
- Input accessed only through the oracle ; the unitaries between queries do not depend on .
- A -query algorithm prepares and accepts on a fixed set of basis states.
Proof · Proof of the polynomial method lemma
Claim. After queries (that is, after applying ), the state is , where each amplitude is a complex multilinear polynomial in of degree at most . Basis states are written with the query index, the answer bit and the workspace.
Base case. Before the first query the state is , whose amplitudes do not depend on : degree 0.
Query step. Suppose the state is with . Since , the amplitude of after the query is
because the basis state is reached from when and from when . This has degree at most . On we have , so any power can be reduced and the polynomial taken multilinear without raising the degree.
Unitary step. does not depend on , 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 .
Acceptance probability. Write with , real polynomials (take real and imaginary parts of the coefficients); each has degree at most . The acceptance probability is
a real polynomial of degree at most ; reducing makes it multilinear.
Consequence. If the algorithm errs with probability at most , then when and when , so on and . For an exact algorithm on the cube, and since the multilinear representation of a function on is unique, . This is the argument of Beals, Buhrman, Cleve, Mosca and de Wolf.
Let , and let be a relation such that
- every is related to at least elements of ;
- every is related to at least elements of ;
- for every and index , at most elements with have ;
- for every and index , at most elements with have .
Then every quantum algorithm computing with bounded error makes
queries. For OR on bits, take , the strings of weight one and : then , , , and the bound is . 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 bounds for inverting a permutation and for an AND of ORs.
- Boolean function on a subset of , accessed by the standard query oracle; bounded error.
Interactive proofs
Here 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 . 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, (Jain, Ji, Upadhyay and Watrous): entanglement between provers, not quantum communication, is the source of the extra power.
- 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 at random and performs a two-outcome measurement whose acceptance probability is an affine, decreasing function of , 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 in Kitaev, Shen and Vyalyi and for 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 gates the propagation Hamiltonian has eigenvalues for :
each with multiplicity equal to the dimension of the computational register. For the gap above the history states is , close to the estimate . The gap shrinks quadratically with circuit length, which is the origin of the inverse-polynomial promise gap.
Parity needs queries
For , has degree 2, so by the polynomial method at least one query is needed, and Deutsch's algorithm uses exactly one. For general , the multilinear representation of parity is
of degree , so an exact algorithm needs at least queries; pairing the bits and computing each pair's parity with one query attains . Beals et al. show that even bounded error does not help: queries remain necessary. A quantum computer therefore halves, but cannot do better than halve, the classical cost .
The adversary bound for OR
With and the weight-one strings, the adversary bound has , , , giving . For this means of order queries, against the 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 , hence not NP-hard unless " hold for languages but can fail for promise problems under Cook reductions.
- No unconditional separation is known. would imply ; 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 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.