Skip to content

This project implements a simulated Quantum Key Distribution (QKD) proposal using the Qiskit framework

Notifications You must be signed in to change notification settings

jdanielescanez/egc25

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

EGC25 Proposal

πŸ”§ Implementation Overview

This project implements a simulated Quantum Key Distribution (QKD) proposal using the Qiskit framework. The implementation follows a modular structure, mirroring the protocol’s theoretical phases.

πŸ“¦ Dependencies

Make sure to install the required libraries:

pip install qiskit==2.1 qiskit-aer==0.17.1

βš™οΈ Configuration

Global constants are defined for the number of qubit pairs, qubit indices, and whether an eavesdropper (Eve) is active:

is_eve = False  # Set to True to simulate an intercept-resend attack
N = 10000       # Number of qubit pairs

πŸ”— Entanglement Generation

Each round begins by generating entangled qubit pairs in the Bell state |Φ+⟩ = (|00⟩ + |11⟩)/√2 using a Hadamard and CNOT gate sequence.

🎲 Random Basis Selection

Alice, Bob, and optionally Eve choose measurement bases at random. Basis 0 = computational {|0⟩, |1⟩}, Basis 1 = Hadamard {|+⟩, |βˆ’βŸ©}.

πŸ§ͺ Measurement and Interception

Each party measures their qubit based on the selected basis. If Eve is active, she performs an intercept-resend attack, modifying the protocol's behavior and generating detectable anomalies.

πŸ” Key Extraction

Key bits are inferred based on announced non-orthogonal basis subsets. If a participant's result contradicts the other's announcement, the original bit can be inferred and used in the key.

βœ… Key Validation

After key extraction, the protocol checks:

  • Whether the key length is within the expected statistical bounds.
  • Whether matching bases yield matching results (for integrity).

If the thresholds are not met, eavesdropping is suspected, and the protocol must restart.

About

This project implements a simulated Quantum Key Distribution (QKD) proposal using the Qiskit framework

Topics

Resources

Stars

Watchers

Forks