Keyboard: / notation search · ? shortcuts on practice pages. Settings are saved in this browser.
Lecture 3 · Dr Ittoop Puthoor & Dr Jonte Hance · about 60 min
Qubits and measurement
From random bits to qubits. What α and β mean, how to work out any measurement probability, why phase makes a qubit more than a coin, and the Bloch sphere.
How much help?
How well do you know this?
By the end you can
Write a general qubit ∣ψ⟩=α∣0⟩+β∣1⟩ and check it is normalised
Use the Born rule P(ϕ∣ψ)=∣⟨ϕ∣ψ⟩∣2 for any measurement
Derive and use P(+∣ψ)=∣α+β∣2/2
Explain why global phase is irrelevant but relative phase is not
Most algorithms are deterministic: same input, same output. Probabilistic (stochastic) algorithms can return different outputs, each with a probability, and the probabilities add to 1. Classical computers fake randomness with pseudo-random number generators. Quantum measurement is genuinely random.
A probabilistic bit is like a light switch in a dark room: it is on or off, we just don’t know which. Say “0 with probability P, 1 with probability 1−P”. When we look, we update: seeing 0 sets P to 100%. That probability only describes our ignorance.
The qubit
Replace “0 or 1” with two basis vectors:
∣0⟩=(10),∣1⟩=(01).
A qubit can be any unit-length combination of them:
∣ψ⟩=α∣0⟩+β∣1⟩=(αβ),∣α∣2+∣β∣2=1.
What α and β mean. Measure “0 or 1” and you get 0 with probability ∣α∣2 and 1 with probability ∣β∣2. Afterwards the qubit is whatever you saw: ∣0⟩ or ∣1⟩. That is why the condition ∣α∣2+∣β∣2=1 is needed: probabilities must add to 1.
Predict first: guess before reading on
So far a qubit sounds exactly like a probabilistic bit with P=∣α∣2. Is it?
The difference is that a qubit can be measured in other ways too. The next section shows two states with identical 0/1 statistics that are completely distinguishable by a different measurement.
Measuring in other ways: + or −
As well as “0 or 1”, we can measure ”+ or −”, where
∣+⟩=21(∣0⟩+∣1⟩),∣−⟩=21(∣0⟩−∣1⟩).
The 21 keeps them unit length: (21)2+(21)2=1. Both ∣+⟩ and ∣−⟩ give 0 or 1 with 50% each. Yet, as we’ll compute, measuring ∣+⟩ in the +/− basis gives ”+” every time. A classical bit can only be looked at one way; a qubit can be measured in infinitely many bases, which are superpositions of each other.
The rule for any measurement
Two sanity checks the lecture lists: asking whether a state is in itself gives ∣⟨ψ∣ψ⟩∣2=1; asking whether it is in an orthogonal state (e.g. ∣−⟩ when you prepared ∣+⟩) gives 0.
Set the amplitudes, choose what to measure, then run it. Notice: one run tells you almost nothing; the probabilities only show up over many runs. And |+⟩ and |−⟩ look identical in the 0/1 measurement but completely different in the +/− one.
Sign / phase of β:
Measure in the basis:
Prediction vs what you got
Lock it in · answer in your head, then reveal
General single-qubit state, and the condition on it
∣ψ⟩=α∣0⟩+β∣1⟩ with ∣α∣2+∣β∣2=1.
Probability that measuring ∣ψ⟩ gives ∣ϕ⟩
P(ϕ∣ψ)=∣⟨ϕ∣ψ⟩∣2 (the Born rule).
∣+⟩ and ∣−⟩ in the 0/1 basis
∣±⟩=21(∣0⟩±∣1⟩)
P(+∣ψ) for ∣ψ⟩=α∣0⟩+β∣1⟩
2∣α+β∣2
P(+∣−) = ?
0: orthogonal states never give each other as results.
Phase: what makes a qubit a qubit
Write each amplitude in polar form (Lecture 2): α=∣α∣eia, β=∣β∣eib. The angles are phases.
Global phase does nothing. Multiply the whole state by eiγ: every probability gets multiplied by ∣eiγ∣2=1. So ∣ψ⟩ and eiγ∣ψ⟩ are physically the same state. Example: −∣0⟩ is the same as ∣0⟩.
Relative phase matters.∣+⟩ and ∣−⟩ differ only by the sign (a phase of π) in front of ∣1⟩, but P(+∣+)=1 while P(+∣−)=0. So we can always move all the phase onto ∣1⟩ and write
∣ψ⟩=cos2θ∣0⟩+eiφsin2θ∣1⟩.
Two real numbers, θ and φ, describe any qubit (up to the irrelevant global phase).
The Bloch sphere
Treat θ as latitude (measured down from the north pole) and φ as longitude: every qubit is a point on a sphere.
North pole: ∣0⟩ (θ=0). South pole: ∣1⟩ (θ=π).
Equator: equal superpositions. ∣+⟩ at φ=0, ∣−⟩ at φ=π, ∣i⟩=21(∣0⟩+i∣1⟩) at φ=π/2, ∣−i⟩ at φ=3π/2.
A measurement is an axis through the sphere. Orthogonal states sit at opposite points.
Explore · the Bloch sphere
Move θ to tip the arrow from the north pole (|0⟩) to the south pole (|1⟩). Move φ and notice that the 0/1 probabilities do not change at all: φ is the relative phase, which only shows up in other measurements (like +/−).
Jump to:
Lock it in · answer in your head, then reveal
Does a global phase eiγ∣ψ⟩ change any probability?
No: ∣eiγ∣=1, so it cancels. Only the relative phase between ∣0⟩ and ∣1⟩ matters.
Bloch-sphere form of a qubit
∣ψ⟩=cos2θ∣0⟩+eiφsin2θ∣1⟩, with 0≤θ≤π, 0≤φ<2π.
Why is a qubit not just a probabilistic bit?
It can be measured in many bases (0/1, +/−, …). ∣+⟩ and ∣−⟩ both give 50/50 for 0/1, yet are perfectly distinguishable in the +/− basis: phase is real information.
What is the state just after a measurement?
The state you observed. Measuring 0/1 and getting 1 leaves the qubit in ∣1⟩.
Worked exercises
3.1 · The in-class exercise: P(+|ψ) for four states
Lecture 3, in-class exercise
Using P(+∣ψ)=2∣α+β∣2, find P(+∣ψ) when ∣ψ⟩ is (a) ∣+⟩, (b) ∣−⟩, (c) ∣1⟩, (d) ∣0⟩.
Worked solution
Read off α and β for each state by matching with α∣0⟩+β∣1⟩.
(a) ∣+⟩: α=β=21, so P=2∣21+21∣2=2(2)2=1.
(b) ∣−⟩: α=21, β=−21, so P=2∣0∣2=0.
(c) ∣1⟩: α=0, β=1, so P=2∣1∣2=21.
(d) ∣0⟩: α=1, β=0, so P=21.
Answer: (a) 1, (b) 0, (c) ½, (d) ½. The lesson: ∣0⟩ and ∣1⟩ both give 50% for +/−, just as ∣±⟩ both give 50% for 0/1. Different states, same 50% in one basis; phase tells them apart in another.
3.2 · A quiz-style question
Problem set style
∣ψ⟩=0.6∣0⟩−0.8∣1⟩. Check it is normalised and find P(0), P(1), P(+) and P(−).
Worked solution
Normalised? ∣0.6∣2+∣−0.8∣2=0.36+0.64=1 ✓.
P(0)=∣α∣2=0.36, P(1)=∣β∣2=0.64.
P(+)=2∣0.6+(−0.8)∣2=2(−0.2)2=20.04=0.02.
P(−)=2∣0.6−(−0.8)∣2=21.42=21.96=0.98.
Check: 0.02+0.98=1 ✓.
Answer:P(0)=0.36, P(1)=0.64, P(+)=0.02, P(−)=0.98. The state is almost ∣−⟩.
3.3 · Complex amplitudes
Extension
∣ψ⟩=21∣0⟩+2i∣1⟩. Find P(+) and P(i) where ∣i⟩=21(∣0⟩+i∣1⟩).
Worked solution
P(+)=2∣21+2i∣2=221∣1+i∣2=221⋅2=21.
For P(i) build the bra, conjugating: ⟨i∣=21(⟨0∣−i⟨1∣).
⟨i∣ψ⟩=21(21−i⋅2i)=21(1−i2)=21⋅2=1.
P(i)=∣1∣2=1: of course, ∣ψ⟩is∣i⟩.
Answer:P(+)=21, P(i)=1. Forgetting the conjugate in step 2 would give 21(1+i2)=0, the opposite (wrong) answer.
3.4 · Is this a valid state? Fix it
Problem set style
Is ∣ϕ⟩=∣0⟩+2i∣1⟩ a valid qubit state? If not, normalise it.
Worked solution
∣1∣2+∣2i∣2=1+4=5=1, so not valid.
Divide by the norm 5: ∣ϕ⟩=51∣0⟩+52i∣1⟩.
Check: 51+54=1 ✓.
Answer: Not valid as written; normalised it is 51(∣0⟩+2i∣1⟩), with P(0)=0.2, P(1)=0.8.
3.5 · Global vs relative phase
Lecture 3: Bloch sphere
Are ∣a⟩=21(∣0⟩−∣1⟩) and ∣b⟩=21(−∣0⟩+∣1⟩) the same state? What about ∣a⟩ and ∣+⟩?
Worked solution
∣b⟩=−1⋅21(∣0⟩−∣1⟩)=−∣a⟩=eiπ∣a⟩: a global phase.
So ∣a⟩ and ∣b⟩ give identical probabilities for every measurement: same physical state.
∣a⟩=∣−⟩ and ∣+⟩ differ by a relative phase (sign on ∣1⟩ only), and P(+∣−)=0.
Answer:∣a⟩ and ∣b⟩: same state. ∣a⟩ and ∣+⟩: different, in fact perfectly distinguishable.
3.6 · Find θ and φ
Lecture 3: Bloch sphere
Find the Bloch angles of ∣ψ⟩=23∣0⟩+21eiπ/4∣1⟩.
Worked solution
Match with cos2θ∣0⟩+eiφsin2θ∣1⟩.
cos2θ=23⇒2θ=6π⇒θ=3π (60°).
Check sin6π=21 ✓, and φ=4π (45°).
Answer:θ=60°, φ=45°: in the northern hemisphere (more likely 0 than 1), turned 45° round from ∣+⟩ towards ∣i⟩.
Check yourself
A qubit is in ∣−⟩. You measure 0 or 1 and get 1. You immediately measure + or −. What is P(+)?
After the first measurement the state is∣1⟩ (the old ∣−⟩ is gone). Then P(+∣1)=∣0+1∣2/2=1/2.
↧ Go deeper: Density matrices and mixed states MSc
A probabilistic mixture ”∣0⟩ with probability ½, ∣1⟩ with ½” is not the same as ∣+⟩, even though both give 50/50 for 0/1. To describe mixtures, use the density matrixρ=∑kpk∣ψk⟩⟨ψk∣. The mixture gives ρ=21I, while ∣+⟩ gives ∣+⟩⟨+∣=21(1111): the off-diagonal coherences are the relative phase. Probabilities become P(ϕ)=⟨ϕ∣ρ∣ϕ⟩=Tr(ρ∣ϕ⟩⟨ϕ∣). On the Bloch sphere, mixed states fill the inside of the ball: ρ=21(I+xX+yY+zZ) with x2+y2+z2≤1. You will meet I/2 again in Lecture 9 as “what Bob holds before Alice’s message”. Nielsen & Chuang §2.4.
↧ Go deeper: Measurement as projectors, and POVMs MSc
A measurement in an orthonormal basis {∣k⟩} is described by projectors Pk=∣k⟩⟨k∣ with ∑kPk=I. Outcome k has probability ⟨ψ∣Pk∣ψ⟩ and leaves the state Pk∣ψ⟩/⟨ψ∣Pk∣ψ⟩. The most general measurement (a POVM) uses positive operators Ek with ∑Ek=I, which need not be projectors; it can have more outcomes than the dimension. Example: the three-outcome “trine” measurement on a qubit. Nielsen & Chuang §2.2.3–2.2.6.
↧ Go deeper: Is the randomness really fundamental? PhD
Bell’s theorem (Lecture 8) shows no local hidden-variable model reproduces quantum statistics, which is what makes “certified randomness” possible: a Bell violation proves the outputs could not have been predetermined (Pironio et al., Nature 464, 1021, 2010). Bohmian mechanics is deterministic but non-local, so the randomness question becomes “does the theory need non-locality?”.