richard cleve dc 2117 [email protected]

15
1 Introduction to Introduction to Quantum Information Processing Quantum Information Processing CS 467 / CS 667 CS 467 / CS 667 Phys 667 / Phys 767 Phys 667 / Phys 767 C&O 481 / C&O 681 C&O 481 / C&O 681 Richard Cleve DC 2117 [email protected] Lecture 11 (2011)

Upload: phyre

Post on 12-Jan-2016

31 views

Category:

Documents


0 download

DESCRIPTION

Introduction to Quantum Information Processing CS 467 / CS 667 Phys 667 / Phys 767 C&O 481 / C&O 681. Lecture 11 (2011). Richard Cleve DC 2117 [email protected]. Order-finding via eigenvalue estimation. Example: Z 21 * = { 1,2,4,5,8,10,11,13,16,17,19,20 }. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Richard Cleve  DC 2117 cleve@cs.uwaterloo

1

Introduction to Introduction to Quantum Information ProcessingQuantum Information Processing

CS 467 / CS 667CS 467 / CS 667Phys 667 / Phys 767Phys 667 / Phys 767C&O 481 / C&O 681C&O 481 / C&O 681

Richard Cleve DC [email protected]

Lecture 11 (2011)

Page 2: Richard Cleve  DC 2117 cleve@cs.uwaterloo

2

Order-finding via

eigenvalue estimation

Page 3: Richard Cleve  DC 2117 cleve@cs.uwaterloo

3

Order-finding problemOrder-finding problemLet M be an m-bit integer

Def: ZM* = {x {1,2,…, M 1} : gcd(x,M ) = 1} (a group)

Def: ordM (a) is the minimum r > 0 such that ar = 1 (mod M )

Order-finding problem: given a and M, find ordM (a)

Example: Z21* = {1,2,4,5,8,10,11,13,16,17,19,20}

The powers of 10 are: 1, 10, 16, 13, 4, 19, 1, 10, 16, …

Therefore, ord21 (10) = 6

Note: no classical polynomial-time algorithm is known for this problem

Page 4: Richard Cleve  DC 2117 cleve@cs.uwaterloo

4

Order-finding algorithm (1)Order-finding algorithm (1)Define: U (an operation on m qubits) as: Uy = a y mod M

Define: Mae jr

j

jri mod1

0

/121

Then MaeU j

r

j

jri mod11

0

/121

Maee jr

j

jriri mod11

0

1/12/12

1

/12 rie

Page 5: Richard Cleve  DC 2117 cleve@cs.uwaterloo

5

Order-finding algorithm (2)Order-finding algorithm (2)

U n qubits

2n qubits corresponds to the mapping: xy xax

y mod M

Moreover, this mapping can be implemented with roughly O(n2) gates

The phase estimation algorithm yields a 2n-bit estimate of 1/r

From this, a good estimate of r can be calculated by taking the reciprocal, and rounding off to the nearest integer

Problem: how do we construct state 1 to begin with?

Exercise: why are 2n bits necessary and sufficient for this?

Page 6: Richard Cleve  DC 2117 cleve@cs.uwaterloo

6

Bypassing the need for Bypassing the need for 11 (1)(1) Mae j

r

j

jri mod1

0

/121

Let

Mae jr

j

jri mod1

0

/222

Mae jr

j

jrkik mod

1

0

/2

Mae jr

j

jrrir mod

1

0

/2

Any one of these could be used in the previous procedure, to yield an estimate of k/r, from which r can be extracted

What if k is chosen randomly and kept secret?

Page 7: Richard Cleve  DC 2117 cleve@cs.uwaterloo

7

Bypassing the need for Bypassing the need for 11 (2)(2)

Note: If k and r have a common factor, it is impossible because, for example, 2/3 and 17/51 are indistinguishable

What if k is chosen randomly and kept secret?

Can still uniquely determine k and r, from a 2m-bit

estimate of k/r, provided they have no common factors, using the continued fractions algorithm*

* For a discussion of the continued fractions algorithm, please see Appendix A4.4 in [Nielsen & Chuang]

