Bounded-error quantum polynomial time
The class BQP of decision problems solvable by uniform polynomial-size quantum computations with bounded error.
Also called BQP
On this page
Definition and significance
BQP formalizes efficient quantum decision computation. A yes instance is accepted with probability at least 2/3 and a no instance with probability at most 1/3, using resources polynomial in input length. The constants can be changed through amplification; the separation from one-half matters more than the particular numbers.
Mechanism and mathematical treatment
Uniformity requires an efficient classical description-generation procedure, excluding a different arbitrarily powerful hard-coded circuit for every input length. BPP is contained in BQP because a quantum computer can implement classical randomized computation. Whether these classes are strictly different in the unrestricted setting is not established by an oracle separation.
Fully worked reference example
Suppose a quantum decision procedure is correct independently with probability 3/4. Repeating it three times and taking a majority gives success (3/4)^3+3(3/4)^2(1/4)=27/32. More repetitions reduce error exponentially under the independence and bounded-bias assumptions, while adding polynomial overhead.
Limitations and common misconceptions
BQP is a decision class. Factoring is naturally a function problem, though related decision formulations and reductions connect it to efficient quantum computation. BQP is not known to contain all NP-complete problems.
Scientific relationships
Efficient decision computation and efficient verification with a quantum witness define different classes.
Sampling distributions and deciding languages are different output tasks.
Exact majority amplification for a bounded-error procedure
Suppose a decision algorithm returns the correct answer with probability 3/4 on every valid input, and independent repetitions use fresh initialization and randomness. Five repetitions followed by majority voting fail only when at most two runs are correct. The failure probability is (1/4)^5+5(3/4)(1/4)^4+10(3/4)^2(1/4)^3=53/512. Success is 459/512, approximately 0.896484.
The calculation is symmetric between yes and no instances when correctness has the same lower bound. It does not require knowledge of which answer is correct. The final majority is an efficiently computable classical function of the measured output bits. If one run costs C elementary operations, the five-run construction costs about 5C plus initialization, output handling and the small majority circuit.
For k independent runs with correctness at least 3/4, a Hoeffding bound gives failure at most exp(-k/8). Choosing an odd k at least 8 ln(1/delta) ensures the bound is at most delta. For delta=10^(-6), k=111 is sufficient under this conservative inequality. The exact binomial tail can be considerably smaller, but the bound makes the polynomial overhead transparent.
Uniform circuit generation is part of efficiency
A polynomial-size circuit for each input length is not enough by itself to define uniform efficient computation. The circuit family must have an efficiently generated description under the chosen uniformity condition. Otherwise an arbitrary amount of hard-to-compute information could be hidden in the selected circuit for each length or in infinitely precise gate parameters.
A concrete algorithm specification therefore includes how the input is encoded, how the circuit is generated, the finite gate set or efficiently computable gate approximations, the number of qubits and gates, and the measured acceptance bit. The polynomial bound is in the length of the classical input description. An integer N written in binary has length about log2(N), so a runtime polynomial in N can still be exponential in input length.
Precision also belongs to this contract. If a computation uses L approximate unitary gates and each gate has norm error at most epsilon/L, a telescoping bound keeps the total unitary error at most epsilon. For L polynomial in input length and fixed target epsilon, the number of precision bits needed for ordinary numerical gate specifications grows only logarithmically with L. This does not authorize an arbitrary real number carrying an unbounded answer table as one unit-cost parameter.
Simulating a classical randomized computation coherently
A classical randomized algorithm can be represented as a deterministic computation supplied with a string of random bits. Prepare those bits with Hadamards, keep their values in computational registers, and implement the classical computation reversibly while retaining the information required for reversibility. Measuring the output then samples the same distribution as the classical algorithm, because each random-bit string labels an orthogonal computational branch.
No useful interference between distinct random strings is required for this simulation. The quantum construction contains the classical randomized procedure as a special case. Its reversible workspace can be cleaned with compute-copy-uncompute methods or otherwise accounted for with polynomial overhead. This supplies the operational intuition behind the containment of classical bounded-error polynomial time within its quantum counterpart.
The containment does not mean that every quantum algorithm can be simulated efficiently by the same classical method. A general quantum circuit combines amplitudes with phases and interference that a classical random branch history does not reproduce. Conversely, exponential statevector size alone does not prove a separation for a particular task; structured circuits can remain classically tractable.
Decision, search and sampling interfaces
A BQP decision procedure outputs one acceptance bit with a bounded error guarantee. A function task can output a longer classical answer, and a sampling task can require a distribution. Reductions can connect these tasks in particular settings, but their output contracts should not be merged. For factoring, verifying a proposed factor is simple arithmetic, while finding it is the computational task; a related decision formulation requires its own definition.
An algorithm that estimates a real quantity must specify a tolerance and success probability before it becomes a finite decision or function problem. A promise can exclude inputs too close to a threshold, preventing an arbitrarily precise comparison from being hidden in the output requirement. The size of that promise gap affects resources.
The majority calculation assumes independent valid executions. Correlated hardware drift or a shared systematic implementation error need not decrease under repetition according to the binomial formula. Error amplification in complexity theory concerns the mathematical algorithm's bounded randomness; fault-tolerant implementation is a separate question. A reproducible performance claim must keep those two error mechanisms distinct.
Sources
Verification scope
Recorded source check ·
Formal or reference-semantic source anchor only; no SDK execution, hardware run, or empirical advantage is asserted. Original worked examples are independent mathematical constructions.
Verification scope
Selected source text checked ·
Oracle separations do not establish unconditional separations of unrelativized complexity classes.