Checkpoint: A Two-Node Protocol
This checkpoint brings the module together. You will build a complete one-hop quantum repeater: two independently prepared Bell pairs, a Bell-state measurement at the repeater, and feed-forward corrections that leave the two end nodes — Alice and Bob — sharing a Bell pair they could never have established directly.
The protocol, end to end
Lay out the register as Alice , repeater , Bob .
- Two elementary links. Create and . At this point Alice is entangled only with the repeater's , and Bob only with .
- Bell-state measurement. The repeater jointly measures in the Bell basis — the inverse of the entangler: then on , then read both out. This consumes the repeater qubits and projects into a Bell state.
- Feed-forward. The two measurement bits determine which Bell state share. Bob applies to standardise on . In circuit form (deferred measurement), this is followed by .
What "success" means
A correct swap leaves Alice and Bob perfectly correlated: a computational-basis readout never finds . The repeater qubits, having been measured, come out uniformly random and carry no remaining link to the data. The grader checks three things:
- all probability lies on outcomes with (the entanglement was swapped to the ends);
- no probability lies on outcomes (no leakage of anti-correlated terms);
- Alice's marginal is balanced — half the weight has — confirming a genuine superposition, not a trivial fixed state.
Why this is the whole module in miniature
Every primitive you studied appears here: a Bell pair is the resource, a Bell-state measurement is the swap engine, classical feed-forward fixes the Pauli frame, and the result is the extended entanglement a repeater chains to reach across a continent. Get this two-node protocol right and you have, in essence, written the inner loop of a quantum internet.
Try it
Implement the full swap and measure. Make all three grader checks pass.
When it succeeds, every populated bar in the Probabilities tab has matching first and last bits — Alice and Bob, never directly connected, now share a Bell pair through the repeater.
Sign in on the full site to ask questions and join the discussion.