Hubbry Logo
BQPBQPMain
Open search
BQP
Community hub
BQP
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
BQP
BQP
from Wikipedia
Diagram of randomised complexity classes
BQP in relation to other probabilistic complexity classes (ZPP, RP, co-RP, BPP, PP), which generalise P within PSPACE. It is unknown if any of these containments are strict.

In computational complexity theory, bounded-error quantum polynomial time (BQP) is the class of decision problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/3 for all instances.[1] It is the quantum analogue to the complexity class BPP.

A decision problem is a member of BQP if there exists a quantum algorithm (an algorithm that runs on a quantum computer) that solves the decision problem with high probability and is guaranteed to run in polynomial time. A run of the algorithm will correctly solve the decision problem with a probability of at least 2/3.

BQP algorithm (1 run)
Answer
produced
Correct
answer
Yes No
Yes ≥ 2/3 ≤ 1/3
No ≤ 1/3 ≥ 2/3
BQP algorithm (k runs)
Answer
produced
Correct
answer
Yes No
Yes > 1 − 2ck < 2ck
No < 2ck > 1 − 2ck
for some constant c > 0

Definition

[edit]

BQP can be viewed as the languages associated with certain bounded-error uniform families of quantum circuits.[1] A language L is in BQP if and only if there exists a polynomial-time uniform family of quantum circuits , such that

  • For all , Qn takes n qubits as input and outputs 1 bit
  • For all x in L,
  • For all x not in L,

Alternatively, one can define BQP in terms of quantum Turing machines. A language L is in BQP if and only if there exists a polynomial quantum Turing machine that accepts L with an error probability of at most 1/3 for all instances.[2]

Similarly to other "bounded error" probabilistic classes, the choice of 1/3 in the definition is arbitrary. We can run the algorithm a constant number of times and take a majority vote to achieve any desired probability of correctness less than 1, using the Chernoff bound. The complexity class is unchanged by allowing error as high as 1/2 − nc on the one hand, or requiring error as small as 2nc on the other hand, where c is any positive constant, and n is the length of input.[3]

Relationship to other complexity classes

[edit]
Unsolved problem in computer science
What is the relationship between and ?
The suspected relationship of BQP to other problem spaces[1]

BQP is defined for quantum computers; the corresponding complexity class for classical computers (or more formally for probabilistic Turing machines) is BPP. Just like P and BPP, BQP is low for itself, which means BQPBQP = BQP.[2] Informally, this is true because polynomial time algorithms are closed under composition. If a polynomial time algorithm calls polynomial time algorithms as subroutines, the resulting algorithm is still polynomial time.

BQP contains P and BPP and is contained in AWPP,[4] PP[5] and PSPACE.[2] In fact, BQP is low for PP, meaning that a PP machine achieves no benefit from being able to solve BQP problems instantly, an indication of the possible difference in power between these similar classes. The known relationships with classic complexity classes are:

As the problem of has not yet been solved, the proof of inequality between BQP and classes mentioned above is supposed to be difficult.[2] The relation between BQP and NP is not known. In May 2018, computer scientists Ran Raz of Princeton University and Avishay Tal of Stanford University published a paper[6] which showed that, relative to an oracle, BQP was not contained in PH. It can be proven that there exists an oracle A such that .[7] In an extremely informal sense, this can be thought of as giving PH and BQP an identical, but additional, capability and verifying that BQP with the oracle (BQPA) can do things PHA cannot. While an oracle separation has been proven, the fact that BQP is not contained in PH has not been proven. An oracle separation does not prove whether or not complexity classes are the same. The oracle separation gives intuition that BQP may not be contained in PH.

It has been suspected for many years that Fourier Sampling is a problem that exists within BQP, but not within the polynomial hierarchy. Recent conjectures have provided evidence that a similar problem, Fourier Checking, also exists in the class BQP without being contained in the polynomial hierarchy. This conjecture is especially notable because it suggests that problems existing in BQP could be classified as harder than NP-Complete problems. Paired with the fact that many practical BQP problems are suspected to exist outside of P (it is suspected and not verified because there is no proof that P ≠ NP), this illustrates the potential power of quantum computing in relation to classical computing.[7]

