October 1 & 3, 20071 Introduction to Quantum Computing Lecture 2 of 2 Richard Cleve David R. Cheriton School of Computer Science Institute for Quantum.

Slides:



Advertisements
Similar presentations
Department of Computer Science & Engineering University of Washington
Advertisements

The Future (and Past) of Quantum Lower Bounds by Polynomials Scott Aaronson UC Berkeley.
University of Queensland
Quantum Computing MAS 725 Hartmut Klauck NTU
Umesh V. Vazirani U. C. Berkeley Quantum Algorithms: a survey.
Quantum Phase Estimation using Multivalued Logic.
Quantum computing COMP308 Lecture notes based on:
March 11, 2015CS21 Lecture 271 CS21 Decidability and Tractability Lecture 27 March 11, 2015.
Quantum Speedups DoRon Motter August 14, Introduction Two main approaches are known which produce fast Quantum Algorithms The first, and main approach.
Department of Computer Science & Engineering University of Washington
1 Quantum Computing: What’s It Good For? Scott Aaronson Computer Science Department, UC Berkeley January 10,  John.
University of Queensland
Quantum Algorithms I Andrew Chi-Chih Yao Tsinghua University & Chinese U. of Hong Kong.
CSEP 590tv: Quantum Computing
Quantum Computing Joseph Stelmach.
Anuj Dawar.
1 Recap (I) n -qubit quantum state: 2 n -dimensional unit vector Unitary op: 2 n  2 n linear operation U such that U † U = I (where U † denotes the conjugate.
Quantum Algorithms II Andrew C. Yao Tsinghua University & Chinese U. of Hong Kong.
Shor’s Algorithm Osama Awwad Department of Computer Science Western Michigan University July 12, 2015.
CSEP 590tv: Quantum Computing Dave Bacon Aug 3, 2005 Today’s Menu Public Key Cryptography Shor’s Algorithm Grover’s Algorithm Administrivia Quantum Mysteries:
1 Introduction to Quantum Information Processing QIC 710 / CS 678 / PH 767 / CO 681 / AM 871 Richard Cleve DC 2117 / QNC 3129 Lectures.
Generalized Deutsch Algorithms IPQI 5 Jan Background Basic aim : Efficient determination of properties of functions. Efficiency: No complete evaluation.
Quantum Computation for Dummies Dan Simon Microsoft Research UW students.
Small-Depth Quantum Circuits Frederic Green Department of Math/CS Clark University Worcester, MA.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 653 Course.
Lecture note 8: Quantum Algorithms
Algorithms Artur Ekert. Our golden sequence H H Circuit complexity n QUBITS B A A B B B B A # of gates (n) = size of the circuit (n) # of parallel units.
October 1 & 3, Introduction to Quantum Computing Lecture 1 of 2 Introduction to Quantum Computing Lecture 1 of 2
Quantum Computing MAS 725 Hartmut Klauck NTU
Short course on quantum computing Andris Ambainis University of Latvia.
Quantum Factoring Michele Mosca The Fifth Canadian Summer School on Quantum Information August 3, 2005.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 2117 Lecture.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
Quantum Computing MAS 725 Hartmut Klauck NTU
You Did Not Just Read This or did you?. Quantum Computing Dave Bacon Department of Computer Science & Engineering University of Washington Lecture 3:
1 Introduction to Quantum Information Processing CS 667 / PH 767 / CO 681 / AM 871 Richard Cleve DC 2117 Lecture 20 (2009)
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
Nawaf M Albadia
1 Introduction to Quantum Information Processing CS 667 / Phys 767 / C&O 681 Richard Cleve DC 2117 Lecture 15 (2008)
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 653 Lecture.
Quantum Computing & Algorithms
Quantum Computing MAS 725 Hartmut Klauck NTU
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
Quantum Computation Stephen Jordan. Church-Turing Thesis ● Weak Form: Anything we would regard as “computable” can be computed by a Turing machine. ●
Richard Cleve DC 2117 Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871 Lecture (2011)
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 2117 Lecture.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
1 Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871 Richard Cleve DC 2117 Lectures
1 An Introduction to Quantum Computing Sabeen Faridi Ph 70 October 23, 2007.
Beginner’s Guide to Quantum Computing Graduate Seminar Presentation Oct. 5, 2007.
Attendance Syllabus Textbook (hardcopy or electronics) Groups s First-time meeting.
Richard Cleve DC 3524 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Lecture.
Richard Cleve DC 2117 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681 Lecture.
Introduction to Quantum Computing Lecture 1 of 2
For computer scientists
Quantum Computing: What’s It Good For?
A Ridiculously Brief Overview
OSU Quantum Information Seminar
Quantum Computation and Information Chap 1 Intro and Overview: p 28-58
Richard Cleve DC 2117 Introduction to Quantum Information Processing CS 667 / PH 767 / CO 681 / AM 871 Lecture 18 (2009) Richard.
Quantum Computing Joseph Stelmach.
Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Lecture 17 (2005) Richard Cleve DC 3524
Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Lecture 4 (2005) Richard Cleve DC 653
Presentation transcript:

October 1 & 3, Introduction to Quantum Computing Lecture 2 of 2 Richard Cleve David R. Cheriton School of Computer Science Institute for Quantum Computing University of Waterloo CS 497 Frontiers of Computer Science

2 Recap of previous lecture Quantum states on n qubits are 2 n -dimensional unit vectors  00  0101  10  The basic operations on them are: unitary operations (rotations) measurements, that project on to the basis states quantum states quantum circuits Quantum algorithms so far: f ( 0 )  f ( 1 ) [Deutsch] one-out-of-four search

3 one-out-of- N search? 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...

4 Contents of lecture 2 1.Preliminary remarks 2.Quantum states 3.Unitary operations & measurements 4.Subsystem structure & quantum circuit diagrams 5.Introductory remarks about quantum algorithms 6.Deutsch’s parity algorithm 7.One-out-of-four search algorithm 8.Shor’s period finding algorithm 9.Grover’s search algorithm 10.Concluding remarks

5 Contents of lecture 2 1.Preliminary remarks 2.Quantum states 3.Unitary operations & measurements 4.Subsystem structure & quantum circuit diagrams 5.Introductory remarks about quantum algorithms 6.Deutsch’s parity algorithm 7.One-out-of-four search algorithm 8.Shor’s period finding algorithm 9.Grover’s search algorithm 10.Concluding remarks

6 Period-finding r Classically this is very hard in the general case—essentially it is as hard as finding a collision, which costs 2 O(n) queries Yet Quantum algorithms can determine r very efficiently: with only O(1) queries to f This is the basis of Shor’s factoring algorithm... x y Given: f :{0, 1} n → T such that f is (strictly) r -periodic, with unknown period r

7 Application of period-finding algorithm Example: let a = 4 and m = 35 (note that gcd(4,35) = 1 ) 4 1 mod 35 = mod 35 = mod 35 = mod 35 = mod 35 = mod 35 = mod 35 = mod 35 = 16 : Question: what is r in this case? The sequence is cyclic because the set Z m * = {a  {1,2,…, m  1} : gcd( x, m ) = 1 } is a group under multiplication mod m Answer: r = 6 Order-finding problem (  factoring) Input: m (an n -bit integer) and a < m such that gcd( x, m ) = 1 Output: the minimum r > 0 such that a r = 1 ( mod m )

8 Application of period-finding algorithm No classical polynomial-time algorithm is known for this problem — in fact, the factoring problem reduces to it Order-finding reduces to finding the period of the function f ( x ) = a x mod m, which can be computed in polynomial time A circuit computing the function f is substituted into the black-box: Order-finding problem (  factoring) Input: m (an n -bit integer) and a < m such that gcd( x, m ) = 1 Output: the minimum r > 0 such that a r = 1 ( mod m ) U a,m H V x1x2xnx1x2xn f(x)f(x) 000000 x1x2xnx1x2xn

9 Sketch of period-finding algorithm Construct  x | x, f ( x )  and then measure second register to get the following state: k rrrrrrr ( k random) | k  + | k + r  + | k + 2 r  + | k + 3 r  + … + | k + ( s  1) r  Measuring this state yields just a uniformly random value More is needed to extract r, a global property of f...

10 Quantum Fourier transform It’s a unitary operation on n qubits (an N  N matrix, where N = 2 n ) where  = e 2  i / N

11 Period inversion property Applying the quantum Fourier transform to the state | k  + | k + r  + | k + 2 r  + | k + 3 r  + … + | k + ( s  1) r  yields the state | 0  +  k | s  +  2k | 2 s  +  3k | 3 s  + … +  (r  1)k | ( r  1) s  Note: there is no longer an offset k (it’s now part of the “phase”) k rrrrrrr  = e2i / r = e2i / r s sssss Measure to get multiple of s, from which r can be deduced s = r 1s = r 1

12 Computing the QFT H H H H H H m Quantum circuit for F 32 : Gates: For F 2 n costs O(n 2 ) gates reverse order

13 Quantum algorithm for order-finding H H H 00 00 00 00 00 11 H H 4 48 H after measuring these qubits, can calculate r using classical methods U a,M  x,y  =  x,a x y mod m  (poly-size circuit) Quantum Fourier transform Number of gates for a constant success probability is: O(n 2 log n loglog n) U a,m H V

14 Two-dimensional periodicity Given: f :{0, 1} n  {0, 1} n → T with a two-dimensional repeating pattern Goal: find a simple description of this periodic strucuture Quantum algorithms can also solve this very efficiently, and this is the basis of Shor’s discrete logarithm algorithm [1994]

15 Hidden subgroup problem Let G be a known group and H be an unknown subgroup of G Let f : G → T have the property f (x) = f ( y) iff x y  1  H (i.e., x and y are in the same right coset of H ) Problem: given a method for computing f, determine H Example: G = S n, the symmetric group ( permutations of {1,2,…, n} ) … alas no efficient quantum has been found for this version of HSP, despite significant effort by many people Interesting fact: a fast algorithm for this leads to a fast algorithm for the graph isomorphism problem

16 Contents of lecture 2 1.Preliminary remarks 2.Quantum states 3.Unitary operations & measurements 4.Subsystem structure & quantum circuit diagrams 5.Introductory remarks about quantum algorithms 6.Deutsch’s parity algorithm 7.One-out-of-four search algorithm 8.Shor’s period finding algorithm 9.Grover’s search algorithm 10.Concluding remarks

17 Prelude: factoring vs. NP 3-CNF-SAT factoring P NP PSPACE co-NP Is factoring an NP-hard problem? But factoring hasn’t been shown to be NP-hard Moreover, there is “evidence” that it is not NP-hard: factoring  NP  co-NP If so, then every problem in NP is solvable by a poly-time quantum algorithm! If factoring is NP-hard then NP = co-NP

18 Quantum search problem Given: a black box computing f : {0,1} n  {0,1} Goal: find x  {0,1} n such that f (x) = 1 Classically, using probabilistic procedures, order 2 n queries are necessary to succeed — even with probability ¾ (say) x1x1 xnxn yy xnxn x1x1  y  f ( x 1,...,x n )  UfUf Query: [Grover ’96] Grover’s quantum algorithm makes only O(  2 n ) queries

19 Applications of quantum search The function f could be realized as a 3-CNF formula: In fact, the search could be for a certificate for any problem in NP The resulting quantum algorithms appear to be quadratically more efficient than the best classical algorithms known

20 Prelude to Grover’s algorithm: two reflections = a rotation  11 22 11 22 Consider two lines with intersection angle  : reflection 1 reflection 2 Net effect: rotation by angle 2 , regardless of starting vector

21 Grover’s algorithm I D x1x1 xnxn yy xnxn x1x1  y  f ( x 1,...,x n )  UfUf U f  x  (  0    1  ) = (  1) f(x)  x  (  0    1  ) H H H H Basic operations used: Query: Diffusion: Hadamard: Costs only O( n ) gates

22 Grover’s algorithm II 1.construct state H   2.repeat k times: apply D U f to state 3. measure state, to get x  {0,1} n, and check if f (x) =1 00 00   H UfUf D iteration 1 UfUf D iteration 2 UfUf D iteration 3 UfUf D iteration 4

23 Grover’s algorithm III Algorithm: ( D U f ) k H    target    target  (assume unique) H   =  x  x   22 22 22 22 Since D U f is a composition of two reflections, it is a rotation by 2 , where sin (  )  1/  N We want (2k+1)(1/  N)   / 2, so set k  (  / 4)  N

24 Contents of lecture 2 1.Preliminary remarks 2.Quantum states 3.Unitary operations & measurements 4.Subsystem structure & quantum circuit diagrams 5.Introductory remarks about quantum algorithms 6.Deutsch’s parity algorithm 7.One-out-of-four search algorithm 8.Shor’s period finding algorithm and factoring 9.Grover’s search algorithm 10.Concluding remarks

25 Conclusion Quantum computing challenges this thesis Extended Chruch-Turing Thesis: any polynomial-time algorithm can be simulated by a probabilistic polynomial- time Turing machine Either: The Extended Chruch-Turing Thesis is false Quantum mechanics as we understand it is false There is a classical poly-time factoring algorithm There are many curious properties of quantum information in the context of computation, communication, and cryptography Waterloo has many people in the faculties of Mathematics, Science, and Engineering working in quantum computing (please see more information)

26 Some possible project topics 1.Efficient “quantum proofs”: an example is the group non- membership problem 2.Nonlocal effects: apparently paradoxical tricks that can be performed with entangled states 3.Quantum error-correcting codes: important for physical implementations of quantum information processing 4.Alternate models of quantum computation: an example is the measurement-based model 5.Quantum walks: the quantum analogues of random walks, and their algorithmic applications 6.Quantum cryptography: information-theoretical security in a public-key setting

27