Level 5 · Advanced Topics

Quantum Complexity Theory

About 4,885 words · roughly 22 minute read · sources checked December 2, 2026

Complexity theory asks how the resources needed to solve a problem, usually time, grow with the size of the input. Quantum complexity theory asks the same question for quantum computers, and its main question is the one everyone wants answered: which problems become easy on a quantum computer, and which do not?

The honest answer is subtle. A few things are proven. Many are believed on strong evidence. Many headline claims, such as ‘quantum computers solve NP-complete problems instantly’, are simply false. This lesson separates the three levels carefully, using the proven inclusions between classes, the oracle results that show where speed-ups are real, and the open questions that nobody can answer yet.

You need the Level 3 algorithm lessons, especially Grover’s optimality and Simon’s problem. No prior complexity theory is assumed; every class used is defined.

What you will learn

  • What a complexity class is, and the definitions of P, NP, BPP and BQP.
  • How to reduce the error of a bounded-error algorithm, with numbers.
  • The proven chain BPP ⊆ BQP ⊆ PP ⊆ P^#P ⊆ PSPACE, and what it implies.
  • Query complexity: Deutsch–Jozsa, Simon, Grover, and why oracle separations are evidence, not proof.
  • The Raz–Tal oracle separation of BQP from the polynomial hierarchy, and what it does not show.
  • Why factoring is in BQP but is not believed to be NP-complete.
  • A scale for how much to trust any claim of quantum advantage.

Helpful first: Quantum Algorithms, Grover’s Algorithm, Shor’s Algorithm.

What a complexity class is

A decision problem is a question with a yes or no answer, for example ‘is this number prime?’ or ‘does this graph have a path visiting every vertex exactly once?’. A complexity class is a collection of such problems that can be solved within a given resource budget. Theorists group problems this way because a class tells you something that does not depend on the machine: if a problem is in a class, every reasonable computer can solve it in roughly that budget, up to a polynomial factor.

The key divide is between polynomial and exponential growth. If the running time is a polynomial in the input length n, such as n² or n³, doubling the input makes the work grow by a fixed factor. If it is exponential, such as 2ⁿ, adding a few more bits of input doubles the work again and again. ‘Efficient’ in theory means polynomial time.

ClassInformal meaningExample
PSolvable in polynomial time by a deterministic classical computerIs this number divisible by 7? Is a graph connected?
NPA claimed yes-answer can be checked in polynomial timeDoes this formula have a satisfying assignment? Given one, checking it is easy.
BPPSolvable in polynomial time by a classical randomised computer that errs with probability at most 1/3Testing whether a number is prime by randomised tests.
BQPSolvable in polynomial time by a quantum computer that errs with probability at most 1/3Factoring (Shor’s algorithm), simulating quantum systems.
PSPACESolvable using a polynomial amount of memory, with unlimited timeMany perfect-play game questions.

The letters B, P and Q stand for bounded-error, probabilistic and quantum. The definition of BQP is: a problem is in BQP if there is a family of polynomial-size quantum circuits, generated by an efficient classical procedure, that on every input outputs the right answer with probability at least 2/3.

Worked example

Polynomial against exponential, in numbers

  1. Compare a polynomial cost n³ with an exponential cost 2ⁿ. At n = 10: 1,000 against 1,024, almost the same. At n = 50: 125,000 against about 1.1 × 10¹⁵. At n = 100: 1,000,000 against about 1.3 × 10³⁰.
  2. On a machine doing 10⁹ operations per second, 10⁶ operations take a millisecond. But 2¹⁰⁰ operations take about 1.3 × 10²¹ seconds, which is about 4 × 10¹³ years, roughly three thousand times the age of the universe.
  3. The crossover is not gradual. The two curves look similar for small n and then separate completely, which is why theorists draw the line at polynomial and not at a particular constant.

Worked example