Adding postselection to BQP results in the complexity class PostBQP which is equal to PP.[8][9]

A complete problem for Promise-BQP

[edit]

Promise-BQP is the class of promise problems that can be solved by a uniform family of quantum circuits (i.e., within BQP).[10] Completeness proofs focus on this version of BQP. Similar to the notion of NP-completeness and other complete problems, we can define a complete problem as a problem that is in Promise-BQP and that every other problem in Promise-BQP reduces to it in polynomial time.

APPROX-QCIRCUIT-PROB

[edit]

The APPROX-QCIRCUIT-PROB problem is complete for efficient quantum computation, and the version presented below is complete for the Promise-BQP complexity class (and not for the total BQP complexity class, for which no complete problems are known). APPROX-QCIRCUIT-PROB's completeness makes it useful for proofs showing the relationships between other complexity classes and BQP.

Given a description of a quantum circuit C acting on n qubits with m gates, where m is a polynomial in n and each gate acts on one or two qubits, and two numbers , distinguish between the following two cases:

  • measuring the first qubit of the state yields with probability
  • measuring the first qubit of the state yields with probability

Here, there is a promise on the inputs as the problem does not specify the behavior if an instance is not covered by these two cases.

Claim. Any BQP problem reduces to APPROX-QCIRCUIT-PROB.

Proof. Suppose we have an algorithm A that solves APPROX-QCIRCUIT-PROB, i.e., given a quantum circuit C acting on n qubits, and two numbers , A distinguishes between the above two cases. We can solve any problem in BQP with this oracle, by setting .

For any , there exists family of quantum circuits such that for all , a state of qubits, if ; else if . Fix an input of n qubits, and the corresponding quantum circuit . We can first construct a circuit such that . This can be done easily by hardwiring and apply a sequence of CNOT gates to flip the qubits. Then we can combine two circuits to get , and now . And finally, necessarily the results of is obtained by measuring several qubits and apply some (classical) logic gates to them. We can always defer the measurement[11][12] and reroute the circuits so that by measuring the first qubit of , we get the output. This will be our circuit C, and we decide the membership of by running with . By definition of BQP, we will either fall into the first case (acceptance), or the second case (rejection), so reduces to APPROX-QCIRCUIT-PROB.

BQP and EXP

[edit]

We begin with an easier containment. To show that , it suffices to show that APPROX-QCIRCUIT-PROB is in EXP since APPROX-QCIRCUIT-PROB is BQP-complete.

Claim

Proof

The idea is simple. Since we have exponential power, given a quantum circuit C, we can use classical computer to stimulate each gate in C to get the final state.

More formally, let C be a polynomial sized quantum circuit on n qubits and m gates, where m is polynomial in n. Let and be the state after the i-th gate in the circuit is applied to . Each state can be represented in a classical computer as a unit vector in . Furthermore, each gate can be represented by a matrix in . Hence, the final state can be computed in time, and therefore all together, we have an time algorithm for calculating the final state, and thus the probability that the first qubit is measured to be one. This implies that .

Note that this algorithm also requires space to store the vectors and the matrices. We will show in the following section that we can improve upon the space complexity.

BQP and PSPACE

[edit]

Sum of histories is a technique introduced by physicist Richard Feynman for path integral formulation. APPROX-QCIRCUIT-PROB can be formulated in the sum of histories technique to show that .[13]

Sum of Histories Tree

Consider a quantum circuit C, which consists of t gates, , where each comes from a universal gate set and acts on at most two qubits. To understand what the sum of histories is, we visualize the evolution of a quantum state given a quantum circuit as a tree. The root is the input , and each node in the tree has children, each representing a state in . The weight on a tree edge from a node in j-th level representing a state to a node in -th level representing a state is , the amplitude of after applying on . The transition amplitude of a root-to-leaf path is the product of all the weights on the edges along the path. To get the probability of the final state being , we sum up the amplitudes of all root-to-leave paths that ends at a node representing .

