SLIDE 1 15-251 Great Ideas in Theoretical Computer Science
Lecture 28: A Gentle Introduction to Quantum Computation
May 1st, 2018
SLIDE 2
Announcements Please fill out the Faculty Course Evaluations (FCEs). https://cmu.smartevals.com
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 Announcements The Last Lecture on Thursday
Mor Harchol-Balter Ariel Procaccia Daniel Sleator Anupam Gupta Rashmi Vinayak Ryan O’Donnell
SLIDE 5
Announcements The Last Lecture on Thursday
SLIDE 6
Quantum Computation
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
The plan
Classical computers and classical theory of computation
SLIDE 9 What is computer/computation?
A device that manipulates data (information)
Usually
Device Input Output
SLIDE 10 Theory of computation
Mathematical model of a computer:
Turing Machines Boolean Circuits
~
(uniform)
SLIDE 11
Theory of computation
Turing Machines
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 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 Physical Realization
Circuits implement basic operations / instructions.
Everything follows classical laws of physics!
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 (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
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
The plan
Quantum physics (what the fuss is all about)
SLIDE 19 One slide course on physics
Classical Physics General Theory
Quantum Physics
SLIDE 20 One slide course on physics
Classical Physics General Theory
Quantum Physics String Theory (?)
SLIDE 21 Video: Double slit experiment
http://www.youtube.com/watch?v=DfPeprQ7oGc
Nature has no obligation to conform to your intuitions.
SLIDE 22
Video: Double slit experiment
SLIDE 23
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
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 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.
Einstein, don’t tell God what to do.
SLIDE 26
How should we fix our intuitions to put it in line with experimental results ?
SLIDE 27 Removing physics from quantum physics
mathematics underlying quantum physics
=
generalization/extension of probability theory
(allow “negative probabilities”)
SLIDE 28
Probabilistic states and evolution vs Quantum states and evolution
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 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 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 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 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
Quantum states
pi’s can be negative. p1 p2 . . . pn
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 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 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 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
2|0i + 1 2|1i ◆
1 2
✓1 2|0i + 1 2|1i ◆
1 2
randomize a random state random state
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
√ 2 1/ √ 2
1
√ 2 −1/ √ 2 1/ √ 2 1/ √ 2
√ 2 1/ √ 2
|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
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 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
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
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
The plan
Quantum computation (practical, scientific, and philosophical perspectives)
SLIDE 45
Two beautiful theories
Theory of computation Quantum physics
SLIDE 46
Quantum Computation: Information processing using laws of quantum physics.
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 Representing data/information
An electron can be in “spin up” or “spin down” state.
|upi |downi
|0i |1i
~ 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 Representing data/information
|upi |downi
|0i |1i
~ 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 Representing data/information
|upi |downi
|0i |1i
~ 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 Representing data/information
|upi |downi
|0i |1i
~ 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 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 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 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 Processing data: quantum circuits
A classical circuit OUTPUT INPUT n bits 1 bit
n bits 1 bit
Classical Circuit
(or m bits)
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 Processing data: quantum circuits
A quantum circuit
n qubits n qubits
Quantum Circuit OUTPUT n qubits
}
INPUT n qubits
SLIDE 58 Processing data: quantum circuits
A quantum circuit Quantum Circuit
|010110i
OUTPUT n qubits
}
INPUT n qubits
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 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 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 Processing data: quantum circuits
A quantum circuit Complexity?
number of gates ~ computation time
OUTPUT n qubits
}
INPUT n qubits
SLIDE 63
Physical Realization
?
SLIDE 64
Practical, Scientific and Philosophical Perspectives
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 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
Scientific perspective
To know the limits of efficient computation: Incorporate actual facts about physics.
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 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
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
A whole new exciting world of computation. Potential to fundamentally change how we view computation.