Lab 13: Cryptographic Entanglement
Mythic Preface#
Objective#
Simulate quantum key distribution and entangled bit exchange.
Core Concepts#
- Entangled Qubits: Shared states between sender and receiver
- Measurement Collapse: Reveals eavesdropping
- Key Agreement: Based on correlated outcomes
Protocol#
- Generate entangled bit pairs
- Simulate measurement by Alice and Bob
- Compare outcomes to detect interference
- Extract shared key from matching results
Engineer’s Notes#
Use np.random.choice([0,1]) for bit generation. Simulate entanglement with matching states. Introduce random phase flips to simulate tampering.
