Catching the Spy: Eavesdropper Detection Analysis in Quantum Key Distribution Networks Using Qiskit
Year: 2026
Type: article
Abstract: 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
Author: Patel, Shubham
Institution: Dr. Bhimrao Ambedkar University
Language: English
Subfield: Atomic and Molecular Physics, and Optics
Field: Physics and Astronomy
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7236773311
