Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Sensors

Quantum Key Distribution: Modeling and Simulation through BB84 Protocol Using Python3

Akwasi Adu-Kyere, Ethiopia Nigussie, Jouni Isoaho

Published Aug 21, 2022• 49 citations
Publisher

Abstract

Autonomous "Things" is becoming the future trend as the role, and responsibility of IoT keep diversifying. Its applicability and deployment need to re-stand technological advancement. The versatile security interaction between IoTs in human-to-machine and machine-to-machine must also endure mathematical and computational cryptographic attack intricacies. Quantum cryptography uses the laws of quantum mechanics to generate a secure key by manipulating light properties for secure end-to-end communication. We present a proof-of-principle via a communication architecture model and implementation to simulate these laws of nature. The model relies on the BB84 quantum key distribution (QKD) protocol with two scenarios, without and with the presence of an eavesdropper via the interception-resend attack model from a theoretical, methodological, and practical perspective. The proposed simulation initiates communication over a quantum channel for polarized photon transmission after a pre-agreed configuration over a Classic Channel with parameters. Simulation implementation results confirm that the presence of an eavesdropper is detectable during key generation due to Heisenberg's uncertainty and no-cloning principles. An eavesdropper has a 0.5 probability of guessing transmission qubit and 0.25 for the polarization state. During simulation re-iterations, a base-mismatch process discarded about 50 percent of the total initial key bits with an Error threshold of 0.11 percent.

DOI
10.3390/s22166284

Related papers

Enhancing Security of IoT through Quantum Cryptography

Akwasi Adu-Kyere

As the role and responsibility of IoT keeps diversifying, its applicability, deployment, and communication processes needs to re-stand technological advancement. The versatile interaction between IoTs in human-to-machine and machine-to-machine communications also needs to endure cryptographic attacks that relies on mathematical and computational complexities. Security is important in IoT as the vision of autonomous ``Things" is becoming the future trend. Quantum cryptography uses the laws of quantum mechanics for generating a secure key through the manipulation of light properties to secure an end-to-end communication. An analyses on how the advantages of quantum cryptography over classic cryptography can improve IoT communications is approached from theoretical, methodological, and practical perspective. A simulation model designed with CrypTool 2 is implemented using the Python language to simulate quantum cryptographic principles ( quantum mechanics laws) with the BB84 protocol. The statistical analysis from the simulation confirms the presence of an eavesdropper is detectable in the key generation and distribution process. Due to Heisenberg's uncertainty and no-cloning principles, an eavesdropper has a probability of 0.5 chances of guessing the current quantum states and $1/4$ for the four quantum states. For this reason, an average of 50 percent bits from the total initial key is discarded through as base-mismatch process. Error detection and amplification process follows to eliminate all errors as well as strengthening the final shared key which does not match at the end when an eavesdropper is enabled during the simulation. The findings from the simulation also shows that IoT devices can get access to the final shared key through series of network configurations. The QKD nodes at the end of both communication takes care of the initial key transactions for the devices to either query directly or through sub queries. This then becomes an advantage in IoT communicational processes when coupled with classic cryptographic algorithms.

•Sep 21, 2016•0 citations

Security Analysis of the BB84 Quantum Key Distribution Protocol Using Qiskit

Tushar Kumar Chauhan, Sharon Rose J, Rinisha Jeshni K +2 more

The rapid progress of quantum computing demands secure communication protocols which are beyond classical cryptographic techniques. This necessity of Quantum Key Distribution (QKD) is met by providing security relying on the fundamental laws of quantum mechanics. In the work presented, the BB84 protocol is implemented using Qiskit platform provided by IBM. The performance is analyzed for both the ideal channel conditions and an intercept–resend eavesdropping scenario studying its security behavior and performance. 100% key agreement is observed with a QBER of 0% for the BB84 protocol executed under the ideal condition. When an eavesdropper is introduced, the QBER increases significantly, ranging from 16% to 38%, exceeding the acceptable security threshold of 11% and resulting in complete rejection of the generated key. Performance analysis carried out for key sizes between 100 and 1000 qubits shows that the execution time follows O(n) trend growing linearly. This simulation validates the correct operation of the BB84 protocol and demonstrates a detailed performance and security analysis of a QKD system using IBM Qiskit.

