Loading…

Quantum Key Distribution (bb84) Preview

Physics Optics • Quantum and Modern Optics Applications (capstone)

View all topics

Simulate a BB84 quantum-key-distribution round with random rectilinear/diagonal bases, compute the sifted key length, the observed QBER, and the intercept-resend detection probability.

Inputs
Alice and Bob choose random BB84 bases on each run. The sifted key keeps only positions where their bases match. With intercept-resend eavesdropping, the expected error rate on the sifted key is about \(25\%\), and the ideal detection probability after checking \(m\) sifted bits is \(1-(3/4)^m\).
Animation
Ready
Ready
Interactive BB84 preview
The left panel shows polarized photons sent from Alice to Bob, with Eve inserted if enabled. The upper-right panel shows cumulative sifted-key length versus photon index. The lower-right panel shows intercept-resend detection probability versus checked sifted bits.
Drag to pan. Use the mouse wheel to zoom. Fit view restores the default framing. Press Play to animate the photons and the running BB84 statistics.
Enter values and click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Why is the sifted key only about half of the transmitted bits?

Because Alice and Bob choose between two bases at random, so their bases match on only about half of the positions on average.

Why does eavesdropping create errors in BB84?

Because if Eve measures in the wrong basis, she disturbs the quantum state and can resend the wrong polarization, which later appears as errors in the sifted key.

Why is the ideal intercept-resend error rate about 25%?

Because Eve chooses the wrong basis half the time, and in those disturbed cases Bob’s sifted result is wrong half the time, giving an average sifted-key error rate of one quarter.

What does the detection probability formula mean?

It gives the ideal probability that Alice and Bob catch an intercept-resend eavesdropper after publicly checking m sifted bits: Pdet = 1 - (3/4)^m.