Checking versus finding: the NP idea

  1. Take the formula (x₁ OR x₂) AND (NOT x₁ OR x₃) AND (NOT x₂ OR NOT x₃) from the Grover lesson. Someone claims x = (0, 1, 0) satisfies it.
  2. Checking takes one pass through the three clauses: (0 OR 1) = true, (1 OR 0) = true, (0 OR 1) = true. All three hold, so the claim is verified in a number of steps proportional to the formula size.
  3. Finding a satisfying assignment from scratch means searching up to 2³ = 8 assignments here, and 2ⁿ in general. NP is the class where checking is fast. Whether finding is also fast, the P versus NP question, is open.
  4. Grover’s algorithm attacks the finding step and reduces 2ⁿ to about 2^(n/2), which is still exponential.

What BQP is not

BQP is not the class of problems quantum computers solve ‘instantly’, and it is not a class of NP-complete problems. It is a class of problems solvable in polynomial time with a small chance of error. Where it sits relative to NP is the central open question.

Why ‘2/3’ does not matter: error reduction

The constants 1/3 and 2/3 in the definition look arbitrary, and they are. Any fixed bound strictly between 1/2 and 1 gives the same class, because errors can be driven down by repeating the computation and taking a majority vote. The Fortnow and Rogers paper notes that Bernstein and Vazirani showed the error in BQP can be made exponentially small.

Worked example

Majority vote on a quantum algorithm

  1. Start from an algorithm that is wrong with probability p = 1/3 on each run. Run it k times (k odd) and output the majority answer. The majority is wrong only if more than half of the runs are wrong.
  2. k = 1: error 0.333. k = 3: error 0.259. k = 11: error 0.122. k = 21: error 0.056. k = 51: error 0.0069. k = 101: error 0.00027.
  3. To get below 10⁻⁶ the number of repetitions needed is k = 193 (I counted exactly using the binomial formula).
  4. The error falls exponentially in k, so a few hundred repetitions suffice for any practical purpose. For this reason the exact 1/3 is a convention, not a feature.
  5. In the real world there is one more caveat. The repetitions are only useful if the errors are independent, which is true for the algorithmic randomness in measurement but not for systematic hardware faults.

This is the same trick that the classical class BPP uses, and it is the reason BPP is a sensible class and not a fragile one. Both classes allow a small, controllable error. The class EQP, the quantum analogue of P with no error allowed, appears stronger than P according to the Fortnow–Rogers paper’s summary of Bernstein and Vazirani, but it is a more fragile class that depends on exactly which gate set is used.

What is proven: the chain of inclusions

Classical computers can simulate quantum circuits, only slowly. That simple fact already pins BQP between two classical classes. The strongest results I opened are stated in the Fortnow and Rogers paper (arXiv cs/9811023), which restates a result of Adleman, DeMarrais and Huang in the form BQP ⊆ PP ⊆ P^#P ⊆ PSPACE, and shows BQP is contained in a class called AWPP.

PSPACEP^#PPPBQPBPPPNPNP inside BQP?Believed no, not proven.Factoring is in BQP.problems solvedexactly and fastProven: P ⊆ BPP ⊆ BQP ⊆ PP ⊆ P^#P ⊆ PSPACE. Whether any inclusion is strict is open.
The proven chain of inclusions. NP is drawn overlapping BQP because neither containment is known.
  • P ⊆ BPP ⊆ BQP. Every classical randomised computation can be run on a quantum computer, since quantum circuits can generate random bits and compute reversibly. So quantum computers do at least what classical ones do.
  • BQP ⊆ PP ⊆ P^#P ⊆ PSPACE. A classical computer can compute each amplitude of a quantum circuit by summing over paths, using polynomial memory but exponential time. Hence anything in BQP is solvable in polynomial space.
  • BQP is low for PP (PP^BQP = PP), according to the same paper. In plain words, giving a PP machine a free BQP subroutine adds no power.

There are two big consequences. First, a quantum computer cannot solve anything that classical computers cannot solve at all: BQP is inside PSPACE, so every problem it solves is classically computable, only possibly slowly. The theory of computability is unchanged. Second, proving that BQP is strictly larger than BPP, the formal statement that quantum computers are more powerful than classical randomised ones, would also prove that BPP is strictly smaller than PSPACE, which is, in the words of the Fortnow–Rogers paper, ‘presumably difficult’. We cannot prove such a separation without a breakthrough in classical complexity theory.

The consequence for ‘quantum supremacy’ proofs

