|q⟩ Bad Qubits

intermediate · Physics · Entanglement & the EPR/Bell Inequalities

The CHSH Inequality

Clauser, Horne, Shimony, and Holt (CHSH, 1969) recast Bell's theorem into a form that real experiments can use. It needs only two settings per party and tolerates imperfect correlations — exactly what detectors deliver.

The CHSH quantity

Alice chooses between two measurements with outcomes A,A{+1,1}A, A' \in \{+1, -1\}; Bob chooses between two with outcomes B,B{+1,1}B, B' \in \{+1, -1\}. Define the four correlation functions E(A,B)=ABE(A,B) = \langle AB \rangle, and assemble the CHSH combination

S=E(A,B)+E(A,B)+E(A,B)E(A,B).S = E(A, B) + E(A, B') + E(A', B) - E(A', B').

Note the single minus sign on the last term — it is essential.

The classical (local-realistic) bound

In any local hidden-variable model, each run carries definite values A,A,B,B{±1}A, A', B, B' \in \{\pm 1\}, fixed before measurement. For a single run the quantity

Sλ=AB+AB+ABAB=A(B+B)+A(BB).S_\lambda = A B + A B' + A' B - A' B' = A(B + B') + A'(B - B').

Here is the key observation: BB and BB' are each ±1\pm 1, so exactly one of B+BB + B' and BBB - B' is 00 and the other is ±2\pm 2. Whichever survives is multiplied by AA or AA', each ±1\pm 1. Therefore

Sλ=±2for every assignment, soSλ2.S_\lambda = \pm 2 \quad\text{for every assignment, so}\quad |S_\lambda| \le 2.

Averaging over the hidden-variable distribution ρ(λ)\rho(\lambda) can only shrink an average of numbers bounded by 22, so the CHSH inequality is

S=E(A,B)+E(A,B)+E(A,B)E(A,B)    2.|S| = \big|\,E(A,B) + E(A,B') + E(A',B) - E(A',B')\,\big| \;\le\; 2.

Any local-realistic theory must obey it, no matter how complicated ρ(λ)\rho(\lambda), A(,λ)A(\cdot,\lambda), and B(,λ)B(\cdot,\lambda) are.

Why two settings, not three

Bell's original inequality assumed perfect anticorrelation, which no lab achieves. CHSH drops that requirement entirely: it only assumes ±1\pm 1 outcomes and local realism. That robustness is why every modern Bell test — from Aspect's 1982 photon experiments to the 2015 loophole-free tests — reports a CHSH value and compares it against 22.

Try it

This is a numerical exercise — your code should return a number. Brute-force all 24=162^4 = 16 sign assignments of (A,A,B,B)(A, A', B, B'), compute S|S| for each, and return the maximum. You should recover the classical CHSH bound of 22.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.