More formally, for the quantum circuit C, its sum over histories tree is a tree of depth m, with one level for each gate in addition to the root, and with branching factor .

DefineA history is a path in the sum of histories tree. We will denote a history by a sequence for some final state x.

DefineLet . Let amplitude of the edge in the j-th level of the sum over histories tree be . For any history , the transition amplitude of the history is the product .

ClaimFor a history . The transition amplitude of the history is computable in polynomial time.

Proof

Each gate can be decomposed into for some unitary operator acting on two qubits, which without loss of generality can be taken to be the first two. Hence, which can be computed in polynomial time in n. Since m is polynomial in n, the transition amplitude of the history can be computed in polynomial time.

ClaimLet be the final state of the quantum circuit. For some , the amplitude can be computed by .

Proof

We have . The result comes directly by inserting between , and , and so on, and then expand out the equation. Then each term corresponds to a , where

Claim

Notice in the sum over histories algorithm to compute some amplitude , only one history is stored at any point in the computation. Hence, the sum over histories algorithm uses space to compute for any x since bits are needed to store the histories in addition to some workspace variables.

Therefore, in polynomial space, we may compute over all x with the first qubit being 1, which is the probability that the first qubit is measured to be 1 by the end of the circuit.

Notice that compared with the simulation given for the proof that , our algorithm here takes far less space but far more time instead. In fact it takes time to calculate a single amplitude!

BQP and PP

[edit]

A similar sum-over-histories argument can be used to show that . [14]

P and BQP

[edit]

We know , since every classical circuit can be simulated by a quantum circuit. [15]

It is conjectured that BQP solves hard problems outside of P, specifically, problems in NP. The claim is indefinite because we don't know if P=NP, so we don't know if those problems are actually in P. Below are some evidence of the conjecture:

See also

[edit]

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
BQP, or Bounded-error Quantum Polynomial time, is a complexity class in computational complexity theory that consists of decision problems solvable by a quantum Turing machine in polynomial time, with the probability of error bounded away from 1/2—specifically, at least 2/3 probability of acceptance for "yes" instances and at most 1/3 for "no" instances. Introduced by Ethan Bernstein and Umesh Vazirani in their seminal 1993 paper, BQP formalizes the power of quantum computation for decision problems under bounded error, extending classical notions like BPP (Bounded-error Probabilistic Polynomial time) to incorporate quantum superposition and interference. The class is defined using quantum Turing machines or equivalent uniform families of polynomial-size quantum circuits, where the computation evolves unitarily and measurement yields the output with the specified success probability. Key inclusions establish BQP's position relative to classical classes: P ⊆ BPP ⊆ BQP ⊆ , reflecting that deterministic and probabilistic polynomial-time problems are feasible quantumly, while quantum computations remain within polynomial space. Additionally, BQP ⊆ P^#P, linking it to counting . The relationship to NP remains unresolved, with no known proof that NP ⊆ BQP or vice versa, though quantum algorithms like Shor's for (in BQP but believed outside ) suggest potential separations from classical intractable problems. Notable relativized separations demonstrate BQP's strict power beyond BPP: and Vazirani showed an relative to which BQP ≠ BPP via a recursive Fourier sampling problem solvable quantumly in time but requiring superpolynomial classical time. BQP also contains exact quantum classes like EQP (Exact Quantum time) and supports subroutines and error reduction via repetition, making it robust for algorithm design. Problems such as Simon's periodicity finding further highlight separations from classes like MA and SZK.

Fundamentals

Definition