An unconditional proof that quantum computers beat classical ones for some decision problem would settle a question in classical complexity that has resisted decades of effort. This is why all evidence for quantum advantage is conditional: it holds relative to an oracle, or assuming a conjecture, or on a specific experiment.

Fortnow and Rogers also conjecture, as their paper states, that BQP contains no interesting complexity classes outside BPP. This is a conjecture. Factoring is a problem in BQP that is not known to be in BPP, and it is the main example in the other direction, which is discussed below.

Why BQP fits inside PSPACE: summing over paths

The inclusion BQP ⊆ PSPACE has a simple core. The amplitude of any outcome of a quantum circuit is a sum over computational paths, and the sum can be evaluated one path at a time, reusing the same memory. This takes exponential time but only polynomial space.

Worked example

A path sum on one qubit

  1. Apply H twice to |0⟩. The Hadamard matrix has entries ±1/√2. The amplitude of ending in |0⟩ is the sum over the two possible intermediate values m ∈ {0, 1} of ⟨0|H|m⟩⟨m|H|0⟩.
  2. m = 0: (1/√2)(1/√2) = 1/2. m = 1: (1/√2)(1/√2) = 1/2. Total: 1/2 + 1/2 = 1.
  3. The amplitude of ending in |1⟩: m = 0 gives (1/√2)(1/√2) = 1/2, and m = 1 gives (−1/√2)(1/√2) = −1/2. Total: 0.
  4. The two paths to |1⟩ cancel, which is interference. The two paths to |0⟩ add. This is exactly the mechanism used in every algorithm.
  5. In a circuit with h Hadamard gates there can be 2ʰ paths, each with magnitude 2^(−h/2). A classical program can add them one at a time, keeping only a running total and the current path, so it needs little memory but time up to about 2ʰ.

That trade, little memory for much time, is the heart of the proof that BQP is in PSPACE. The stronger inclusion in PP, in the Fortnow–Rogers paper’s chain, comes from counting paths with signs, which is what PP-type computations do. The path picture also explains why classical simulation of general quantum circuits seems hard: cancellations between exponentially many paths cannot be skipped without knowing structure.

Query complexity: where speed-ups can be proven

Because separating the real classes is out of reach, theorists study a simpler model in which proofs are possible. In the query model, the input is a black box (an oracle) and the only cost counted is the number of times the black box is called. Everything else is free. Lower bounds in this model can be proven for real, because there is no way to cheat by finding structure in a program.

The three algorithms you met in Level 3 are query-model results.

ProblemClassical queriesQuantum queriesGap
Deutsch–Jozsa: constant or balanced on n bits (promise)2ⁿ⁻¹ + 1 for certainty1Exponential versus deterministic; not versus randomised
Simon: find a hidden XOR mask on n bitsAbout 2^(n/2)About nExponential, with a promise
Grover: find one marked item among NAbout NAbout √NQuadratic, proven optimal

Counts are orders of magnitude, from the Level 3 lessons.

Worked example

How big is the Deutsch–Jozsa gap?

  1. Deterministic classical algorithms need, in the worst case, 2ⁿ⁻¹ + 1 queries. For n = 10 that is 513. For n = 20 it is 524,289. For n = 50 it is 562,949,953,421,313.
  2. A quantum computer uses 1 query for any n.
  3. But a randomised classical algorithm that accepts a small error is far better: query 12 random inputs, and if all agree, answer ‘constant’. The chance of being wrong is about 2⁻¹¹ = 0.0005. So against the right classical competitor, the gap for Deutsch–Jozsa disappears.
  4. This is why Deutsch–Jozsa is a teaching example and not a practical speed-up. The comparison with randomised algorithms is the one that counts.

Simon’s problem is different. Even randomised classical algorithms need about 2^(n/2) queries, and the quantum algorithm needs about n. This is an exponential separation against bounded-error randomised algorithms, in the query model, with a promise about the input. It was the direct inspiration for Shor’s algorithm.

Worked example

