Aligning the optical bench…
⚛ Bell-test controls
The science

What is simulated. The exact quantum state of two qubits (photon polarisations) as a 4-component state vector or, with noise, a 4×4 density matrix ρ = v|ψ><ψ| + (1−v) I/4. The source prepares one of the Bell states, for example |Φ+> = (|00> + |11>)/√2, which the page builds with the circuit Hadamard on A then CNOT and compares with the textbook vector.

Measurements. Each polariser is an observable O(θ) = cosθ Z + sinθ X with results ±1. The probability of a joint result is P(s,t) = (1 + s⟨A⟩ + t⟨B⟩ + s t E(a,b))/4, with E(a,b) = Tr[ρ O(a)⊗O(b)]; for Φ+ this is cos(a−b). Every pair draws a random one of the four setting pairs and a Born-rule outcome.

CHSH. S = E(a,b) + E(a,b') + E(a',b) − E(a',b'). Any local hidden-variable model (a pre-agreed rule for each photon) has |S| ≤ 2; quantum mechanics reaches 2√2 ≈ 2.828 (Tsirelson bound) at a=0, a'=90, b=45, b'=−45 degrees. The red model switch replaces the quantum draw by such a hidden-variable rule and sits at S = 2.

No signalling. Bob's own results are 50/50 whatever Alice sets: P(B=+1) is the same for a and a' (panel shows both, exact and sampled). The correlation only appears when the two lists of results are compared, so no message can be sent.

Honest simplifications. This is a classical computer evaluating the quantum prediction; it does not prove nonlocality (that needs a real experiment closing the detection and locality loopholes). The model has perfect detectors and instant independent setting choice, no photon loss, no timing, and the bench is a Blender-rendered top view drawn schematically (beam, photons and spacing not to scale). Noise is idealised white noise.

Independent checks (run on load, same core as the 3D page):

running…

-

Pairs measured0
S exact (this model)-
S sampled ± 1σ-
P(Bob=+1) | a , a' exact-
P(Bob=+1) | a , a' sampled-
Concurrence / entropy-
Sclassical limit 22√2
E(a,β) quantumhidden-variablesampled
S while Bob's pair b, b' is rotated togetherlimit 2now
Bob's Bloch vector (x,z): averageafter Alice's result
-
Top view of the optical bench. Educational simulation of the quantum prediction, not a lab measurement.
Made with 🟠 Blender