|q⟩ Bad Qubits

advanced · Physics · Quantum Cryptography & QKD

The E91 Protocol

Ekert's 1991 protocol (E91) reaches the same goal as BB84 — a shared secret key — but from a strikingly different starting point: shared entanglement. Instead of Alice preparing and sending states, a source distributes entangled pairs, and the correlations of their measurements both generate the key and certify, via a Bell inequality, that no eavesdropper is present.

The entangled resource

A source produces pairs in a maximally entangled Bell state — Ekert used the singlet

Ψ=12(0110),|\Psi^-\rangle = \frac{1}{\sqrt2}\big(|01\rangle - |10\rangle\big),

sending one qubit to Alice and one to Bob. The singlet is rotationally invariant: measured along the same axis, Alice and Bob get perfectly anti-correlated outcomes, no matter which axis they choose. (The triplet Φ+|\Phi^+\rangle works identically up to a relabeling and gives perfect correlation.)

Measurement settings

Each party independently picks, at random, one of several measurement axes in the xxzz plane, specified by angles. For the security test we use the CHSH-optimal settings:

The protocol also includes a shared axis (e.g. both parties offer the direction π4\tfrac{\pi}{4}) for generating key. After all measurements, they publicly announce settings (never outcomes) and partition the rounds:

The correlation function

For the singlet, the expectation of the product of two ±1\pm1-valued spin measurements along directions separated by angle θ\theta is

E(a,b)=cos(ab).E(a, b) = -\cos(a - b).

(The minus sign is the singlet's anti-correlation; along a common axis a=ba=b gives E=1E=-1.) Plug the test-round angles into the CHSH quantity

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').

With the angles above, every relevant axis separation is π/4\pi/4 or 3π/43\pi/4, so each correlator has magnitude cos(π/4)=1/2\cos(\pi/4) = 1/\sqrt2, and the signed sum adds constructively to

S=42=222.828,|S| = \frac{4}{\sqrt2} = 2\sqrt2 \approx 2.828,

the Tsirelson bound — the maximum quantum value, well above the classical/local-hidden-variable limit of 22.

Why violation means security

Any local hidden-variable description — including one where Eve has secretly predetermined the outcomes, or holds a third system correlated with the pair — obeys S2|S| \le 2. Observing S=22|S| = 2\sqrt2 certifies that Alice and Bob's qubits were genuinely entangled and not entangled with any third party. A maximally entangled pair is monogamous: if Alice and Bob's correlations saturate Tsirelson's bound, the pair is pure and Eve is decoupled — she can hold no correlated ancilla. Thus the same data that violates CHSH also bounds Eve's information to zero.

Try it

Compute the CHSH value S|S| for the singlet at Ekert's optimal test angles, using the correlation function E(a,b)=cos(ab)E(a,b) = -\cos(a-b). The grader checks that S=222.8284|S| = 2\sqrt2 \approx 2.8284 — a Bell violation, hence a secure round.

Run your code to see the quantum state.

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