Simon’s gap in numbers

  1. Using the orders of magnitude from the table: for n = 20 a classical algorithm needs about 2¹⁰ = 1,024 queries and the quantum one about 20. For n = 40, about 2²⁰ = 1,048,576 against about 40. For n = 100, about 2⁵⁰ ≈ 1.1 × 10¹⁵ against about 100.
  2. The quantum cost grows linearly in n while the classical cost doubles for every two extra bits. This is what an exponential separation looks like: at n = 100 the classical side is out of reach, and the quantum side is trivial.
  3. These are query counts in an idealised model with a promise. They show the shape of the separation, not the run time of a useful computation.

Why a promise matters

Simon’s function is promised to have a particular structure, and the algorithm exploits that structure. The Fortnow–Rogers paper reports, citing Bernstein and Vazirani, a superpolynomial query gap in the decision-tree setting but only for restricted subsets of inputs. As far as is known, an exponential quantum speed-up in the query model needs such a promise. For inputs with no structure, such as a fully general Boolean function, the known gap is polynomial, and Grover’s square root is the clearest case.

Why square root is the limit for search

The result of Bennett, Bernstein, Brassard and Vazirani, covered in the Grover lesson, proves that any quantum algorithm for unstructured search needs about √N queries. It also implies that, relative to a random oracle, NP-complete problems cannot be solved in less than about 2^(n/2) quantum queries. This is the strongest available statement that quantum computers do not solve NP-complete problems efficiently by brute-force methods.

Oracle separations and what they show

An oracle separation constructs an imaginary black box O such that, relative to O, two classes provably differ. It proves that no argument that treats the machines as black boxes can show the classes are equal. It does not prove that the classes differ in the real world, because real problems come with structure that oracles hide.

The Fortnow–Rogers paper contains several such results that cut in the direction of caution. As stated in its abstract, there is a relativized world where P = BQP and the polynomial-time hierarchy is infinite, a relativized world where BQP has no complete sets, and one where P = BQP while one-way functions exist. The point of the first is that relative to some oracles, quantum computers give no advantage at all.

Raz and Tal: BQP outside the polynomial hierarchy, relative to an oracle

The polynomial hierarchy (PH) is a tower of classes above NP, built by allowing alternations of ‘there exists’ and ‘for all’ in the definition. Many theorists consider it a good measure of ‘classical power’ beyond NP. Raz and Tal, in a 2018 report whose abstract I opened, proved that there is an oracle O with BQP^O ⊄ PH^O. In other words, relative to this oracle, quantum computers do something no level of the polynomial hierarchy can do.

  • The quantum side: a distribution over inputs that a quantum algorithm can tell apart from uniform with a single query in O(log N) time, with advantage Ω(1/log N).
  • The classical side: no Boolean circuit of quasipolynomial size and constant depth can distinguish that distribution from uniform with advantage better than polylog(N)/√N.
  • Through well-known reductions, this gives the separation of the promise versions of the classes.

What Raz–Tal does not show

Read the abstract as the authors state it: it is a statement about an oracle and about promise classes, with a modest quantum advantage. It does not show that BQP differs from PH in the real, unrelativised world, and it does not resolve whether quantum computers beat classical computers on any natural problem. It does close an old question: before 2018 it was not known whether an oracle even existed that separates BQP from the polynomial hierarchy.

The pattern to remember is that oracle results come in two flavours. Positive ones (Simon, Raz–Tal) show that quantum computers can beat any classical method that does not look inside the box. Negative ones (the relativised worlds where P = BQP) show that no black-box argument can prove the advantage is universal. Both are evidence about what to expect, and neither is a proof about the real classes.

Factoring, NP-completeness and why the difference matters

Shor’s algorithm puts factoring in BQP. Is that the same as solving NP-complete problems on a quantum computer? No, and the reason is a standard piece of complexity theory.

The decision version of factoring is ‘given N and k, does N have a factor between 2 and k?’. This problem is in NP, because a factor is a certificate that can be checked by division. It is also in coNP, because the prime factorisation, with a proof that each factor is prime, certifies a ‘no’ answer. A problem in both NP and coNP cannot be NP-complete unless NP = coNP, which almost everyone believes is false. So factoring is very unlikely to be NP-complete. It is, as this reasoning suggests, an intermediate problem: probably not in P, and probably not NP-complete.

