Quantum Computation Lecture 27 And that s all we got time for! 1 - - PowerPoint PPT Presentation

quantum computation
SMART_READER_LITE
LIVE PREVIEW

Quantum Computation Lecture 27 And that s all we got time for! 1 - - PowerPoint PPT Presentation

Quantum Computation Lecture 27 And that s all we got time for! 1 State 2 State State of a classical computer labeled by (say) bit strings 2 State State of a classical computer labeled by (say) bit strings e.g. 2-bit states: 00, 01, 10


slide-1
SLIDE 1

Quantum Computation

Lecture 27 And that’ s all we got time for!

1

slide-2
SLIDE 2

State

2

slide-3
SLIDE 3

State

State of a classical computer labeled by (say) bit strings

2

slide-4
SLIDE 4

State

State of a classical computer labeled by (say) bit strings e.g. 2-bit states: 00, 01, 10 and 11

2

slide-5
SLIDE 5

State

State of a classical computer labeled by (say) bit strings e.g. 2-bit states: 00, 01, 10 and 11 Probabilistic computation: state is a probability distribution over the basis states

2

slide-6
SLIDE 6

State

State of a classical computer labeled by (say) bit strings e.g. 2-bit states: 00, 01, 10 and 11 Probabilistic computation: state is a probability distribution over the basis states p = (p00,p01,p10,p11) s.t. pij non-negative and ||p||1 = 1

2

slide-7
SLIDE 7

State

State of a classical computer labeled by (say) bit strings e.g. 2-bit states: 00, 01, 10 and 11 Probabilistic computation: state is a probability distribution over the basis states p = (p00,p01,p10,p11) s.t. pij non-negative and ||p||1 = 1 Quantum computation/Quantum mechanics: state is a real (or even complex) vector

2

slide-8
SLIDE 8

State

State of a classical computer labeled by (say) bit strings e.g. 2-bit states: 00, 01, 10 and 11 Probabilistic computation: state is a probability distribution over the basis states p = (p00,p01,p10,p11) s.t. pij non-negative and ||p||1 = 1 Quantum computation/Quantum mechanics: state is a real (or even complex) vector q = (q00,q01,q10,q11) s.t. ||q||2 = 1

2

slide-9
SLIDE 9

State

State of a classical computer labeled by (say) bit strings e.g. 2-bit states: 00, 01, 10 and 11 Probabilistic computation: state is a probability distribution over the basis states p = (p00,p01,p10,p11) s.t. pij non-negative and ||p||1 = 1 Quantum computation/Quantum mechanics: state is a real (or even complex) vector q = (q00,q01,q10,q11) s.t. ||q||2 = 1 qs is the “amplitude” of basis state s

2

slide-10
SLIDE 10

Qubits

3

slide-11
SLIDE 11

Qubits

State of a quantum system is stored as qubits

3

slide-12
SLIDE 12

Qubits

State of a quantum system is stored as qubits Physically, some property (spin, polarization) of a particle (electron, photon) that takes two discrete values

3

slide-13
SLIDE 13

Qubits

State of a quantum system is stored as qubits Physically, some property (spin, polarization) of a particle (electron, photon) that takes two discrete values State of a single qubit: a 2-dimensional vector of unit L2 norm

3

slide-14
SLIDE 14

Qubits

State of a quantum system is stored as qubits Physically, some property (spin, polarization) of a particle (electron, photon) that takes two discrete values State of a single qubit: a 2-dimensional vector of unit L2 norm Joint state of two independent qubits: tensor product of their individual states (like classical probability)

3

slide-15
SLIDE 15

Qubits

State of a quantum system is stored as qubits Physically, some property (spin, polarization) of a particle (electron, photon) that takes two discrete values State of a single qubit: a 2-dimensional vector of unit L2 norm Joint state of two independent qubits: tensor product of their individual states (like classical probability) An m qubit system has 2m basis states. Its quantum state can be any valid amplitude vector (2m dimensional complex vector, with unit L2 norm), not always separable into independent qubits

