Starlight Tools

Physics · Quantum · Private, in-browser

Quantum Entanglement Simulator and CHSH Bell Inequality Calculator

Quick answer: predict the four Bell-test correlations and CHSH S value from a quantum-state model, or calculate S from your own correlations or coincidence counts. Optical distance and photon loss are optional link-performance estimates: entanglement has no universal maximum travel distance, and ordinary symmetric loss mainly reduces detected counts and confidence—not the normalized S value.

CHSH setup

Calculator mode

Prediction mode applies an idealized model. Experimental mode uses your measured correlations or raw coincidence counts.

For linear polarization, Ψ− uses −cos 2(a−b); Φ+ uses +cos 2(a−b).
0–1 contrast multiplier; not the same as entanglement, fidelity, or efficiency.
Detector angles

Alice

°
°

Bob

°
°

Range −180° to 180°. Defaults are optimal for the singlet under the displayed CHSH convention.

Optical link and experiment settings

Loss is not decoherence. This symmetric-link model uses attenuation to estimate detected counts only. Exponential visibility decay is off by default and must be selected as a phenomenological assumption.

km
0–100,000 km; two equal arms of L/2.
dB/km
Typical telecom fiber near 1550 nm: about 0.2 dB/km.
0–1 probability of detecting an arriving photon.
s⁻¹
Generated pairs per second before link and detector losses.
s
Total time, assumed equally divided among four setting pairs.

Advertisement

CHSH result

|CHSH S|
Classical bound: 2
Distance from classical bound
Positive is above 2; negative is below.
Approximate 95% interval
Approximate independent, binomial outcomes.
Modelled Bell-violation distance under selected visibility decay
Not selected
Estimate based on chosen angles and decay assumption.
0Classical 22√2

Calculation breakdown

Setting pairCorrelation EEstimated samples
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′)|

Effective correlation visibility

Prediction mode only.

Total channel loss

αL across the two equal arms.

Transmission per arm

10−αL/20.

Detected pair fraction

(Tη)² under the symmetric model.

Estimated coincidence rate

Detected pairs per second.

Total detected trials

Across all four settings.

Uncertainty assumes independent ±1 outcomes, fixed settings, fair sampling, negligible background/accidentals, and no drift or setting bias. It is a planning estimate, not a loophole-free statistical analysis.

Correlation versus analyzer angle

The curve shows the selected prediction model. Markers identify the four setting pairs.

Predicted correlation curveCorrelation from minus one to one over analyzer-angle parameter from minus ninety to ninety degrees, with markers for the four selected settings.

How to read this model

The calculator uses S = |E(a,b) − E(a,b′) + E(a′,b) + E(a′,b′)|. Local hidden-variable models satisfy S ≤ 2 under the CHSH assumptions; quantum theory is bounded by 2√2. A result above 2 is meaningful only relative to its uncertainty and the experiment’s handling of loopholes.

For prediction with linear-polarization analyzers, the singlet model uses E = −Veffcos[2(a−b)], while |Φ+⟩ uses E = +Veffcos[2(a−b)]. Werner mixing contributes a separate p multiplier. Visibility describes correlation contrast; it is not itself an entanglement measure.

Distance correction: quantum mechanics supplies no universal maximum entanglement distance. Setting-independent symmetric attenuation cancels in normalized correlations when the surviving sample is representative, although it sharply reduces counts and widens uncertainty. The optional exp(−L/Ld) decay is a selectable phenomenological scenario—not a general law of fiber attenuation.

Worked examples

1. Ideal singlet, optimal angles

Inputs: |Ψ−⟩, V = 1; a = 0°, a′ = 45°, b = 22.5°, b′ = 67.5°.

Correlations: −0.7071, +0.7071, −0.7071, −0.7071.

Substitution: |−0.7071 − 0.7071 − 0.7071 − 0.7071| = 2.8284 = 2√2.

Meaning: maximum quantum prediction for this CHSH convention.

2. Werner state near the boundary

Inputs: Werner singlet p = 0.71, V = 1, same optimal angles.

Correlations: −0.5020, +0.5020, −0.5020, −0.5020.

Substitution: |−0.5020 − 0.5020 − 0.5020 − 0.5020| = 2.0082.

Meaning: barely above 2 because p is just above 1/√2; finite data need enough precision to establish a violation.

3. Loss versus selected decay

Inputs: 20 km, 0.2 dB/km, η = 0.60, 10⁶ pairs/s, singlet V = 0.97.

Link: 4 dB total loss, T = 63.10% per arm, detected fraction = 14.33%, about 143,319 coincidences/s.

Without visibility decay: S = 2√2 × 0.97 = 2.7436. With the optional Ld = 50 km assumption: Veff = 0.6502 and S = 1.8390.

Meaning: attenuation changes counts; only the separately selected visibility model changes predicted S.

CHSH and entanglement FAQ

What does a CHSH value above 2 mean?

Under the CHSH assumptions, a statistically significant |S| > 2 is incompatible with local hidden-variable models. Report uncertainty and check experimental loopholes before claiming a violation.

Does S ≤ 2 prove there is no entanglement?

No. An entangled state can fail this particular test because of the state, measurement angles, noise, loss-related sampling, or limited statistics. Bell nonlocality is a stronger condition than entanglement.

Why are 0°, 45°, 22.5°, and 67.5° used?

With this calculator’s linear-polarizer model and CHSH sign convention, they make the four ideal singlet terms add in magnitude and yield 2√2.

Does photon loss reduce S?

Ordinary setting-independent symmetric loss mainly reduces detected coincidences and statistical precision. It does not by itself reduce normalized S. Biased sampling, background, drift, or physical decoherence can change the measured correlations.

What is the difference between visibility and entanglement?

Visibility is measured correlation contrast. Entanglement is a property of the quantum state. Visibility, state fidelity, Werner mixing p, and detector efficiency are related in some experiments but are not interchangeable.

Can entanglement communicate faster than light?

No. Alice’s and Bob’s local outcomes are random. The correlation becomes visible only after they compare results through an ordinary classical channel.

How do I calculate E from coincidence counts?

For each setting pair, use E = (N++ + N−− − N+− − N−+) / (N++ + N+− + N−+ + N−−). Then combine the four E values using the displayed CHSH expression.

How far has entanglement been distributed experimentally?

There is no universal maximum. A prominent 2017 satellite experiment distributed entangled photons to ground stations 1,203 km apart and observed Bell-inequality violation. The practical limit depends on source, channel, detectors, protocol, and required confidence.

Model, assumptions, and sources

Updated: 17 July 2026 · Calculation review: 17 July 2026 (internal formula and interaction checks) · Publisher: Starlight Robotics. No individual credentialed reviewer is claimed. This educational calculator does not measure entanglement, certify a Bell test, correct accidental coincidences, or close detection, locality, freedom-of-choice, or memory loopholes.

Calculation validation

CheckExpectedPage result
Ideal singlet, optimal angles2√2 = 2.8284272.828 (rounding)
Werner p = 1/√2, V = 1, optimal angles2.0000002.000 (rounding)
Equal counts in all four outcomesE = 0 for each pair; S = 00.000
20 km, 0.2 dB/km4 dB total; 63.0957% per arm4.00 dB; 63.10%

Explore more tools