Problem typeWhere it sitsWhat quantum computers do
Factoring, discrete logarithmIn NP ∩ coNP, believed outside P, not believed NP-completePolynomial time (Shor). Real speed-up, rich structure.
NP-complete problems (SAT, travelling salesman)NP-completeAt best a quadratic speed-up from Grover-type search; no known polynomial algorithm.
Simulating quantum systemsBQP-complete in a suitable formNatural fit; classical cost grows exponentially in general.
Unstructured searchQuery problemQuadratic, provably optimal.

This explains the shape of the whole field. Quantum speed-ups come from structure, such as periodicity (Shor), the algebraic structure of a hidden group (Simon), or the physics of quantum systems themselves. For problems that have no structure to exploit, the gain is at most a square root.

Quantum analogues of NP

There is a quantum version of NP, called QMA (Quantum Merlin–Arthur), where the certificate is a quantum state. The local Hamiltonian problem, deciding whether a system with local interactions has ground-state energy below a threshold, is QMA-complete, a result due to Kitaev. This ties complexity to physics: finding ground states of quantum systems is believed hard even for quantum computers in the worst case, which is why the simulation and adiabatic lessons that follow have to be careful about what they claim. I give this as a standard result that I did not reopen.

What each possible discovery would mean

Because the status of many statements is open, it helps to think through what each outcome would imply. The reasoning below follows from the inclusions above and from standard beliefs, and is not a prediction.

If someone showed…It would implyLikelihood judged by experts
A polynomial-time classical algorithm for factoringRSA would fall without any quantum computer. It would not by itself say anything about BQP versus BPP in general.Considered unlikely after decades of attempts, though not ruled out.
BQP ⊆ BPPQuantum computers give no advantage for decision problems in the standard model. Shor’s algorithm would be classically simulable in effect, with factoring in BPP.Considered very unlikely.
BPP ≠ BQPA major result: it would also give BPP ≠ PSPACE, a classical separation.Believed true, but hard to prove.
NP ⊆ BQPQuantum computers solve NP-complete problems in polynomial time; the world of cryptography and optimisation changes.Considered unlikely, and the oracle evidence points the other way.
P = PSPACEAll of the classes in the chain collapse to P, and classical and quantum computers have the same power for these problems.Considered extremely unlikely.

The right column reflects general expert opinion as I understand it, not a measured statistic.

These scenarios show why the first two rows are the most interesting for the field. Factoring has been studied for centuries, and the fact that no classical polynomial algorithm is known is real evidence, though not proof. The advantage of Shor’s algorithm is exactly as strong as the belief that factoring is classically hard.

A way to hold these ideas

Complexity theory deals in worst-case, asymptotic statements about large inputs. Real hardware deals in specific sizes, constants and noise. A problem can be exponentially hard in theory and easy at the size you care about, and the reverse. The theory tells you what is possible in principle. The resource estimates in earlier lessons tell you what it costs in practice.

A small glossary of classes you will meet

ClassMeaningRelation
coNPProblems whose ‘no’ answers can be checked quicklyFactoring’s decision version lies in NP and coNP.
NP-hardAt least as hard as every problem in NPMay lie outside NP itself.
NP-completeIn NP and NP-hardSAT, travelling salesman (decision form).
PHThe polynomial hierarchy: NP, coNP and alternations above themRaz–Tal: BQP is not in PH relative to some oracle.
#PCounting problems: how many solutions?P^#P is P with a counting oracle; contains PH by a known theorem (Toda).
PPProbabilistic polynomial time, correct with probability above 1/2 but possibly barelyBQP ⊆ PP.
PSPACEPolynomial memory, any timeUpper bound for BQP.
QMAQuantum analogue of NP, with a quantum certificateThe local Hamiltonian problem is QMA-complete (Kitaev).
EQPExact quantum polynomial time, no error allowedAppears stronger than P; sensitive to the gate set.

Toda’s theorem and Kitaev’s theorem are standard results that I did not reopen for this page.

Reading a theory abstract: a worked example