3

slide-16
SLIDE 16

Qubits

State of a quantum system is stored as qubits Physically, some property (spin, polarization) of a particle (electron, photon) that takes two discrete values State of a single qubit: a 2-dimensional vector of unit L2 norm Joint state of two independent qubits: tensor product of their individual states (like classical probability) An m qubit system has 2m basis states. Its quantum state can be any valid amplitude vector (2m dimensional complex vector, with unit L2 norm), not always separable into independent qubits e.g. √½ [ 1 0 0 -1 ]. Also written as √½ |00❯ - √½ |11❯

3

slide-17
SLIDE 17

Qubits

State of a quantum system is stored as qubits Physically, some property (spin, polarization) of a particle (electron, photon) that takes two discrete values State of a single qubit: a 2-dimensional vector of unit L2 norm Joint state of two independent qubits: tensor product of their individual states (like classical probability) An m qubit system has 2m basis states. Its quantum state can be any valid amplitude vector (2m dimensional complex vector, with unit L2 norm), not always separable into independent qubits e.g. √½ [ 1 0 0 -1 ]. Also written as √½ |00❯ - √½ |11❯

|00❯ |01❯ |10❯ |11❯

3

slide-18
SLIDE 18

Qubits

State of a quantum system is stored as qubits Physically, some property (spin, polarization) of a particle (electron, photon) that takes two discrete values State of a single qubit: a 2-dimensional vector of unit L2 norm Joint state of two independent qubits: tensor product of their individual states (like classical probability) An m qubit system has 2m basis states. Its quantum state can be any valid amplitude vector (2m dimensional complex vector, with unit L2 norm), not always separable into independent qubits e.g. √½ [ 1 0 0 -1 ]. Also written as √½ |00❯ - √½ |11❯ (Also, state can be “mixed”: a probability distribution over amplitude vectors. Doesn’t change power of quantum computing)

|00❯ |01❯ |10❯ |11❯

3

slide-19
SLIDE 19

Measuring a Quantum state

4

slide-20
SLIDE 20

Measuring a Quantum state

Measuring a state outputs one of the basis states, and the

  • riginal state collapses to that basis state

4

slide-21
SLIDE 21

Measuring a Quantum state

Measuring a state outputs one of the basis states, and the

  • riginal state collapses to that basis state

Probability of getting state |i❯ is the square of its amplitude

4

slide-22
SLIDE 22

Measuring a Quantum state

Measuring a state outputs one of the basis states, and the

  • riginal state collapses to that basis state

Probability of getting state |i❯ is the square of its amplitude Let’ s call the amplitude-square vector the measurement

4

slide-23
SLIDE 23

Measuring a Quantum state

Measuring a state outputs one of the basis states, and the

  • riginal state collapses to that basis state

Probability of getting state |i❯ is the square of its amplitude Let’ s call the amplitude-square vector the measurement Measurement is a probability distribution over possible

  • utcomes (namely the basis states)

4

slide-24
SLIDE 24

Measuring a Quantum state

Measuring a state outputs one of the basis states, and the

  • riginal state collapses to that basis state

Probability of getting state |i❯ is the square of its amplitude Let’ s call the amplitude-square vector the measurement Measurement is a probability distribution over possible

  • utcomes (namely the basis states)

Can do partial measurement - i.e., measurement on some qubits

  • nly - and continue computing. State collapses to be consistent

with the measurement

4

slide-25
SLIDE 25

Measuring a Quantum state

Measuring a state outputs one of the basis states, and the

  • riginal state collapses to that basis state

Probability of getting state |i❯ is the square of its amplitude Let’ s call the amplitude-square vector the measurement Measurement is a probability distribution over possible

  • utcomes (namely the basis states)

Can do partial measurement - i.e., measurement on some qubits

  • nly - and continue computing. State collapses to be consistent