International Conference on Devices, Circuits and Systems (ICDCS)•Mar 27, 2026•0 citations

Toward Real-World QKD: A System-Level Simulation of the BB84 Protocol

Rahul Mishra, Lov Kumar

As the digital front becomes our new frontier, and digital data becomes increasingly vulnerable to highly sophisticated cyber attacks, conventional encryption approaches may no longer be sufficient to withstand a quantum attack. The focus of this work is to deploy a simulation of the BB84 protocol, one of the first Quantum Key Distribution (QKD) protocols developed by Charles Bennett and Gilles Brassard in 1984. The simulation involves two communicating parties, Alice and Bob, with Bob creating a secret keys generated cryptographically and sending it reliably over to Alice using quantum bits, or qubits. By leveraging quantum mechanics, this protocol ensures that any interception can be identified, thus bolstering both the integrity and confidentiality of the key exchange through scientists' understanding of superposition and the no-cloning principle. In the simulation, the potential of quantum communication to achieve secure key distribution over an insecure channel is demonstrated. Differently from traditional encryption protocols, QKD guarantees security not on computational but on physical basis. The aim of this paper is to show the feasibility and robustness of the BB84 protocol for actual cryptographic applications. This models the protocol between Alice and Bob, which paves the way for quantum-proof encryption systems and is a relevant step towards next generation cyber security.

International Conference for Advancement in Technology (ICONAT)•Sep 19, 2025•0 citations

Quantum Key Distribution: Simulation and Characterizations

Omer K. Jasim Mohammad, Safia Abbas, El-Sayed M. El-Horbaty +1 more

All traditional cryptographic algorithms used in the network communication environments, relied on mathematical models and computational assumptions, are actually unsafe and apt by many attackers (quantum and man-in-the-middle attacks). Therefore, nowadays Quantum Key Distribution (QKD) promises a secure key agreement by using quantum mechanical systems. QKD becomes a significant trend of new cryptographic revolution. This paper explains how cryptography exploits the quantum mechanics in order to achieve an encryption/decryption process. Additionally, this paper provides a standard simulation for QKD-BB84 protocol and describes improvement key generation and key distribution mechanisms. Then, validation, results and efficiency of BB84 protocol are presented using different security configurations. Finally, our results indicated that the QKD is susceptible to corporate with different security applications and achieve the key availability for such applications. However, it suffers from the higher rate of authentication cost.

Procedia Computer Science•Jan 1, 2015•24 citations

The Mechanics, Security, and Practical Vulnerabilities of the BB84 Quantum Key Distribution Protocol

Anusha Tiwari

As quantum computing threatens classical cryptography like RSA via Shor's algorithm, Quantum Key Distribution (QKD)—especially BB84—offers physics-based security. BB84 leverages quantum principles: Heisenberg Uncertainty, No-Cloning Theorem, and superposition, shifting from math complexity to unbreakable physical laws using polarized photons for key exchange. The protocol detects eavesdropping through Quantum Bit Error Rate (QBER), showing 25% errors in Intercept-Resend attacks. Key challenges like Photon Number Splitting (PNS) attacks are addressed via decoy states. Compared to B92 and E91, BB84 balances feasibility and security best. Despite issues like signal loss, BB84 provides provably secure communication, restoring trust in a post-quantum world.

European Journal of Computer Science and Information Technology•Jan 1, 2026•0 citations

Detection and Analysis of Eavesdropping Attacks on Quantum Key Distribution BB84 Protocol

Godala Madhu