Complexity results are compressed into dense abstracts. Reading them well is a skill, and the Raz–Tal abstract is a good practice case because it is precise about its limits.

  1. Find the model. The result is about a black-box (oracle) model, not about real problems or real machines.
  2. Find the classes. It concerns promise versions of BQP and PH, in which the input is guaranteed to have a certain form. Promise classes can behave differently from the ordinary language classes.
  3. Find the size of the effect. The quantum advantage is Ω(1/log N), which is small, against a classical bound of polylog(N)/√N. It is enough for a separation of the classes, but it is not a large practical margin.
  4. Find the ‘well-known reductions’. The abstract passes from a distribution-distinguishing problem to a class separation through standard steps it does not restate. That step is taken on trust from the references.
  5. State what it does not say. It does not say BQP differs from PH in the real world, and it does not give a useful algorithm.

The same five questions apply to any paper claiming a quantum advantage: what is the model, what are the classes, how large is the gap, which steps are assumed, and what is not claimed. A claim that cannot answer these is not yet a result.

Sampling problems and the advantage claims

A third way to get evidence is to ask a quantum computer to sample from a probability distribution that is believed to be hard for classical computers to sample from. Random circuit sampling, used in recent hardware benchmarks, is of this kind. Complexity arguments for such tasks typically show that if a classical computer could sample the same distribution efficiently, then some widely believed conjecture would fail, such as the polynomial hierarchy collapsing. These arguments hold for ideal noiseless sampling, and the connection to a noisy real device, which is only approximately sampling, requires further assumptions.

The honest status is that sampling experiments give strong but conditional evidence that classical simulation is hard. They do not compute a useful answer, they are difficult to verify directly, and improved classical simulation methods have in some cases narrowed the gap. The Quantinuum abstract opened in the hardware lesson, for example, claims a scale that ‘appears to exceed’ state-of-the-art classical simulation, which is a careful phrasing for the same reason. I have not opened the underlying complexity-theoretic papers for these arguments, so I describe them in outline only.

Proof, evidence and belief

A useful habit is to attach a level of confidence to every statement about quantum computing. The following scale is used throughout this course.

LevelMeaningExamples
TheoremProven unconditionallyBQP ⊆ PSPACE. Grover needs about √N queries in the black-box model. Shor’s algorithm factors in polynomial time (assuming an ideal quantum computer).
Relative theoremProven relative to an oracleSimon’s exponential gap. Raz–Tal: BQP not in PH relative to an oracle. Worlds where P = BQP.
Conditional resultTrue if a standard conjecture holdsHardness of exact sampling from random circuits, if the polynomial hierarchy does not collapse.
Strong beliefWidely held, no proofFactoring is not in P. NP-complete problems are not in BQP. BQP is strictly larger than BPP.
OpenUnknownIs BQP = BPP? Does BQP contain NP? Is P = PSPACE?

When you read a claim, ask where it falls on this scale. ‘Quantum computers will solve NP-hard problems’ is false as stated and not even a belief. ‘Quantum computers solve factoring in polynomial time’ is a theorem about an algorithm, together with a belief that classical computers cannot. ‘Quantum computers are exponentially more powerful in general’ is not a theorem, not a relative theorem, and is contradicted by the oracle worlds where there is no advantage.

Worked example

A claim under the microscope

  1. Claim: ‘Because a quantum computer can try all 2ⁿ possibilities at once, it solves NP-complete problems in polynomial time.’
  2. Step 1, the mechanism: a superposition of all 2ⁿ inputs exists, but a measurement returns only one at random. Extra structure, such as interference, is needed to concentrate probability on the answer.
  3. Step 2, the black-box bound: for unstructured search, interference can concentrate probability only at the rate that gives about √N queries (BBBV). For N = 2ⁿ that is about 2^(n/2), still exponential.
  4. Step 3, the status: no polynomial-time quantum algorithm for any NP-complete problem is known, and relative to a random oracle none exists. The claim is false as a statement about what is known, and false in its mechanism.
  5. The better statement is: ‘A quantum computer can square-root the cost of brute-force search for such problems, at best.’

Common misunderstandings

