15-251 Great Ideas in Theoretical Computer Science Lecture 28: A - - PowerPoint PPT Presentation

15 251 great ideas in theoretical computer science
SMART_READER_LITE
LIVE PREVIEW

15-251 Great Ideas in Theoretical Computer Science Lecture 28: A - - PowerPoint PPT Presentation

15-251 Great Ideas in Theoretical Computer Science Lecture 28: A Gentle Introduction to Quantum Computation May 1st, 2018 Announcements Please fill out the Faculty Course Evaluations (FCEs). https://cmu.smartevals.com Announcements You can


slide-1
SLIDE 1

15-251 Great Ideas in Theoretical Computer Science

Lecture 28: A Gentle Introduction to Quantum Computation

May 1st, 2018

slide-2
SLIDE 2

Announcements Please fill out the Faculty Course Evaluations (FCEs). https://cmu.smartevals.com

slide-3
SLIDE 3

Announcements You can vote to eliminte 2 topics from the final exam: Stable Matchings NP and Logic (Descriptive Complexity) Transducers Presburger Arithmetic Boolean Circuits

slide-4
SLIDE 4

Announcements The Last Lecture on Thursday

Mor Harchol-Balter Ariel Procaccia Daniel Sleator Anupam Gupta Rashmi Vinayak Ryan O’Donnell

slide-5
SLIDE 5

Announcements The Last Lecture on Thursday

slide-6
SLIDE 6

Quantum Computation

slide-7
SLIDE 7

The plan

Classical computers and classical theory of computation Quantum computation (practical, scientific, and philosophical perspectives) Quantum physics (what the fuss is all about)

slide-8
SLIDE 8

The plan

Classical computers and classical theory of computation

slide-9
SLIDE 9

What is computer/computation?

A device that manipulates data (information)

Usually

Device Input Output

slide-10
SLIDE 10

Theory of computation

Mathematical model of a computer:

Turing Machines Boolean Circuits

~

(uniform)

slide-11
SLIDE 11

Theory of computation

Turing Machines

slide-12
SLIDE 12

Theory of computation

Boolean Circuits

AND OR NOT OR AND AND AND OR OR OR

1 1 1

AND OR NOT

gates

slide-13
SLIDE 13

Theory of computation

Boolean Circuits

AND OR NOT OR AND AND AND OR OR OR

1 1 1

n bits 1 bit

Circuit

(or m bits)

OUTPUT INPUT n bits 1 bit

slide-14
SLIDE 14

Physical Realization

Circuits implement basic operations / instructions.

Everything follows classical laws of physics!

slide-15
SLIDE 15

(Physical) Church-Turing Thesis

Turing Machines

(uniform) Boolean Circuits

~ universally capture all of computation.

TMs All types of computation

Python Java, C, …

slide-16
SLIDE 16

(Physical) Church-Turing Thesis

Turing Machines

(uniform) Boolean Circuits

~ universally capture all of computation.

Any computational problem that can be solved efficiently by a physical device, can be solved efficiently by a TM.

Strong version Any computational problem that can be solved by a physical device, can be solved by a Turing Machine. (Physical) Church Turing Thesis

slide-17
SLIDE 17

The plan

Classical computers and classical theory of computation Quantum computation (practical, scientific, and philosophical perspectives) Quantum physics (what the fuss is all about)

slide-18
SLIDE 18

The plan

Quantum physics (what the fuss is all about)

slide-19
SLIDE 19

One slide course on physics

Classical Physics General Theory

  • f Relativity

Quantum Physics

slide-20
SLIDE 20

One slide course on physics

Classical Physics General Theory

  • f Relativity

Quantum Physics String Theory (?)

slide-21
SLIDE 21

Video: Double slit experiment

http://www.youtube.com/watch?v=DfPeprQ7oGc

Nature has no obligation to conform to your intuitions.

slide-22
SLIDE 22

Video: Double slit experiment

slide-23
SLIDE 23
slide-24
SLIDE 24

2 interesting aspects of quantum physics

  • 1. Having multiple states “simultaneously”
  • 2. Measurement

e.g.: electrons can have states spin “up” or spin “down”:

|upi |downi

  • r

In reality, they can be in a superposition of two states. Quantum property is very sensitive/fragile ! If you measure it (interfere with it), it “collapses”. So you either see or .

