The Class BQP
— bounded-error quantum polynomial time — is the class of decision problems a quantum computer can solve efficiently. It is the quantum analogue of the classical class , and making its definition precise forces us to pin down what "a quantum computer" means as a uniform family of circuits with bounded error.
Quantum circuits and a finite gate set
A quantum algorithm on -bit inputs is a circuit acting on qubits, built from a fixed finite gate set such as . The input is encoded in the starting computational-basis state (extra qubits are ancillas initialized to ), the circuit is applied, and a designated output qubit is measured in the computational basis. The number of gates is the circuit's size and stands for its running time.
Two facts make this well-posed. The Solovay–Kitaev theorem guarantees that the discrete set is universal: any fixed-size unitary — for instance any one- or two-qubit gate from another finite universal set — can be approximated to error by a circuit of length from this set. (That polylogarithmic bound is for gates of fixed dimension; an arbitrary -qubit unitary additionally requires gates, since it has free parameters.) Approximating each gate of one universal construction by gates of another therefore changes running times by only polylogarithmic factors. And we require the family to be uniform: a single classical polynomial-time algorithm, given , outputs a description of . Uniformity rules out smuggling uncomputable information into the hardware, exactly as it does for classical circuit complexity.
The definition
A language is in if there is a uniform family of polynomial-size quantum circuits such that, on input of length , the probability that measuring the output qubit yields satisfies
The gap between and is the bounded error, and the two thirds are nothing special.
Why bounded error, not exact
One might hope for an exact quantum class with . But quantum measurement is intrinsically probabilistic, and the gate set is finite, so amplitudes are generally irrational and exact certainty is unnatural. Bounded error is the right physical notion: a real device run a polynomial number of times gives an answer that is correct with overwhelming probability. This mirrors , where classical randomized algorithms (e.g. for polynomial identity testing) are accepted as efficient despite a small, controllable error.
Robustness of the definition
is remarkably stable under changes that might seem significant:
- Gate set. Any universal set gives the same class, via Solovay–Kitaev.
- Intermediate measurements. Measuring qubits part-way through and conditioning later gates on the outcomes adds no power — the principle of deferred measurement pushes all measurements to the end.
- Ancillas and garbage. Borrowed work qubits can be uncomputed and returned to , so they do not leak information or corrupt later runs.
- Amplitude precision. Specifying gate angles to bits of precision suffices.
Because of this robustness, is the accepted formalization of "efficiently solvable by a quantum computer," and it is the protagonist of the next several lessons, where we locate it relative to the classical classes and ask which problems separate it from them.
Examples and the headline question
Integer factoring and discrete logarithm are in via Shor's algorithm, even though no efficient classical algorithm is known for them. Whether strictly contains — whether quantum computers are genuinely more powerful than randomized classical ones for decision problems — is open, and is the central question this module circles back to repeatedly.
Sign in on the full site to ask questions and join the discussion.