MisunderstandingCorrection
BQP contains NPNot known, and not believed. The only evidence is that BQP is contained in PSPACE, which is far above both.
Quantum computers can solve problems no classical computer canBQP ⊆ PSPACE, so everything is classically computable, only possibly far slower.
Shor’s algorithm shows quantum computers solve NP-complete problemsFactoring is in NP ∩ coNP and is not believed NP-complete.
Deutsch–Jozsa shows an exponential speed-upOnly against deterministic algorithms. A randomised classical algorithm uses a dozen queries and a tiny error.
An oracle separation proves quantum advantageIt proves a black-box statement. Real problems may have structure that closes the gap.
The error bound 1/3 is a weakness of BQPAny fixed error below 1/2 gives the same class, and the error can be made exponentially small by repetition.
Proving quantum advantage is just a matter of enough experimentsA proof for decision problems would separate BPP from PSPACE, a hard classical question. Experiments give evidence, not proofs.

Practice problems

Check yourself

List the proven inclusions from P up to PSPACE for the classes in this lesson.

P ⊆ BPP ⊆ BQP ⊆ PP ⊆ P^#P ⊆ PSPACE. Whether any is strict is open.

Why does showing BPP ≠ BQP require a breakthrough in classical complexity?

Because BQP ⊆ PSPACE: if BPP ≠ BQP then BPP ≠ PSPACE, and no one can prove that.

An algorithm is right with probability 2/3. About how many repetitions with majority vote bring the error below 10⁻⁶?

193, by the exact binomial calculation. The error falls exponentially in the number of runs.

For n = 20, how many queries does a deterministic classical algorithm need in the worst case for Deutsch–Jozsa?

2¹⁹ + 1 = 524,289. The quantum algorithm uses 1.

Why is Deutsch–Jozsa not a convincing demonstration of quantum advantage?

A randomised classical algorithm solves it with a handful of queries and a tiny error probability, so against that comparison there is no exponential gap.

Why is factoring unlikely to be NP-complete?

The decision version is in both NP and coNP. A problem in NP ∩ coNP that is NP-complete would force NP = coNP, which is widely disbelieved.

What did Raz and Tal prove, and what did they not prove?

An oracle O with BQP^O ⊄ PH^O for the promise classes. They did not prove the unrelativised separation.

What does BBBV imply for solving an NP-complete problem on n variables by search?

At least about 2^(n/2) queries relative to a random oracle, so still exponential.

Where on the evidence scale is ‘factoring is not in P’?

Strong belief. It is not a theorem.

Give one reason a sampling-advantage experiment is weaker evidence than a proof.

The hardness arguments are for ideal sampling under conjectures. Real devices are noisy, and the task is hard to verify and may be matched by improved classical simulation.

References and further reading

I opened the Fortnow and Rogers paper (arXiv cs/9811023), the abstract of Raz and Tal’s oracle separation (ECCC report 2018/107), and the Bennett–Bernstein–Brassard–Vazirani abstract and Montanaro’s survey earlier in this course. Statements attributed to Bernstein and Vazirani come from how the Fortnow–Rogers paper describes them; I did not open the Bernstein–Vazirani paper itself. Simon’s problem, Kitaev’s QMA result, and the facts about NP, coNP and factoring are standard textbook material that I did not reopen. All numerical examples were computed directly.

  1. Complexity Limitations on Quantum Computation (arXiv cs/9811023, L. Fortnow and J. Rogers) Opened. BQP ⊆ AWPP, the chain BQP ⊆ PP ⊆ P^#P ⊆ PSPACE, BQP low for PP, relativised worlds with P = BQP.
  2. Oracle Separation of BQP and PH (ECCC report 2018/107, R. Raz and A. Tal) Abstract opened. An oracle with BQP not contained in PH, for the promise classes.
  3. Strengths and Weaknesses of Quantum Computing (arXiv quant-ph/9701001, Bennett, Bernstein, Brassard, Vazirani) Opened earlier in this course. Basis of the √N search bound.
  4. Quantum algorithms: an overview (npj Quantum Information, A. Montanaro, 2016) Opened earlier. Survey of proven and conjectured speed-ups.
  5. Physics 219 Quantum Computation: lecture notes (John Preskill, Caltech) Free notes covering quantum complexity classes and QMA. Not reopened for this page.