|upi |downi

slide-25
SLIDE 25

It must be just our ignorance

  • There is no such thing as superposition.
  • We don’t know the state, so we say it is in a superposition.
  • In reality, it is always in one of the two states.
  • This is why when we measure/observe the state,

we find it in one state. God does not play dice with the world.

  • Albert Einstein

Einstein, don’t tell God what to do.

  • Niels Bohr
slide-26
SLIDE 26

How should we fix our intuitions to put it in line with experimental results ?

slide-27
SLIDE 27

Removing physics from quantum physics

mathematics underlying quantum physics

=

generalization/extension of probability theory

(allow “negative probabilities”)

slide-28
SLIDE 28

Probabilistic states and evolution vs Quantum states and evolution

slide-29
SLIDE 29

Probabilistic states

|1i |2i |3i |ni

1 2 1 2 1 4 3 4 1 1

Initial state:

       1 . . .       

|1i |2i |3i |ni

Suppose an object can have n possible states:

|1i, |2i, · · · , |ni

At each time step, the state can change probabilistically. What happens if we start at state and evolve?

|1i

slide-30
SLIDE 30

Probabilistic states

Suppose an object can have n possible states:

|1i, |2i, · · · , |ni

At each time step, the state can change probabilistically.

|1i |2i |3i |ni

1 2 1 2 1 4 3 4 1 1

What happens if we start at state and evolve?

|1i

After one time step:

       1 . . .       

|1i |2i |3i |ni

    Transition Matrix    

=

       1/2 . . . 1/2       

slide-31
SLIDE 31

Probabilistic states

       1 . . .       

|1i |2i |3i |ni

    Transition Matrix    

=

the new state

(probabilistic)

A general probabilistic state:

     p1 p2 . . . pn     

pi = the probability of being in state i p1 + p2 + · · · + pn = 1

(`1 norm is 1)

       1/2 . . . 1/2       

slide-32
SLIDE 32

Probabilistic states

A general probabilistic state:

     p1 p2 . . . pn     

p1|1i + p2|2i + · · · + pn|ni

=

     1 . . .           1 . . .           . . . 1     

       1 . . .       

|1i |2i |3i |ni

    Transition Matrix    

=

       1/2 . . . 1/2       

the new state

(probabilistic)

slide-33
SLIDE 33

Probabilistic states

Evolution of probabilistic states

    Transition Matrix    

Any matrix that maps probabilistic states to probabilistic states. We won’t restrict ourselves to just one transition matrix.

π0 − → π1 − → π2 − → · · ·

K1 K2 K3

slide-34
SLIDE 34

Quantum states

pi’s can be negative.      p1 p2 . . . pn     

slide-35
SLIDE 35

Quantum states

αi’s can be negative.      α1 α2 . . . αn      αi

( ’s are called amplitudes.)

    Unitary Matrix    

     α1 α2 . . . αn           β1 β2 . . . βn      =

(`2 norm is 1)

β2

1 + β2 2 + · · · + β2 n = 1

α1|1i + α2|2i + · · · + αn|ni

=

any matrix that preserves “quantumness”

(αi can be a complex number)

α2

1 + α2 2 + · · · + α2 n = 1

slide-36
SLIDE 36

Quantum states

Evolution of quantum states

Any matrix that maps quantum states to quantum states.

    Unitary Matrix    

We won’t restrict ourselves to just one unitary matrix.

ψ0 − → ψ1 − → ψ2 − → · · ·

U1 U2 U3

slide-37
SLIDE 37

Quantum states

Measuring quantum states      α1 α2 . . . αn     

α1|1i + α2|2i + · · · + αn|ni

=

α2

1 + α2 2 + · · · + α2 n = 1

When you measure the state, you see state with probability . i α2

i

slide-38
SLIDE 38

Probabilistic states vs Quantum states

Suppose we have just 2 possible states: and |0i |1i  1/2 1/2 1/2 1/2  1

1/2 1/2

  • =

|0i ! 1 2 |0i |1i +1 2 1 4|0i + 1 4|1i

1 4|0i + 1 4|1i

+  1/2 1/2 1/2 1/2

1/2 1/2

  • =

 1

  • ✓1

