A moving charge is a magnet¶
The Schrödinger equation of Lectures 5.1 and 5.2 treated the electron as a charged point mass. This lecture adds magnetism: first the magnetism of the electron’s orbital motion, which that equation already contains, and then a second kind, which it does not.
Three symbols change their meaning for this lecture. is a magnetic moment (the reduced mass does not appear; the electron mass stands in for it, a 0.05% difference in hydrogen). is the strength of a magnetic field in tesla. And the quantum number of Lectures 4.4 to 5.2 is written from here on, because a second is coming.
A loop of current¶
Take the model system of Lecture 4.4: a particle of mass and charge moving at speed on a circle of radius . It passes any point of the circle once per period , so it is an electric current. A loop of current around an area is a magnet, and the strength of the magnet, its magnetic moment, is the current times the area:
The moment is a vector along the axis of the loop, like . For a positive charge the two are parallel. The electron’s charge is , so its moment points against its angular momentum:
Source
# synced: current_loop
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
from scipy.special import ellipk, ellipe
fig, ax = plt.subplots(figsize=(5.6, 4.7))
a, b = 1.5, 0.46 # the orbit: a circle of radius a seen at a tilt
# field lines of a circular current loop in the plane of the page: contours of the flux rho * A_phi
g = np.linspace(-3.6, 3.6, 361)
X, Z = np.meshgrid(g, np.linspace(-3.0, 3.0, 301))
rho = np.abs(X) + 1e-6
k2 = 4 * a * rho / ((a + rho)**2 + Z**2)
flux = np.sqrt(a * rho) * ((2 - k2) * ellipk(k2) - 2 * ellipe(k2)) / np.sqrt(k2)
ax.contour(X, Z, flux, levels=[0.12, 0.3, 0.6, 1.05, 1.7], colors="#ced4da", linewidths=1.1, zorder=0)
t = np.linspace(0, 2 * np.pi, 400)
ax.fill(a * np.cos(t), b * np.sin(t), color=PURPLE, alpha=0.07, lw=0, zorder=1)
ax.plot(a * np.cos(t), b * np.sin(t), color="#343a40", lw=2.0, zorder=2)
arrow = lambda p0, p1, col, lw, ms: ax.annotate("", xy=p1, xytext=p0, zorder=6, arrowprops=dict(
arrowstyle="-|>", color=col, lw=lw, mutation_scale=ms, shrinkA=0, shrinkB=0))
arrow((0, 0), (0, 2.05), PURPLE, 3.0, 20) # angular momentum, up for counterclockwise motion
arrow((0, 0), (0, -2.05), CARDINAL, 3.0, 20) # magnetic moment, opposite: the charge is negative
ax.text(0.18, 1.95, r"$\vec{L}$", fontsize=19, color=PURPLE, va="center")
ax.text(0.18, -1.95, r"$\vec{\mu}$", fontsize=19, color=CARDINAL, va="center")
f = np.radians(-58) # the electron, on the near side of the orbit
pe = np.array([a * np.cos(f), b * np.sin(f)])
ax.plot([0, pe[0]], [0, pe[1]], color=GRAY, lw=1.3, ls=(0, (4, 3)), zorder=3)
ax.text(0.5, -0.07, r"$r$", fontsize=16, color=GRAY, ha="center", va="center")
tv = np.array([-a * np.sin(f), b * np.cos(f)]); tv = tv / np.hypot(*tv)
arrow(pe, pe + 1.0 * tv, TEAL, 2.4, 17)
ax.text(*(pe + 1.0 * tv + np.array([0.2, 0.05])), r"$\vec{v}$", fontsize=17, color=TEAL, va="center")
ax.plot(*pe, "o", color=TEAL, ms=12, zorder=7)
ax.text(pe[0] - 0.05, pe[1] - 0.36, r"$-e$", fontsize=16, color=TEAL, ha="center", va="center")
f2 = np.radians(118) # the current runs against the electron
pc = np.array([a * np.cos(f2), b * np.sin(f2)])
tc = np.array([a * np.sin(f2), -b * np.cos(f2)]); tc = tc / np.hypot(*tc)
arrow(pc - 0.01 * tc, pc + 0.3 * tc, "#343a40", 2.0, 20)
ax.text(pc[0] - 0.12, pc[1] + 0.3, r"$I$", fontsize=17, color="#343a40", ha="center", va="center")
ax.set_xlim(-3.3, 3.3); ax.set_ylim(-2.75, 2.75); ax.set_aspect("equal"); ax.axis("off")
fig.subplots_adjust(left=0.0, right=1.0, top=1.0, bottom=0.0)
plt.show()
Fig. An electron on a circular orbit. Its angular momentum points up. The current runs against the motion because the charge is negative, so the magnetic moment points down. Gray: the magnetic field lines of the loop.
The orbit has dropped out. Neither nor survives: for any orbit. The ratio is called the magnetogyric ratio , and for an orbiting electron .
The loop is a bar magnet. Its field lines leave one face and return to the other, with the north pole on the side points to.
Light particles are strong magnets, since . A proton with the same angular momentum is 1836 times less magnetic.
A magnet in a field¶
A magnet in a magnetic field has the energy
lowest when the moment points along the field, as a compass needle does. What the field does to the magnet depends on whether the field is the same everywhere:
Source
# synced: gradient_force
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
from matplotlib.patches import Polygon, Rectangle
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.6, 4.2), gridspec_kw={"wspace": 0.04})
arrow = lambda a_, p0, p1, col, lw, ms: a_.annotate("", xy=p1, xytext=p0, zorder=6, arrowprops=dict(
arrowstyle="-|>", color=col, lw=lw, mutation_scale=ms, shrinkA=0, shrinkB=0))
# a small bar magnet centred at (x0, 0): its moment (red arrow, S to N), the forces on its two poles, the net force.
# The field pushes the N pole along B (up) and the S pole against it (down), harder where B is stronger.
magnets = [(ax, 0.0, 1, 0.85, 0.85), (bx, -1.05, 1, 0.55, 1.15), (bx, 1.05, -1, 0.55, 1.15)]
for a_, x0, up, f_top, f_bot in magnets:
a_.add_patch(Rectangle((x0 - 0.2, -0.62), 0.4, 1.24, fc="white", ec="#343a40", lw=1.6, zorder=4))
arrow(a_, (x0, -0.48 * up), (x0, 0.5 * up), CARDINAL, 3.0, 17)
a_.text(x0 - 0.38, 0.42 * up, "N", fontsize=14, ha="center", va="center", weight="bold", color="#343a40")
a_.text(x0 - 0.38, -0.42 * up, "S", fontsize=14, ha="center", va="center", weight="bold", color="#343a40")
for end, f in ((1, f_top), (-1, f_bot)): # end = +1 the top pole, -1 the bottom pole
ends = [(x0, end * 0.68), (x0, end * (0.68 + f))] # from the pole outward
if up < 0: # N below, S above: both forces point into the magnet, draw them pushing
ends = ends[::-1]
arrow(a_, ends[0], ends[1], GRAY, 2.0, 14)
net = up * (f_top - f_bot)
if abs(net) > 0.01:
arrow(a_, (x0 + 0.6, -0.5 * np.sign(net)), (x0 + 0.6, 0.7 * np.sign(net)), "#212529", 4.2, 24)
a_.text(x0 + 0.82, 0.1 * np.sign(net), r"$\vec{F}$", fontsize=18, va="center", color="#212529")
# left: a uniform field
for x in np.linspace(-2.4, 2.4, 9):
ax.plot([x, x], [-2.3, 2.3], color="#ced4da", lw=1.2, zorder=0)
arrow(ax, (x, 1.9), (x, 2.3), "#ced4da", 1.2, 11)
ax.text(2.62, 2.05, r"$\vec{B}$", fontsize=17, color=GRAY, va="center")
ax.set_title("uniform field", fontsize=14)
# right: the Stern-Gerlach magnet in cross-section, a sharp edge below and a groove above; B is strongest at the edge
bx.add_patch(Polygon([[-2.6, -2.9], [2.6, -2.9], [2.6, -2.45], [0, -1.75], [-2.6, -2.45]], fc="#dee2e6", ec=GRAY, lw=1.3, zorder=2))
th = np.linspace(np.pi, 2 * np.pi, 80)
top = [[-2.6, 2.9], [-2.6, 2.0]] + [[1.5 * np.cos(q), 2.0 - 0.62 * np.sin(q)] for q in th] + [[2.6, 2.0], [2.6, 2.9]]
bx.add_patch(Polygon(top, fc="#dee2e6", ec=GRAY, lw=1.3, zorder=2))
for xt in np.linspace(-1.35, 1.35, 9): # field lines fan out from the edge to the groove
zz = np.linspace(0, 1, 60)
zt = 2.0 + 0.62 * np.sqrt(max(0.0, 1 - (xt / 1.5)**2))
xs = xt * (0.06 + 0.94 * zz**1.25)
zs = (-1.75 + 0.33 * abs(xt)) + (zt - (-1.75 + 0.33 * abs(xt))) * zz
bx.plot(xs, zs, color="#ced4da", lw=1.2, zorder=0)
arrow(bx, (xs[-9], zs[-9]), (xs[-1], zs[-1]), "#ced4da", 1.2, 11)
bx.text(2.05, 1.55, r"$\vec{B}$", fontsize=17, color=GRAY, va="center")
bx.set_title("non-uniform field", fontsize=14)
for a_ in (ax, bx):
a_.set_xlim(-3.0, 3.0); a_.set_ylim(-3.0, 3.0); a_.set_aspect("equal"); a_.axis("off")
fig.subplots_adjust(left=0.01, right=0.99, top=0.92, bottom=0.01)
plt.show()
Fig. A small magnet (red arrow: its moment, from the S pole to the N pole) in a field that points up. The field pushes the N pole along and the S pole against it (gray arrows). Left: in a uniform field the two forces cancel. Right: between a sharp edge and a groove the field is stronger at the bottom, the two forces differ, and a net force remains.
Uniform field: a twist, no push. The forces on the two poles are equal and opposite. They turn a tilted magnet but do not move it.
Non-uniform field: a net force. The pole in the stronger field is pushed harder. Since and force is minus the slope of the energy,
The force sorts magnets by . A moment along the field is pulled toward the stronger field, a moment against the field is pushed away from it, and a moment at right angles feels nothing. This is the idea of the Stern-Gerlach experiment below.
An atom in a magnetic field¶
The orbital magnetic moment is quantized¶
The classical relation becomes an operator relation, , and the hydrogen states are eigenfunctions of with eigenvalues (Lecture 4.4):
The Bohr magneton in the units a chemist meets, for a field of one tesla (the Earth’s field is T, a refrigerator magnet about 10-2 T, an NMR magnet 10 to 20 T):
| as | value | what it sets |
|---|---|---|
| an energy per tesla | eV/T | the shift of a level: 58 eV in 1 T, against gaps of several eV between levels |
| a wavenumber per tesla, | 0.467 cm/T | the shift of a spectral line |
| a frequency per tesla, | 14.0 GHz/T | the frequency of a photon that connects two neighbouring magnetic levels |
| a temperature per tesla, | 0.67 K/T | the temperature below which a 1 T field lines up the moments |
The Hamiltonian and its levels¶
A field along adds the energy to the hydrogen Hamiltonian of Lecture 5.1:
There is no new equation to solve. commutes with , so the states are eigenfunctions of both (Lecture 3.5b), and therefore of their sum:
The Zeeman effect¶
Source
# synced: zeeman_orbital
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
plt.rcParams.update({"axes.spines.top": False, "axes.spines.right": False})
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.6, 3.9), gridspec_kw={"width_ratios": [1.2, 1], "wspace": 0.1})
B = np.linspace(0, 1, 50)
E2, E1, s = 3.2, 0.0, 0.85 # schematic: the real 2p - 1s gap is 10^5 splittings
for m in (1, 0, -1):
ax.plot(B, E2 + s * m * B, color=PURPLE, lw=2.6)
ax.text(1.04, E2 + s * m, rf"$m_l = {m:+d}$" if m else r"$m_l = 0$", va="center", fontsize=13, color=PURPLE)
ax.plot(B, E1 + 0 * B, color=TEAL, lw=2.6)
ax.text(1.04, E1, r"$m_l = 0$", va="center", fontsize=13, color=TEAL)
ax.text(-0.05, E2, "2p", ha="right", va="center", fontsize=15, color=PURPLE, weight="bold")
ax.text(-0.05, E1, "1s", ha="right", va="center", fontsize=15, color=TEAL, weight="bold")
for k, m in enumerate((-1, 0, 1)): # the three lines: Delta m_l = -1, 0, +1
x = 0.66 + 0.11 * k
ax.annotate("", xy=(x, E2 + s * m * x), xytext=(x, E1), arrowprops=dict(arrowstyle="-|>", color="#495057", lw=1.8,
mutation_scale=14, shrinkA=0, shrinkB=0))
ax.set_xlim(-0.25, 1.42); ax.set_ylim(-0.5, 4.5)
ax.set_xticks([0]); ax.set_xticklabels(["0"], fontsize=11); ax.set_yticks([])
ax.set_xlabel(r"magnetic field $B$", fontsize=12.5); ax.set_ylabel("energy", fontsize=12.5)
ax.spines["bottom"].set_bounds(0, 1)
# the spectrum: one line without the field, three with it
for y0, lines in ((1.25, (0,)), (0.0, (-1, 0, 1))):
bx.add_patch(plt.Rectangle((-2.2, y0), 4.4, 0.8, fc="#f1f3f5", ec="#ced4da", lw=1))
for d in lines:
bx.plot([d, d], [y0, y0 + 0.8], color="#495057", lw=3.2, solid_capstyle="butt")
bx.text(-2.35, 1.65, r"$B = 0$", ha="right", va="center", fontsize=13.5)
bx.text(-2.35, 0.4, r"$B > 0$", ha="right", va="center", fontsize=13.5)
bx.set_xlim(-3.6, 2.3); bx.set_ylim(-0.25, 2.3)
bx.set_xticks([-1, 0, 1]); bx.set_xticklabels([r"$\nu_0 - \mu_BB/h$", r"$\nu_0$", r"$\nu_0 + \mu_BB/h$"], fontsize=11.5)
bx.set_yticks([]); bx.spines["left"].set_visible(False); bx.spines["bottom"].set_bounds(-2.2, 2.2)
bx.set_xlabel("frequency", fontsize=12.5, labelpad=6)
fig.subplots_adjust(left=0.05, right=0.99, top=0.97, bottom=0.2)
plt.show()
Fig. Left: in a magnetic field the 2p level splits into three levels apart, and 1s does not move. The arrows are the three allowed transitions. Right: one spectral line becomes three.
One line becomes three. The line at gains two companions at . Pieter Zeeman saw spectral lines widen in a magnetic field in 1896, and Hendrik Lorentz explained the triplet.
Three, whatever . Light changes by 0 or (the selection rules at the end of this lecture), and every level has the same spacing . So , with five levels above and three below, still gives the same three frequencies. This is the normal Zeeman effect.
The splitting is small. At 1 T it is eV, against 10.2 eV for the line itself: six parts in a million.
Most atoms do not obey. The triplet is seen only for certain lines. Sodium’s yellow line, and hydrogen’s own lines in a weak field, split into four, six or more components with unequal spacings. This anomalous Zeeman effect had no explanation for a quarter of a century. What was missing is the subject of the rest of this lecture.
The Stern-Gerlach experiment¶
In 1922 Otto Stern and Walther Gerlach measured the magnetic moment of single atoms with the force of the last section. They evaporated silver in an oven, cut a narrow beam of atoms out of the vapor with slits, sent it between the poles of a magnet shaped to make the field strongly non-uniform (a sharp edge facing a groove), and let the atoms land on a glass plate.
Source
# synced: stern_gerlach
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
from matplotlib.patches import Rectangle
rng = np.random.default_rng(5)
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.2, 3.5), gridspec_kw={"width_ratios": [4.3, 1], "wspace": 0.03})
xm0, xm1, xp, kk = 2.5, 5.5, 8.7, 0.043 # magnet from xm0 to xm1, plate at xp; z = +-kk (x - xm0)^2 inside
n_fr, per, dx = 36, 3, 0.36 # frames, atoms launched per frame, distance per frame
N = n_fr * per
sgn = rng.choice([1, -1], N) # which way each atom goes: decided only at the magnet
z0 = rng.normal(0, 0.03, N)
zland = rng.normal(0, 0.09, N)
yland = rng.uniform(-0.8, 0.8, N)
frac = rng.uniform(0, 1, N)
bend = lambda x: np.where(x < xm0, 0.0, np.where(x < xm1, (x - xm0)**2, (xm1 - xm0)**2 + 2 * (xm1 - xm0) * (x - xm1)))
zend = kk * float(bend(np.array(xp)))
ax.add_patch(Rectangle((0.0, -0.6), 1.05, 1.2, fc="#dee2e6", ec=GRAY, lw=1.3))
ax.text(0.52, -0.85, "oven", ha="center", va="top", fontsize=12.5, color=GRAY)
for s in (1, -1):
ax.plot([1.75, 1.75], [s * 0.2, s * 0.8], color=GRAY, lw=3.5, solid_capstyle="butt")
ax.add_patch(Rectangle((xm0, 0.62 if s > 0 else -1.62), xm1 - xm0, 1.0, fc="#dee2e6", ec=GRAY, lw=1.3))
ax.text(0.5 * (xm0 + xm1), 1.12, "magnet", ha="center", va="center", fontsize=12.5, color=GRAY)
ax.plot([xp, xp], [-2.0, 2.0], color="#343a40", lw=4, solid_capstyle="butt")
ax.text(xp, -2.2, "plate", ha="center", va="top", fontsize=12.5, color=GRAY)
xs = np.linspace(1.05, xp, 200)
for s, col in ((1, TEAL), (-1, ORANGE)):
ax.plot(xs, s * kk * bend(xs), color=col, lw=1.0, alpha=0.35, zorder=1)
fly = ax.scatter([], [], s=26, zorder=5)
ax.set_xlim(-0.2, 9.1); ax.set_ylim(-2.6, 2.3); ax.axis("off")
bx.add_patch(Rectangle((-1.05, -2.0), 2.1, 4.0, fc="#f1f3f5", ec="#343a40", lw=1.6))
hits = bx.scatter([], [], s=20, zorder=5)
bx.text(0, -2.2, "plate, face on", ha="center", va="top", fontsize=12.5, color=GRAY)
bx.set_xlim(-1.5, 1.5); bx.set_ylim(-2.6, 2.3); bx.axis("off")
dark, cols = np.array([0.29, 0.31, 0.34, 1.0]), {1: np.array([0.063, 0.471, 0.584, 1.0]), -1: np.array([0.878, 0.482, 0.0, 1.0])}
def update(f):
x = 1.05 + (f - np.arange(N) // per + frac) * dx # how far each atom has flown by frame f
on = (x >= 1.05) & (x < xp)
z = z0 * (x < 1.75) + sgn * kk * bend(x)
c = np.array([dark if xi < xm0 else cols[si] for xi, si in zip(x[on], sgn[on])]).reshape(-1, 4)
fly.set_offsets(np.c_[x[on], z[on]]); fly.set_facecolors(c)
done = x >= xp
hits.set_offsets(np.c_[yland[done], sgn[done] * zend + zland[done]])
hits.set_facecolors(np.array([cols[si] for si in sgn[done]]).reshape(-1, 4))
fig.subplots_adjust(left=0.01, right=0.99, top=0.99, bottom=0.02)
ani = FuncAnimation(fig, update, frames=n_fr, interval=100, blit=False)
plt.close(fig)
HTML(ani.to_jshtml())Fig. Atoms from the oven fly through a non-uniform magnetic field and land on a plate. Each atom is pushed up or down by a force proportional to its . The beam splits in two.
The apparatus measures , one atom at a time. The force turns a value of into a position on the plate.
The atom is neutral. A magnetic field bends the path of a moving charge, which would swamp the effect. A neutral atom feels only the push on its moment.
What should the plate show?
Source
# synced: sg_screens
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
from matplotlib.patches import Rectangle
rng = np.random.default_rng(11)
fig, axes = plt.subplots(1, 4, figsize=(9.6, 3.7), gridspec_kw={"wspace": 0.12})
n = 360
cases = [("classical magnet", rng.uniform(-1.25, 1.25, n), "#343a40"),
(r"$l = 0$", np.zeros(n), "#343a40"),
(r"$l = 1$", rng.choice([-1.25, 0, 1.25], n), "#343a40"),
("silver, observed", rng.choice([-1.25, 1.25], n), CARDINAL)]
for ax, (name, z, col) in zip(axes, cases):
ax.add_patch(Rectangle((-1.05, -2.0), 2.1, 4.0, fc="#f1f3f5", ec="#343a40", lw=1.6))
ax.scatter(rng.uniform(-0.8, 0.8, n), z + rng.normal(0, 0.1, n), s=11, color="#495057", alpha=0.55, lw=0)
ax.set_title(name, fontsize=14.5, color=col)
ax.set_xlim(-1.3, 1.3); ax.set_ylim(-2.15, 2.15); ax.set_aspect("equal"); ax.axis("off")
fig.subplots_adjust(left=0.01, right=0.99, top=0.9, bottom=0.01)
plt.show()
Fig. What the plate would show for classical magnets, for atoms with and for atoms with , and what Stern and Gerlach found for silver.
Classical magnets leave the oven pointing in every direction. takes every value from to , and the beam smears into a band.
Orbital angular momentum gives with values, an odd number of spots: one for , three for .
Silver has one electron outside closed shells, in the 5s orbital, and closed shells carry no angular momentum (Chapter 7). So , and the prediction is a single spot in the middle.
Observed: two spots, and nothing in the middle. Two means , that is , which no orbital motion can have: is a whole number because must join up around the circle (Lecture 4.4). The moment that splits the beam is not orbital. Hydrogen atoms in their 1s ground state split in two as well (Phipps and Taylor, 1927).
Watch: the experiment and what it means
Spin¶
A new angular momentum¶
Two spots mean a magnetic moment with two values of . In 1925 George Uhlenbeck and Samuel Goudsmit proposed, to explain doubled lines in atomic spectra, that the electron carries an angular momentum of its own in addition to the orbital one. It is called spin. Count its states as for any angular momentum, :
The spin operators , , are defined by obeying the commutation rules of angular momentum,
and everything that Lecture 4.4 drew from the commutators alone carries over: and one component can be sharp together, with eigenvalues and . The ladder argument of that lecture (its “Going further” box) allowed ladders with half-integer . Orbital motion cannot use them. Spin does.
Spin is intrinsic. Every electron has , as every electron has the charge and the mass . The orbital quantum number depends on the state the electron is in; cannot be changed. Only the orientation can.
Spin is not a motion in space. and are not functions of , , or of the angles. There is no : a function of with would change sign after one full turn. The name is historical.
The Schrödinger equation does not contain it. Our Hamiltonians were built by taking a classical energy and replacing and by operators, and spin has no classical energy to start from. It comes out on its own from Dirac’s relativistic equation for the electron (1928). Here it is added by hand, as a new degree of freedom with the properties in the box.
Other particles have spin too. Protons and neutrons have , the photon has , and nuclei have spins Particles with half-integer spin are fermions and those with whole spin are bosons. That distinction is behind the Pauli principle and the periodic table (Chapter 7).
The vector model¶
Spin follows the rules that Lecture 4.4 found for , with in place of and in place of . Draw the two side by side:
Source
# synced: spin_cones
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.6, 4.1), gridspec_kw={"wspace": 0.0})
t = np.linspace(0, 2 * np.pi, 300)
LIGHT = "#cdb9e3"
half = lambda k: ("+" if k > 0 else "-") + r"\frac{1}{2}"
# (panel, length in hbar, [(height m, arrow colour, cone colour, two label lines)], title, length label)
panels = [(ax, np.sqrt(2), [(1, PURPLE, LIGHT, (r"$m_l = +1$", r"$L_z = +\hbar$")), (0, PURPLE, LIGHT, (r"$m_l = 0$", r"$L_z = 0$")),
(-1, PURPLE, LIGHT, (r"$m_l = -1$", r"$L_z = -\hbar$"))],
r"orbital, $l = 1$", r"$|\vec{L}| = \sqrt{2}\,\hbar$"),
(bx, np.sqrt(3) / 2, [(0.5, TEAL, TEAL, (rf"$m_s = {half(1)}$", rf"$S_z = {half(1)}\hbar$")),
(-0.5, ORANGE, ORANGE, (rf"$m_s = {half(-1)}$", rf"$S_z = {half(-1)}\hbar$"))],
r"spin, $s = \frac{1}{2}$", r"$|\vec{S}| = \frac{\sqrt{3}}{2}\hbar$")]
for a_, R, states, title, lenlab in panels:
a_.plot(R * np.cos(t), R * np.sin(t), color=GRAY, lw=1, ls=":")
a_.annotate("", xy=(0, 1.9), xytext=(0, -1.7), arrowprops=dict(arrowstyle="-|>", color="k", lw=1.4, mutation_scale=14,
shrinkA=0, shrinkB=0))
a_.text(0.09, 1.84, "$z$", fontsize=17, va="center")
for m, col, cone, (l1, l2) in states:
rm = np.sqrt(R * R - m * m) # radius of the cone's rim: the part of the vector off the z axis
alpha = 1.0 if cone == LIGHT else 0.45
a_.plot(rm * np.cos(t), m + 0.2 * rm * np.sin(t), color=cone, lw=1.6, alpha=alpha)
a_.plot([-rm, 0, rm], [m, 0, m], color=cone, lw=1.3, alpha=alpha)
a_.annotate("", xy=(rm, m), xytext=(0, 0), arrowprops=dict(arrowstyle="-|>", color=col, lw=2.8, mutation_scale=18,
shrinkA=0, shrinkB=0))
a_.plot([0], [m], "o", color=col, ms=5.5, zorder=5)
a_.plot([rm + 0.05, 1.5], [m, m], color=GRAY, lw=0.8, ls=(0, (2, 3)))
a_.text(1.58, m + 0.17, l1, va="center", fontsize=18, color=col)
a_.text(1.58, m - 0.19, l2, va="center", fontsize=18, color=col)
a_.text(-0.2, -1.52, lenlab, fontsize=18, color=GRAY, ha="right", va="center")
a_.set_title(title, fontsize=18)
a_.set_xlim(-1.72, 2.85); a_.set_ylim(-1.78, 1.98)
a_.set_aspect("equal"); a_.axis("off")
fig.subplots_adjust(left=0.0, right=1.0, top=0.91, bottom=0.0)
plt.show()
Fig. The vector model for orbital angular momentum with (left, three cones) and for spin (right, two cones), drawn on the same scale. Each arrow has a sharp length and a sharp height along .
| length | height along | how many states | |
|---|---|---|---|
| orbital, | |||
| spin, |
Two things are sharp, as for : the length and one component. Where the arrow sits on its cone is not defined, because and do not commute with .
“Spin up” is far from straight up. The angle from the axis has , so : the magic angle of Problem 6 of Lecture 4.4, and of the nodal cones of in Lecture 5.2.
The rest is in and : , with .
Spin states are two-component vectors¶
How should a spin state be written down? An orbital is a function of , , , but spin has no coordinate to plot against. Three steps lead to the answer:
Two readings, two eigenstates. A measurement of has two outcomes, so has two eigenstates, and , and they are orthonormal (the box above).
Every spin state is a superposition of the two. The eigenstates of an observable are a complete set of axes (Lecture 3.6), so any spin state is , with and .
Two numbers make a column. In Lecture 3.5 a wavefunction became a long column of its values on a grid. A spin state needs two entries, on top and below. The state itself has and :
With only two components, spin is the simplest quantum system there is, and Lectures 3.5 and 3.6 apply to it in full with nothing larger than a matrix.
The bracket is a dot product, row times column with the bra’s components conjugated: . There is no integral, because there is no coordinate. (Some books write a formal integral over a “spin variable”, and the states as and . They mean this two-term sum.)
The Born rule of Lecture 3.6: a measurement of gives with probability and with probability .
Spin operators are matrices¶
If a state is a column of two numbers, an operator that turns one state into another is a matrix (Lecture 3.5). The matrix of needs no calculation: and are its eigenvectors, and a matrix written in the basis of its own eigenvectors is diagonal, with the eigenvalues on the diagonal:
The other two components are not diagonal in this basis. Together the three are times the Pauli matrices:
is diagonal because and , its own eigenvectors, are the basis. Its eigenvalues sit on the diagonal (Lecture 3.5).
flips the spin. Row times column gives and . So is not an eigenvector of : when is sharp, is not.
Each matrix is Hermitian, equal to its own conjugate transpose, which is why needs its two ’s, as momentum did in Lecture 3.5b. Each has the eigenvalues : whatever axis the spin is measured along, the reading is or .
The square of each matrix is times the unit matrix, so times the unit matrix: every spin state is an eigenstate of , as the box says.
| operator | acting on | acting on |
|---|---|---|
The same checks in numpy, in units of :
import numpy as np
# spin matrices in the basis (alpha, beta)
Sx = 0.5 * np.array([[0, 1], [1, 0]])
Sy = 0.5 * np.array([[0, -1j], [1j, 0]])
Sz = 0.5 * np.array([[1, 0], [0, -1]])
print("Sx Sy - Sy Sx = i Sz ?", np.allclose(Sx @ Sy - Sy @ Sx, 1j * Sz))
print("S^2 =\n", (Sx @ Sx + Sy @ Sy + Sz @ Sz).real)
# measure Sx: its possible readings and the states they leave
values, vectors = np.linalg.eigh(Sx)
print("readings of Sx:", values)
print("their states (columns):\n", vectors.round(3))Sx Sy - Sy Sx = i Sz ? True
S^2 =
[[0.75 0. ]
[0. 0.75]]
readings of Sx: [-0.5 0.5]
their states (columns):
[[-0.707 0.707]
[ 0.707 0.707]]
One magnet after another¶
A Stern-Gerlach magnet measures one component of the spin, and blocking one of its two beams prepares a state. Put several in a row and the measurement postulates of Lecture 3.6 become things one can see on a plate:
Source
# synced: sg_sequence
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
from matplotlib.patches import Rectangle, FancyBboxPatch
fig, ax = plt.subplots(figsize=(9.6, 4.4))
w, hgt, gap = 1.25, 0.9, 2.55 # analyser width and height, spacing
rows = [("(a)", 2.5, ["z", "z"], [("+z", "100%"), ("-z", "0")]),
("(b)", 0.0, ["z", "x"], [("+x", "50%"), ("-x", "50%")]),
("(c)", -2.5, ["z", "x", "z"], [("+z", "50%"), ("-z", "50%")])]
for tag, y, axes_, outs in rows:
ax.text(-0.75, y, tag, fontsize=14.5, ha="center", va="center", color="#343a40")
ax.add_patch(Rectangle((-0.3, y - 0.3), 0.75, 0.6, fc="#dee2e6", ec=GRAY, lw=1.2))
if tag == "(a)":
ax.text(0.08, y - 0.42, "oven", fontsize=12, ha="center", va="top", color=GRAY)
ax.plot([0.45, 1.6], [y, y], color="#495057", lw=2.2)
for i, name in enumerate(axes_):
x0 = 1.6 + gap * i
ax.add_patch(FancyBboxPatch((x0, y - hgt / 2), w, hgt, boxstyle="round,pad=0,rounding_size=0.12", fc="white", ec="#343a40", lw=1.8, zorder=3))
ax.text(x0 + w / 2, y, f"${name}$", fontsize=20, ha="center", va="center", zorder=4)
last = i == len(axes_) - 1
if not last: # keep the + beam, block the - beam
ax.plot([x0 + w, x0 + w + 0.45, x0 + gap], [y + 0.25, y + 0.25, y], color=TEAL, lw=2.4, zorder=2)
ax.plot([x0 + w, x0 + w + 0.5], [y - 0.25, y - 0.25], color=ORANGE, lw=2.4, zorder=2)
ax.plot([x0 + w + 0.5, x0 + w + 0.5], [y - 0.5, y - 0.02], color="#343a40", lw=4.5, solid_capstyle="butt", zorder=3)
else:
for (lab, pct), sgn, col in zip(outs, (1, -1), (TEAL, ORANGE)):
none = pct == "0"
ax.annotate("", xy=(x0 + w + 1.0, y + sgn * 0.25), xytext=(x0 + w, y + sgn * 0.25), zorder=2,
arrowprops=dict(arrowstyle="-|>", color="#ced4da" if none else col, lw=2.4, mutation_scale=16,
shrinkA=0, shrinkB=0, ls=(0, (3, 2)) if none else "-"))
ax.text(x0 + w + 1.15, y + sgn * 0.3, f"${lab}$", fontsize=15, va="center", color=GRAY if none else col)
ax.text(x0 + w + 1.85, y + sgn * 0.3, pct, fontsize=15, va="center", weight="bold", color=GRAY if none else col)
ax.set_xlim(-1.1, 10.6); ax.set_ylim(-3.3, 3.3); ax.axis("off")
fig.subplots_adjust(left=0.0, right=1.0, top=1.0, bottom=0.0)
plt.show()
Fig. Stern-Gerlach magnets in a row. Each box measures the spin along the axis written in it, and its lower beam is blocked. (a) , then . (b) , then . (c) , then , then again.
(a) Measure twice, same answer. The first magnet leaves the atoms it passes in . A second measurement of gives every time: the collapse of Lecture 3.6, and the reason a measurement can be trusted.
(b) A sharp is an undecided . Half of the atoms come out and half , as in the example above. No way of preparing the beam makes both sharp, because (Lecture 3.5b).
(c) Measuring erases the result. The atoms leaving the second magnet are in , and the third magnet finds and half the time each, although every one of these atoms had passed a “ only” filter. A measurement does not read off a value the atom already had. It leaves the atom in an eigenstate of what was measured.
Send atoms through. Set the second magnet along , or , or tilt it by any angle: the fraction found along a magnet tilted by is (Problem 3). Then add the third magnet.
The magnetic moment of spin¶
If spin is an angular momentum, it should come with a magnetic moment, as orbital motion does. It does, with twice the ratio:
This is what Stern and Gerlach measured. Silver’s 5s electron has no orbital moment, so the moment of the atom is the spin moment of that one electron: , two spots.
Where the 2 comes from. Dirac’s equation gives exactly. The extra 0.0023 comes from quantum electrodynamics, and the measured and calculated values of agree to 12 digits, the most precise agreement between theory and experiment in science.
Two levels in a field: magnetic resonance¶
Source
# synced: spin_resonance
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
plt.rcParams.update({"axes.spines.top": False, "axes.spines.right": False})
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.6, 3.9), gridspec_kw={"wspace": 0.72})
# (panel, slope of the splitting in frequency per tesla, largest field, field of the arrow, its label, m label, which state is lower)
panels = [(ax, 2.0023 * 13.996, 0.5, 0.34, "9.5 GHz", "m_s", -1), (bx, 42.577, 12.0, 9.4, "400 MHz", "m_I", 1)]
for a_, slope, Bmax, B0, lab, mname, low in panels:
B = np.linspace(0, Bmax, 50)
for m, col, name in ((0.5, TEAL, r"\alpha"), (-0.5, ORANGE, r"\beta")):
a_.plot(B, -low * m * slope * B, color=col, lw=2.6)
a_.text(1.02 * Bmax, -low * m * slope * Bmax, rf"${name}$, ${mname} = {'+' if m > 0 else '-'}\frac{{1}}{{2}}$", color=col,
fontsize=13, va="center")
a_.annotate("", xy=(B0, 0.5 * slope * B0), xytext=(B0, -0.5 * slope * B0), arrowprops=dict(arrowstyle="<|-|>", color="#343a40",
lw=1.8, mutation_scale=14, shrinkA=0, shrinkB=0))
a_.text(B0 - 0.03 * Bmax, 0, lab, fontsize=13.5, ha="right", va="center", color="#343a40",
bbox=dict(fc="white", ec="none", pad=1.5))
a_.set_xlim(0, Bmax); a_.set_ylim(-0.6 * slope * Bmax, 0.6 * slope * Bmax)
a_.set_xlabel(r"magnetic field $B$ (T)", fontsize=12); a_.tick_params(labelsize=10.5)
ax.set_ylabel(r"energy / $h$ (GHz)", fontsize=12); bx.set_ylabel(r"energy / $h$ (MHz)", fontsize=12)
ax.set_title("electron", fontsize=14); bx.set_title("proton", fontsize=14)
fig.subplots_adjust(left=0.075, right=0.855, top=0.9, bottom=0.17)
plt.show()
Fig. The two spin states of an electron (left) and of a proton (right) in a magnetic field. The arrows mark the photon that flips the spin, at 0.34 T for the electron and at 9.4 T for the proton.
EPR. An unpaired electron in a field absorbs a photon with , 28 GHz per tesla: microwaves. Electron paramagnetic resonance detects whatever has an unpaired electron: radicals, many transition-metal ions, defects in solids.
NMR. The proton also has spin (written for a nucleus). Its moment is set by the nuclear magneton and its own g factor, : , 42.6 MHz per tesla, radio waves. A “400 MHz” spectrometer is a 9.4 T magnet. The proton’s charge is positive, so its moment lies along its spin and is the lower state.
Same physics, 660 times apart in frequency, because of the mass in .
Why chemists care. In both, the exact frequency depends slightly on the surroundings of the spin: the electrons around a nucleus shield it from the field by a few parts per million (the chemical shift). That small dependence turns a spin into a reporter of structure.
The complete states of hydrogen¶
The spatial wavefunction says where the electron is, and the spin state says how its spin points. As long as the two do not influence each other, a complete state is their product, a spin orbital:
| operator | eigenvalue | quantum number |
|---|---|---|
| , always | ||
Four quantum numbers. The five operators commute with one another (the spin operators act on and only, the others on , , only), so one state carries all five values. Four numbers label it, since never changes.
Orthonormal. The bracket of two spin orbitals is the integral over space times the dot product of the spin parts. Two states with the same orbital and opposite spins are orthogonal because .
states in level : 2, 8, 18, 32. With the Pauli principle these become the lengths of the rows of the periodic table (Chapter 7).
In a magnetic field both moments contribute: , with energies . This is right as long as the two magnets inside the atom ignore each other. They do not quite.
Spin-orbit coupling¶
The electron sees a moving nucleus¶
Source
# synced: spin_orbit_frames
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.6, 3.9), gridspec_kw={"wspace": 0.02})
a, b = 1.6, 0.5
t = np.linspace(0, 2 * np.pi, 400)
arrow = lambda a_, p0, p1, col, lw, ms: a_.annotate("", xy=p1, xytext=p0, zorder=6, arrowprops=dict(
arrowstyle="-|>", color=col, lw=lw, mutation_scale=ms, shrinkA=0, shrinkB=0))
f = np.radians(-52)
pe = np.array([a * np.cos(f), b * np.sin(f)])
tv = np.array([-a * np.sin(f), b * np.cos(f)]); tv = tv / np.hypot(*tv)
for a_ in (ax, bx):
a_.fill(a * np.cos(t), b * np.sin(t), color=PURPLE, alpha=0.06, lw=0, zorder=1)
a_.plot(a * np.cos(t), b * np.sin(t), color="#868e96", lw=1.6, zorder=2)
a_.set_xlim(-2.6, 2.6); a_.set_ylim(-1.75, 2.2); a_.set_aspect("equal"); a_.axis("off")
# left: the nucleus at rest, the electron circles it
ax.plot(0, 0, "o", color="#343a40", ms=13, zorder=7)
ax.text(-0.12, -0.36, r"$+Ze$", fontsize=14.5, color="#343a40", ha="center", va="center")
ax.plot(*pe, "o", color=TEAL, ms=9, zorder=7)
ax.text(pe[0] + 0.02, pe[1] - 0.33, r"$-e$", fontsize=14.5, color=TEAL, ha="center", va="center")
arrow(ax, pe, pe + 0.85 * tv, TEAL, 2.2, 15)
arrow(ax, (0, 0), (0, 1.75), PURPLE, 3.0, 19)
ax.text(0.16, 1.62, r"$\vec{L}$", fontsize=18, color=PURPLE, va="center")
ax.set_title("nucleus at rest", fontsize=14)
# right: the electron at rest; the nucleus circles it the same way, a loop of positive current whose field is along L
f2 = np.radians(-128)
pn = np.array([a * np.cos(f2), b * np.sin(f2)])
tn = np.array([-a * np.sin(f2), b * np.cos(f2)]); tn = tn / np.hypot(*tn)
bx.plot(*pn, "o", color="#343a40", ms=13, zorder=7)
bx.text(pn[0] - 0.1, pn[1] - 0.38, r"$+Ze$", fontsize=14.5, color="#343a40", ha="center", va="center")
arrow(bx, pn, pn + 0.85 * tn, "#343a40", 2.2, 15)
arrow(bx, (-0.62, -0.1), (-0.62, 1.75), GRAY, 3.0, 19)
bx.text(-0.78, 1.62, r"$\vec{B}$", fontsize=18, color=GRAY, va="center", ha="right")
bx.plot(0, 0, "o", color=TEAL, ms=9, zorder=7)
arrow(bx, (0, 0), (0, 1.2), TEAL, 2.8, 17)
bx.text(0.16, 1.1, r"$\vec{S}$", fontsize=18, color=TEAL, va="center")
arrow(bx, (0, 0), (0, -1.2), CARDINAL, 2.8, 17)
bx.text(0.16, -1.12, r"$\vec{\mu}_s$", fontsize=18, color=CARDINAL, va="center")
bx.text(0.2, -0.02, r"$-e$", fontsize=14.5, color=TEAL, ha="left", va="center")
bx.set_title("electron at rest", fontsize=14)
fig.subplots_adjust(left=0.0, right=1.0, top=0.92, bottom=0.0)
plt.show()
Fig. Left: the electron orbits the nucleus, with orbital angular momentum . Right: the same motion seen from the electron. The nucleus circles the electron, and this loop of positive current makes a magnetic field at the electron, parallel to . The spin moment has an energy in that field.
Seen from the electron, the nucleus is a loop of current, and a loop of current makes a magnetic field at its center. That field points along and falls off as . The spin moment has the energy in it, and with and this is
No outside field is involved. The atom makes the field itself. In hydrogen’s 2p state it is about 0.4 T (Problem 5).
: the energy is higher when is parallel to , because then the moment points against the internal field.
An s electron has no orbital motion (): no internal field, no coupling.
The marks a relativistic effect. It is small in light atoms and grows quickly with the nuclear charge.
In a state with radial function , the factor is replaced by its average, and it is convenient to absorb the of into one constant with the units of energy, the spin-orbit coupling constant of the level:
Only the total angular momentum is conserved¶
Written out, . The first two terms do not commute with or with : the internal field twists the spin, the spin twists the orbit back, and neither nor stays sharp. But nothing twists the atom as a whole, and by the rule of Lecture 4.4 (no torque, no change) its total angular momentum is conserved:
obeys the commutation rules of an angular momentum, so it has quantum numbers of its own: gives and gives with . Since , the projections add: .
The energy follows without solving anything. Square the sum (the cross terms combine because every component of commutes with every component of ):
In a state with sharp , and each operator on the right gives its eigenvalue:
Adding and : count the states¶
Why and nothing else? Count, for the six states of a p electron:
Source
# synced: adding_momenta
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
from matplotlib.patches import Rectangle, Polygon
LIGHT = "#b9a3dc"
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.6, 3.9), gridspec_kw={"width_ratios": [1.25, 1], "wspace": 0.05})
frac = lambda k: (r"+" if k > 0 else r"-") + rf"\frac{{{abs(k)}}}{{2}}" # k halves, as a signed fraction
cw, ch = 1.3, 1.0
for i, ml in enumerate((1, 0, -1)):
ax.text(i * cw + cw / 2, 2 * ch + 0.28, rf"$m_l = {ml:+d}$" if ml else r"$m_l = 0$", ha="center", va="center", fontsize=14, color=PURPLE)
for j, ms2 in enumerate((1, -1)): # ms2 = 2 m_s
x0, y0 = i * cw, (1 - j) * ch
mj2 = 2 * ml + ms2 # 2 m_j
if abs(mj2) == 3: # m_j = +-3/2 occurs once: it belongs to j = 3/2
ax.add_patch(Rectangle((x0, y0), cw, ch, fc=PURPLE, alpha=0.75, lw=0))
else: # m_j = +-1/2 occurs twice: shared between j = 3/2 and j = 1/2
ax.add_patch(Polygon([[x0, y0], [x0 + cw, y0 + ch], [x0, y0 + ch]], fc=PURPLE, alpha=0.75, lw=0))
ax.add_patch(Polygon([[x0, y0], [x0 + cw, y0], [x0 + cw, y0 + ch]], fc=LIGHT, alpha=0.9, lw=0))
ax.add_patch(Rectangle((x0, y0), cw, ch, fill=False, ec="white", lw=3))
ax.text(x0 + cw / 2, y0 + ch / 2, rf"${frac(mj2)}$", ha="center", va="center", fontsize=19, color="white", weight="bold")
for j, (ms2, col) in enumerate(((1, TEAL), (-1, ORANGE))):
ax.text(-0.15, (1 - j) * ch + ch / 2, rf"$m_s = {frac(ms2)}$", ha="right", va="center", fontsize=14, color=col)
ax.text(1.5 * cw, -0.32, r"$m_j = m_l + m_s$", ha="center", va="center", fontsize=14, color="#343a40")
ax.set_xlim(-1.75, 3 * cw + 0.2); ax.set_ylim(-0.75, 2.75); ax.axis("off")
# the same six states as two ladders
for xc, j2, col in ((0.0, 3, PURPLE), (1.9, 1, LIGHT)):
for mj2 in range(-j2, j2 + 1, 2):
bx.plot([xc - 0.6, xc + 0.6], [mj2 / 2, mj2 / 2], color=col, lw=5, solid_capstyle="butt")
bx.text(xc, 2.05, rf"$j = \frac{{{j2}}}{{2}}$", ha="center", va="center", fontsize=16, color=PURPLE if j2 == 3 else "#8566c2")
for mj2 in (3, 1, -1, -3):
bx.text(-0.85, mj2 / 2, rf"${frac(mj2)}$", ha="right", va="center", fontsize=14.5, color="#343a40")
bx.text(-1.05, 2.05, r"$m_j$", ha="right", va="center", fontsize=15, color="#343a40")
bx.set_xlim(-2.2, 2.9); bx.set_ylim(-2.25, 2.55); bx.axis("off")
fig.subplots_adjust(left=0.0, right=1.0, top=1.0, bottom=0.0)
plt.show()
Fig. Left: the six states of a p electron sorted by and ; each box shows . Right: the same six values of form a ladder of four () and a ladder of two ().
The largest is , and it occurs once. A ladder that reaches has , and it uses one state at each of .
What is left is one state at and one at : a ladder with .
. The same six states, regrouped: a change of axes within the level, like the step from to , in Lecture 5.2. In general , the two ladders and .
The corner boxes are single products, for example for . The split boxes are shared: the state with , is , a superposition in which neither nor is sharp but their sum is.
Fine structure and term symbols¶
The levels are named by a term symbol,
where is the capital letter of (S, P, D, F for ), the superscript counts the orientations of the spin (read “doublet”), and the subscript is . Mind the letter S: in it means , not spin.
| electron | levels | states, | ||
|---|---|---|---|---|
| s | 0 | 2 | 0 | |
| p | 1 | , | 2, 4 | , |
| d | 2 | , | 4, 6 | , |
| f | 3 | , | 6, 8 | , |
For atoms with several electrons the same symbol is built from the total spin and total orbital angular momentum (Lecture 7.3).
Source
# synced: fine_structure
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
LIGHT = "#b9a3dc"
fig, (ax, bx) = plt.subplots(1, 2, figsize=(9.6, 3.3), gridspec_kw={"width_ratios": [1.15, 1], "wspace": 0.12})
w, g = 0.2, 0.06 # one bar per state, as in the hydrogen ladder of 5.1
bars = lambda xc, E, k, col: [ax.plot([xc - 0.5 * (k * w + (k - 1) * g) + i * (w + g), xc - 0.5 * (k * w + (k - 1) * g) + i * (w + g) + w],
[E, E], color=col, lw=5, solid_capstyle="butt") for i in range(k)]
bars(1.0, 0.0, 6, PURPLE)
bars(3.6, 0.5, 4, PURPLE)
bars(3.6, -1.0, 2, LIGHT)
for E in (0.5, -1.0):
ax.plot([1.85, 2.9], [0, E], color="#adb5bd", lw=1.1, ls=(0, (4, 3)))
ax.text(1.0, 0.24, r"$n$p", ha="center", va="bottom", fontsize=15, color=PURPLE)
ax.text(4.25, 0.5, r"$^2$P$_{3/2}$", ha="left", va="center", fontsize=15, color=PURPLE)
ax.text(4.25, -1.0, r"$^2$P$_{1/2}$", ha="left", va="center", fontsize=15, color="#8566c2")
ax.text(5.35, 0.5, r"$+\frac{1}{2}A$", ha="left", va="center", fontsize=15, color="#343a40")
ax.text(5.35, -1.0, r"$-A$", ha="left", va="center", fontsize=15, color="#343a40")
ax.annotate("", xy=(3.6, 0.42), xytext=(3.6, -0.92), arrowprops=dict(arrowstyle="<|-|>", color=GRAY, lw=1.3, mutation_scale=12, shrinkA=0, shrinkB=0))
ax.text(3.72, -0.25, r"$\frac{3}{2}A$", ha="left", va="center", fontsize=15, color=GRAY)
ax.text(1.0, 1.25, "no coupling", ha="center", va="center", fontsize=13, color=GRAY)
ax.text(3.9, 1.25, "spin-orbit coupling", ha="center", va="center", fontsize=13, color=GRAY)
ax.set_xlim(0.0, 6.4); ax.set_ylim(-1.6, 1.55); ax.axis("off")
# the sodium D lines, as in a spectroscope (wavelengths in air)
bx.set_facecolor("#111111"); bx.set_yticks([])
for sp in bx.spines.values():
sp.set_color("#444444")
D2, D1 = 588.995, 589.592
for x, name in ((D2, r"D$_2$"), (D1, r"D$_1$")):
bx.vlines(x, 0, 1, color="#ffd43b", lw=3.2, zorder=2)
bx.text(x, 1.06, name, ha="center", va="bottom", fontsize=14)
bx.annotate("", xy=(D1, 0.5), xytext=(D2, 0.5), arrowprops=dict(arrowstyle="<->", color="white", lw=1.2, shrinkA=3, shrinkB=3))
bx.text(0.5 * (D1 + D2), 0.57, f"{D1 - D2:.2f} nm", ha="center", va="bottom", fontsize=12.5, color="white")
bx.set_xlim(588.5, 590.1); bx.set_ylim(0, 1)
bx.set_xticks([588.6, 589.0, 589.4, 589.8]); bx.tick_params(labelsize=11)
bx.set_xlabel("wavelength (nm), sodium", fontsize=12)
fig.subplots_adjust(left=0.0, right=0.98, top=0.88, bottom=0.17)
bx.set_position([0.57, 0.27, 0.4, 0.5])
plt.show()
Fig. Left: spin-orbit coupling splits the six states of a p level into (four states) and (two). Right: the yellow line of sodium is two lines 0.60 nm apart.
Sodium’s yellow light is . The upper level is split and the lower one is not, so there are two lines: D from at 588.995 nm and D from at 589.592 nm.
In hydrogen the splitting is fine indeed. The 2p level splits by 0.365 cm, or eV, the “10-4 eV” promised in Lecture 5.1. It turns H into a doublet 0.014 nm wide, ten times closer than the hydrogen and deuterium pair.
It grows steeply with the nuclear charge: as for hydrogenlike ions, and down a group of the periodic table.
| atom | level | lines (nm) | doublet splitting (cm) |
|---|---|---|---|
| Li | 2p | 670.78, 670.79 | 0.34 |
| Na | 3p | 589.00, 589.59 | 17.2 |
| K | 4p | 766.49, 769.90 | 57.7 |
| Rb | 5p | 780.03, 794.76 | 237.6 |
| Cs | 6p | 852.11, 894.35 | 554.0 |
In heavy atoms spin-orbit coupling is chemistry. It reaches tenths of an eV, lets states of different total spin mix, and with that opens the “spin-forbidden” paths of photochemistry: phosphorescence and intersystem crossing are faster when a heavy atom is near.
Going further: hydrogen’s fine structure, exactly
For a hydrogenlike atom the average of (the radial averages of Lecture 5.1) gives the coupling constant in closed form,
where is the fine-structure constant , the speed of the electron in hydrogen’s ground state as a fraction of the speed of light. For 2p, eV, and the splitting is eV cm GHz.
Two more relativistic corrections have the same size (the mass of a fast electron grows, and a term that acts only on s states). Added together, the three give a simple result, the one Dirac’s equation also gives:
The energy depends on and , not on : and coincide, and lies 0.365 cm above them. In 1947 Willis Lamb and Robert Retherford found that in fact lies 1058 MHz (0.035 cm) above . This Lamb shift was the starting point of quantum electrodynamics. Smaller again is the hyperfine structure, the coupling of the electron’s moment to the proton’s (Problem 7).
Weak field or strong field¶
Now put the atom, spin-orbit coupling included, into a magnetic field. Two magnetic energies compete, the internal one of size and the external one of size (with rounded to 2):
The two added terms do not commute with each other, so no single set of labels fits every field. For a p level, though, the whole problem is a matrix, and its eigenvalues can be followed from one limit to the other:
Source
# synced: zeeman_crossover
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
plt.rcParams.update({"axes.spines.top": False, "axes.spines.right": False})
LIGHT = "#b9a3dc"
Lz = np.diag([1.0, 0.0, -1.0]) # l = 1 in the basis m_l = +1, 0, -1
Lp = np.sqrt(2) * np.diag([1.0, 1.0], 1) # L+ raises m_l
Sz = np.diag([0.5, -0.5]) # s = 1/2 in the basis alpha, beta
Sp = np.diag([1.0], 1) # S+ turns beta into alpha
LS = np.kron(Lz, Sz) + 0.5 * (np.kron(Lp, Sp.T) + np.kron(Lp.T, Sp)) # L.S = Lz Sz + (L+ S- + L- S+)/2, units of hbar^2
Zm = np.kron(Lz, np.eye(2)) + 2 * np.kron(np.eye(3), Sz) # Lz + 2 Sz
mj2 = np.rint(2 * np.diag(np.kron(Lz, np.eye(2)) + np.kron(np.eye(3), Sz))).astype(int)
b = np.linspace(0, 3, 301) # mu_B B / A
fig, ax = plt.subplots(figsize=(8.6, 4.6))
ax.axvspan(0, 0.35, color="#f1f3f5", lw=0, zorder=0)
for k in (3, 1, -1, -3): # m_j stays sharp at every field: diagonalize block by block
idx = np.where(mj2 == k)[0]
E = np.array([np.linalg.eigvalsh((LS + x * Zm)[np.ix_(idx, idx)]) for x in b])
for c in range(len(idx)):
upper = len(idx) == 1 or c == 1 # the branch that starts in j = 3/2
ax.plot(b, E[:, c], color=PURPLE if upper else LIGHT, lw=2.6)
for y, lab, col in ((0.5, r"$^2$P$_{3/2}$", PURPLE), (-1.0, r"$^2$P$_{1/2}$", "#8566c2")):
ax.text(-0.07, y, lab, ha="right", va="center", fontsize=17, color=col)
ends = [(6.5, "+2"), (3.14, "+1"), (-0.47, r"0, 0"), (-3.19, "-1"), (-5.5, "-2")]
for y, lab in ends:
ax.text(3.07, y, rf"${lab}$", ha="left", va="center", fontsize=17, color="#343a40")
ax.text(3.07, 7.6, r"$m_l + 2m_s$", ha="left", va="center", fontsize=16.5, color="#343a40")
ax.text(0.175, 7.6, "weak", ha="center", va="center", fontsize=15, color=GRAY)
ax.text(2.4, 7.6, "strong field", ha="center", va="center", fontsize=15, color=GRAY)
ax.set_xlim(0, 3); ax.set_ylim(-6.3, 8.2)
ax.set_xlabel(r"magnetic field, $\mu_BB/A$", fontsize=14.5); ax.set_ylabel(r"energy / $A$", fontsize=14.5)
ax.set_yticks([-4, -2, 0, 2, 4, 6]); ax.tick_params(labelsize=12.5)
ax.spines["left"].set_position(("outward", 74)); ax.spines["left"].set_bounds(-6, 6.5)
fig.subplots_adjust(left=0.2, right=0.85, top=0.98, bottom=0.15)
plt.show()
Fig. The six states of a p level in a magnetic field. Energies are in units of the spin-orbit constant , and the field is given as . Dark: the states that start in . Light: those that start in .
Weak field, . The internal coupling wins. and stay locked into , and the field splits each level into its states of different : four from , two from . The states of one level are evenly spaced, but the spacing differs from level to level, so a spectral line breaks into many components with unequal gaps. This is the anomalous Zeeman effect. It was anomalous only as long as spin was unknown.
Strong field, . The external field wins. and each line up with it on their own, and are sharp again, and : five levels for a p electron. Because light does not flip the spin, the spin part of the shift is the same before and after a transition, and the lines form the normal triplet again.
In between only is sharp. The curves bend, and two states with the same repel each other instead of crossing.
Which is which? at 0.5 T for hydrogen’s 2p level and at 25 T for sodium’s 3p. A 1 T laboratory magnet is a strong field for hydrogen and a weak one for sodium.
Going further: the Landé factor, and the matrix behind the figure
Weak field. The energies are with the Landé factor
| level | |||||
|---|---|---|---|---|---|
| 2 |
It lies between the orbital value 1 and the spin value 2. The field couples to ; in a state of sharp the first part gives , and the second gives the part of that lies along , which the squaring trick supplies: .
The matrix. The six product states are the basis. np.kron(A, B) builds the matrix of “operator on the orbit, operator on the spin”, and with the raising and lowering operators of Lecture 4.4:
import numpy as np
# l = 1 in the basis m_l = +1, 0, -1; s = 1/2 in the basis alpha, beta (units of hbar)
Lz = np.diag([1.0, 0, -1])
Lp = np.sqrt(2) * np.diag([1.0, 1.0], 1) # L+ raises m_l
Sz = np.diag([0.5, -0.5])
Sp = np.diag([1.0], 1) # S+ turns beta into alpha
LS = np.kron(Lz, Sz) + 0.5 * (np.kron(Lp, Sp.T) + np.kron(Lp.T, Sp))
field = np.kron(Lz, np.eye(2)) + 2 * np.kron(np.eye(3), Sz) # Lz + 2 Sz
for b in (0, 0.1, 10): # b = mu_B B / A
print(b, np.linalg.eigvalsh(LS + b * field).round(2))
# 0 [-1. -1. 0.5 0.5 0.5 0.5 ]
# 0.1 [-1.03 -0.97 0.3 0.43 0.57 0.7 ]
# 10 [-19.5 -10.05 -0.55 -0.45 10.05 20.5]At zero field the eigenvalues are -1 twice and four times, the box above for . In the weak field () the levels are evenly spaced within each group, by : and . In the strong field () they approach .
Which transitions light can drive¶
The electric field of light acts on the electron’s position, as it acted on a bond’s dipole in Lectures 4.3 and 4.5. A transition between two states is allowed only if the transition dipole is not zero (Lecture 6.3), and for the states of a one-electron atom the integral over the angles decides:
Source
# synced: hydrogen_grotrian
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.display import HTML
TEAL, CARDINAL, GRAY, PURPLE, ORANGE = "#107895", "#C8102E", "#6c757d", "#6a3d9a", "#e07b00"
fig, ax = plt.subplots(figsize=(8.0, 4.6))
cols = {0: TEAL, 1: PURPLE, 2: ORANGE}
xc = {0: 0.0, 1: 2.0, 2: 4.0}
lev = {1: -13.6, 2: -6.0, 3: -2.0} # schematic heights
w = 0.5
for n in range(1, 4):
for l in range(n):
ax.plot([xc[l] - w, xc[l] + w], [lev[n], lev[n]], color=cols[l], lw=3.6, solid_capstyle="butt", zorder=3)
ax.text(xc[l] + w + 0.08, lev[n], f"{n}{'spd'[l]}", va="center", fontsize=16, color=cols[l])
ax.text(-1.0, lev[n], rf"$n = {n}$", ha="right", va="center", fontsize=16, color="#343a40")
# allowed lines: (upper n, l, where on its bar) to (lower n, l, where on its bar); every one joins neighbouring columns
allowed = [((2, 1, -0.4), (1, 0, 0.2)), ((3, 1, -0.1), (1, 0, 0.45)),
((3, 0, 0.3), (2, 1, -0.15)), ((3, 1, -0.35), (2, 0, 0.3)), ((3, 2, -0.3), (2, 1, 0.3))]
for (n1, l1, d1), (n2, l2, d2) in allowed:
ax.annotate("", xy=(xc[l2] + d2, lev[n2]), xytext=(xc[l1] + d1, lev[n1]), zorder=2,
arrowprops=dict(arrowstyle="-|>", color="#495057", lw=1.7, mutation_scale=13, shrinkA=0, shrinkB=1))
# forbidden: 2s to 1s (l does not change) and 3d to 1s (l changes by two)
for (n1, l1, d1), (n2, l2, d2), where in (((2, 0, -0.3), (1, 0, -0.3), 0.5), ((3, 2, 0.45), (1, 0, 0.5), 0.62)):
p1, p2 = np.array([xc[l1] + d1, lev[n1]]), np.array([xc[l2] + d2, lev[n2]])
ax.plot([p1[0], p2[0]], [p1[1], p2[1]], color="#adb5bd", lw=1.6, ls=(0, (4, 3)), zorder=1)
pm = p1 + where * (p2 - p1)
for sg in (1, -1):
ax.plot([pm[0] - 0.13, pm[0] + 0.13], [pm[1] - sg * 0.48, pm[1] + sg * 0.48], color=CARDINAL, lw=2.8, solid_capstyle="round", zorder=4)
for l in range(3):
ax.text(xc[l], 1.3, "spd"[l], ha="center", va="center", fontsize=19, color=cols[l], weight="bold")
ax.text(xc[l], 0.2, rf"$l = {l}$", ha="center", va="center", fontsize=15, color=cols[l])
ax.set_xlim(-2.0, 5.3); ax.set_ylim(-14.5, 2.0); ax.axis("off")
fig.subplots_adjust(left=0.0, right=1.0, top=1.0, bottom=0.0)
plt.show()
Fig. The levels of hydrogen sorted into columns by . Arrows: allowed lines, each joining neighbouring columns. Dashed and crossed: forbidden, 2s to 1s () and 3d to 1s ().
Every line moves one column. The Lyman lines are . The Balmer line H () is three transitions at once, , and , which coincide in hydrogen because the energy does not depend on .
Why one unit. , and contains only and , the fact that gave for the rotor in Lecture 4.5. Parity says the same in the manner of Lecture 4.2: is odd, has parity , so must change by an odd number.
The rule made the Zeeman triplet: for light polarized along the field, for the two circular polarizations.
An excited atom can only fall along the arrows.
Orbital and spin angular momentum, side by side¶
| orbital | spin | |
|---|---|---|
| operators | , with | , three matrices |
| quantum numbers | and | always, and |
| states | , functions of direction | and , two-component vectors |
| length | ||
| component | ||
| magnetic moment | , | |
| origin | motion in space; in the Schrödinger equation | intrinsic; from Dirac’s equation |
| together | , , |
Spin doubles every orbital and gives the electron a second magnetic moment. A field separates the and states; inside the atom the two moments couple into and split the levels with .
Two electrons bring something new: their spins combine into singlets and triplets, and the Pauli principle limits which combinations exist. Chapter 7 starts there, after Chapter 6 supplies the approximation methods that atoms with more than one electron need.
Problems¶
Problem 1: Why NMR needs a big magnet¶
A proton has , and the nuclear magneton is J/T. (a) Find the frequency that flips a proton spin in a 9.4 T magnet. (b) At 298 K, how many more protons per million are in the lower spin state than in the upper one? (c) Repeat (b) for an electron spin at 0.34 T. (d) Why do NMR spectroscopists pay for ever stronger magnets?
Solution
(a) The two states are apart:
(b) J and J, so . The Boltzmann ratio is , and the excess as a fraction of all spins is
32 protons in a million. The rest cancel in pairs: for every spin that absorbs a photon, another emits one.
(c) For the electron J, , and the excess is : 770 per million, 24 times better than NMR although the magnet is 28 times weaker.
(d) The net signal comes from the excess, which grows in proportion to , and each photon carries an energy that also grows with . A stronger magnet also spreads the chemical shifts over more hertz, so crowded spectra come apart. NMR is an insensitive technique because the nuclear magneton is small, and field is the remedy.
Problem 2: The magnetic field of a sunspot¶
In 1908 George Ellery Hale found that spectral lines from sunspots are split, and used the Zeeman effect to measure a magnetic field beyond the Earth for the first time. An iron line at 630.25 nm splits into three components shifted by 0 and , with for this line. In a large sunspot each outer component lies 0.014 nm from the center. (a) Find the field. (b) Compare it with the Earth’s field, T. (c) A spectrograph has a resolving power . What is the weakest field whose splitting it can resolve with this line?
Problem 3: A spin pointing at an angle¶
Consider the spin state . (a) Show that it is normalized. (b) What are the probabilities of the two readings of ? (c) Find , and , and say in which direction the spin points on average. (d) Show that is an eigenvector of the spin component along that direction, . (e) A beam prepared in enters a Stern-Gerlach magnet tilted by from . What fraction comes out ? Check 0°, 90°, 180° and 60° against the widget.
Solution
(a) .
(b) and .
(c) With and :
and . The averages are the components of an arrow of length in the plane, tilted by from the axis.
(d) Row times column, then the formulas for the cosine and sine of a difference:
is “spin up along the tilted axis”. For it is .
(e) The magnet measures , and the probability of its reading is the squared component of along : . That gives 1 at 0°, at 90°, 0 at 180° and at 60°. The half angle is the mark of spin : the state orthogonal to “up” is reached by turning the axis through 180°, not 90°.
Problem 4: The third component¶
(a) Find the eigenvalues and the normalized eigenvectors of . (b) An electron is in . What are the probabilities of the two readings of ? (c) The same for an electron in . (d) Multiply the matrices to verify and times the unit matrix. (e) For the state evaluate both sides of the general uncertainty relation of Lecture 3.6, . What is special about the result?
Problem 5: How strong is the magnet inside an atom?¶
The spin-orbit splitting of a p level can be read as the energy needed to turn the spin moment over in an internal magnetic field, . (a) Estimate for hydrogen’s 2p level, which is split by 0.365 cm. (b) Do the same for sodium’s 3p level (17.2 cm) and caesium’s 6p level (554 cm). (c) For which of hydrogen and sodium is a 1 T laboratory magnet a “weak” field, and what does each atom’s spectrum show in it?
Solution
(a) With cm/T:
(b) Sodium: T. Caesium: T. The strongest steady laboratory magnets reach about 45 T, so the outer electron of a heavy atom lives in a field that no laboratory can supply.
(c) A field is weak when is small compared with the spin-orbit splitting, that is when . For sodium 1 T is weak (): and label the states, and the D lines show the anomalous Zeeman pattern. For hydrogen 1 T is already larger than the internal 0.4 T: and are nearly sharp, and the lines are close to the normal triplet. The same magnet puts the two atoms at opposite ends of the figure in “Weak field or strong field”.
Problem 6: The heavier alkali metals¶
Potassium’s doublet lies at 766.49 and 769.90 nm, and caesium’s doublet at 852.11 and 894.35 nm. (a) For each atom find the splitting of the p level in cm and in meV, and the coupling constant . (b) Which line of each pair starts from ? (c) Compare with lithium (0.34 cm) and sodium (17.2 cm), and explain in a sentence or two why the splitting grows down the group although the outer electron always sees a net charge of about +1 from far away. (d) At 300 K, cm. For which of these atoms would both levels of the excited p state be populated about equally in a flame?
Problem 7: The 21 cm line¶
The proton has spin . In the ground state of hydrogen the magnetic moments of the proton and the electron are coupled by a term , the hyperfine interaction, of the same form as spin-orbit coupling. The total angular momentum is . (a) What values can take, and how many states does each have? (b) Find the energy of each level in terms of . (c) The measured gap is 1420.406 MHz. Find the wavelength and the photon energy, and compare the energy with the fine structure of 2p. (d) In an interstellar cloud at 100 K, what fraction of the hydrogen atoms is in the upper level?
Solution
(a) Two spins add like and : or . has three states () and has one: .
(b) The squaring trick again, :
The gap is , and the center does not move: .
(c) m cm, and eV. The fine structure of 2p is eV, eight times larger: the proton’s moment is far weaker than the electron’s.
(d) eV at 100 K, 1500 times the gap, so the Boltzmann factor is 1 and the populations follow the number of states, 3 to 1: three quarters of the atoms are in . An atom in radiates only about once in 107 years, but there is so much hydrogen between the stars that the line, first detected in 1951, maps the spiral arms of the galaxy.
Problem 8: Counting lines¶
(a) List the levels of hydrogen with by term symbol, with the number of states in each, and check that they add up to . (b) Which of these transitions are allowed: , , , , , ? (c) H is . Using and , list every allowed transition between the fine-structure levels, in the form . How many are there? (d) Which rule forbids ?