Primitives
SaveLabExperimentsApproach

Instruments

Time0.00 s
Bodies0
Kinetic E0.00 J
Excess KE0.00 J
Potential E0.00 J
Total E0.00 J
Momentum0.00
Ang. mom.0.00
Max speed0.00 m/s
Gravity9.81 m/s²
FPS60
Gravity9.81m/s²
Speed1.00×
built on founden.ai
Experiments/The Deep End

Bell's theorem simulation: entanglement and CHSH

Fire entangled pairs at two detectors and watch the CHSH number |S| climb past 2, the most any local hidden-variable theory allows.

Bell's theorem

singlet (|01⟩ − |10⟩)/√2, |S| ≤ 2 classically, quantum → 2√2

singlet
the two-particle entangled state with total spin zero
|01⟩
first particle measures 0 (up), second measures 1 (down)
|10⟩
first particle measures 1 (down), second measures 0 (up)
√2
normalisation, so the two possibilities are equally likely
|S|
size of the CHSH combination of four measured correlations
2√2
about 2.83, the largest value quantum mechanics allows (Tsirelson's bound)

What you are watching

A central source sends one particle of each pair to Alice (left) and one to Bob (right). Each arrow is a spin-measurement axis: Alice starts at 0°, Bob at 45°, and either dial can be dragged. RUN fires 200 pairs at those angles, shows the last 14 as ↑↓ (opposite) or ↑↑ (same), and compares the measured correlation E with the prediction −cos(a − b).

The same press runs 200 pairs at each of the four standard CHSH settings (Alice 0° or 90°, Bob 45° or 135°) for the |S| meter, whatever the dials show. Reset clears both tallies.

Why it happens

In the singlet state each detector alone sees a fair coin at any angle, yet the product of the two ±1 results averages E = −cos(a − b): equal axes always disagree, perpendicular axes are uncorrelated.

Pre-agreed answers could fake perfect anticorrelation. Bell showed in 1964 that any local hidden-variable model obeys a limit; in the CHSH form, S = E(a, b) − E(a, b′) + E(a′, b) + E(a′, b′) must satisfy |S| ≤ 2. Quantum mechanics predicts 2√2 ≈ 2.83 at these settings, and experiments, including loophole-free tests in 2015, agree with it.

An honest note: this program reproduces the quantum statistics because it sees both detector angles when it samples each pair (with a seeded pseudo-random generator). Bell's theorem says two separated devices using only local information cannot. The scene shows what quantum mechanics predicts; it is not itself a test of nature.

Try this

  1. Line Bob's dial up with Alice's and press RUN: nearly every pair reads ↑↓ and E sits near −1.00.
  2. Set the dials 90° apart: same and opposite come out about equally often and E hovers near 0.
  3. Set them 180° apart: the results nearly always agree and E approaches +1.
  4. Press reset, then RUN once: |S| lands near 2.8, give or take about 0.1. Keep pressing and it settles toward 2.83, well above the classical line.

Questions

What does Bell's theorem prove?

That no theory with outcomes fixed in advance by local hidden variables can match quantum mechanics. Such theories obey |S| ≤ 2; quantum mechanics predicts up to 2√2, and experiments agree with quantum mechanics.

Can entanglement send messages faster than light?

No. Each side's results alone are 50/50 random whatever the other detector does; the correlation appears only when the two records are compared, which needs an ordinary signal.

More the deep end experiments

  • Black holeCurved spacetime
  • Einstein ringGravitational lensing
  • Light clockTime dilation
  • Length contractionLength contraction
  • The spectrumElectromagnetic spectrum
  • Hyperbolic triangleCurved space (K = −1)
  • Many parallelsThe fifth postulate fails
  • SuperpositionThe Born rule
  • Radioactive decayThe exponential law
  • The atomQuantised energy levels

All 57 experiments

Primitives logoPrimitives

A real-time physics engine you experiment with directly. Real Newtonian mechanics, in SI units, in your browser.

Product

  • Engine
  • Experiments
  • Lab sheets
  • Lab
  • Approach
  • Notes

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • support@primitives.im
© 2026 Primitives. All rights reserved.