with the measurement Can modify computation to defer all measurements to the end

4

slide-26
SLIDE 26

Measuring a Quantum state

Measuring a state outputs one of the basis states, and the

  • riginal state collapses to that basis state

Probability of getting state |i❯ is the square of its amplitude Let’ s call the amplitude-square vector the measurement Measurement is a probability distribution over possible

  • utcomes (namely the basis states)

Can do partial measurement - i.e., measurement on some qubits

  • nly - and continue computing. State collapses to be consistent

with the measurement Can modify computation to defer all measurements to the end Can choose “non-standard” bases for measurement. But again, can do without it

4

slide-27
SLIDE 27

Operations on state

5

slide-28
SLIDE 28

Operations on state

Unitary operations: linear transforms that preserve the L2 norm

5

slide-29
SLIDE 29

Operations on state

Unitary operations: linear transforms that preserve the L2 norm Multiplication by a unitary matrix: i.e., Ut = U-1

5

slide-30
SLIDE 30

Operations on state

Unitary operations: linear transforms that preserve the L2 norm Multiplication by a unitary matrix: i.e., Ut = U-1

Conjugate transpose

5

slide-31
SLIDE 31

Operations on state

Unitary operations: linear transforms that preserve the L2 norm Multiplication by a unitary matrix: i.e., Ut = U-1 For quantum computing can restrict to real matrices

Conjugate transpose

5

slide-32
SLIDE 32

Operations on state

Unitary operations: linear transforms that preserve the L2 norm Multiplication by a unitary matrix: i.e., Ut = U-1 For quantum computing can restrict to real matrices Unitary matrices are invertible

Conjugate transpose

5

slide-33
SLIDE 33

Operations on state

Unitary operations: linear transforms that preserve the L2 norm Multiplication by a unitary matrix: i.e., Ut = U-1 For quantum computing can restrict to real matrices Unitary matrices are invertible Computation is reversible!

Conjugate transpose

5

slide-34
SLIDE 34

Operations on state

Unitary operations: linear transforms that preserve the L2 norm Multiplication by a unitary matrix: i.e., Ut = U-1 For quantum computing can restrict to real matrices Unitary matrices are invertible Computation is reversible! e.g.: (on one qubit), (on 2 qubits)

Conjugate transpose

√½ √½ √½ -√½ 1 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0

5

slide-35
SLIDE 35

Operations on state

6

slide-36
SLIDE 36

Operations on state

Hadamard transform (on a single qubit)

6

slide-37
SLIDE 37

Operations on state

Hadamard transform (on a single qubit) Takes [1 0] to √½ [1 1], and [0 1] to √½ [1 -1]

6

slide-38
SLIDE 38

Operations on state

Hadamard transform (on a single qubit) Takes [1 0] to √½ [1 1], and [0 1] to √½ [1 -1] Measurement of result of applying this to a basis state is [½ ½] (i.e., can be used to toss a coin)

6

slide-39
SLIDE 39

Operations on state

Hadamard transform (on a single qubit) Takes [1 0] to √½ [1 1], and [0 1] to √½ [1 -1] Measurement of result of applying this to a basis state is [½ ½] (i.e., can be used to toss a coin) A quantum effect:

6

slide-40
SLIDE 40

Operations on state

Hadamard transform (on a single qubit) Takes [1 0] to √½ [1 1], and [0 1] to √½ [1 -1] Measurement of result of applying this to a basis state is [½ ½] (i.e., can be used to toss a coin) A quantum effect: Had([1 0]) = [√½ √½]; Had([√½ √½]) = [1 0].

6

slide-41
SLIDE 41

Operations on state

Hadamard transform (on a single qubit) Takes [1 0] to √½ [1 1], and [0 1] to √½ [1 -1] Measurement of result of applying this to a basis state is [½ ½] (i.e., can be used to toss a coin) A quantum effect: Had([1 0]) = [√½ √½]; Had([√½ √½]) = [1 0]. Amplitudes of |1❯ destructively interfere!

