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⟩\ket\psi = \A\alpha\ket0 + \B\beta\ket1 and check it is normalised
  • Use the Born rule P(ϕ∣ψ)=∣⟨ϕ|ψ⟩∣2P(\phi|\psi) = |\braket{\phi}{\psi}|^2 for any measurement
  • Derive and use P(+∣ψ)=∣α+β∣2/2P(+|\psi) = |\A\alpha+\B\beta|^2/2
  • Explain why global phase is irrelevant but relative phase is not
  • Place a state on the Bloch sphere using θ\theta and φ\varphi

Builds on: Lecture 2

From coin flips to qubits

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 PP, 1 with probability 1−P1-P”. When we look, we update: seeing 0 sets PP to 100%. That probability only describes our ignorance.

The qubit

Replace “0 or 1” with two basis vectors:

∣0⟩=(10),∣1⟩=(01).\ket0 = \begin{pmatrix}1\\0\end{pmatrix}, \qquad \ket1 = \begin{pmatrix}0\\1\end{pmatrix}.

A qubit can be any unit-length combination of them:

∣ψ⟩=α∣0⟩+β∣1⟩=(αβ),∣α∣2+∣β∣2=1.\ket\psi = \A{\alpha}\ket0 + \B{\beta}\ket1 = \begin{pmatrix}\A\alpha\\ \B\beta\end{pmatrix}, \qquad |\A\alpha|^2 + |\B\beta|^2 = 1.

What α and β mean. Measure “0 or 1” and you get 0 with probability ∣α∣2|\A\alpha|^2 and 1 with probability ∣β∣2|\B\beta|^2. Afterwards the qubit is whatever you saw: ∣0⟩\ket0 or ∣1⟩\ket1. That is why the condition ∣α∣2+∣β∣2=1|\A\alpha|^2 + |\B\beta|^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=∣α∣2P = |\alpha|^2. Is it?

Measuring in other ways: + or −

As well as “0 or 1”, we can measure ”+ or −”, where

∣+⟩=12(∣0⟩+∣1⟩),∣−⟩=12(∣0⟩−∣1⟩).\ket+ = \tfrac{1}{\sqrt2}(\ket0 + \ket1), \qquad \ket- = \tfrac{1}{\sqrt2}(\ket0 - \ket1).

The 12\tfrac1{\sqrt2} keeps them unit length: (12)2+(12)2=1(\tfrac1{\sqrt2})^2 + (\tfrac1{\sqrt2})^2 = 1. Both ∣+⟩\ket+ and ∣−⟩\ket- give 0 or 1 with 50% each. Yet, as we’ll compute, measuring ∣+⟩\ket+ 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|\braket{\psi}{\psi}|^2 = 1; asking whether it is in an orthogonal state (e.g. ∣−⟩\ket- when you prepared ∣+⟩\ket+) gives 0.

Deriving P(+|ψ)

Step by step:

⟨+|ψ⟩=12(⟨0∣+⟨1∣)(α∣0⟩+β∣1⟩)=12(α⟨0|0⟩+β⟨0|1⟩+α⟨1|0⟩+β⟨1|1⟩)=α+β2.\braket{+}{\psi} = \tfrac1{\sqrt2}(\bra0 + \bra1)(\A\alpha\ket0 + \B\beta\ket1) = \tfrac1{\sqrt2}\big(\A\alpha\braket00 + \B\beta\braket01 + \A\alpha\braket10 + \B\beta\braket11\big) = \tfrac{\A\alpha + \B\beta}{\sqrt2}.

Square the size:

P(+∣ψ)=∣α+β∣22,P(−∣ψ)=∣α−β∣22.P(+|\psi) = \frac{|\A\alpha + \B\beta|^2}{2}, \qquad P(-|\psi) = \frac{|\A\alpha - \B\beta|^2}{2}.
Explore · measuring a qubit

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⟩\ket\psi = \A{\alpha}\ket0 + \B{\beta}\ket1 with ∣α∣2+∣β∣2=1|\A{\alpha}|^2 + |\B{\beta}|^2 = 1.
Probability that measuring ∣ψ⟩\ket\psi gives ∣ϕ⟩\ket\phi
P(ϕ∣ψ)=∣⟨ϕ|ψ⟩∣2P(\phi|\psi) = |\braket{\phi}{\psi}|^2 (the Born rule).
∣+⟩\ket+ and ∣−⟩\ket- in the 0/1 basis
∣±⟩=12(∣0⟩±∣1⟩)\ket\pm = \tfrac{1}{\sqrt2}(\ket0 \pm \ket1)
P(+∣ψ)P(+|\psi) for ∣ψ⟩=α∣0⟩+β∣1⟩\ket\psi = \A\alpha\ket0 + \B\beta\ket1
∣α+β∣22\dfrac{|\A\alpha + \B\beta|^2}{2}
P(+∣−)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\A\alpha = |\alpha|e^{i a}, β=∣β∣eib\B\beta = |\beta|e^{i b}. The angles are phases.

Global phase does nothing. Multiply the whole state by eiγe^{i\gamma}: every probability gets multiplied by ∣eiγ∣2=1|e^{i\gamma}|^2 = 1. So ∣ψ⟩\ket\psi and eiγ∣ψ⟩e^{i\gamma}\ket\psi are physically the same state. Example: −∣0⟩-\ket0 is the same as ∣0⟩\ket0.

Relative phase matters. ∣+⟩\ket+ and ∣−⟩\ket- differ only by the sign (a phase of π\pi) in front of ∣1⟩\ket1, but P(+∣+)=1P(+|+) = 1 while P(+∣−)=0P(+|-) = 0. So we can always move all the phase onto ∣1⟩\ket1 and write

∣ψ⟩=cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩.\ket\psi = \cos\tfrac{\theta}{2}\ket0 + e^{i\varphi}\sin\tfrac{\theta}{2}\ket1.

Two real numbers, θ\theta and φ\varphi, describe any qubit (up to the irrelevant global phase).

The Bloch sphere

Treat θ\theta as latitude (measured down from the north pole) and φ\varphi as longitude: every qubit is a point on a sphere.

  • North pole: ∣0⟩\ket0 (θ=0\theta = 0). South pole: ∣1⟩\ket1 (θ=π\theta = \pi).
  • Equator: equal superpositions. ∣+⟩\ket+ at φ=0\varphi = 0, ∣−⟩\ket- at φ=π\varphi = \pi, ∣i⟩=12(∣0⟩+i∣1⟩)\ket{i} = \tfrac1{\sqrt2}(\ket0 + i\ket1) at φ=π/2\varphi = \pi/2, ∣−i⟩\ket{-i} at φ=3π/2\varphi = 3\pi/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:

Want to see it properly in 3D, rotate it and watch measurements as shadows? Open the 3D Bloch sphere and interference as arrows.

Lock it in · answer in your head, then reveal
Does a global phase eiγ∣ψ⟩e^{i\gamma}\ket\psi change any probability?
No: ∣eiγ∣=1|e^{i\gamma}|=1, so it cancels. Only the relative phase between ∣0⟩\ket0 and ∣1⟩\ket1 matters.
Bloch-sphere form of a qubit
∣ψ⟩=cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩\ket\psi = \cos\tfrac\theta2\ket0 + e^{i\varphi}\sin\tfrac\theta2\ket1, with 0≤θ≤π0\le\theta\le\pi, 0≤φ<2π0\le\varphi<2\pi.
Why is a qubit not just a probabilistic bit?
It can be measured in many bases (0/10/1, +/−+/-, …). ∣+⟩\ket+ and ∣−⟩\ket- 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⟩\ket1.

Worked exercises

3.1 · The in-class exercise: P(+|ψ) for four states

Lecture 3, in-class exercise

Using P(+∣ψ)=∣α+β∣22P(+|\psi) = \dfrac{|\alpha+\beta|^2}{2}, find P(+∣ψ)P(+|\psi) when ∣ψ⟩\ket\psi is (a) ∣+⟩\ket+, (b) ∣−⟩\ket-, (c) ∣1⟩\ket1, (d) ∣0⟩\ket0.

Worked solution
  1. Read off α and β for each state by matching with α∣0⟩+β∣1⟩\alpha\ket0 + \beta\ket1.
  2. (a) ∣+⟩\ket+: α=β=12\alpha = \beta = \tfrac1{\sqrt2}, so P=∣12+12∣22=(2)22=1P = \dfrac{|\tfrac1{\sqrt2}+\tfrac1{\sqrt2}|^2}{2} = \dfrac{(\sqrt2)^2}{2} = 1.
  3. (b) ∣−⟩\ket-: α=12\alpha = \tfrac1{\sqrt2}, β=−12\beta = -\tfrac1{\sqrt2}, so P=∣0∣22=0P = \dfrac{|0|^2}{2} = 0.
  4. (c) ∣1⟩\ket1: α=0\alpha = 0, β=1\beta = 1, so P=∣1∣22=12P = \dfrac{|1|^2}{2} = \tfrac12.
  5. (d) ∣0⟩\ket0: α=1\alpha = 1, β=0\beta = 0, so P=12P = \tfrac12.
