Catching the Spy: Eavesdropper Detection Analysis in Quantum Key Distribution Networks Using Qiskit
This paper describes a software-defined simulation of the BB84 quantum key distribution (QKD) protocol implemented with the IBM Qiskit AerSimulator. The pipeline models an authorized sender (Advik), an authorized receiver (Bhaskar), and an unauthorized eavesdropper (Ekta). Advik encodes random bits in the rectilinear (+) or diagonal (×) conjugate basis, Ekta performs a measure-and-resend attack with an independently chosen random basis, and Bhaskar measures the received qubits in a separately chosen random basis. After basis reconciliation over a public classical channel, the quantum bit error rate (QBER) of the sifted key is computed. Monte Carlo runs for 10 to 1000 transmitted qubits give a QBER of 0.00% without interception and a mean of about 25% with interception, in agreement with the theoretical value of 25.00%. The spread of the measured QBER decreases with key length, with a standard deviation of 20.7 percentage points at 10 qubits and 2.0 at 1000 qubits. A fixed rule aborts the session when the QBER exceeds 15%. This rule rejected 73.9% of attacked sessions at 20 qubits and all attacked sessions at 500 and 1000 qubits. A twenty-qubit run with a QBER of 0.00% under interception is explained by a computed probability of about 6.9% for that outcome, which illustrates the weakness of fixed thresholds on short keys. The simulation script (bb84_sim.py), the analysis script, and the Monte Carlo output are provided as supplementary material
Authors
- Shubham Patel
Institutions
- Dr. Bhim Rao Ambedkar University (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-19
- DOI
- https://doi.org/10.5281/zenodo.24358452
- Primary Topic
- Quantum Information and Cryptography
- Type
- article
- Field-Weighted Citation Impact
- 0.00