BQP, or Bounded-error Quantum Polynomial time, is the complexity class consisting of all decision problems solvable by a in polynomial time, where the machine accepts yes-instances with probability at least 23\frac{2}{3} and rejects no-instances with probability at least 23\frac{2}{3}, allowing for a bounded error probability of at most 13\frac{1}{3}. Formally, a L{0,1}L \subseteq \{0,1\}^* is in BQP if there exists a polynomial-time MM such that for every input x{0,1}nx \in \{0,1\}^n, if xLx \in L, then Pr[M(x)=1]23\Pr[M(x) = 1] \geq \frac{2}{3}, and if xLx \notin L, then Pr[M(x)=1]13\Pr[M(x) = 1] \leq \frac{1}{3}. This bounded-error model ensures reliable despite probabilistic outcomes inherent to quantum measurement, and the specific thresholds of 23\frac{2}{3} and 13\frac{1}{3} are conventional choices analogous to those in the classical BPP class. The error probability can be amplified to exponentially small values, such as 2q(n)2^{-q(n)} for any q(n)q(n), by repeating the a number of times and taking the vote over the outcomes, without increasing the overall time beyond . The standard definition of BQP employs uniform quantum s or uniform families of polynomial-size quantum circuits, where the description of the machine or circuit for input size nn can be generated in polynomial time by a classical deterministic . In contrast, non-uniform BQP (often denoted BQP/poly) allows for non-uniform circuit families augmented with polynomial-length classical advice strings that depend on the input length but not the specific input, enabling computations that may not be describable uniformly. BQP was introduced in 1993 by Ethan Bernstein and Umesh Vazirani as part of their foundational work on quantum complexity theory, where they established the equivalence between quantum Turing machines and quantum circuits as computational models for the class.

Quantum Computational Model

The quantum computational model underlying BQP is primarily formalized using the quantum Turing machine (QTM), which extends the classical Turing machine to operate on quantum states via unitary evolution. A QTM is defined by a finite set of states, an input alphabet, and a quantum transition function that maps the current state and tape symbol to a superposition of possible next states, symbols, and head movements, ensuring the evolution preserves the norm of the quantum state. The computation proceeds in discrete steps, with the machine's configuration represented as a superposition over classical configurations, evolving unitarily according to the transition rules. For inputs of length nn, the running time is bounded by a polynomial p(n)p(n), meaning the number of steps is at most O(p(n))O(p(n)), and the tape length used is also polynomial in nn. Upon halting, measurement in the computational basis yields a classical output string from the tape contents. Equivalent in expressive power to the QTM is the quantum circuit model, which represents s as families of unitary transformations applied to registers. In this model, a on an nn- input is specified by a sequence of elementary unitary gates from a , such as the Hadamard gate HH, controlled-NOT (CNOT), and single- phase gates, acting on a polynomial number of qubits (typically O(nk)O(n^k) for some constant kk). The corresponds to the depth of the circuit, i.e., the longest path through the gates, which must be polynomial in nn. Yao's theorem establishes that any polynomial-time QTM can be simulated by a polynomial-size , and vice versa, making the models interchangeable for defining complexity classes like BQP. The power of these models for BQP stems from core quantum principles: superposition, allowing the system to evolve as a of basis states; entanglement, correlating qubits such that their joint state cannot be factored; and interference, where amplitudes from different computational paths add constructively or destructively to amplify desired outcomes. The initial state is prepared as 0m|0\rangle^{\otimes m} for mm qubits, and the final state before is ψ=U0m|\psi\rangle = U |0\rangle^{\otimes m}, where UU is the overall composed from the circuit gates (or QTM transitions), satisfying unitarity UU=IU^\dagger U = I. This evolution enables exponential parallelism in exploring solution spaces compared to classical models. Classical inputs of length nn are encoded by initializing a register of nn qubits in the computational basis state x|x\rangle, where xx is the binary string representation, often padded with ancillary qubits initialized to 0|0\rangle for workspace. Computation proceeds on this register, with additional ancillas allowing reversible operations to avoid information loss. The output is obtained by measuring the qubits in the computational basis, yielding a probability distribution over 2m2^m basis states; for decision problems in BQP, acceptance is typically defined by the measurement outcome of the first qubit being 1 with probability at least 2/32/3 (or reject otherwise), bounded-error over the randomness of measurement.