6

slide-42
SLIDE 42

Operations on state

Hadamard transform (on a single qubit) Takes [1 0] to √½ [1 1], and [0 1] to √½ [1 -1] Measurement of result of applying this to a basis state is [½ ½] (i.e., can be used to toss a coin) A quantum effect: Had([1 0]) = [√½ √½]; Had([√½ √½]) = [1 0]. Amplitudes of |1❯ destructively interfere! Contrast with classical case: probabilities can only add

6

slide-43
SLIDE 43

Quantum gates

7

slide-44
SLIDE 44

Quantum gates

A quantum gate: Unitary operation on a small number of (say three) qubits

7

slide-45
SLIDE 45

Quantum gates

A quantum gate: Unitary operation on a small number of (say three) qubits Number of input qubits equals number of output qubits

7

slide-46
SLIDE 46

Quantum gates

A quantum gate: Unitary operation on a small number of (say three) qubits Number of input qubits equals number of output qubits There are infinitely many quantum gates

7

slide-47
SLIDE 47

Quantum gates

A quantum gate: Unitary operation on a small number of (say three) qubits Number of input qubits equals number of output qubits There are infinitely many quantum gates A universal set of gates: can be used to well approximate any gate

7

slide-48
SLIDE 48

Quantum gates

A quantum gate: Unitary operation on a small number of (say three) qubits Number of input qubits equals number of output qubits There are infinitely many quantum gates A universal set of gates: can be used to well approximate any gate e.g. Hadamard gate and Toffoli gate (when restricted to real amplitudes)

7

slide-49
SLIDE 49

Quantum gates

A quantum gate: Unitary operation on a small number of (say three) qubits Number of input qubits equals number of output qubits There are infinitely many quantum gates A universal set of gates: can be used to well approximate any gate e.g. Hadamard gate and Toffoli gate (when restricted to real amplitudes) Toffoli gate has a classical analog (on 3 bits) that can be described as T(a,b,c) = (a,b,c⊕a∧b)

7

slide-50
SLIDE 50

Cleaning up the Garbage

8

slide-51
SLIDE 51

Cleaning up the Garbage

Since only reversible gates, need extra qubits (scratch space) as input and output

8

slide-52
SLIDE 52

Cleaning up the Garbage

Since only reversible gates, need extra qubits (scratch space) as input and output At the output, their values will depend on the input and not just the relevant input

8

slide-53
SLIDE 53

Cleaning up the Garbage

Since only reversible gates, need extra qubits (scratch space) as input and output At the output, their values will depend on the input and not just the relevant input “Garbage”

8

slide-54
SLIDE 54

Cleaning up the Garbage

Since only reversible gates, need extra qubits (scratch space) as input and output At the output, their values will depend on the input and not just the relevant input “Garbage” Can be a problem: e.g., two amplitudes will not cancel out because their garbage values are different

8

slide-55
SLIDE 55

Cleaning up the Garbage

Since only reversible gates, need extra qubits (scratch space) as input and output At the output, their values will depend on the input and not just the relevant input “Garbage” Can be a problem: e.g., two amplitudes will not cancel out because their garbage values are different Solution: Ensure garbage qubits are returned to a standard state, by “uncomputing”

8

slide-56
SLIDE 56

Cleaning up the Garbage

Since only reversible gates, need extra qubits (scratch space) as input and output At the output, their values will depend on the input and not just the relevant input “Garbage” Can be a problem: e.g., two amplitudes will not cancel out because their garbage values are different Solution: Ensure garbage qubits are returned to a standard state, by “uncomputing” “Copy” the output to unused qubits, and run the reverse computation to return the rest to original state

8

slide-57
SLIDE 57

Quantum Circuits and BQP

9

slide-58
SLIDE 58

Quantum Circuits and BQP

Quantum circuit: composed of quantum gates

9

