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.