Learn
Protocol explainers and guided context
Loading protocol summaries, references, and related workbench links.
Preparing learning view
Loading workbench view
Preparing calibrated controls, default presets, and explanatory notes.
Learn
Loading protocol summaries, references, and related workbench links.
Loading workbench view
Preparing calibrated controls, default presets, and explanatory notes.
Prepare-and-measure QKD
Alice and Bob use random bases, discard mismatches, estimate QBER, then reconcile and privacy amplify the sifted key.
Security intuition comes from nonorthogonal states: measurement in the wrong basis disturbs correlations and is visible as excess QBER under ideal assumptions.
Sifted rate is approximately raw detections times the matching-basis probability. A common asymptotic teaching proxy is R >= q Q_mu [1 - f h2(E) - h2(E)].
Sifted bits
12
Demo QBER
0.0%
This deterministic teaching trace shows 16 transmissions, 12 sifted bits, and a demo QBER of 0.0%. It illustrates intercept-resend disturbance only and is not a finite-key or device-imperfection security proof.
| i | Alice bit | Alice basis | Bob basis | Bob bit | Kept | Error |
|---|---|---|---|---|---|---|
| 0 | 0 | + | x | 0 | no | no |
| 1 | 1 | x | + | 1 | no | no |
| 2 | 0 | + | + | 0 | yes | no |
| 3 | 1 | x | x | 1 | yes | no |
| 4 | 1 | + | + | 1 | yes | no |
| 5 | 0 | x | x | 0 | yes | no |
| 6 | 1 | x | + | 0 | no | no |
| 7 | 0 | + | + | 0 | yes | no |
| 8 | 1 | x | x | 1 | yes | no |
| 9 | 0 | + | + | 0 | yes | no |
| 10 | 0 | x | x | 0 | yes | no |
| 11 | 1 | x | + | 0 | no | no |
| 12 | 0 | + | + | 0 | yes | no |
| 13 | 1 | x | x | 1 | yes | no |
| 14 | 0 | + | + | 0 | yes | no |
| 15 | 0 | x | x | 0 | yes | no |
Worksheet mode captures observations from the BB84 mini-demo and exports them as reproducible notes.
Intercepted pulses
2/16
Sifted key length
12 bits
Observed QBER
0%
Step 1
Inspect Alice and Bob basis choices and mark which rows survive sifting.
Step 2
Compare the kept rows only and note which ones turn into visible bit errors.
Step 3
Explain how the observed QBER changes when Eve touches a larger fraction of pulses.
The worksheet table below records the same 16-bit teaching trace used to compute 2/16 sifted bits and a 0.0% QBER proxy. Use it to justify each worksheet answer from visible evidence rather than from generalized security claims.
| i | Alice bit | Alice basis | Bob basis | Bob bit | Eve touched | Kept | Error |
|---|---|---|---|---|---|---|---|
| 0 | 0 | + | x | 0 | yes | no | no |
| 1 | 1 | x | + | 1 | yes | no | no |
| 2 | 0 | + | + | 0 | no | yes | no |
| 3 | 1 | x | x | 1 | no | yes | no |
| 4 | 1 | + | + | 1 | no | yes | no |
| 5 | 0 | x | x | 0 | no | yes | no |
| 6 | 1 | x | + | 0 | no | no | no |
| 7 | 0 | + | + | 0 | no | yes | no |
| 8 | 1 | x | x | 1 | no | yes | no |
| 9 | 0 | + | + | 0 | no | yes | no |
| 10 | 0 | x | x | 0 | no | yes | no |
| 11 | 1 | x | + | 0 | no | no | no |
| 12 | 0 | + | + | 0 | no | yes | no |
| 13 | 1 | x | x | 1 | no | yes | no |
| 14 | 0 | + | + | 0 | no | yes | no |
| 15 | 0 | x | x | 0 | no | yes | no |
Use this worksheet to build intuition about disturbance and sifting. It does not certify secure key generation or model real QKD hardware in detail.
Capture observations, then export the answers as reproducible JSON or Markdown for lab handoff.
Question 1
Which rows survive basis sifting, and why are the others discarded before key generation?
Expected observation: Exactly 12 rows remain because only matching-basis rows contribute to the sifted key in this teaching run.
Question 2
What evidence of disturbance appears after sifting when Eve intercepts part of the traffic?
Expected observation: The kept rows show about 0% QBER, so disturbance becomes visible only after Alice and Bob compare a sample of their sifted outcomes.
Question 3
Why is this lab still only an educational model rather than a certified BB84 security analysis?
Expected observation: The worksheet ignores finite-key proof terms, detector side channels, authentication costs, and calibrated hardware imperfections beyond the simple disturbance story.