slide-59
SLIDE 59

Quantum Circuits and BQP

Quantum circuit: composed of quantum gates And a quantum measurement at the end

9

slide-60
SLIDE 60

Quantum Circuits and BQP

Quantum circuit: composed of quantum gates And a quantum measurement at the end To decide a language measurement on a single qubit

9

slide-61
SLIDE 61

Quantum Circuits and BQP

Quantum circuit: composed of quantum gates And a quantum measurement at the end To decide a language measurement on a single qubit We shall require a poly-time uniform circuit family

9

slide-62
SLIDE 62

Quantum Circuits and BQP

Quantum circuit: composed of quantum gates And a quantum measurement at the end To decide a language measurement on a single qubit We shall require a poly-time uniform circuit family It should be possible for a (classical/deterministic) TM to efficiently output the description of the quantum circuit for any given input length

9

slide-63
SLIDE 63

Quantum Circuits and BQP

Quantum circuit: composed of quantum gates And a quantum measurement at the end To decide a language measurement on a single qubit We shall require a poly-time uniform circuit family It should be possible for a (classical/deterministic) TM to efficiently output the description of the quantum circuit for any given input length BQP: Class of languages L for which there is a poly-sized (and poly-time uniform) quantum circuit family {Cn} s.t. for all n, for all x, |x|=n,

9

slide-64
SLIDE 64

Quantum Circuits and BQP

Quantum circuit: composed of quantum gates And a quantum measurement at the end To decide a language measurement on a single qubit We shall require a poly-time uniform circuit family It should be possible for a (classical/deterministic) TM to efficiently output the description of the quantum circuit for any given input length BQP: Class of languages L for which there is a poly-sized (and poly-time uniform) quantum circuit family {Cn} s.t. for all n, for all x, |x|=n, x∈L ⇒ Cn(|x0m❯) = 1 w.p. > 2/3; x∉L ⇒ Cn(|x0m❯) = 1 w.p. < 1/3

9

slide-65
SLIDE 65

BQP

10

slide-66
SLIDE 66

BQP

BPP ⊆ BQP: Classical gates and coin-flipping can be emulated by quantum gates

10

slide-67
SLIDE 67

BQP

BPP ⊆ BQP: Classical gates and coin-flipping can be emulated by quantum gates Probability of a quantum circuit (with say Hadamard and Toffoli gates) accepting can be calculated classically, by brute force

10

slide-68
SLIDE 68

BQP

BPP ⊆ BQP: Classical gates and coin-flipping can be emulated by quantum gates Probability of a quantum circuit (with say Hadamard and Toffoli gates) accepting can be calculated classically, by brute force Multiply together all 2nx2n unitary matrices in EXP

10

slide-69
SLIDE 69

BQP

BPP ⊆ BQP: Classical gates and coin-flipping can be emulated by quantum gates Probability of a quantum circuit (with say Hadamard and Toffoli gates) accepting can be calculated classically, by brute force Multiply together all 2nx2n unitary matrices in EXP More carefully, since each gate involves only 3 qubits, in PSPACE

10

slide-70
SLIDE 70

BQP

BPP ⊆ BQP: Classical gates and coin-flipping can be emulated by quantum gates Probability of a quantum circuit (with say Hadamard and Toffoli gates) accepting can be calculated classically, by brute force Multiply together all 2nx2n unitary matrices in EXP More carefully, since each gate involves only 3 qubits, in PSPACE In fact, can be done in PP. i.e., BQP ⊆ PP

10

slide-71
SLIDE 71

BQP

BPP ⊆ BQP: Classical gates and coin-flipping can be emulated by quantum gates Probability of a quantum circuit (with say Hadamard and Toffoli gates) accepting can be calculated classically, by brute force Multiply together all 2nx2n unitary matrices in EXP More carefully, since each gate involves only 3 qubits, in PSPACE In fact, can be done in PP. i.e., BQP ⊆ PP How about BQP and NP?

