lecture_02
lecture_02
• Classical computation + one simple power • Typical probabilistic algorithm looks like:
“coin ip”
• Classical computation + one simple power • Typical quantum algorithm looks like:
“rotate”
• In classical computer,
• Logical bit 0 or 1
• Physical bit low or high voltage
• In quantum computer,
• Physically represented by photon polarization
• A photon can be horizontally polarized (|0⟩) or vertically polarized (|1⟩)
Quantum mechanics
Law #1
• If a particle can be in one of the two basic states |0⟩ or |1⟩, then it can also
be in a superposition state
photon
Initial state
0.8|0⟩ − 0.6|1⟩
?
Polarize
N−1
2
∑ ∑ ∑
Joint state is αs|s⟩ or equivalently αs|s⟩, where |αs| = 1
• n
s∈{0,1} s=0 s
2
• Measurement: readout is |s⟩ with probability |αs| , and the joint state
collapses to |s⟩ if the readout is |s⟩
Mathematically…
Linear algebra
d
• Joint state is a unit (column) vector in ℂ
[−0.6]
0.8
Example: 0.8|0⟩ − 0.6|1⟩ is just , a point on the unit circle
•
d †
• Recall, for u, v ∈ ℂ , ⟨u, v⟩ = u*
1
v1 + …u*
d
vd = u v (dagger, or conjugate
transpose)
1 1
|+⟩= |0⟩ + |1⟩
• 2 2
1 1
|−⟩= |0⟩ − |1⟩
• 2 2
• What happens when a photon in | + ⟩ state is measured?
Measuring in a different basis
For one qubit
photon
2
• It makes sense for α|u⟩ + β|v⟩, the readout is |u⟩ with probability |α| ,
2
and the readout is |v⟩ with probability |β|
Measuring in a different basis
For one qubit
2
• Given |φ⟩ ∈ ℂ , how to write it as α|u⟩ + β|v⟩?
• Theorem: If |u⟩, |v⟩ form an orthonormal basis, then
|φ⟩ = ⟨u ∣ φ⟩|u⟩ + ⟨v ∣ φ⟩|v⟩
2
• Theorem: Measure |φ⟩ ∈ ℂ in the |u⟩, |v⟩ basis. The readout is |u⟩ with
2 2
probability |⟨u ∣ φ⟩| , and the readout is |v⟩ with probability |⟨v ∣ φ⟩| .