BQP

From HandWiki

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

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 {Qn:n}, such that

  • For all n, Qn takes n qubits as input and outputs 1 bit
  • For all x in L, Pr(Q|x|(x)=1)23
  • For all x not in L, Pr(Q|x|(x)=0)23

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

Unsolved problem in computer science:
What is the relationship between BQP and NP?
(more unsolved problems in computer science)
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:

PBPPBQPAWPPPPPSPACEEXP

As the problem of P =? PSPACE 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 BQPAPHA.[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

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

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 α,β[0,1],α>β, distinguish between the following two cases:

  • measuring the first qubit of the state C|0n yields |1 with probability α
  • measuring the first qubit of the state C|0n yields |1 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 α,β[0,1],α>β, A distinguishes between the above two cases. We can solve any problem in BQP with this oracle, by setting α=2/3,β=1/3.

For any LBQP, there exists family of quantum circuits {Qn:n} such that for all n, a state |x of n qubits, if xL,Pr(Qn(|x)=1)2/3; else if xL,Pr(Qn(|x)=0)2/3. Fix an input |x of n qubits, and the corresponding quantum circuit Qn. We can first construct a circuit Cx such that Cx|0n=|x. This can be done easily by hardwiring |x and apply a sequence of CNOT gates to flip the qubits. Then we can combine two circuits to get C=QnCx, and now C|0n=Qn|x. And finally, necessarily the results of Qn 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 C|0n=Qn|x, we get the output. This will be our circuit C, and we decide the membership of xL by running A(C) with α=2/3,β=1/3. By definition of BQP, we will either fall into the first case (acceptance), or the second case (rejection), so LBQP reduces to APPROX-QCIRCUIT-PROB.

BQP and EXP

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

Claim — APPROX-QCIRCUIT-PROBEXP

Note that this algorithm also requires 2O(n) 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

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 BQPPSPACE.[13]

Sum of Histories Tree

Consider a quantum circuit C, which consists of t gates, g1,g2,,gm, where each gj 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 |0n, and each node in the tree has 2n children, each representing a state in n. The weight on a tree edge from a node in j-th level representing a state |x to a node in j+1-th level representing a state |y is y|gj+1|x, the amplitude of |y after applying gj+1 on |x. 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 gi in addition to the root, and with branching factor 2n.

Define — A history is a path in the sum of histories tree. We will denote a history by a sequence (u0=|0nu1um1um=x) for some final state x.

Define — Let u,v{0,1}n. Let amplitude of the edge (|u,|v) in the j-th level of the sum over histories tree be αj(uv)=v|gj|u. For any history h=(u0u1um1um), the transition amplitude of the history is the product αh=α1(|0nu1)α2(u1u2)αm(um1x).

Claim — For a history (u0um) . The transition amplitude of the history is computable in polynomial time.

Claim — Let C|0n=x{0,1}nαx|x be the final state of the quantum circuit. For some x{0,1}n, the amplitude αx can be computed by αx=h=(|0nu1ut1|x)αh.

Claim — APPROX-QCIRCUIT-PROBPSPACE

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

Therefore, in polynomial space, we may compute x|αx|2 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 BQPEXP, our algorithm here takes far less space but far more time instead. In fact it takes O(m2mn) time to calculate a single amplitude!

BQP and PP

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

P and BQP

We know PBQP, 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

References

  1. 1.0 1.1 1.2 Michael Nielsen and Isaac Chuang (2000). Quantum Computation and Quantum Information. Cambridge: Cambridge University Press. ISBN 0-521-63503-9.
  2. 2.0 2.1 2.2 2.3 Bernstein, Ethan; Vazirani, Umesh (October 1997). "Quantum Complexity Theory". SIAM Journal on Computing 26 (5): 1411–1473. doi:10.1137/S0097539796300921. 
  3. Barak, Sanjeev Arora, Boaz (2009). Computational Complexity: A Modern Approach / Sanjeev Arora and Boaz Barak. Cambridge. p. 122. https://www.cs.princeton.edu/theory/complexity/. Retrieved 24 July 2018. 
  4. Fortnow, Lance; Rogers, John (1999). "Complexity limitations on Quantum computation". J. Comput. Syst. Sci. 59 (2): 240–252. doi:10.1006/jcss.1999.1651. ISSN 0022-0000. http://people.cs.uchicago.edu/~fortnow/papers/quantum.pdf. 
  5. L. Adleman, J. DeMarrais, and M.-D. Huang. Quantum computability. SIAM J. Comput., 26(5):1524–1540, 1997.
  6. George, Michael Goderbauer, Stefan. "ECCC - TR18-107" (in en). https://eccc.weizmann.ac.il/report/2018/107/. 
  7. 7.0 7.1 Aaronson, Scott (2010). "BQP and the Polynomial Hierarchy". Proceedings of ACM STOC 2010. https://www.scottaaronson.com/papers/bqpph.pdf. 
  8. Aaronson, Scott (2005). "Quantum computing, postselection, and probabilistic polynomial-time". Proceedings of the Royal Society A 461 (2063): 3473–3482. doi:10.1098/rspa.2005.1546. Bibcode2005RSPSA.461.3473A. . Preprint available at [1]
  9. Aaronson, Scott (2004-01-11). "Complexity Class of the Week: PP". Computational Complexity Weblog. http://weblog.fortnow.com/2004/01/complexity-class-of-week-pp-by-guest.html. 
  10. Janzing, Dominik; Wocjan, Pawel (2007-03-30). "A Simple PromiseBQP-complete Matrix Problem". Theory of Computing 3 (4): 61–79. doi:10.4086/toc.2007.v003a004. https://theoryofcomputing.org/articles/v003a004/v003a004.pdf. Retrieved 2024-04-18. 
  11. Michael A. Nielsen; Isaac L. Chuang (9 December 2010). Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge University Press. p. 186. ISBN 978-1-139-49548-6. https://books.google.com/books?id=-s4DEy7o-a0C. 
  12. Odel A. Cross (5 November 2012). Topics in Quantum Computing. O. A. Cross. p. 348. ISBN 978-1-4800-2749-7. https://books.google.com/books?id=b_D9flK2h8QC&pg=PA348. 
  13. E. Bernstein and U. Vazirani. Quantum complexity theory, SIAM Journal on Computing, 26(5):1411-1473, 1997.
  14. L. Adleman, J. DeMarrais, and M. Huang. Quantum computability, SIAM Journal on Comput- ing 26:1524-1540, 1997.
  15. Nielsen, Michael A.; Chuang, Isaac L. (2000), Quantum Computation and Quantum Information, Cambridge: Cambridge University Press, ISBN 0-521-63235-8, MR 1796805.
  16. 16.0 16.1 arXiv:quant-ph/9508027v2 Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer, Peter W. Shor