# Stern–Gerlach Experiment Simulator - spin measurement, analyser chains, Bell test

> Chain Stern–Gerlach analysers at any angle, fire atoms and compare counts with cos²(Δθ/2). Classical vs quantum screens, spin 1, Bloch spheres, CHSH test.

- URL: https://qilingtools.com/en/physics/stern-gerlach
- Category: Physics Tools (https://qilingtools.com/en/physics)
- Tags: [Physics](https://qilingtools.com/en/tags/physics), [Education](https://qilingtools.com/en/tags/education)
- Last updated: 2026-10-29
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Build a chain of Stern–Gerlach analysers, each at any angle and passing the beam you choose. Atoms leave the oven, split in the magnets, get blocked or land on the screen, and the count histograms build up next to the exact quantum probabilities from cos²(Δθ/2). The spin state after each stage is drawn on a Bloch sphere, a second tab sets the classical continuous smear beside the quantum two spots, and a third tests entangled pairs against the CHSH inequality.

## How to use

1. Pick spin 1/2 or spin 1 and load a classic sequence (e.g. Z+ → X+ → Z), or build your own with Add analyser
2. Set each analyser angle and the beam it passes; on the canvas you can also drag a magnet up or down to rotate it, or click a blocked beam to pass it
3. Press Fire to watch atoms fly one by one, or fire 10000 at once, and compare measured fractions with the quantum prediction in the table
4. Open Classical vs quantum for the screen patterns and a deflection estimate, then Entangled pairs to tune four angles and read the CHSH S value

## Features

- Up to 5 Stern–Gerlach analysers in series at any angle, built with buttons or by dragging on the canvas
- Animated atoms, detector counts and Monte Carlo fractions against exact probabilities
- Bloch sphere (spin 1/2) or vector-model cone (spin 1) after every stage
- Spin-1 three-beam mode using Wigner d-matrix probabilities |d¹ₘ′ₘ(Δθ)|²
- Classical dipole smear vs quantum spots, plus a silver-atom beam deflection calculator
- Singlet correlation E(a,b) = −cos(a−b) vs a local hidden-variable model, with theoretical and simulated CHSH S

## FAQ

### Why does Z+ → X+ → Z split into two beams again?

The first magnet selects atoms with spin up along z. To an x measurement that state is an equal superposition of +x and −x, and after the measurement it is +x, so the z information is gone. Measuring +x along z gives +z and −z with probability cos²(45°) = 1/2 each, so the third magnet splits the beam evenly. Spin components along different axes cannot both be definite.

### Why is there a half angle in cos²(Δθ/2)?

A spin-1/2 state picks up amplitudes in θ/2 under rotation (a 360° rotation flips its sign; only 720° restores it). The overlap between the + state along θ₁ and the + state along θ₂ is cos((θ₂−θ₁)/2), and the probability is its square. So analysers 90° apart give 50%, and Z against −Z (180°) gives 0. Light polarisation follows cos²θ (Malus's law) instead, because the photon is a spin-1 particle with only two transverse states.

### Why did classical physics predict a continuous band?

If each atom carried a classical magnetic needle in a random direction, its component along the field gradient, μ cos α, could take any value between −μ and +μ, and so could the deflection. For isotropic directions cos α is uniform on [−1, 1], which gives an even vertical band. Stern and Gerlach saw two separate spots in 1922, showing that the angular-momentum component is quantised.

### Silver has no orbital angular momentum, so where does the moment come from?

Silver has a single 5s valence electron (l = 0) outside closed shells. The moment comes from that electron's spin s = 1/2, whose component m_s can only be ±1/2, giving μ_z ≈ ∓μ_B and exactly two beams. At the time it was taken as proof of Bohr's orbital quantisation; the right explanation only came with electron spin in 1925.

### What does the CHSH S value tell us?

Any theory in which outcomes are fixed in advance by local hidden variables obeys |S| ≤ 2. For the singlet, quantum mechanics predicts E(a,b) = −cos(a−b), giving |S| = 2√2 ≈ 2.83 at a = 0°, a′ = 90°, b = 45°, b′ = 135°. Experiments, including the loophole-free tests of 2015, observe the violation, so nature cannot be described by local hidden variables.

## Related tools

- [Unit Converter](https://qilingtools.com/en/math/unit): Free online unit converter: length, area, volume, weight, temperature, time, speed, data, pressure, energy and angle — one value converts every unit at once.
- [Vector Calculator](https://qilingtools.com/en/math/vector): Free online vector calculator for 2D and 3D: addition, scalar multiples, dot and cross products, magnitude, angle, unit vector and projections, with checks.
- [Significant Figures Calculator](https://qilingtools.com/en/math/significant-figures): Free online sig fig calculator: count significant figures digit by digit, round to N sig figs or decimals with six rounding modes, and compute by sig fig rules.
- [Tone Generator](https://qilingtools.com/en/audio/tone-generator): Free online tone generator: sine, square, sawtooth and triangle waves from 1 to 20,000 Hz, a note picker, sweeps, white/pink/brown noise and a WAV download.
- [Audio Spectrogram](https://qilingtools.com/en/audio/spectrogram): Free online spectrogram generator: see time, frequency and level from a Hann-windowed STFT, with FFT size, log axis, dB range and colour maps. Exports PNG.
- [Decibel Meter](https://qilingtools.com/en/audio/decibel): Free online decibel meter: measure noise with your mic in real time, A/C/Z weighting, fast/slow response, min/max/average/Leq, 60-second graph and calibration.
- [Physics Formula Calculator](https://qilingtools.com/en/physics/physics): Physics formulas solved with steps: SUVAT, projectiles, Newton’s laws, inclines, energy, Ohm’s law, resistors, RC, buoyancy, waves, lenses, gravity.
- [Fourier Series & FFT Visualizer](https://qilingtools.com/en/math/fourier): Fourier series coefficients and animated partial sums for square, sawtooth, triangle or any function (Gibbs), draw-your-own epicycles and FFT spectra.