Complete Problems

Promise-BQP

Promise problems provide a framework for computational tasks where the input is guaranteed to belong to one of two disjoint subsets of binary strings, denoted as YY (the "yes" instances) and NN (the "no" instances), with YN=Y \cap N = \emptyset. The promise restricts the algorithm to correctly distinguishing between YY and NN only on inputs in YNY \cup N, while behavior on inputs outside this set is irrelevant. This structure is particularly suited to quantum computation, where extending BQP to such restricted inputs allows for modeling realistic quantum algorithms that rely on input guarantees. The class Promise-BQP consists of all promise problems (Y,N)(Y, N) for which there exists a -time uniform family of quantum circuits {Qx}\{Q_x\} such that, for every xYx \in Y, the probability that QxQ_x accepts (outputs 1 upon of the first ) is at least 2/32/3, and for every xNx \in N, the acceptance probability is at most 1/31/3. These probabilities can be amplified arbitrarily close to 1 and 0, respectively, without increasing the runtime. This definition extends the core BQP model to settings while preserving the bounded-error requirement. The motivation for Promise-BQP arises because many natural quantum problems are inherently promise-based rather than total decision problems over all inputs; for instance, evaluating quantum circuits often involves promises about input validity to avoid undecidability in total extensions. A representative example is the problem of approximating quantum circuit acceptance probabilities, which is Promise-BQP-complete. This formulation avoids pathological cases where total problems might be undecidable or trivialize complexity separations. The standard BQP, defined as languages over all binary strings with bounded-error quantum polynomial-time decidability (i.e., the trivial promise YN={0,1}Y \cup N = \{0,1\}^*), is contained in Promise-BQP. BQP was originally introduced by and Vazirani in 1993. The formalization of promise problems in quantum complexity traces back to the 1990s, notably through Alexei Kitaev's work defining quantum NP (now QMA) as a promise class to capture verifiable quantum proofs.

APPROX-QCIRCUIT-PROB

APPROX-QCIRCUIT-PROB is a promise problem that is complete for the complexity class under polynomial-time reductions. It captures the essential computational power of quantum circuits by requiring the of a specific output probability, making it a natural benchmark for the of quantum . Other complete problems include the diagonal entry for powers of sparse matrices. This problem refines earlier formulations by focusing on efficient within a promise gap, ensuring it aligns closely with the bounded-error model of BQP. The formal definition of APPROX-QCIRCUIT-PROB is as follows: the input consists of a quantum circuit CC of size polynomial in nn (the number of qubits), specified by a string of length poly(nn), acting on n+kn + k qubits where kk is the number of output qubits, and an accuracy parameter 1/poly(n)1/\text{poly}(n). The task is to approximate the probability pp that, upon initializing all qubits in the 0|0\rangle state and running CC, measuring the first output qubit yields 1|1\rangle. The algorithm must output an estimate a^\hat{a} such that a^p1/poly(n)|\hat{a} - p| \leq 1/\text{poly}(n). The promise in APPROX-QCIRCUIT-PROB restricts instances to those where the true probability pp is either at most 1/31/3 or at least 2/32/3; the algorithm must output "0" if p1/3p \leq 1/3 and "1" if p2/3p \geq 2/3, with rejection or error permitted only if pp falls in the gap between 1/31/3 and 2/32/3. This gap ensures the problem is well-posed for bounded-error computation, mirroring the error tolerance in BQP definitions. The mathematical formulation for the probability is given by p=1C02,p = \left| \langle 1 | C | 0 \rangle \right|^2, where the inner product is over the first output qubit after applying CC to the all-zero input state, and the approximation requirement is a^p1/poly(n)|\hat{a} - p| \leq 1/\text{poly}(n). To establish completeness, any language in Promise-BQP reduces to APPROX-QCIRCUIT-PROB in polynomial time. Given a Promise-BQP machine MM deciding a LL with success probability at least 2/32/3 for yes-instances and at most 1/31/3 for no-instances, construct a CC that simulates MM on input xx of length nn, using the standard encoding of quantum Turing machines into circuits of size. The first output of CC is set to represent the acceptance bit of MM, so the measurement probability pp matches the acceptance probability of MM. An solving APPROX-QCIRCUIT-PROB thus decides LL by checking if the estimate a^\hat{a} indicates p2/3p \geq 2/3 or p1/3p \leq 1/3, preserving the promise gap. This reduction holds because quantum Turing machines are equivalent to quantum circuits up to overhead. For hardness, APPROX-QCIRCUIT-PROB is Promise-BQP-hard, meaning no efficient classical probabilistic can solve it unless BQP = ; details of classical hardness arguments, such as anti-concentration bounds or assumptions, are deferred to broader discussions of quantum versus classical separations.