10

slide-72
SLIDE 72

Two Quantum Algorithms

11

slide-73
SLIDE 73

Two Quantum Algorithms

Grover’ s Search

11

slide-74
SLIDE 74

Two Quantum Algorithms

Grover’ s Search Quadratic speedup for NP-complete problems (over the best known classical algorithms)

11

slide-75
SLIDE 75

Two Quantum Algorithms

Grover’ s Search Quadratic speedup for NP-complete problems (over the best known classical algorithms) Solve any NP problem with O(2n/2) quantum gate

  • perations

11

slide-76
SLIDE 76

Two Quantum Algorithms

Grover’ s Search Quadratic speedup for NP-complete problems (over the best known classical algorithms) Solve any NP problem with O(2n/2) quantum gate

  • perations

Shor’ s Factoring

11

slide-77
SLIDE 77

Two Quantum Algorithms

Grover’ s Search Quadratic speedup for NP-complete problems (over the best known classical algorithms) Solve any NP problem with O(2n/2) quantum gate

  • perations

Shor’ s Factoring Polynomial sized quantum circuit for factoring

11

slide-78
SLIDE 78

Two Quantum Algorithms

Grover’ s Search Quadratic speedup for NP-complete problems (over the best known classical algorithms) Solve any NP problem with O(2n/2) quantum gate

  • perations

Shor’ s Factoring Polynomial sized quantum circuit for factoring Exponential speedup over the best known classical algorithms

11

slide-79
SLIDE 79

Grover’ s Search

12

slide-80
SLIDE 80

Grover’ s Search

Suppose f has a unique satisfying input z

12

slide-81
SLIDE 81

Grover’ s Search

Suppose f has a unique satisfying input z Otherwise, modify f (by adding a hash “filter”) so that with good probability it has a unique solution (if any)

12

slide-82
SLIDE 82

Grover’ s Search

Suppose f has a unique satisfying input z Otherwise, modify f (by adding a hash “filter”) so that with good probability it has a unique solution (if any) Plan: start with the uniform superposition on n-qubits (i.e., all 2n states have same amplitude), and move it closer to (unknown) |z❯

12

slide-83
SLIDE 83

Grover’ s Search

Suppose f has a unique satisfying input z Otherwise, modify f (by adding a hash “filter”) so that with good probability it has a unique solution (if any) Plan: start with the uniform superposition on n-qubits (i.e., all 2n states have same amplitude), and move it closer to (unknown) |z❯ Apply operations: (1) take |x0❯ to |x f(x)❯ (2) take |x1❯ to -|x1❯, and |x0❯ to |x0❯ and (3) take |xy❯ to |x y+f(x)❯

12

slide-84
SLIDE 84

Grover’ s Search

Suppose f has a unique satisfying input z Otherwise, modify f (by adding a hash “filter”) so that with good probability it has a unique solution (if any) Plan: start with the uniform superposition on n-qubits (i.e., all 2n states have same amplitude), and move it closer to (unknown) |z❯ Apply operations: (1) take |x0❯ to |x f(x)❯ (2) take |x1❯ to -|x1❯, and |x0❯ to |x0❯ and (3) take |xy❯ to |x y+f(x)❯

uses scratch qubits

12

slide-85
SLIDE 85

Grover’ s Search

Suppose f has a unique satisfying input z Otherwise, modify f (by adding a hash “filter”) so that with good probability it has a unique solution (if any) Plan: start with the uniform superposition on n-qubits (i.e., all 2n states have same amplitude), and move it closer to (unknown) |z❯ Apply operations: (1) take |x0❯ to |x f(x)❯ (2) take |x1❯ to -|x1❯, and |x0❯ to |x0❯ and (3) take |xy❯ to |x y+f(x)❯ Takes |z❯ to -|z❯, and leaves other amplitudes unchanged

uses scratch qubits

12

slide-86
SLIDE 86

Grover’ s Search