So this is fine as long as k and r are relatively prime …

Page 8: Richard Cleve  DC 2117 cleve@cs.uwaterloo

8

Bypassing the need for Bypassing the need for 11 (3)(3)

Recall that k is randomly chosen from {1,…,r}What is the probability that k and r are relatively prime?

Therefore, the success probability is at least (1/ log m)

The probability that this occurs is (r)/ r, where is Euler’s totient function

It is known that (r) = (r/ loglogr), which implies that the

above probability is at least (1/ loglog r) = (1/ log m)

Is this good enough? Yes, because it means that the successprobability can be amplified to any constant < 1 by repeatingO(log m) times (so still polynomial in m)

But we still need to generate a random k here …

Page 9: Richard Cleve  DC 2117 cleve@cs.uwaterloo

9

Bypassing the need for Bypassing the need for 11 (4)(4)Returning to the phase estimation problem, suppose that

1 and 2 have respective eigenvalues e2i1 and e2i2,

and that 11 + 22 is used in place of an eigenvector:

U11 + 22

HHH

000

F†

M

What will the outcome be?

It will be an estimate of 1 with probability |1 |2

2 with probability |2 |2

(Showing this is left as an exercise)

Page 10: Richard Cleve  DC 2117 cleve@cs.uwaterloo

10

Bypassing the need for Bypassing the need for 11 (5)(5)

Along similar lines, the state

1mod11

1

1

0

/2

1

r

k

jr

j

jrkir

kk Mae

rr

Is it hard to construct the state ?

r

kk

r 1

1

yields results equivalent to choosing a k at random

In fact, this is something that is easy, since

This is how the previous requirement for 1 is bypassed

1

rψ k

k =1

r

Page 11: Richard Cleve  DC 2117 cleve@cs.uwaterloo

11

Quantum algorithm for order-findingQuantum algorithm for order-finding

Ua,M

HHH

000001

HH 4

4 8H

measure these qubits and apply continued fractions algorithm to determine a quotient, whose

denominator divides r

Ua,M y = a y mod M

inverse QFT

For constant success probability, repeat O(1/ log m) times and

take the smallest resulting r such that ar = 1 (mod M )

Number of gates for (1/ log m) success probability is:

O(m2 log m loglog m)

Page 12: Richard Cleve  DC 2117 cleve@cs.uwaterloo

12

Reduction from factoringto order-finding

Page 13: Richard Cleve  DC 2117 cleve@cs.uwaterloo

13

The integer factorization problemThe integer factorization problem

Input: M (n-bit integer; we can assume it is composite)

Output: p, q (each greater than 1) such that pq = N

Note 2: given any efficient algorithm for the above, we can recursively apply it to fully factor M into primes* efficiently

* A polynomial-time classical algorithm for primality testing exists

Note 1: no efficient (polynomial-time) classical algorithm is known for this problem

Page 14: Richard Cleve  DC 2117 cleve@cs.uwaterloo

14

Factoring prime-powersFactoring prime-powersThere is a straightforward classical algorithm for factoring numbers of the form M = pk, for some prime p

What is this algorithm?

Therefore, the interesting remaining case is where M has at least two distinct prime factors

Page 15: Richard Cleve  DC 2117 cleve@cs.uwaterloo

15

Proposed quantum algorithm (repeatedly do):

1. randomly choose a {2, 3, …, M–1}

2. compute g = gcd(a,M )3. if g > 1 then

output g, M/g else

compute r = ordM(a) (quantum part)

if r is even then

compute x = a r/2 –1 mod M

compute h = gcd(x,M )if h > 1 then output h, M/h

Numbers other than prime-powersNumbers other than prime-powers

so M | (a r/2+1)(a

r/21)

we have M | a r–1

thus, either M | a r/2 +1

or gcd(a r/2 +1,M )

is a nontrivial factor of M

It can be shown that at least half of the a {2, 3, …, M–1} are have order

even and result in gcd(a r/2 +1,M ) being a nontrivial factor of M

Analysis: