Review: The Bloch Sphere and Rotations¶
Qubit States on the Bloch Sphere¶
Any qubit state can be written as:
where and are the polar and azimuthal angles on the Bloch sphere.
The six cardinal states are:
z-axis: (north pole), (south pole)
x-axis: ,
y-axis: ,
Rotations: SU(2)¶
Last lecture we learned that SU(2) is the group of rotations on the Bloch sphere.
Rotation about the z-axis:
where .
Rotation about an arbitrary axis :
where .
iClicker Question 1¶
Consider the rotation .
Which pair of states are unchanged by this rotation (up to a global phase)?
(A) and (the ±x states)
(B) and (the ±y states)
(C) and (the ±z states) ✓
(D) All six cardinal states
Answer: (C). The states and are eigenstates of , so they only pick up a phase under :
States on the equator (, , , ) are not eigenstates of — they precess around the z-axis.
General principle: Eigenstates of a generator are invariant under the transformation it generates.
The Stern-Gerlach Experiment: Discovering Spin¶
The 1922 Experiment¶
Before we write down the spin Hamiltonian, let’s see where it comes from experimentally.
In 1922, Otto Stern and Walther Gerlach performed one of the most important experiments in quantum mechanics. They sent a beam of silver atoms through an inhomogeneous magnetic field and observed where the atoms landed on a detector screen.
Classical expectation: A magnetic dipole in a non-uniform field feels a force proportional to its component along the field gradient. If the atomic magnetic moments were oriented randomly (like tiny compass needles pointing in all directions), the beam should spread into a continuous smear.
What they observed: The beam split into exactly two discrete spots.
Why Deflection Measures Spin¶
The key physics is straightforward:
Energy of a dipole in a field: A magnetic moment in a magnetic field has energy
Force from a gradient: Force is the negative gradient of energy. For a field pointing in the z-direction with a gradient:
Magnetic moment comes from spin: For an electron, where is the gyromagnetic ratio.
Putting it together:
The force is directly proportional to . Classically, could be anything, giving a continuous range of forces and a smeared spot. But quantum mechanics says can only be or — nothing in between.
Two allowed values of spin → two allowed forces → two spots.
This was shocking. The atoms behaved as if their magnetic moment could only point in two directions — “up” or “down” relative to the field — with nothing in between.
The Interpretation: Spin-1/2¶
We now understand that:
Silver has one unpaired electron in its outer shell (configuration: [Kr] 4d¹⁰ 5s¹)
The electron has an intrinsic angular momentum called spin, with quantum number
When measured along any axis, spin-1/2 can only yield two outcomes: (“spin up”) or (“spin down”)
The two spots correspond to these two eigenstates
The Stern-Gerlach apparatus is a qubit measurement device. It projects the electron spin onto the or state (relative to the field direction) and physically separates them.
Why This Matters for Us¶
The Stern-Gerlach experiment shows that:
Quantum measurements give discrete outcomes, not continuous values
The spin state collapses upon measurement
A spin-1/2 particle is a natural physical qubit
When we write and talk about the Bloch sphere, we’re describing something real: the quantum state of an electron spin.
Back to Physics: Spin in a Magnetic Field¶
The Physical Setup¶
An electron (or any spin-1/2 particle) in a magnetic field has Hamiltonian:
where is the gyromagnetic ratio.
The spin precesses around the magnetic field direction — this is the quantum analog of a gyroscope.
The Question¶
Given an initial state , how do we find ?
The Schrödinger Equation¶
The Fundamental Law¶
Quantum states evolve according to:
Solving with the Time Evolution Operator¶
Define the time evolution operator by:
Substituting into the Schrödinger equation:
Since this must hold for any initial state:
The solution is:
You can verify this solves the equation: .
The Hamiltonian as a Generator¶
In the infinitesimal limit ( small):
Compare to our rotation formula: .
The Hamiltonian is the generator of time evolution.
Just as the Pauli matrices generate rotations in space, the Hamiltonian generates translations in time.
is Unitary¶
Why Unitarity Matters¶
We start with a normalized state: .
We need it to stay normalized:
For this to equal 1 for any initial state, we need:
This is the definition of a unitary operator.
Verification¶
For with Hermitian (i.e., ):
Unitarity guarantees probability conservation.
iClicker Questions¶
iClicker A: The Generator Pattern¶
The Hamiltonian generates time evolution: .
What does the operator do to a wavefunction ?
(A) Translates it forward in time
(B) Translates it in position by ✓
(C) Rotates it on the Bloch sphere
(D) Decreases its amplitude
(E) Inverts it
Answer: (B). Just as the Hamiltonian generates time translations, the momentum operator generates spatial translations:
This is the same pattern: Hermitian operator in the exponent -> unitary transformation that “moves” the state.
The Generator Pattern¶
We’ve now seen the same mathematical structure three times:
| Transformation | Unitary Operator | Hermitian Generator |
|---|---|---|
| Spin rotation | (and ) | |
| Time evolution | (Hamiltonian) | |
| Space translation |
The pattern: Hermitian operators generate unitary transformations through exponentiation.
This is one of the deepest ideas in physics: symmetries (unitary transformations) are generated by observables (Hermitian operators).
Example 1: Magnetic Field Along z — The Phase Gate¶
Setup¶
where is the Larmor frequency.
Time Evolution¶
This is rotation around the z-axis at angular frequency .
What Happens to Different States?¶
Starting in :
Just a global phase — the state doesn’t move on the Bloch sphere.
Starting in :
The relative phase changes — the state precesses around the equator.
This is precession: the quantum version of a spinning top in a gravitational field.
Example 2: Magnetic Field Along x — Rabi Oscillations¶
Setup¶
where is the Rabi frequency (proportional to ).
Time Evolution¶
Using the rotation formula:
Evolution of ¶
Starting in the ground state :
The Probabilities Oscillate!¶
The population oscillates between and . This is fundamentally different from precession (Example 1), where the populations stayed constant.
Special Pulses¶
π-pulse ():
Complete population inversion — the qubit flips from ground to excited state.
π/2-pulse ():
Creates an equal superposition — the state moves from the pole to the equator.
Eigenstates: States That Don’t Change¶
Definition¶
An eigenstate of the Hamiltonian is a state that evolves only by a global phase:
Under time evolution:
The state just picks up a phase factor — it doesn’t move on the Bloch sphere.
Examples¶
For :
Eigenstates are and (the poles)
These don’t precess — they’re aligned with the field
For :
Eigenstates are and (the x-axis states)
Under a field, doesn’t undergo Rabi oscillations — it’s aligned with the drive
General rule: Eigenstates of the Hamiltonian are stationary. Superpositions of different energy eigenstates oscillate.
Qiskit Demonstration: Rabi Oscillations¶
import numpy as np
import matplotlib.pyplot as plt
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
# Rabi oscillations: Rx(θ) applied to |0⟩
thetas = np.linspace(0, 4*np.pi, 100)
P0 = []
P1 = []
for theta in thetas:
qc = QuantumCircuit(1)
qc.rx(theta, 0) # Rotation around x-axis by angle theta
state = Statevector(qc)
probs = state.probabilities()
P0.append(probs[0])
P1.append(probs[1])
# Plot
plt.figure(figsize=(10, 5))
plt.plot(thetas/np.pi, P0, 'b-', linewidth=2, label='$P_0(t) = \\cos^2(\\Omega t/2)$')
plt.plot(thetas/np.pi, P1, 'r-', linewidth=2, label='$P_1(t) = \\sin^2(\\Omega t/2)$')
plt.xlabel('$\\Omega t / \\pi$', fontsize=14)
plt.ylabel('Probability', fontsize=14)
plt.title('Rabi Oscillations: Population Transfer Between $|0\\rangle$ and $|1\\rangle$', fontsize=14)
plt.legend(fontsize=12)
plt.grid(True, alpha=0.3)
plt.axhline(y=0.5, color='gray', linestyle='--', alpha=0.5)
plt.axvline(x=1, color='green', linestyle=':', alpha=0.7, label='π-pulse')
plt.axvline(x=0.5, color='orange', linestyle=':', alpha=0.7, label='π/2-pulse')
plt.show()Summary¶
Time evolution is governed by the Schrödinger equation:
The Hamiltonian generates time evolution, just as Pauli matrices generate spatial rotations.
Unitarity () guarantees probability conservation.
Precession (): States rotate around the z-axis. Poles are stationary; equator precesses.
Rabi oscillations (): Population oscillates between and . π-pulse inverts; π/2-pulse creates superposition.
Eigenstates of the Hamiltonian are stationary — they evolve only by a global phase.
iClicker E: Energy Eigenstates¶
A qubit has Hamiltonian , so the energy eigenstates are (energy ) and (energy ).
The state is prepared at . At time , the state is:
(A) Still (stationary)
(B) ✓
(C)
(D)
(E) A mixed state
Answer: (B). Energy eigenstates each pick up their own phase factor . Since is a superposition of two energy eigenstates with different energies, the relative phase changes with time. The state precesses around the z-axis.
iClicker F: What Doesn’t Change?¶
Under the Hamiltonian , which quantity is CONSTANT in time?
(A) (z-component of spin)
(B) (x-component of spin) ✓
(C) (y-component of spin)
(D) The state
(E) None of these
Answer: (B). The Hamiltonian generates rotations around the x-axis. Under such rotations, the x-component of any vector is unchanged — only the y and z components rotate into each other.
More formally: , so is a conserved quantity.
Homework 2.6¶
Problem: Time Evolution Practice¶
A qubit has Hamiltonian .
(a) Write the time evolution operator as an explicit matrix.
(b) If the initial state is , find . Does the state change physically, or just by a global phase?
(c) If the initial state is , find .
(d) For part (c), compute and . Do the populations change with time?
(e) For part (c), compute . At what time does the state first become orthogonal to ? What state is it at that moment?
Problem: Rabi Oscillations¶
A qubit has Hamiltonian and starts in state .
(a) Using , show that:
(b) Compute . Sketch this function from to .
(c) At what time does the qubit first have a 50% probability of being in ? What is this pulse called?
(d) At what time does the qubit first reach with certainty? What is this pulse called?
(e) If MHz, calculate the duration of a π-pulse in nanoseconds.
Problem: The Hadamard Gate¶
The Hadamard gate is one of the most important single-qubit gates:
(a) Verify that is unitary: compute and show it equals .
(b) Verify that . What does this tell you geometrically about the rotation?
(c) The general rotation formula is:
For , we need (a 180° rotation). So should equal for some axis , up to a global phase.
Show that:
(d) From part (c), what is the rotation axis ? Express it as a unit vector.
(e) Describe in words: where is this axis on the Bloch sphere? (Hint: it’s in the xz-plane, halfway between...)
(f) The Hadamard swaps the z-basis and x-basis:
Verify one of these by explicit matrix multiplication.
(g) Why do you think the Hadamard gate is preferred over, say, for creating superpositions? (Hint: look at the matrix elements of each.)
Problem: Unitarity Implies Hermitian Generator¶
This problem proves the deep connection between unitary operators and Hermitian generators.
(a) Let for some operator . Write an expression for in terms of .
(b) The condition for to be unitary is . Substitute your expression from (a) and show that this requires:
(c) For the equation in (b) to hold, we need . Explain why.
Hint: If and are matrices, only when . What does tell you?
(d) Conclude: If is unitary, then must be Hermitian.
(e) We’ve been writing time evolution as . Using your result, explain why the Hamiltonian must be Hermitian for time evolution to be unitary.
(f) The Pauli matrices , , are Hermitian. Verify that by writing out the matrix and its conjugate transpose.
(g) Using your result from (d), explain why is guaranteed to be unitary without doing any explicit calculation.
Problem: Space Translation Operator¶
The momentum operator in one dimension is .
(a) Consider the translation operator . Using , show that:
(b) Taylor expand acting on a function :
(c) Recognize this Taylor series as the expansion of around . Conclude:
(Note: The sign convention varies. With , you get .)
(d) Verify that is unitary using the result from the previous problem.