← Thomay Lab Outreach

BB84 — Quantum Key Distribution

Buffalo Astronomical Association · Outreach Demo

Polarization basics

Light is a transverse electromagnetic wave — its electric field can oscillate along any direction perpendicular to travel. BB84 uses two pairs of polarization directions, called bases. Within a basis, two perpendicular orientations encode bit 0 and bit 1.

+ basis (rectilinear)

0° → bit 0 90° → bit 1
Horizontal & vertical polarization

× basis (diagonal)

−45° → bit 0 +45° → bit 1
Diagonal & anti-diagonal polarization

A polarizing beamsplitter perfectly distinguishes the two states within one basis. Measure a +basis photon with a ×basis analyzer and the result is 50/50 random — the photon is forced to "choose." That randomness is what makes eavesdropping detectable.

1 · Choose a message

Each letter is encoded as 5 bits (A = 00000, B = 00001, ..., Z = 11001). About half of the raw bits are discarded (when Alice and Bob roll different bases), so we'll need roughly 2× the message length in raw rounds.