Entanglement Lab
Pick a state, choose how Alice and Bob measure, and see what quantum theory predicts. Measure Bell pairs at any angle, run a CHSH Bell test, play the CHSH game against the classical limit, add noise to watch entanglement fade, and compare three-qubit GHZ and W states. Everything is calculated exactly in your browser.
Reviewed December 2026. Start with the Measure tab, then try the Bell test.
Concurrence (0 to 1)
1.000
Entanglement (ebits)
1.000
Largest possible CHSH
2.828
Classical limit
2
Alice measures qubit A and Bob measures qubit B. Each picks an angle: 0° means they measure in the standard 0/1 basis, 90° means the other basis (plus/minus). Results are +1 or −1.
| Bob +1 | Bob −1 | |
|---|---|---|
| Alice +1 | 494 (49.4%) | 0 (0.0%) |
| Alice −1 | 0 (0.0%) | 506 (50.6%) |
Alice alone sees +1
49.4%
theory 50.0%
Bob alone sees +1
49.4%
theory 50.0%
Correlation E (+1 = always agree)
1.000
theory 1.000
Look at Alice’s and Bob’s own columns: for a maximally entangled pair each sees a fair coin at any angle. The pattern appears only when they compare lists. For contrast, the classical mix ½|00⟩⟨00| + ½|11⟩⟨11| gives E = 1.000 at these angles, while this state gives 1.000. Try “Both plus/minus”.
A five-minute path
- Measure tab, state Φ+, both angles 0°. They always agree. Alice alone sees a fair coin.
- Switch to “Classical mix”. Same result at 0°. Now set both angles to 90°: the Bell pair still agrees, the mix does not.
- Bell test tab: choose Φ+ and the textbook settings. S = 2.83, above the classical limit of 2.
- CHSH game tab: play the quantum strategy and watch the win rate land above 75 percent.
- Add depolarising noise and find the visibility where the violation disappears, then where the entanglement does.
- Three qubits tab: compare what survives when you lose or measure a qubit of GHZ and W.
What the lab does and does not do
- It computes what quantum theory predicts for ideal measurements in the X–Z plane, using the full density matrix.
- The noise models are simple. Depolarising noise mixes in randomness; dephasing removes phase on one qubit. Real devices combine many effects.
- Random sampling uses a seeded pseudo-random generator, so the same seed repeats the same run.
- It does not model loopholes, detector efficiency or timing, which real Bell tests have to handle carefully.
The states at a glance
Computed by the same engine as the lab.
| State | Concurrence | Ebits | Largest CHSH | Purity of one qubit |
|---|---|---|---|---|
| Bell state Φ+ | 1.000 | 1.000 | 2.828 | 0.500 |
| Bell state Φ− | 1.000 | 1.000 | 2.828 | 0.500 |
| Bell state Ψ+ | 1.000 | 1.000 | 2.828 | 0.500 |
| Singlet Ψ− | 1.000 | 1.000 | 2.828 | 0.500 |
| Partly entangled | 0.866 | 0.811 | 2.646 | 0.625 |
| Product state |+⟩|+⟩ (not entangled) | 0.000 | 0.000 | 2.000 | 1.000 |
| Classical mix | 0.000 | 0.000 | 2.000 | 0.500 |
| Visibility v | Concurrence | Largest CHSH | Fidelity with Φ+ | Verdict |
|---|---|---|---|---|
| 1.000 | 1.000 | 2.828 | 1.000 | entangled, CHSH can show it |
| 0.900 | 0.850 | 2.546 | 0.925 | entangled, CHSH can show it |
| 0.800 | 0.700 | 2.263 | 0.850 | entangled, CHSH can show it |
| 0.707 | 0.561 | 2.000 | 0.780 | entangled, CHSH cannot show it |
| 0.600 | 0.400 | 1.697 | 0.700 | entangled, CHSH cannot show it |
| 0.500 | 0.250 | 1.414 | 0.625 | entangled, CHSH cannot show it |
| 0.400 | 0.100 | 1.131 | 0.550 | entangled, CHSH cannot show it |
| 0.333 | 0.000 | 0.943 | 0.500 | separable |
| 0.200 | 0.000 | 0.566 | 0.400 | separable |
| 0.000 | 0.000 | 0.000 | 0.250 | separable |
Eight guides
What is quantum entanglement? A test you can do by hand
9 min read
Entanglement as a precise idea: a joint state that cannot be split into one state per qubit, with a short proof for the Bell state.
Entanglement versus ordinary correlation
8 min read
A pair of gloves and a Bell pair both always agree in one test. Here is the test where they stop agreeing.
Bell’s theorem and the CHSH test, step by step
11 min read
Why any theory with fixed local values obeys S ≤ 2, how quantum mechanics reaches 2√2, and what experiments have found.
The CHSH game: winning more than classical players can
7 min read
The same physics as the Bell test, told as a game with a 75 percent classical ceiling and an 85.4 percent quantum score.
Why entanglement cannot send messages faster than light
6 min read
What Bob sees on his own never changes with Alice’s choice. The pattern appears only when they compare notes by ordinary means.
Three qubits: GHZ, W and the monogamy of entanglement
9 min read
Two kinds of three-way entanglement that behave very differently when you lose a qubit or measure one.
How entangled is it? Concurrence, ebits, purity and noise
10 min read
The numbers the lab reports, how they are computed, and why a noisy state can be entangled without ever violating CHSH.
Making and using entanglement: from Bell pairs to quantum networks
8 min read
How entangled pairs are produced, what they are used for, and why they are so fragile.
Predict, then check
A Bell pair Φ+: Alice measures at 0° and Bob at 45°. What is the correlation E?
E = cos 45° = 0.707. They agree about 85.4% of the time.
The singlet state, both measuring at the same angle: what is E?
E = -1.000. They always get opposite results, whatever angle they share.
A Bell pair mixed with noise at visibility v = 0.5: is it entangled, and can CHSH show it?
Concurrence 0.250, so it is entangled. The largest CHSH is 1.414, below 2, so no CHSH test can show it.
The partly entangled state cos 15°|00⟩ + sin 15°|11⟩: concurrence and largest CHSH?
Concurrence 0.500 (sin 30°). Largest CHSH 2.236, above 2, so it can still violate the bound.
Lose one qubit of a W state. How entangled are the other two?
Concurrence 0.667 (2/3). For GHZ the answer is 0.
Common misunderstandings
- “Entangled particles talk to each other.” Nothing is sent, and neither side can use the link to signal.
- “It is just like a pair of gloves.” Gloves match in one basis only. Bell tests use several.
- “Entanglement needs distance.” It does not; it is a property of the joint state.
- “More entanglement is always better.” It depends on the task.
- “If a Bell test fails, the state is not entangled.” Some entangled states never violate CHSH.
Frequently asked questions
What is quantum entanglement?
A state of two or more qubits that cannot be written as a separate state for each qubit. In a Bell pair the whole is perfectly known while each qubit alone looks completely random.
Can entanglement send messages faster than light?
No. Each person’s own results are random and do not depend on the other’s choices. The correlation appears only when the two lists are compared by ordinary means.
Is entanglement just a correlation, like a pair of gloves?
A gloves-type correlation matches in one measurement basis. Entangled qubits match in every basis at once, which no pre-packed values can do. A Bell test makes that difference measurable.
What does the CHSH number mean?
S combines four correlations. Any model with fixed local values gives |S| ≤ 2. Quantum mechanics allows up to 2√2, and experiments have measured values above 2.
Why does a noisy Bell pair sometimes fail the CHSH test?
A CHSH test is sufficient but not necessary. A Bell pair mixed with random noise is entangled while v > 1/3 but exceeds 2 only for v > 1/√2.
What is the difference between GHZ and W states?
GHZ loses all pairwise entanglement if one qubit is lost, but a plus/minus measurement of one qubit leaves a Bell pair. W keeps pairwise entanglement after losing a qubit.
Is the lab a real quantum computer?
It is an exact calculation using density matrices. The sampling uses a seeded pseudo-random generator, and the noise models are simple teaching models.
How do the numbers get calculated?
Correlations come from the expectation of measurement operators. Concurrence uses Wootters’ formula. The largest CHSH value uses the Horodecki criterion.
Does the lab use real experimental data?
No. It shows what quantum theory predicts for the states you choose. Real experiments add noise, loss and statistical error.
Where can I build an entangled pair gate by gate?
In the Circuit Builder, open the Bell state and GHZ examples.
Sources and further reading
- A. Einstein, B. Podolsky, N. Rosen, “Can quantum-mechanical description of physical reality be considered complete?” (1935). The paper that posed the puzzle.
- J. S. Bell, “On the Einstein Podolsky Rosen paradox” (1964). Showed that local hidden variables and quantum mechanics make different predictions.
- J. Clauser, M. Horne, A. Shimony, R. Holt, “Proposed experiment to test local hidden-variable theories” (1969). The CHSH form of Bell’s inequality used in this lab.
- B. Hensen et al., “Loophole-free Bell inequality violation using electron spins separated by 1.3 kilometres” (2015). One of the first experiments to close the main loopholes at once.
- W. K. Wootters, “Entanglement of formation of an arbitrary state of two qubits” (1998). The concurrence formula used here.
- R. Horodecki, P. Horodecki, M. Horodecki, “Violating Bell inequality by mixed spin-1/2 states: necessary and sufficient condition” (1995). Gives the largest CHSH value for any two-qubit state.
- R. F. Werner, “Quantum states with Einstein–Podolsky–Rosen correlations admitting a hidden-variable model” (1989). Introduced the noisy Bell states used in the depolarising model.
- V. Coffman, J. Kundu, W. K. Wootters, “Distributed entanglement” (2000). The monogamy inequality and the 3-tangle.
- W. Dür, G. Vidal, J. I. Cirac, “Three qubits can be entangled in two inequivalent ways” (2000). Why GHZ and W are different.
- A. K. Ekert, “Quantum cryptography based on Bell’s theorem” (1991). Entanglement-based key distribution.
Titles and years are given from memory of the literature; check the originals for exact citations.