2|0i + 1 2|1i ◆

1 2

✓1 2|0i + 1 2|1i ◆

1 2

randomize a random state random state

slide-39
SLIDE 39

Probabilistic states vs Quantum states

Suppose we have just 2 possible states: and |0i |1i  1

  • =

1/ √ 2 −1/ √ 2 1/ √ 2 1/ √ 2

  • 1/

√ 2 1/ √ 2

  • =

 1

  • 1/

√ 2 −1/ √ 2 1/ √ 2 1/ √ 2

  • −1/

√ 2 1/ √ 2

  • |0i

|1i

|0i ! 1 p 2 + 1 √ 2

+

1 2|0i + 1 2|1i 1 2|0i + 1 2|1i

= |1i

✓ 1 p 2|0i + 1 p 2|1i ◆ 1 √ 2 ✓ 1 p 2|0i + 1 p 2|1i ◆ 1 √ 2

slide-40
SLIDE 40

Probabilistic states vs Quantum states

To find the probability of an event: add the probabilities of every possible way it can happen Classical Probability

slide-41
SLIDE 41

Probabilistic states vs Quantum states

To find the probability of an event: add the amplitudes of every possible way it can happen, Quantum then square the value to get the probability.

  • ne way has positive amplitude

the other way has equal negative amplitude event never happens!

slide-42
SLIDE 42

Probabilistic states vs Quantum states

Quantum states are an upgrade to: 2-norm (Euclidean norm) and algebraically closed fields.

Nature seems to be choosing the mathematically more elegant option.

A final remark

slide-43
SLIDE 43

The plan

Classical computers and classical theory of computation Quantum computation (practical, scientific, and philosophical perspectives) Quantum physics (what the fuss is all about)

slide-44
SLIDE 44

The plan

Quantum computation (practical, scientific, and philosophical perspectives)

slide-45
SLIDE 45

Two beautiful theories

Theory of computation Quantum physics

slide-46
SLIDE 46

Quantum Computation: Information processing using laws of quantum physics.

slide-47
SLIDE 47

Richard Feynman (1918 - 1988)

It would be super nice to be able to simulate quantum systems. With a classical computer this is extremely inefficient. n-state quantum system complexity exponential in n Why not view the quantum particles as a computer simulating themselves? Why not do computation using quantum particles/physics?

slide-48
SLIDE 48

Representing data/information

An electron can be in “spin up” or “spin down” state.

|upi |downi

  • r

|0i |1i

  • r

~ A quantum bit: (qubit)

α0|0i + α1|1i, α2

0 + α2 1 = 1

|0i |1i A superposition of and . With probability it is . α2 |0i With probability it is . α2

1

|1i When you measure:

slide-49
SLIDE 49

Representing data/information

|upi |downi

  • r

|0i |1i

  • r

~ A quantum bit: (qubit)

α0|0i + α1|1i, α2

0 + α2 1 = 1

2 qubits: α00|00i + α01|01i + α10|10i + α11|11i α2

00 + α2 01 + α2 10 + α2 11 = 1

An electron can be in “spin up” or “spin down” state.

slide-50
SLIDE 50

Representing data/information

|upi |downi

  • r

|0i |1i

  • r

~ A quantum bit: (qubit)

α0|0i + α1|1i, α2

0 + α2 1 = 1

3 qubits: α000|000i + α001|001i + α010|010i + α011|011i+ α100|100i + α101|101i + α110|110i + α111|111i

α2

000 + α2 001 + α2 010 + α2 011 + α2 100 + α2 101 + α2 110 + α2 111 = 1

An electron can be in “spin up” or “spin down” state.

slide-51
SLIDE 51

Representing data/information

|upi |downi

  • r

|0i |1i

  • r

~ A quantum bit: (qubit)

α0|0i + α1|1i, α2

0 + α2 1 = 1

For n qubits, how many amplitudes are there? An electron can be in “spin up” or “spin down” state.

slide-52
SLIDE 52

Processing data

In the classical setting, we had:

  • Turing Machines
  • Boolean circuits

What will be our model? In the quantum setting, more convenient to use the circuit model.

slide-53
SLIDE 53

Processing data: quantum gates

NOT

1

NOT

1

There are many non-trivial quantum gates for a single qubit.