Suppose f has a unique satisfying input z Otherwise, modify f (by adding a hash “filter”) so that with good probability it has a unique solution (if any) Plan: start with the uniform superposition on n-qubits (i.e., all 2n states have same amplitude), and move it closer to (unknown) |z❯ Apply operations: (1) take |x0❯ to |x f(x)❯ (2) take |x1❯ to -|x1❯, and |x0❯ to |x0❯ and (3) take |xy❯ to |x y+f(x)❯ Takes |z❯ to -|z❯, and leaves other amplitudes unchanged One more “reflection” to take the vector close to |z❯

uses scratch qubits

12

slide-87
SLIDE 87

Grover’ s Search

Suppose f has a unique satisfying input z Otherwise, modify f (by adding a hash “filter”) so that with good probability it has a unique solution (if any) Plan: start with the uniform superposition on n-qubits (i.e., all 2n states have same amplitude), and move it closer to (unknown) |z❯ Apply operations: (1) take |x0❯ to |x f(x)❯ (2) take |x1❯ to -|x1❯, and |x0❯ to |x0❯ and (3) take |xy❯ to |x y+f(x)❯ Takes |z❯ to -|z❯, and leaves other amplitudes unchanged One more “reflection” to take the vector close to |z❯ In O(2n/2) iterations, amplitude of |z❯ becomes large (i.e., constant)

uses scratch qubits

12

slide-88
SLIDE 88

Shor’ s Factoring

13

slide-89
SLIDE 89

Shor’ s Factoring

By basic algebra, to factor a number N, enough to find the

  • rder r of a random number A (mod N)

13

slide-90
SLIDE 90

Shor’ s Factoring

By basic algebra, to factor a number N, enough to find the

  • rder r of a random number A (mod N)

i.e., smallest r s.t. Ar ≡ 1 (mod N)

13

slide-91
SLIDE 91

Shor’ s Factoring

By basic algebra, to factor a number N, enough to find the

  • rder r of a random number A (mod N)

i.e., smallest r s.t. Ar ≡ 1 (mod N) Prepare a superposition of states |x❯ |Ax mod N❯ (for all x); make a measurement on second set of qubits to collapse the state to superposition over |x❯|y0❯ where x=x0+ri (for all i)

13

slide-92
SLIDE 92

Shor’ s Factoring

By basic algebra, to factor a number N, enough to find the

  • rder r of a random number A (mod N)

i.e., smallest r s.t. Ar ≡ 1 (mod N) Prepare a superposition of states |x❯ |Ax mod N❯ (for all x); make a measurement on second set of qubits to collapse the state to superposition over |x❯|y0❯ where x=x0+ri (for all i) Need to find the period r of this function

13

slide-93
SLIDE 93

Shor’ s Factoring

By basic algebra, to factor a number N, enough to find the

  • rder r of a random number A (mod N)

i.e., smallest r s.t. Ar ≡ 1 (mod N) Prepare a superposition of states |x❯ |Ax mod N❯ (for all x); make a measurement on second set of qubits to collapse the state to superposition over |x❯|y0❯ where x=x0+ri (for all i) Need to find the period r of this function Tool used: Quantum Fourier Transform

13

slide-94
SLIDE 94

QFT for determining period

14

slide-95
SLIDE 95

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ

14

slide-96
SLIDE 96

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized)

14

slide-97
SLIDE 97

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized) Fourier Transform of f: ℤM→ℂ

14

slide-98
SLIDE 98

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized) Fourier Transform of f: ℤM→ℂ Basis vectors: Χx(y) = ωxy (normalized), where ω = ei2π/M

14

slide-99
SLIDE 99

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized) Fourier Transform of f: ℤM→ℂ Basis vectors: Χx(y) = ωxy (normalized), where ω = ei2π/M Χx is periodic (with period depending on x)

14

