1 / 45

Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871

Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871. Lectures 4–7 (2012). Richard Cleve DC 2117 / RAC 2211 cleve@cs.uwaterloo.ca. Classical computations as circuits. “ old ” notation. “ new ” notation. a. a. AND gate. a Λ b. Λ. a Λ b. b.

Download Presentation

Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Quantum Information ProcessingQIC 710 / CS 667 / PH 767 / CO 681 / AM 871 Lectures 4–7 (2012) Richard Cleve DC 2117 / RAC 2211 cleve@cs.uwaterloo.ca

  2. Classical computations as circuits

  3. “old” notation “new” notation a a AND gate a Λb Λ a Λb b b a NOT gate a a  a Classical (boolean logic) gates Note: an OR gate can be simulated by one AND gate and three NOT gates (since a Vb= (a Λb))

  4. 1 Λ Λ 1 Λ Λ 0 1 Λ Λ Λ 1 1  Λ 0    0 Λ Λ 1 0 Λ  Λ 1 1 Λ  data flow 0 1 0 1 1 1 0 0 1 1 Models of computation Classical circuits: Quantum circuits:

  5. Multiplication problem Input: two n-bit numbers (e.g. 101 and 111) • “Grade school” algorithm costs O(n2) [scales up polynomially] • Best currently-known classical algorithm costs slightly less than O(nlogn loglogn) [to be preciseO(nlogn 2log*n)] • Best currently-known quantum method: same Output: their product (e.g. 100011)

  6. Factoring problem Input: an n-bit number (e.g. 100011) • Trial division costs  2n/2 • Best currently-known classical algorithm costs  2n⅓ [to be more precise 2O(n⅓log⅔n)and this scaling is not polynomial] • The presumed hardness of factoring is the basis of the security of many cryptosystems (e.g. RSA) • Shors quantum algorithm costs  n2 [less than O(n2lognloglogn)] • Implementation would break RSA — and many other public-key cryptosystems Output: their product (e.g. 101, 111)

  7. Simulating classical circuits with quantum circuits

  8. a a b b c (a Λb)c  Toffoli gate (Sometimes called a “controlled-controlled-NOT” gate) Matrix representation: In the computational basis, it negates the third qubit iff the first two qubits are both 0

  9. Quantum simulation of classical a a 1 1 AND gates NOT gates b b 1 1 garbage a a Λb a 0 Theorem: a classical circuit of size s can be simulated by a quantum circuit of size O(s) Idea: using Toffoli gates, one can simulate: This garbage will have to be reckoned with later on …

  10. 0 H random bit 0 isolate this qubit 0 H use in place of coin flip Simulating probabilistic algorithms Since quantum gates can simulate AND and NOT, the outstanding issue is how to simulate randomness To simulate “coin flips”, one can use the circuit: It can also be done without intermediate measurements: Exercise: prove that this works

  11. Simulating quantum circuits with classical circuits

  12. Classical simulation of quantum Theorem: a quantum circuit of size s acting on n qubits can be simulated by a classical circuit of size O(sn22n) =O(2cn) Idea: to simulate an n-qubit state, use an array of size 2n containing values of all 2n amplitudes within precision 2−n Can adjust this state vector whenever a unitary operation is performed at cost O(n22n) From the final amplitudes, can determine how to set each output bit Exercise: show how to do the simulation using only a polynomial amount of space (memory)

  13. Some complexity classes • P (polynomial time):the problems solved by O(nc)-size classical circuits [technically, we restrict to decision problems and to “uniform circuit families”] • BPP (bounded error probabilistic polynomial time): the problems solved by O(nc)-size probabilistic circuits that err with probability  ¼ • BQP (bounded error quantum polynomial time): the problems solved by O(nc)-size quantum circuits that err with probability  ¼ • EXP (exponential time):the problems solved by O(2nc)-size circuits

  14. EXP PSPACE BQP BPP P Summary of basic containments P BPP  BQP  PSPACE  EXP This picture will be fleshed out more later on

  15. Simple quantum algorithms in the query scenario

  16. x f f(x) Answer: d +1 Query scenario Input: a function f, given as a black box (a.k.a. oracle) Goal: determine some information about f making as few queries to f (and other operations) as possible Example: polynomial interpolation Let:f(x) =c0+c1x+c2 x2+ ... + cd xd Goal: determine c0 , c1 , c2 ,... , cd Question: How many f-queries does one require for this?

  17. Deutsch’s problem

  18. Deutsch’s problem f Let f : {0,1}  {0,1} There are four possibilities: Goal: determine whether or not f(0)=f(1) (i.e. f(0)  f(1)) Any classical method requires two queries What about a quantum method?

  19. alternate notation: A classical algorithm: (still requires 2 queries) 0 1 f f f f(0)  f(1) 0 Reversible black box for f a a Uf b bf(a) 2 queries + 1 auxiliary operation

  20. 2 3 1 f Quantum algorithm for Deutsch H H f(0)  f(1) 0 H 1 1 query + 4 auxiliary operations How does this algorithm work? Each of the three H operations can be seen as playing a different role ...

  21. H H 0 H 1 f f x (–1)f(x)x NOT with eigenvalue –1 Iwith eigenvalue +1 0 –1 0 –1 Quantum algorithm (1) 2 3 1 1. Creates the state 0 –1, which is an eigenvector of This causes f to induce a phase shift of (–1)f(x) to x

  22. (–1)f(0)0 +(–1)f(1)1 0 H f 0 –1 0 –1 Quantum algorithm (2) 2. Causes f to be queried in superposition (at 0 + 1) (0 +1) (0 –1)

  23. H (0 +1) 0 H (0 –1) 1 Quantum algorithm (3) 3. Distinguishes between (0 +1) and (0 –1)

  24. 2 3 H H f(0)  f(1) 0 1 H 1 f Summary of Deutsch’s algorithm Makes only one query, whereas two are needed classically extracts phase differences from (–1)f(0)0 +(–1)f(1)1 produces superpositions of inputs to f : 0 + 1 constructs eigenvector so f-queries induce phases: x (–1)f(x)x

  25. One-out-of-four search

  26. One-out-of-four search Let f : {0,1}2 {0,1} have the property that there is exactly one x {0,1}2 for which f(x) = 1 Four possibilities: Goal: find x {0,1}2 for which f(x) = 1 What is the minimum number of queries classically? ____ Quantumly? ____

  27. x1 x1 f f x2 x2 y y  f(x1,x2) 0 H 0 H 1 H Quantum algorithm (I) Black box for 1-4 search: Start by creating phases in superposition of all inputs to f: Input state to query? (00 + 01 + 10 + 11)(0 –1) Output state of query? ((–1)f(00)00 +(–1)f(01)01 + (–1)f(10)10 +(–1)f(11)11)(0 –1)

  28. 0 H U f 0 H 1 H Quantum algorithm (II) Apply the U that maps ψ00, ψ01,ψ10,ψ11 to 00,01,10,11 (resp.) Output state of the first two qubits in the four cases: Case of f00? ψ00 =–00 + 01 + 10 + 11 Case of f01? ψ01 =+00 – 01 + 10 + 11 Case of f10? ψ10 =+00 + 01 –10 + 11 Case of f11? ψ11 =+00 + 01 + 10 – 11 Orthogonal! What noteworthy property do these states have? Challenge Exercise: simulate the above U in terms of H, Toffoli, and NOT gates

  29. one-out-of-Nsearch? Natural question: what about search problems in spaces larger than four (and without uniqueness conditions)? For spaces of size eight (say), the previous method breaks down—the state vectors will not be orthogonal Later on, we’ll see how to search a space of size N with O(N) queries ...

  30. Constant vs. balanced

  31. Constant vs. balanced • Let f : {0,1}n {0,1} be either constant or balanced, where • constant means f(x) =0 for all x, or f(x) =1 for all x • balanced means xf(x) =2n−1 Goal: determine whether f is constant or balanced How many queries are there needed classically? ____ Example: if f(0000) =f(0001) =f(0010) = ... =f(0111) = 0 then it still could be either Quantumly? ____ [Deutsch & Jozsa, 1992]

  32. H 0 0 H H f f H 0 0 H H H 0 0 H H 1 1 H H Quantum algorithm ψ Constant case: ψ=x x Why? Balanced case: ψ is orthogonal to x xWhy? How to distinguish between the cases? What is Hnψ? Constant case: Hnψ=00...0 Balanced case: Hn ψ is orthogonal to 0...00 Last step of the algorithm: if the measured result is 000 then output “constant”, otherwise output “balanced”

  33. Probabilistic classical algorithm solving constant vs balanced But here’s a classical procedure that makes only 2 queries and performs fairly well probabilistically: • pick x1, x2 {0,1}nrandomly • iff(x1)≠f(x2)then output balanced else output constant What happens if f is constant? Thealgorithm always succeeds What happens if f is balanced? Succeeds with probability ½ By repeating the above procedure k times: 2k queries and one-sided error probability (½)k Therefore, for large n, 2n queries are likely sufficient

  34. HH ... H

  35. Example: About HH ... H = Hn Theorem: for x {0,1}n, where x·y=x1y1 ... xnyn Pf: For all x {0,1}n, Hx = 0 +(–1) x1 = y (–1)xyy Thus, Hnx1 ...xn = (y1(–1)x1y1y1) ...(yn(–1)xnynyn) =y (–1)x1y1  ... xnyny1 ...yn█

  36. Simon’s problem

  37. Quantum vs. classical separations (only for exact) (probabilistic)

  38. Simon’s problem Let f : {0,1}n {0,1}n have the property that there exists an r {0,1}nsuch that f(x) =f(y) iff xy= r or x= y Example: What isris this case? ________ Answer:r=101

  39. A classical algorithm for Simon Search for a collision, an x≠y such that f(x) =f(y) 1. Choose x1,x2 ,...,xk {0,1}n randomly (independently) 2. For all i≠j, if f(xi)=f(xj) then output xixj and halt A hard case is where r is chosen randomly from {0,1}n–{0n} and then the “table” for f is filled out randomly subject to the structure implied by r How big does k have to be for the probability of a collision to be a constant, such as ¾? Answer: order 2n/2 (each (xi ,xj)collides with prob. O(2–n))

  40. Classical lower bound Theorem:any classical algorithm solving Simon’s problem must make Ω(2n/2)queries Proof is omitted here—note that the performance analysis of the previous algorithm does not imply the theorem … how can we know that there isn’t a different algorithm that performs better?

  41. x1 x1 f x2 x2 xn xn y1 y2 yf(x) 0 yn H f 0 H 0 H ? 0 0 0 A quantum algorithm for Simon I Queries: Not clear what eigenvector of target registers is ... Proposed start of quantum algorithm: query all values of f in superposition What is the output state of this circuit?

  42. Answer: the output state is A quantum algorithm for Simon II Let T {0,1}nbe such that one element from each matched pair is in T (assume r≠00...0) Example: could take T={000, 001, 011, 111} Then the output state can be written as:

  43. (1/2)n–1 if r∙y=0 0 if r∙y≠0 Measuring this state yields y with prob. A quantum algorithm for Simon III Measuring the second register yields x+xr in the first register, for a random x T How can we use this to obtain some information about r? Try applying Hn to the state, yielding:

  44. 0 H f H 0 H H 0 H H 0 0 0 A quantum algorithm for Simon IV Executing this algorithm k=O(n) times yields random y1,y2 ,...,yk {0,1}n such that r∙y1=r∙y2=... =r∙yn= 0 How does this help? This is a system of k linear equations: With high probability, there is a unique non-zero solution that is r (which can be efficiently found by linear algebra)

  45. Conclusion of Simon’s algorithm • Any classical algorithm has to query the black box (2n/2) times, even to succeed with probability ¾ • There is a quantum algorithm that queries the black box onlyO(n)times, performs only O(n3)auxiliary operations (for the Hadamards, measurements, and linear algebra), and succeeds with probability ¾

More Related