H |0i 1 p 2|0i + 1 p 2|1i |1i H 1 p 2|0i 1 p 2|1i

One famous example: Hadamard gate One non-trivial classical gate for a single classical bit: “transition” matrix:  1/ √ 2 1/ √ 2 1/ √ 2 −1/ √ 2

slide-54
SLIDE 54

Processing data: quantum gates

Examples of classical gates on 2 classical bits:

AND

A famous example of a quantum gate on 2 qubits:

controlled NOT

|xi |yi |xi |x yi

x, y ∈ {0, 1}

For

OR

    1 1 1 1    

“transition” matrix:

slide-55
SLIDE 55

Processing data: quantum circuits

A classical circuit OUTPUT INPUT n bits 1 bit

n bits 1 bit

Classical Circuit

(or m bits)

slide-56
SLIDE 56

Processing data: quantum circuits

A quantum circuit OUTPUT n qubits

}

INPUT n qubits

quantum gates (acts on 1 qubit) (acts on 2 qubits)

slide-57
SLIDE 57

Processing data: quantum circuits

A quantum circuit

n qubits n qubits

Quantum Circuit OUTPUT n qubits

}

INPUT n qubits

slide-58
SLIDE 58

Processing data: quantum circuits

A quantum circuit Quantum Circuit

|010110i

OUTPUT n qubits

}

INPUT n qubits

slide-59
SLIDE 59

Processing data: quantum circuits

A quantum circuit Quantum Circuit

|010110i α000000|000000i+ α000001|000001i+ α000010|000010i+ α111111|111111i

· · ·

OUTPUT n qubits

}

INPUT n qubits

slide-60
SLIDE 60

Processing data: quantum circuits

A quantum circuit Quantum Circuit

2n

( amplitudes) n qubits superposition of possible states.

2n OUTPUT n qubits

}

INPUT n qubits

slide-61
SLIDE 61

Processing data: quantum circuits

A quantum circuit

How do we get “classical information” from the circuit? We measure the output qubit(s). α000000|000000i+ α000001|000001i+ · · · + α111111|111111i e.g. we measure:

OUTPUT n qubits

}

INPUT n qubits

slide-62
SLIDE 62

Processing data: quantum circuits

A quantum circuit Complexity?

number of gates ~ computation time

OUTPUT n qubits

}

INPUT n qubits

slide-63
SLIDE 63

Physical Realization

?

slide-64
SLIDE 64

Practical, Scientific and Philosophical Perspectives

slide-65
SLIDE 65

Practical perspective

What useful things can we do with a quantum computer? We can factor large numbers efficiently!

203703597633448608626844568840937816105146839366593625063614044935438129976333670618339 844568840937816105146839366593625063614044935438129976333670618339928374928729109198341 992834719747982982750348795478978952789024138794327890432736783553789507821378582549871

So what? Can break RSA! Can we solve every problem efficiently? No !

slide-66
SLIDE 66

Practical perspective

What useful things can we do with a quantum computer? Can simulate quantum systems efficiently! Applications:

  • nanotechnology
  • microbiology
  • pharmaceuticals
  • superconductors.

... Better understand behavior of atoms and moleculues.

slide-67
SLIDE 67

Scientific perspective

To know the limits of efficient computation: Incorporate actual facts about physics.

slide-68
SLIDE 68

Scientific perspective

Any computational problem that can be solved by a physical device, can be solved by a Turing Machine. (Physical) Church Turing Thesis

Any computational problem that can be solved efficiently by a physical device, can be solved efficiently by a TM.

Strong version Strong version doesn’t seem to be true!

slide-69
SLIDE 69

Philosophical perspective

Does quantum physics have anything to say about the human mind? Is the universe deterministic ? Quantum AI? How does nature keep track of all the numbers ? 1000 qubits → 21000 amplitudes How should we interpret quantum measurement?

(the measurement problem)

slide-70
SLIDE 70

Where are we at building quantum computers?

After about 20 years and 1 billion dollars of funding : Can factor 21 into 3 x 7. (with high probability) When can I expect a quantum computer on my desk ? Challenge: Interference with the outside world. “quantum decoherence”

slide-71
SLIDE 71

A whole new exciting world of computation. Potential to fundamentally change how we view computation.