slide-100
SLIDE 100

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized) Fourier Transform of f: ℤM→ℂ Basis vectors: Χx(y) = ωxy (normalized), where ω = ei2π/M Χx is periodic (with period depending on x) If f is periodic, then f^(x) (coefficient of Χx in f’ s FT) will be large for some x which is related to f’ s period

14

slide-101
SLIDE 101

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized) Fourier Transform of f: ℤM→ℂ Basis vectors: Χx(y) = ωxy (normalized), where ω = ei2π/M Χx is periodic (with period depending on x) If f is periodic, then f^(x) (coefficient of Χx in f’ s FT) will be large for some x which is related to f’ s period QFT: initial state = Σx f(x) |x❯ and final state = Σx f^(x) |x❯

14

slide-102
SLIDE 102

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized) Fourier Transform of f: ℤM→ℂ Basis vectors: Χx(y) = ωxy (normalized), where ω = ei2π/M Χx is periodic (with period depending on x) If f is periodic, then f^(x) (coefficient of Χx in f’ s FT) will be large for some x which is related to f’ s period QFT: initial state = Σx f(x) |x❯ and final state = Σx f^(x) |x❯ Using an O(log2M) sized quantum circuit

14

slide-103
SLIDE 103

QFT for determining period

Recall Fourier Transform for functions f: {0,1}m →ℂ Basis vectors: Χx(y) = (-1)xy (normalized) Fourier Transform of f: ℤM→ℂ Basis vectors: Χx(y) = ωxy (normalized), where ω = ei2π/M Χx is periodic (with period depending on x) If f is periodic, then f^(x) (coefficient of Χx in f’ s FT) will be large for some x which is related to f’ s period QFT: initial state = Σx f(x) |x❯ and final state = Σx f^(x) |x❯ Using an O(log2M) sized quantum circuit Measuring the final state gives x with large coefficients with good probability. Enough to retrieve f’ s period.

14

slide-104
SLIDE 104

Topics left out

15

slide-105
SLIDE 105

Topics left out

Derandomization and Extraction (lot of expander graphs here)

15

slide-106
SLIDE 106

Topics left out

Derandomization and Extraction (lot of expander graphs here) Hardness Amplification (useful in derandomization; lot of error correcting codes)

15

slide-107
SLIDE 107

Topics left out

Derandomization and Extraction (lot of expander graphs here) Hardness Amplification (useful in derandomization; lot of error correcting codes) More PCP and hardness of approximation (lot of Fourier analysis)

15

slide-108
SLIDE 108

Topics left out

Derandomization and Extraction (lot of expander graphs here) Hardness Amplification (useful in derandomization; lot of error correcting codes) More PCP and hardness of approximation (lot of Fourier analysis) More on Quantum Computation, Quantum error correction, Quantum communication (linear algebra over complex numbers)

15

slide-109
SLIDE 109

Topics left out

Derandomization and Extraction (lot of expander graphs here) Hardness Amplification (useful in derandomization; lot of error correcting codes) More PCP and hardness of approximation (lot of Fourier analysis) More on Quantum Computation, Quantum error correction, Quantum communication (linear algebra over complex numbers) Algebraic Models of Computation

15

slide-110
SLIDE 110

Topics left out

Derandomization and Extraction (lot of expander graphs here) Hardness Amplification (useful in derandomization; lot of error correcting codes) More PCP and hardness of approximation (lot of Fourier analysis) More on Quantum Computation, Quantum error correction, Quantum communication (linear algebra over complex numbers) Algebraic Models of Computation Logical characterizations, Proof complexity

15

slide-111
SLIDE 111

Topics left out

Derandomization and Extraction (lot of expander graphs here) Hardness Amplification (useful in derandomization; lot of error correcting codes) More PCP and hardness of approximation (lot of Fourier analysis) More on Quantum Computation, Quantum error correction, Quantum communication (linear algebra over complex numbers) Algebraic Models of Computation Logical characterizations, Proof complexity Cryptography...

15