Answer: (a) 1, (b) 0, (c) ½, (d) ½. The lesson: ∣0⟩\ket0 and ∣1⟩\ket1 both give 50% for +/−, just as ∣±⟩\ket\pm 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⟩\ket\psi = 0.6\ket0 - 0.8\ket1. Check it is normalised and find P(0)P(0), P(1)P(1), P(+)P(+) and P(−)P(-).

Worked solution
  1. Normalised? ∣0.6∣2+∣−0.8∣2=0.36+0.64=1|0.6|^2 + |-0.8|^2 = 0.36 + 0.64 = 1 ✓.
  2. P(0)=∣α∣2=0.36P(0) = |\alpha|^2 = 0.36, P(1)=∣β∣2=0.64P(1) = |\beta|^2 = 0.64.
  3. P(+)=∣0.6+(−0.8)∣22=(−0.2)22=0.042=0.02P(+) = \dfrac{|0.6 + (-0.8)|^2}{2} = \dfrac{(-0.2)^2}{2} = \dfrac{0.04}{2} = 0.02.
  4. P(−)=∣0.6−(−0.8)∣22=1.422=1.962=0.98P(-) = \dfrac{|0.6 - (-0.8)|^2}{2} = \dfrac{1.4^2}{2} = \dfrac{1.96}{2} = 0.98.
  5. Check: 0.02+0.98=10.02 + 0.98 = 1 ✓.
Answer: P(0)=0.36P(0) = 0.36, P(1)=0.64P(1) = 0.64, P(+)=0.02P(+) = 0.02, P(−)=0.98P(-) = 0.98. The state is almost ∣−⟩\ket-.

3.3 · Complex amplitudes

Extension

∣ψ⟩=12∣0⟩+i2∣1⟩\ket\psi = \tfrac{1}{\sqrt2}\ket0 + \tfrac{i}{\sqrt2}\ket1. Find P(+)P(+) and P(i)P(i) where ∣i⟩=12(∣0⟩+i∣1⟩)\ket{i} = \tfrac1{\sqrt2}(\ket0 + i\ket1).

Worked solution
  1. P(+)=∣12+i2∣22=12∣1+i∣22=12⋅22=12P(+) = \dfrac{|\tfrac1{\sqrt2} + \tfrac{i}{\sqrt2}|^2}{2} = \dfrac{\tfrac12|1+i|^2}{2} = \dfrac{\tfrac12\cdot 2}{2} = \tfrac12.
  2. For P(i)P(i) build the bra, conjugating: ⟨i∣=12(⟨0∣−i⟨1∣)\bra{i} = \tfrac1{\sqrt2}(\bra0 - i\bra1).
  3. ⟨i|ψ⟩=12(12−i⋅i2)=12(1−i2)=12⋅2=1\braket{i}{\psi} = \tfrac1{\sqrt2}\big(\tfrac1{\sqrt2} - i\cdot\tfrac{i}{\sqrt2}\big) = \tfrac12(1 - i^2) = \tfrac12\cdot 2 = 1.
  4. P(i)=∣1∣2=1P(i) = |1|^2 = 1: of course, ∣ψ⟩\ket\psi is ∣i⟩\ket i.
Answer: P(+)=12P(+) = \tfrac12, P(i)=1P(i) = 1. Forgetting the conjugate in step 2 would give 12(1+i2)=0\tfrac12(1 + i^2) = 0, the opposite (wrong) answer.

3.4 · Is this a valid state? Fix it

Problem set style

Is ∣ϕ⟩=∣0⟩+2i∣1⟩\ket\phi = \ket0 + 2i\ket1 a valid qubit state? If not, normalise it.

Worked solution
  1. ∣1∣2+∣2i∣2=1+4=5≠1|1|^2 + |2i|^2 = 1 + 4 = 5 \ne 1, so not valid.
  2. Divide by the norm 5\sqrt5: ∣ϕ⟩=15∣0⟩+2i5∣1⟩\ket\phi = \tfrac1{\sqrt5}\ket0 + \tfrac{2i}{\sqrt5}\ket1.
  3. Check: 15+45=1\tfrac15 + \tfrac45 = 1 ✓.
Answer: Not valid as written; normalised it is 15(∣0⟩+2i∣1⟩)\tfrac{1}{\sqrt5}(\ket0 + 2i\ket1), with P(0)=0.2P(0) = 0.2, P(1)=0.8P(1) = 0.8.