Relationships to Other Classes

BQP and

The class consists of all decision problems that can be solved by a deterministic in time. It is a fundamental in classical computation, capturing efficient deterministic . The relationship between and BQP (bounded-error quantum time) begins with the strict inclusion PBQPP \subseteq \text{BQP}, established by the ability of quantum computers to classical deterministic computations efficiently. This relies on reversible quantum gates that implement classical operations without loss of information, incurring only a overhead in time and space compared to the original classical . Although P is contained in BQP, the classes are suspected to be properly separated, with BQP⊈P\text{BQP} \not\subseteq P, indicating that quantum computers can achieve speedups over classical deterministic ones for certain problems. A seminal example is , the problem of finding the prime factors of a composite integer NN. In 1994, developed a that solves this in polynomial time using quantum Fourier transforms to find the period of a modular exponential function, placing the decision version of FACTORING (determining if NN has a factor in a given range) in BQP. This algorithm runs in O((logN)3)O((\log N)^3) quantum steps, exponentially faster than the best known classical deterministic algorithms, which require subexponential time and are not believed to be in P due to the problem's role in the security of systems like RSA cryptography. Shor's algorithm, formally published in 1997, provided the first concrete evidence suggesting BQP\properlysupseteqP\text{BQP} \properlysupseteq P, as factoring was long considered intractable for polynomial-time classical algorithms. Despite this, no proof exists that the inclusion is proper, leaving the equality P=BQPP = \text{BQP} as a major open question in complexity theory. If P=BQPP = \text{BQP} were shown, it would mean quantum computers provide no advantage for decision problems solvable deterministically in polynomial time, potentially diminishing the theoretical motivation for quantum hardware in classical simulation tasks.

BQP and BPP

The class BPP consists of decision problems that can be solved by a classical in polynomial time, where the machine has access to a source of random bits and accepts correct answers with probability at least 2/32/3 (or equivalently, error probability at most 1/31/3) for inputs in the , and rejects with probability at least 2/32/3 for inputs outside the . This bounded-error model captures randomized algorithms that tolerate some uncertainty while running efficiently. It is known that \BPP\BQP\BPP \subseteq \BQP, as a quantum computer can simulate classical probabilistic computation by using quantum measurements to generate pseudo-random bits, effectively derandomizing the process within the quantum framework without increasing the asymptotic . In this inclusion, the quantum model encompasses the randomness of BPP by leveraging superposition and interference to mimic or surpass classical random sampling. The broader chain \BPP\BQP\P \subseteq \BPP \subseteq \BQP reflects the from deterministic to bounded-error classical to quantum . Although \BPP\BQP\BPP \subseteq \BQP holds unconditionally, there is strong evidence suggesting a proper inclusion \BQP\properlysupseteq\BPP\BQP \properlysupseteq \BPP, with quantum algorithms demonstrating s unattainable by classical probabilistic methods. For instance, Grover's provides a quadratic for unstructured search problems, solving them in O(N)O(\sqrt{N})
Add your contribution
Related Hubs
User Avatar
No comments yet.