Level 8 · Quantum Physics Foundations
Spin and the Stern–Gerlach Experiment
About 4,393 words · roughly 20 minute read · sources checked December 2, 2026
Spin is the quantum property that most directly becomes a qubit. It is a kind of intrinsic angular momentum, and it is peculiar in two ways: a measurement along any chosen axis gives only two possible results, and measurements along different axes interfere with each other. Both facts appear clearly in the Stern–Gerlach experiment.
This lesson describes the experiment, shows what happens when several such measurements are chained, derives the probability rule P = cos²(θ/2) as a table of numbers, computes how a series of small steps can rotate a spin with high probability, and links spin to magnetic resonance and to the qubit picture used in the rest of the course.
Numbers are computed with SciPy’s CODATA constants. The historical details of the 1922 experiment are background, which I give without having opened a source for this lesson.
What you will learn
- What a Stern–Gerlach apparatus does and why it gives two spots rather than a smear.
- What sequential measurements along different axes show, and the 1/4 result.
- The rule P = cos²(θ/2) for measuring along an axis tilted by θ.
- How a chain of small rotations can steer a spin, with computed probabilities.
- The resonance frequencies of electron and proton spins in a magnetic field, and a link to MRI.
- How all of this maps onto the Bloch-sphere picture of a qubit.
Helpful first: What Is Quantum Mechanics?, The Uncertainty Principle.
The experiment
A particle with spin behaves like a tiny magnet. In a magnetic field that changes strongly with position, such a magnet is pushed by a force that depends on how it is oriented. In the Stern–Gerlach experiment (carried out in 1922, as background), a beam of atoms passes through such a field and lands on a screen.
If the little magnets could point in any direction, the force would vary continuously and the beam would smear into a line. What was seen is two separate spots. For a spin-½ particle, the measurement along the field’s axis gives only two results, conventionally called “up” and “down”, and each atom lands in one of two places.
The key fact
For a spin-½ particle, a measurement along any axis you choose gives one of exactly two outcomes. The axis is your choice, but the number of outcomes is always two.
Chaining measurements
Now put apparatus in sequence and keep only some beams. Let Z be the vertical axis and X the horizontal one.
- Pass atoms through a Z-measurement, and keep only the “up” beam. All remaining atoms are up along Z.
- Pass this beam through an X-measurement. It splits into two beams, “right” and “left”, with half the atoms in each. Keep only “right”.
- Pass the “right” beam through a second Z-measurement. A classical magnet that was up would remain up. Here, the beam splits again, half up and half down.
| Stage | Fraction of the original atoms left |
|---|---|
| After first Z filter (keep up) | 1/2 of the source, or all of this beam |
| After X filter (keep right) | 1/2 of the beam |
| After second Z, outcome up | 1/2 of those, so 1/4 of the beam |
The 1/4: of the atoms that were up along Z, a quarter are still up along Z after a detour through X.
Without the middle X filter, every atom that passed the first Z filter as “up” would also pass a second Z filter as “up”, so the fraction is 1, not 1/4. The middle measurement erased the earlier information. This is the uncertainty relation of the previous lesson seen in an experiment: the state cannot be sharp along both Z and X, so forcing it to be sharp along X makes Z random again.
The probability rule for a tilted axis
Suppose a spin is “up” along an axis and you measure along an axis tilted by an angle θ from it. The probability of “up” along the new axis is
P(up) = cos²(θ / 2), P(down) = sin²(θ / 2)
| Angle θ between axes | P(same direction) | Comment |
|---|---|---|
| 0° | 1.000 | Same axis: certain |
| 60° | 0.750 | cos²(30°) |
| 90° | 0.500 | Perpendicular axes: a coin flip, as in the X-then-Z example |
| 180° | 0.000 | Opposite axis: certain to get the opposite |
Computed from cos²(θ/2). Note the half angle, which is characteristic of spin-½.
The half-angle is the same factor that appears on the Bloch sphere: a qubit state at polar angle θ is cos(θ/2)|0⟩ + e^(iφ) sin(θ/2)|1⟩. A spin pointing along some direction on the sphere is exactly such a state, which is why the spin-½ particle is the model for the qubit.
How the apparatus works: a force on a tiny magnet
It helps to see why the beam splits at all. A magnetic moment μ in a magnetic field has energy −μ·B. If the field changes with position, there is a force on the moment equal to the gradient of this energy, so the component along the field direction is F = μz · dB/dz. The two possible values of μz for a spin-½ particle, plus and minus, give two forces of opposite sign, and so two beams.
Worked example
An illustrative deflection
- Take a moment of one Bohr magneton, μ = 9.274 × 10⁻²⁴ J/T, a field gradient of 10⁴ T/m (10 T per millimetre), a silver atom of mass 107.87 u = 1.79 × 10⁻²⁵ kg, a speed of 500 m/s and a magnet 3.5 cm long. These are values I chose for illustration, not the numbers of the 1922 apparatus.
- The force is F = 9.274 × 10⁻²⁴ × 10⁴ = 9.27 × 10⁻²⁰ N, so the acceleration is a = F/m = 5.2 × 10⁵ m/s².
- The atom spends t = 0.035 / 500 = 7.0 × 10⁻⁵ s in the magnet, so it is deflected by ½ a t² = 1.27 mm up or down.
- The two beams therefore end about 2.5 mm apart. A millimetre-scale separation is easy to see, which is why a purely quantum effect could be seen with a tabletop instrument.
The important point is not the size of the deflection but the number of spots. A classical magnet could have any value of μz between −μ and +μ and the beam would smear over the whole range. A beam that lands in just two places says that only two values of μz occur.
Spin is not a spinning ball
If the electron were a tiny ball spinning like a top, its surface speed would have to exceed the speed of light to reproduce its measured magnetic moment, according to the usual textbook argument (background, not looked up here). Spin is best regarded as an intrinsic property with the mathematics of angular momentum, not as literal rotation.
The mathematics: states, operators, and the cos⁴ rule
A spin-½ state is a two-component vector. Measuring along z has the two outcomes |↑⟩ = (1, 0) and |↓⟩ = (0, 1), with spin values +ħ/2 and −ħ/2. Measuring along x uses the states |→⟩ = (1, 1)/√2 and |←⟩ = (1, −1)/√2. The operators are the Pauli matrices times ħ/2.
A state pointing along a direction at polar angle θ and azimuth φ is cos(θ/2)|↑⟩ + e^(iφ) sin(θ/2)|↓⟩, the Bloch-sphere formula. The probability of finding it “up” along z is cos²(θ/2), which is the rule from the previous section, now with its source visible.
The three-filter experiment generalises. Prepare up along z, pass through a filter along an axis at angle θ from z, keeping the “up” outcome, then measure along z again. The first step has probability cos²(θ/2). The second step is the same geometry in reverse, also cos²(θ/2). So the overall fraction is cos⁴(θ/2).
| Angle θ of the middle filter | cos²(θ/2) per step | Fraction that finally exit up along z |
|---|---|---|
| 0° | 1.000 | 1.000 |
| 30° | 0.933 | 0.871 |
| 45° | 0.854 | 0.729 |
| 60° | 0.750 | 0.563 |
| 90° | 0.500 | 0.250 |
| 120° | 0.250 | 0.0625 |
| 150° | 0.067 | 0.0045 |
| 180° | 0.000 | 0.000 |
Computed from cos⁴(θ/2). The 90° row is the 1/4 result of the earlier section. A tilt of 45° passes 73%.
There is a striking comparison. At 0° the middle filter is harmless and every atom gets through. At 180° the middle filter is the opposite of the original and the answer is zero. At 90° you lose three quarters of the beam. It is not that the middle filter “blocks” atoms in any ordinary sense; it re-prepares the state in a new direction, and the final measurement is against the original direction.
Spin and the structure of matter
Spin-½ has a consequence that shapes the whole periodic table. Electrons are particles of this kind, and the Pauli exclusion principle (background) says no two of them can occupy exactly the same state. Each orbital has room for one spin-up and one spin-down electron, and so for two electrons in all.
For hydrogen-like atoms, the number of orbitals in shell n is n², so the number of electrons that fit in shell n is 2n².
| Shell n | Orbitals (n²) | Electrons that fit (2n²) |
|---|---|---|
| 1 | 1 | 2 |
| 2 | 4 | 8 |
| 3 | 9 | 18 |
| 4 | 16 | 32 |
Computed from 2n². These numbers, 2, 8, 18 and 32, are the same as the row lengths one gets by counting the filling of shells in the periodic table, with the usual caveat that real atoms fill subshells in a more complex order (background).
The ‘two’ in 2n² is the two outcomes of a spin-½ measurement. Without spin, each orbital would hold one electron, the shells would fill twice as slowly, and chemistry would look entirely different. So the two-outcome nature of spin is more than an abstract qubit property: it is the reason atoms have the structure they do.
Steering a spin with many small steps
Going straight from an up-spin to a measurement along a perpendicular axis gives a probability of only ½. But you can reach the same target more reliably by tilting the measurement axis in N small steps, each by 90°/N, and keeping only the “same direction” outcome at each stage. Each step succeeds with probability cos²(45°/N), and all N steps must succeed.
| Steps N | Step angle | Total success probability |
|---|---|---|
| 1 | 90° | 0.500 |
| 2 | 45° | 0.729 |
| 5 | 18° | 0.883 |
| 10 | 9° | 0.940 |
| 100 | 0.9° | 0.994 |
Computed as [cos²(45°/N)]^N. As N grows the probability approaches 1.
This is a clean example of a general fact about quantum measurement: many weak, gentle steps can change a state far more reliably than one abrupt step, and repeated measurement can hold or steer a state. The same arithmetic appears in the quantum Zeno effect, which I mention without further claims, and in how gradual rotations of a qubit are implemented as sequences of small gate pulses.
Spins in magnetic fields: resonance and MRI
A spin in a magnetic field B has two energy levels, and the gap between them corresponds to a frequency f proportional to B. Radiation at that frequency flips the spin, a process called magnetic resonance. This is how spins are controlled in many qubit designs and how MRI works.
| Spin | Frequency per tesla | At 3 T |
|---|---|---|
| Electron (free) | 28.02 GHz/T | about 84 GHz |
| Proton (hydrogen nucleus) | 42.577 MHz/T | 127.7 MHz |
Computed from CODATA values in SciPy: electron g-factor 2.00232 times the Bohr magneton, and the proton gyromagnetic ratio.
Worked example
Proton resonance in a 3 T MRI scanner
- A 3 tesla scanner holds the hydrogen nuclei (protons) of the body in a strong field.
- f = 42.577 MHz/T × 3 T = 127.7 MHz.
- The vacuum wavelength of a 127.7 MHz wave is c / f = 299,792,458 / 127.7 × 10⁶ = 2.35 m.
- This radio frequency pulse flips the spins, and the signal they emit as they relax is what MRI images are built from. I give this as an illustration of the spin frequencies, and not as a description of scanner engineering.
Notice the difference in scale. Electron spin frequencies at a few tesla are in the tens of gigahertz, in the microwave range, while proton frequencies are in the radio range. Because the nucleus is thousands of times heavier, its magnetic moment is much smaller.
From spin to qubit
- The two outcomes of a spin-½ measurement are the two basis states |0⟩ and |1⟩ of a qubit.
- Measuring along a different axis is measuring in a different basis. The probabilities cos²(θ/2) are what you get when you apply a rotation before a standard measurement.
- Sequential measurement, as in the 1/4 example, is the reason a measurement in the middle of a circuit changes what later measurements show.
- Single-spin qubits (electron spins in quantum dots, nuclear spins, nitrogen-vacancy centres) are controlled by the resonance mechanism above.
You do not need to believe spin is literal rotation to use any of this. For computing, a spin-½ is simply the best-understood physical system with exactly two outcomes per measurement axis and with a smooth set of axes.
Flipping a spin on purpose: Rabi oscillations
A spin in a steady field B along z has two energy levels. Now add a weak oscillating field at the matching frequency, perpendicular to z. The spin does not simply flip once; its probability of being found flipped oscillates smoothly in time, a pattern called Rabi oscillation. If the oscillating field’s strength gives a Rabi frequency Ω, then at exact resonance
P(flipped) = sin²(Ω t / 2)
Worked example
A π-pulse for a 10 MHz Rabi frequency
- Let Ω = 2π × 10 MHz, a value typical of the order of magnitude for spin and superconducting qubit control (an illustrative choice).
- A full flip needs Ωt/2 = π/2, so t = π/Ω = 1 / (2 × 10 MHz) = 50 ns.
- This is the π-pulse, the operation that turns |0⟩ into |1⟩ (an X gate). A pulse half as long, a π/2-pulse of 25 ns, puts the spin in an equal superposition, which is the Hadamard-like step that starts most algorithms.
If the oscillating field is slightly off resonance by a detuning Δ, the oscillation gets faster but incomplete. The maximum flip probability is Ω² / (Ω² + Δ²).
| Detuning Δ (in units of Ω) | Maximum flip probability |
|---|---|
| 0 | 1.00 |
| 0.5 | 0.80 |
| 1 | 0.50 |
| 2 | 0.20 |
| 5 | 0.038 |
Computed from Ω²/(Ω² + Δ²). A detuning equal to the Rabi frequency already halves the achievable flip.
The table is the reason qubit control hardware needs precisely tuned frequencies: a 10 MHz Rabi drive that is 10 MHz off resonance flips only half the time at best. It is also the basis of selectivity. Two qubits with frequencies differing by more than a few times Ω can be addressed independently, because the drive is nearly ineffective on the other.
Two spins: correlations along any axis
The most important use of spin in this course is with two particles. Prepare two spin-½ particles in the singlet state, (|↑↓⟩ − |↓↑⟩)/√2. If both spins are measured along the same axis, the results are always opposite: one is up and the other down, though each on its own is a coin flip. If they are measured along axes that differ by an angle θ, the correlation, defined as the average of the product of the two results (each ±1), is −cos θ.
| Angle between axes | Correlation −cos θ | Meaning |
|---|---|---|
| 0° | −1.000 | Always opposite |
| 45° | −0.707 | Mostly opposite |
| 90° | 0.000 | No correlation |
| 135° | +0.707 | Mostly equal |
| 180° | +1.000 | Always equal |
Computed from −cos θ.
Choose axes at 0° and 90° for one particle (a and a′) and at 45° and 135° for the other (b and b′). Combining four correlations as S = E(a, b) − E(a, b′) + E(a′, b) + E(a′, b′) gives |S| = 2.828 = 2√2 with these angles. I computed this value from the formula above. No theory in which the results were fixed in advance by local hidden values can exceed S = 2, which is the content of Bell’s theorem (background, covered in the entanglement lessons). Experiments with spins and photons have found values above 2, consistent with quantum mechanics.
Why this matters here
The Stern–Gerlach measurement and its two outcomes per axis are exactly the ingredients of Bell tests. The numbers 0.707 and 2.828 come directly from the cos²(θ/2) rule of this lesson.
More numbers: MRI field strengths
The proton resonance frequency is proportional to the field, so the table of common clinical and research field strengths follows at once. I computed these from the proton gyromagnetic ratio of 42.577 MHz/T.
| Field B | Proton frequency | Vacuum wavelength c/f |
|---|---|---|
| 0.5 T | 21.3 MHz | 14.1 m |
| 1.5 T | 63.9 MHz | 4.69 m |
| 3 T | 127.7 MHz | 2.35 m |
| 7 T | 298.0 MHz | 1.01 m |
Computed with CODATA values. The field strengths listed are for illustration, not a survey of equipment.
The wavelengths in the last column are those in vacuum. Inside the body the wavelength is shorter, a complication of high-field imaging that I do not quantify here. For the qubit story, the important thing is that the same relation f = γB / 2π connects the field and the frequency in every case.
Summary
| Idea | Result |
|---|---|
| Stern–Gerlach | A spin-½ beam splits into exactly two, because μz takes two values |
| Sequential measurement | Z-up then X-right then Z: 1/4 end up. Without the middle step: 1 |
| Tilted axis | P = cos²(θ/2) (60° gives 0.75) |
| Three-filter chain | Fraction up at the end is cos⁴(θ/2) |
| Many small steps | N = 1, 2, 5, 10, 100 give 0.500, 0.729, 0.883, 0.940, 0.994 |
| Resonance | Proton: 42.577 MHz/T. Electron: 28.02 GHz/T |
| Rabi flipping | P = sin²(Ωt/2); a π-pulse at Ω = 2π × 10 MHz takes 50 ns |
| Singlet pair | Correlation −cos θ, and S = 2√2 for the standard angles |
Everything the lesson computed.
Questions people ask
Why only two outcomes and not a continuous range?
For spin-½ the state space is two-dimensional, so any measurement along an axis has two outcomes. Other particles have larger spin (spin-1 has three outcomes along an axis, for example), but the electron, proton and neutron are spin-½.
Is the electron really spinning?
No in the sense of a rotating ball. Spin has the mathematics of angular momentum and produces a magnetic moment, but it is an intrinsic property with no classical picture.
What decides which beam an individual atom goes into?
Quantum mechanics gives only the probabilities. Which interpretation, if any, provides more is the subject of the interpretations lesson.
Does the Stern–Gerlach apparatus ‘measure’ the spin that was there?
The experiment sorts atoms by the spin component along the chosen axis. When the atoms were prepared along another axis, the result is random, so the apparatus gives a result that the prepared state did not already contain. This is the point of the chained experiments.
Are spin qubits real?
Yes. Electron spins in semiconductor quantum dots, nuclear spins and defects in diamond have been used as qubits, controlled by exactly the resonance method above. I do not give coherence figures, since I did not look them up.
More practice
Check yourself
A spin is prepared up along z and passes through a filter tilted 45° and then a z-filter. What fraction exits up?
cos⁴(22.5°) = 0.729.
What is the single-step probability for an axis 120° away, and what does it mean?
cos²(60°) = 0.25. A spin prepared along one axis has only a 25% chance of ‘up’ along an axis 120° away.
With Ω = 2π × 5 MHz, how long is a π-pulse?
1 / (2 × 5 MHz) = 100 ns.
What fraction flips at best if the detuning is 2Ω?
1/(1 + 4) = 0.20.
For the singlet, what is the correlation at 45°?
−cos 45° = −0.707.
How many electrons fit in the n = 3 shell?
2 × 9 = 18.
What is the proton frequency at 7 T?
42.577 × 7 = 298 MHz.
Why do two beams, not a smear, come out of the magnet?
μz can have only two values for a spin-½ particle.
Simulating the experiments
Probabilities are easier to trust when you have watched them emerge from random outcomes. I ran a short Monte Carlo simulation of the two experiments of this lesson. In each case every atom is given an independent random outcome with the probability from the cos²(θ/2) rule.
import numpy as np
rng = np.random.default_rng(11)
# Z-up -> X filter (keep right) -> Z measurement
N = 100_000
right = (rng.random(N) < 0.5).sum() # 1/2 pass the X filter
final_up = (rng.random(right) < 0.5).sum() # 1/2 of those are up along Z
print(right, final_up, final_up / N)
# chain of n small steps, each succeeding with cos^2(pi/(4n))
for n in (1, 2, 5, 10, 100):
p = np.cos(np.pi / (4 * n)) ** 2
survive = np.ones(20_000, bool)
for _ in range(n):
survive &= rng.random(20_000) < p
print(n, survive.mean(), p ** n)| Experiment | Simulated result | Exact value |
|---|---|---|
| Z-up → X-right → Z-up (100,000 atoms) | 50,059 pass the X filter; 24,934 end up (0.2493) | 0.5; 0.25 |
| Chain, N = 1 (20,000 atoms) | 0.5012 | 0.5000 |
| Chain, N = 2 | 0.7238 | 0.7286 |
| Chain, N = 5 | 0.8831 | 0.8835 |
| Chain, N = 10 | 0.9411 | 0.9401 |
| Chain, N = 100 | 0.9938 | 0.9939 |
Simulation output with seed 11. The statistical uncertainty on a probability near 0.5 with 20,000 atoms is about 0.0035, so the differences from the exact values are within the expected noise.
The simulation is deliberately simple. It treats each stage as an independent random draw, which is correct here because after each filter the atom is re-prepared in a fresh state. It does not model the physics of the magnet at all, only the quantum probabilities that the apparatus produces, and it is a good template for simulating more complicated sequences.
Ramsey fringes: using spin as a clock
Rabi pulses can be combined into an interferometer for time. Apply a π/2-pulse to put the spin on the equator of the Bloch sphere. Let it precess freely for a time T while the drive and the spin’s natural frequency differ by a detuning Δ. Then apply a second π/2-pulse and measure. If the drive and the spin are in perfect agreement the second pulse completes a flip, and if they have drifted apart by half a cycle the second pulse undoes the first. The probability of finding the spin flipped is P = cos²(ΔT/2), with the sign convention that P = 1 means the two pulses added to a full flip when Δ = 0.
| Detuning Δ/2π | ΔT/2 (with T = 1 μs) | P = cos²(ΔT/2) |
|---|---|---|
| 0 | 0 | 1.00 |
| 0.25 MHz | π/4 | 0.50 |
| 0.5 MHz | π/2 | 0.00 |
| 1.0 MHz | π | 1.00 |
Computed for T = 1 μs. The fringes repeat every 1/T = 1 MHz of detuning.
This is the principle behind atomic clocks and many sensors. The longer the free evolution time T, the narrower the fringe, so the finer the frequency resolution. A fringe period of 1 MHz for T = 1 μs becomes 1 kHz for T = 1 ms. The limit is how long the spin stays coherent, which links back to the decoherence discussion in the lesson on the cat. It is the double-slit experiment again: two paths through time, one pulse apart, interfering.
The same mathematics with light: polarisers
Photon polarisation is also a two-state system, and the formula for passing through a polariser at an angle α to the polarisation is the Malus-law factor cos²α. Notice that the angle is α in real space, while the spin angle θ is on the Bloch sphere, with a half-angle in the formula. For photons the physical angle between two polarisation directions maps to 2α on the sphere, so cos²(θ/2) becomes cos²α.
Worked example
Three polarisers
- Unpolarised light of intensity I₀ falls on a vertical polariser, then one at 45°, then a horizontal one.
- After the first polariser, half the intensity remains: I₀/2.
- After the 45° polariser: × cos²45° = ½, so I₀/4.
- After the horizontal polariser: another × cos²45° = ½, so I₀/8 = 0.125 I₀.
- Without the middle polariser, the vertical and horizontal polarisers in sequence would block all the light. The middle one, by re-preparing the polarisation, lets 1/8 through. This is the exact analogue of the Stern–Gerlach chain, where the middle filter turned a blocked beam into a transmitted one.
This is a safe experiment to do at home with three polarising filters, and it is a good way to feel that the result in the Stern–Gerlach chain is not a quirk of atoms. It is the way two-level quantum systems behave.
A spin in a field precesses: the Larmor frequency
A spin that is not aligned with a magnetic field does not simply settle into line. Its Bloch vector rotates around the field direction at the Larmor frequency, which is the same frequency as the resonance frequency used in the earlier sections (42.577 MHz per tesla for protons, 28.02 GHz per tesla for electrons). A rotation by an angle ωt around z is the quantum gate Rz, and it can be produced by simply waiting.
Worked example
Spins in the Earth’s magnetic field
- Take a field of 50 μT, a typical order of magnitude for the Earth’s field at the surface (background).
- The electron precesses at 28.02 GHz/T × 50 × 10⁻⁶ T = 1.40 MHz, and the proton at 42.577 MHz/T × 50 × 10⁻⁶ T = 2.13 kHz.
- A half-turn (a π rotation about z) takes half a period: 1 / (2 × 1.40 MHz) = 357 ns for the electron and 1 / (2 × 2.13 kHz) = 0.235 ms for the proton.
- So a spin left alone in even the weak Earth’s field changes its phase noticeably in less than a microsecond, in the electron’s case. That is why controlling a spin qubit means controlling the magnetic field and keeping track of the phase it has accumulated.
Waiting in a field is therefore a z-rotation, and a Rabi pulse is a rotation around an axis in the xy-plane. Together, these two kinds of rotation can steer a spin to any point on the sphere, which is how single-qubit gates are built from spin resonance.
Beyond spin-½: how many beams?
The Stern–Gerlach apparatus works for any particle with spin s. A measurement of the spin component along a chosen axis gives 2s + 1 possible values, so the beam splits into 2s + 1 beams (background). The qubit is the case s = ½.
| Spin s | Number of beams 2s + 1 | Values of the spin component (units of ħ) |
|---|---|---|
| ½ | 2 | −½, +½ |
| 1 | 3 | −1, 0, +1 |
| 3/2 | 4 | −3/2, −½, +½, +3/2 |
| 2 | 5 | −2, −1, 0, +1, +2 |
From the rule 2s + 1. Particles with integer spin are called bosons and those with half-integer spin fermions (background).
The distinction between integer and half-integer spin is not a technicality. Fermions such as electrons obey the exclusion principle discussed earlier, and bosons such as photons do not. This difference underlies the stability of matter and the existence of lasers, in which many photons occupy the same state.
Quantum computing mostly uses the two-level case. When a physical system has more levels, such as a transmon qubit with its higher excited states, engineers work to keep the extra levels from interfering, which is the reason for the detuning table in the Rabi section.
Practice problems
Check yourself
A spin is up along Z. What is the probability of “up” when measured along an axis 60° away?
cos²(30°) = 0.75.
A beam is Z-up, then X-right, then measured along Z. What fraction is up?
1/2.
Why does the middle X filter change the result?
A state sharp along X is not sharp along Z, so the Z information is lost.
For N = 5 steps of 18°, what is the total probability?
[cos²(9°)]^5 = 0.883.
What happens to the success probability as N grows large?
It tends to 1.
What is the proton resonance frequency at 1.5 T?
42.577 × 1.5 = 63.9 MHz.
How many outcomes does a spin-½ measurement have along any axis?
Two.
References and further reading
The numbers here are my own calculations with SciPy’s CODATA constants and numpy. The description of the Stern–Gerlach experiment (a beam of atoms in a non-uniform magnetic field splitting into two beams) and its 1922 date are standard background that I did not look up for this lesson. The Stanford Encyclopedia of Philosophy entry on quantum mechanics, opened in an earlier lesson, covers states and measurement in general.
- Quantum Mechanics (Stanford Encyclopedia of Philosophy) Opened in an earlier lesson. States, measurement, and spin as a two-level system.
- SciPy physical constants (CODATA) (SciPy documentation) Values for the Bohr magneton, electron g-factor and proton gyromagnetic ratio were obtained by running scipy.constants locally.