Quantum Key Distribution (QKD) provides an innovative approach for secure communication by utilizing the principles of quantum mechanics. Among various QKD protocols, the BB84 protocol remains the most widely studied and implemented due to its simplicity and theoretical security guarantees. However, practical implementations of BB84 are vulnerable to several eavesdropping attacks and channel imperfections. This paper presents a comprehensive study on the detection and analysis of eavesdropping attacks in the BB84 protocol. The work focuses on common attacks such as intercept-resend attack, photon-number splitting attack, Trojan horse attack, and phase-covariant cloning attack. The effect of these attacks on Quantum Bit Error Rate (QBER) is analyzed in detail. Simulation-based observations are discussed to demonstrate how QBER increases under malicious interference. The study further explores statistical methods for detecting eavesdropping and examines practical countermeasures including decoy states, privacy amplification, and error correction techniques. The paper concludes that BB84 remains robust against eavesdropping when proper detection and mitigation mechanisms are employed.

International Journal of Advanced Research in Science and Technology•Jun 1, 2026•0 citations
Autonomous "Things" is becoming the future trend as the role, and responsibility of IoT keep diversifying. Its applicability and deployment need to re-stand technological advancement. The versatile security interaction between IoTs in human-to-machine and machine-to-machine must also endure mathematical and computational cryptographic attack intricacies. Quantum cryptography uses the laws of quantum mechanics to generate a secure key by manipulating light properties for secure end-to-end communication. We present a proof-of-principle via a communication architecture model and implementation to simulate these laws of nature. The model relies on the BB84 quantum key distribution (QKD) protocol with two scenarios, without and with the presence of an eavesdropper via the interception-resend attack model from a theoretical, methodological, and practical perspective. The proposed simulation initiates communication over a quantum channel for polarized photon transmission after a pre-agreed configuration over a Classic Channel with parameters. Simulation implementation results confirm that the presence of an eavesdropper is detectable during key generation due to Heisenberg's uncertainty and no-cloning principles. An eavesdropper has a 0.5 probability of guessing transmission qubit and 0.25 for the polarization state. During simulation re-iterations, a base-mismatch process discarded about 50 percent of the total initial key bits with an Error threshold of 0.11 percent.
As the role and responsibility of IoT keeps diversifying, its applicability, deployment, and communication processes needs to re-stand technological advancement. The versatile interaction between IoTs in human-to-machine and machine-to-machine communications also needs to endure cryptographic attacks that relies on mathematical and computational complexities. Security is important in IoT as the vision of autonomous ``Things" is becoming the future trend. Quantum cryptography uses the laws of quantum mechanics for generating a secure key through the manipulation of light properties to secure an end-to-end communication. An analyses on how the advantages of quantum cryptography over classic cryptography can improve IoT communications is approached from theoretical, methodological, and practical perspective. A simulation model designed with CrypTool 2 is implemented using the Python language to simulate quantum cryptographic principles ( quantum mechanics laws) with the BB84 protocol. The statistical analysis from the simulation confirms the presence of an eavesdropper is detectable in the key generation and distribution process. Due to Heisenberg's uncertainty and no-cloning principles, an eavesdropper has a probability of 0.5 chances of guessing the current quantum states and 1/41/41/4 for the four quantum states. For this reason, an average of 50 percent bits from the total initial key is discarded through as base-mismatch process. Error detection and amplification process follows to eliminate all errors as well as strengthening the final shared key which does not match at the end when an eavesdropper is enabled during the simulation. The findings from the simulation also shows that IoT devices can get access to the final shared key through series of network configurations. The QKD nodes at the end of both communication takes care of the initial key transactions for the devices to either query directly or through sub queries. This then becomes an advantage in IoT communicational processes when coupled with classic cryptographic algorithms.
The rapid progress of quantum computing demands secure communication protocols which are beyond classical cryptographic techniques. This necessity of Quantum Key Distribution (QKD) is met by providing security relying on the fundamental laws of quantum mechanics. In the work presented, the BB84 protocol is implemented using Qiskit platform provided by IBM. The performance is analyzed for both the ideal channel conditions and an intercept–resend eavesdropping scenario studying its security behavior and performance. 100% key agreement is observed with a QBER of 0% for the BB84 protocol executed under the ideal condition. When an eavesdropper is introduced, the QBER increases significantly, ranging from 16% to 38%, exceeding the acceptable security threshold of 11% and resulting in complete rejection of the generated key. Performance analysis carried out for key sizes between 100 and 1000 qubits shows that the execution time follows O(n) trend growing linearly. This simulation validates the correct operation of the BB84 protocol and demonstrates a detailed performance and security analysis of a QKD system using IBM Qiskit.
As the digital front becomes our new frontier, and digital data becomes increasingly vulnerable to highly sophisticated cyber attacks, conventional encryption approaches may no longer be sufficient to withstand a quantum attack. The focus of this work is to deploy a simulation of the BB84 protocol, one of the first Quantum Key Distribution (QKD) protocols developed by Charles Bennett and Gilles Brassard in 1984. The simulation involves two communicating parties, Alice and Bob, with Bob creating a secret keys generated cryptographically and sending it reliably over to Alice using quantum bits, or qubits. By leveraging quantum mechanics, this protocol ensures that any interception can be identified, thus bolstering both the integrity and confidentiality of the key exchange through scientists' understanding of superposition and the no-cloning principle. In the simulation, the potential of quantum communication to achieve secure key distribution over an insecure channel is demonstrated. Differently from traditional encryption protocols, QKD guarantees security not on computational but on physical basis. The aim of this paper is to show the feasibility and robustness of the BB84 protocol for actual cryptographic applications. This models the protocol between Alice and Bob, which paves the way for quantum-proof encryption systems and is a relevant step towards next generation cyber security.
All traditional cryptographic algorithms used in the network communication environments, relied on mathematical models and computational assumptions, are actually unsafe and apt by many attackers (quantum and man-in-the-middle attacks). Therefore, nowadays Quantum Key Distribution (QKD) promises a secure key agreement by using quantum mechanical systems. QKD becomes a significant trend of new cryptographic revolution. This paper explains how cryptography exploits the quantum mechanics in order to achieve an encryption/decryption process. Additionally, this paper provides a standard simulation for QKD-BB84 protocol and describes improvement key generation and key distribution mechanisms. Then, validation, results and efficiency of BB84 protocol are presented using different security configurations. Finally, our results indicated that the QKD is susceptible to corporate with different security applications and achieve the key availability for such applications. However, it suffers from the higher rate of authentication cost.
As quantum computing threatens classical cryptography like RSA via Shor's algorithm, Quantum Key Distribution (QKD)—especially BB84—offers physics-based security. BB84 leverages quantum principles: Heisenberg Uncertainty, No-Cloning Theorem, and superposition, shifting from math complexity to unbreakable physical laws using polarized photons for key exchange. The protocol detects eavesdropping through Quantum Bit Error Rate (QBER), showing 25% errors in Intercept-Resend attacks. Key challenges like Photon Number Splitting (PNS) attacks are addressed via decoy states. Compared to B92 and E91, BB84 balances feasibility and security best. Despite issues like signal loss, BB84 provides provably secure communication, restoring trust in a post-quantum world.
Quantum Key Distribution (QKD) provides an innovative approach for secure communication by utilizing the principles of quantum mechanics. Among various QKD protocols, the BB84 protocol remains the most widely studied and implemented due to its simplicity and theoretical security guarantees. However, practical implementations of BB84 are vulnerable to several eavesdropping attacks and channel imperfections. This paper presents a comprehensive study on the detection and analysis of eavesdropping attacks in the BB84 protocol. The work focuses on common attacks such as intercept-resend attack, photon-number splitting attack, Trojan horse attack, and phase-covariant cloning attack. The effect of these attacks on Quantum Bit Error Rate (QBER) is analyzed in detail. Simulation-based observations are discussed to demonstrate how QBER increases under malicious interference. The study further explores statistical methods for detecting eavesdropping and examines practical countermeasures including decoy states, privacy amplification, and error correction techniques. The paper concludes that BB84 remains robust against eavesdropping when proper detection and mitigation mechanisms are employed.