---
title: Entanglement, measurement and Bell's inequality
heading: Correlations no local explanation can reproduce
eyebrow: B10 · Lesson 44 · Entanglement, measurement and Bell's inequality
xp: 50
---

::: hook
Two particles can share a state that isn't a state of either one alone: the spin singlet of lesson 29 is the classic example. Measure one spin along any axis and the other, however far away, always comes out opposite. Einstein took that as evidence that the particles carried hidden instructions all along. In 1964 John Bell showed that any such local hidden-variable theory puts a limit on how strongly measurements along *different* axes can be correlated, and that quantum mechanics breaks the limit. Experiments have confirmed the violation many times since, with loopholes closed in 2015. The same correlations are now a resource: entanglement-based quantum key distribution uses a Bell test to prove that no eavesdropper has learned the key.
:::

::: play
- Alice measures a singlet's first spin along a or a′, Bob the second along b or b′. The settings are spaced by an angle x: a = 0, b = x, a′ = 2x, b′ = 3x.
- The curve is the CHSH combination S of the four correlations that quantum mechanics predicts. Any local hidden-variable theory keeps S ≤ 2 (lower dashed line).
- Set x = 45°: S reaches $2\sqrt2$ = 2.83, the largest value quantum mechanics allows (upper dashed line, Tsirelson's bound). Between about 0° and 60° it beats every local theory.
:::
:::

```sim plot
view: graph
x: x = 0..90 °
y: S = 0..3
slider: X = 0..90 step 1 = 45 °
plot: abs(3*cos(x°) - cos(3*x°)) | label: S, quantum
plot: 2 | dashed | label: local limit
plot: 2*sqrt(2) | dashed | label: quantum limit
marker: x = X | label: settings
readout: S at these settings = abs(3*cos(X°) - cos(3*X°))
readout: correlation E(a, b) = -cos(X°)
```

::: predict
## Alice and Bob share a singlet and both measure along the same axis. Alice gets "up". What does Bob get?

- [ ] Up or down, 50/50
- [x] Down, certainly
- [ ] Up, certainly
- [ ] It depends on how far apart they are

::: reveal
Down: the singlet has total spin zero along every axis. Alice's own result was random, 50/50, and so is Bob's when looked at alone. Only the comparison shows the perfect anticorrelation. Perfect correlations along one axis are easy to explain with hidden instructions; Bell's theorem is about the correlations at other angles.
:::
:::

::: nameit
## Product and entangled states

A two-qubit state $a|00\rangle + b|01\rangle + c|10\rangle + d|11\rangle$ is a **product** of one-qubit states exactly when ad − bc = 0; otherwise it's **entangled**. For a normalized state, the **concurrence** $C = 2\lvert ad - bc\rvert$ runs from 0 (product) to 1 (maximally entangled, like the singlet $\frac{1}{\sqrt2}(|01\rangle - |10\rangle)$).

## Correlations in the singlet

With Alice's axis at angle θ to Bob's, each result is ±1 and

$$E(\theta) = \langle A\,B\rangle = -\cos\theta, \qquad P(\text{both up}) = \frac12\sin^2\frac\theta2$$

For polarization-entangled photons in $\frac{1}{\sqrt2}(|HH\rangle + |VV\rangle)$, polarizers at α and β both pass with probability $\frac12\cos^2(\alpha - \beta)$: the same physics with angles doubled, since polarization repeats every 180°.

## The CHSH inequality

If each particle carries preset answers for every axis and neither measurement affects the other's result,

$$S = \lvert E(a, b) - E(a, b') + E(a', b) + E(a', b')\rvert \le 2$$

Quantum mechanics allows up to $2\sqrt2$ (Tsirelson's bound), reached by the singlet at axes 0°, 45°, 90°, 135° (or 0°, 22.5°, 45°, 67.5° for photon polarizers).

## No signaling

Alice's choice of axis doesn't change the statistics of Bob's own results; only the correlations, visible once they compare notes over an ordinary channel, depend on both choices. Entanglement can't send a message faster than light.

## Measurement and decoherence

When a qubit becomes entangled with its environment (stray fields, phonons, a measuring device), its own state loses its phase coherence: looked at alone, it behaves like a random mixture. That's **decoherence**, the main enemy of quantum computers, and the reason qubit coherence times, $T_2$, are quoted next to their gate times.
:::

::: example
## Find the CHSH value for a singlet with Alice at 0° and 90°, Bob at 45° and 135°.

::: solution
1. **Alice at 0°.** For the singlet, E is minus the cosine of the angle between the axes:
   $$\begin{aligned} E(0°, 45°) &= -\cos 45° \\ &= -0.707 \\ E(0°, 135°) &= -\cos 135° \\ &= +0.707 \end{aligned}$$
2. **Alice at 90°.**
   $$\begin{aligned} E(90°, 45°) &= -\cos 45° \\ &= -0.707 \\ E(90°, 135°) &= -\cos 45° \\ &= -0.707 \end{aligned}$$
3. **Combine them.**
   $$\begin{aligned} S &= |{-0.707} - 0.707 \\ &\quad - 0.707 - 0.707| \\ &= 2.83 \end{aligned}$$
4. **Compare with experiments.** Measured values around 2.7 to 2.8 are routine in labs; any value above 2 rules out local hidden variables (given the experimental loopholes are closed).

**Answer:** S = 2.83.
:::
:::

::: example
## Is the state $\frac12(|00\rangle + |01\rangle + |10\rangle - |11\rangle)$ entangled?

::: solution
1. **The coefficients.** With the state written $a|00\rangle + b|01\rangle + c|10\rangle + d|11\rangle$,
   $$\begin{aligned} ad - bc &= \frac12\cdot\left(-\frac12\right) - \frac12\cdot\frac12 \\ &= -\frac12 \end{aligned}$$
2. **Concurrence.** So C = 1: maximally entangled.
3. **Where it comes from.** It's what a controlled-Z gate makes from two qubits each in $\frac{1}{\sqrt2}(|0\rangle + |1\rangle)$, which is why two-qubit gates are the step that makes quantum computation more than classical.

**Answer:** yes, it's maximally entangled (C = 1).
:::
:::

::: example
## Alice and Bob share a singlet and measure along axes 60° apart. How often do their results agree, and what is the correlation?

::: solution
1. **Agreement.** For the singlet, the chance of matching results is
   $$\begin{aligned} \sin^2\frac\theta2 &= \sin^2 30° \\ &= 0.25 \end{aligned}$$
2. **Correlation.**
   $$\begin{aligned} E(\theta) &= -\cos\theta \\ &= -0.5 \end{aligned}$$
3. **What a local model can do.** A local hidden-variable model can reproduce this single angle, but not the full set: the CHSH combination of four angles reaches $2\sqrt2 = 2.83$ for the singlet, while any local model stays at or below 2. Measured violations are how entanglement is certified in quantum-communication links.

**Answer:** their results agree a quarter of the time, and the correlation is −0.5.
:::
:::

::: check
given: t = 30 | 60 | 120
answer: -cos(t°)
tolerance: 0.5%

## Alice and Bob measure a singlet along axes {t}° apart. What's the correlation E = ⟨AB⟩?

::: right
Right. $-\cos\theta$ = {answer}.
:::

::: misses
- [cos(t°)] The singlet is anticorrelated: −cos θ.
- [-cos(t°/2)] Spin correlations use the full angle; half angles appear in the probabilities.
- [any] Not yet. E(θ) = −cos θ.
:::
:::

::: check
given: t = 30 | 90 | 150
answer: 0.5*sin(t°/2)^2
tolerance: 0.5%

## For the singlet with axes {t}° apart, what's the probability that both get "up"?

::: right
Right. $\frac12\sin^2\frac\theta2$ = {answer}.
:::

::: misses
- [sin(t°/2)^2] Alice's result is up only half the time; multiply by ½.
- [any] Not yet. Given Alice is up, Bob is up along an axis θ away from "down" with probability $\sin^2(\theta/2)$.
:::
:::

::: check
given: x = 20 | 30 | 40
answer: abs(3*cos(x°) - cos(3*x°))
tolerance: 0.5%

## With the singlet and settings a = 0, b = {x}°, a′ = 2×{x}°, b′ = 3×{x}°, what's S?

::: right
Right. $\lvert 3\cos x - \cos 3x\rvert$ = {answer}.
:::

::: misses
- [2] That's the local limit, not what quantum mechanics predicts.
- [any] Not yet. Three of the four pairs are x apart and one is 3x apart.
:::
:::

::: check
given: a = 0 | 30; b = 20 | 45 | 70
answer: 0.5*cos((a - b)°)^2
tolerance: 0.5%

## Photons in $\frac{1}{\sqrt2}(|HH\rangle + |VV\rangle)$ meet polarizers at {a}° and {b}°. What's the probability both pass?

::: right
Right. $\frac12\cos^2(\alpha - \beta)$ = {answer}.
:::

::: misses
- [cos((a - b)°)^2] Each photon alone passes only half the time.
- [any] Not yet. The first passes with probability ½, and then the second is polarized along the first polarizer.
:::
:::

::: check
given: p = 1 | 4; q = 1 | 3; r = 2 | 5; s = 3 | 7
answer: 2*abs(p*s - q*r)/(p^2 + q^2 + r^2 + s^2)
tolerance: 0.5%

## What's the concurrence of the (unnormalized) state $\given{p}|00\rangle + \given{q}|01\rangle + \given{r}|10\rangle + \given{s}|11\rangle$?

::: right
Right. $\frac{2\lvert ad - bc\rvert}{\lvert a\rvert^2 + \lvert b\rvert^2 + \lvert c\rvert^2 + \lvert d\rvert^2}$ = {answer}.
:::

::: misses
- [2*abs(p*s - q*r)] Normalize first.
- [any] Not yet. C = 2|ad − bc| for a normalized state.
:::
:::

::: check
kind: choice

## Alice switches her measurement axis. What changes in Bob's own measurement results, viewed alone?

- [x] Nothing: they're 50/50 whatever she does
- [ ] They flip
- [ ] They become correlated with Alice's axis
- [ ] They become certain

::: misses
- [2] Bob can't see any effect without Alice's results.
- [3] Only the joint statistics depend on her axis.
- [4] Bob's results stay random.
:::
:::

::: check
kind: parts
given: t = 30 | 60 | 120

## Alice and Bob share a singlet and measure along axes {t}° apart.

::: part
answer: sin(t*pi/360)^2
tolerance: 0.5%

### How often do their results agree?

::: misses
- [cos(t*pi/360)^2] For the singlet, aligned axes always disagree: agreement grows as $\sin^2\frac\theta2$.
- [any] $\sin^2\frac\theta2$.
:::
:::

::: part
answer: -cos(t*pi/180)
tolerance: 0.5%

### What is their correlation?

::: misses
- [any] $E(\theta) = -\cos\theta$.
:::
:::
:::

::: check
kind: derivation
vars: t = 0..3.14

## A singlet measured along axes an angle θ apart (write t).

::: step
answer: -cos(t)

### What is the correlation $E(\theta)$?
:::

::: step
answer: (1 - cos(t))/2

### What is the probability of matching results?
:::

::: right
Right. At 90° the results are uncorrelated; at 0° they always disagree.
:::
:::

::: explain
## What exactly does a violation of Bell's inequality rule out?

::: model
It rules out every theory in which each particle carries its own predetermined answers for whatever measurement might be made on it, and the result at one place doesn't depend on which measurement is chosen at the other. Under those two assumptions the four correlations in the CHSH combination can add up to at most 2, whatever the hidden variables are, because each run's answers are fixed numbers ±1. Quantum mechanics predicts, and experiments find, values up to $2\sqrt2$. So either outcomes aren't predetermined, or the choice at one end influences the other in a way that can't carry a signal. It doesn't rule out quantum mechanics, which predicts exactly the observed correlations.
:::
:::

::: practice

::: check
given: t = 0 | 30 | 45 | 60 | 90 | 120 | 135 | 180
answer: -cos(t°)
tolerance: 0.5%

## Singlet correlation at {t}°?

::: misses
- [any] $-\cos\theta$.
:::
:::

::: check
given: x = 10 | 15 | 22.5 | 30 | 40 | 50
answer: abs(3*cos(x°) - cos(3*x°))
tolerance: 0.5%

## S for settings spaced {x}°?

::: misses
- [any] $\lvert 3\cos x - \cos 3x\rvert$.
:::
:::

::: check
given: a = 10 | 40; b = 55 | 80
answer: 0.5*cos((a - b)°)^2
tolerance: 0.5%

## Both photons pass at {a}° and {b}°?

::: misses
- [any] $\frac12\cos^2(\alpha - \beta)$.
:::
:::
:::