3.5 · Global vs relative phase

Lecture 3: Bloch sphere

Are ∣a⟩=12(∣0⟩−∣1⟩)\ket a = \tfrac{1}{\sqrt2}(\ket0 - \ket1) and ∣b⟩=12(−∣0⟩+∣1⟩)\ket b = \tfrac1{\sqrt2}(-\ket0 + \ket1) the same state? What about ∣a⟩\ket a and ∣+⟩\ket+?

Worked solution
  1. ∣b⟩=−1⋅12(∣0⟩−∣1⟩)=−∣a⟩=eiπ∣a⟩\ket b = -1\cdot\tfrac1{\sqrt2}(\ket0 - \ket1) = -\ket a = e^{i\pi}\ket a: a global phase.
  2. So ∣a⟩\ket a and ∣b⟩\ket b give identical probabilities for every measurement: same physical state.
  3. ∣a⟩=∣−⟩\ket a = \ket- and ∣+⟩\ket+ differ by a relative phase (sign on ∣1⟩\ket1 only), and P(+∣−)=0P(+|-) = 0.
Answer: ∣a⟩\ket a and ∣b⟩\ket b: same state. ∣a⟩\ket a and ∣+⟩\ket +: different, in fact perfectly distinguishable.

3.6 · Find θ and φ

Lecture 3: Bloch sphere

Find the Bloch angles of ∣ψ⟩=32∣0⟩+12eiπ/4∣1⟩\ket\psi = \tfrac{\sqrt3}{2}\ket0 + \tfrac{1}{2}e^{i\pi/4}\ket1.

Worked solution
  1. Match with cos⁡θ2∣0⟩+eiφsin⁡θ2∣1⟩\cos\tfrac\theta2\ket0 + e^{i\varphi}\sin\tfrac\theta2\ket1.
  2. cos⁡θ2=32⇒θ2=π6⇒θ=π3\cos\tfrac\theta2 = \tfrac{\sqrt3}2 \Rightarrow \tfrac\theta2 = \tfrac\pi6 \Rightarrow \theta = \tfrac\pi3 (60°).
  3. Check sin⁡π6=12\sin\tfrac\pi6 = \tfrac12 ✓, and φ=π4\varphi = \tfrac\pi4 (45°).
Answer: θ=60°\theta = 60°, φ=45°\varphi = 45°: in the northern hemisphere (more likely 0 than 1), turned 45° round from ∣+⟩\ket+ towards ∣i⟩\ket i.
Check yourself

A qubit is in ∣−⟩\ket-. You measure 0 or 1 and get 1. You immediately measure + or −. What is P(+)P(+)?

↧ Go deeper: Density matrices and mixed states MSc

A probabilistic mixture ”∣0⟩\ket0 with probability ½, ∣1⟩\ket1 with ½” is not the same as ∣+⟩\ket+, even though both give 50/50 for 0/1. To describe mixtures, use the density matrix ρ=∑kpk∣ψk⟩⟨ψk∣\rho = \sum_k p_k \ket{\psi_k}\bra{\psi_k}. The mixture gives ρ=12I\rho = \tfrac12 I, while ∣+⟩\ket+ gives ∣+⟩⟨+∣=12(1111)\ket+\bra+ = \tfrac12\begin{pmatrix}1&1\\1&1\end{pmatrix}: the off-diagonal coherences are the relative phase. Probabilities become P(ϕ)=⟨ϕ∣ρ∣ϕ⟩=Tr(ρ∣ϕ⟩⟨ϕ∣)P(\phi) = \bra\phi\rho\ket\phi = \mathrm{Tr}(\rho\ket\phi\bra\phi). On the Bloch sphere, mixed states fill the inside of the ball: ρ=12(I+xX+yY+zZ)\rho = \tfrac12(I + x X + y Y + z Z) with x2+y2+z2≤1x^2+y^2+z^2\le1. You will meet I/2I/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⟩}\{\ket{k}\} is described by projectors Pk=∣k⟩⟨k∣P_k = \ket k\bra k with ∑kPk=I\sum_k P_k = I. Outcome kk has probability ⟨ψ∣Pk∣ψ⟩\bra\psi P_k\ket\psi and leaves the state Pk∣ψ⟩/⟨ψ∣Pk∣ψ⟩P_k\ket\psi/\sqrt{\bra\psi P_k\ket\psi}. The most general measurement (a POVM) uses positive operators EkE_k with ∑Ek=I\sum E_k = 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?”.