qit.examples.bb84

qit.examples.bb84(n=50)

Bennett-Brassard 1984 quantum key distribution protocol demo.

Simulate the BB84 protocol with an eavesdropper attempting an intercept-resend attack.

Parameters

n (int) – number of qubits transferred