Simulating the BB84 QKD Protocol: A QuTiP-Based Study in Ideal Quantum Channels

  • Henrique Sobrinho Ghizoni
  • Anderson R. C. Buarque
Keywords: Quantum Key Distribution (QKD), BB84 Protocol, Quantum Cryptography, QuTiP, Quantum Education

Abstract

This work presents a simulation of the BB84 Quantum Key Distribution (QKD) protocol using QuTiP, an open-source Python framework for quantum system modeling. The protocol is implemented in an ideal noise-free quantum channel, enabling a clear analysis of its fundamental stages, including state preparation, basis selection, key sifting, error estimation, and privacy amplification. The simulation reproduces the expected behavior of BB84 and allows the investigation of eavesdropping effects through the Quantum Bit Error Rate (QBER) and mutual information between communicating parties. Results show that increasing the eavesdropping interception rate reduces the mutual information shared between Alice and Bob while increasing the information available to Eve. The analysis indicates that both quantities become comparable at approximately EIR ≈ 0.59, providing a quantitative criterion for assessing the impact of eavesdropping on BB84 security. In addition, computational performance measurements demonstrate that the proposed implementation can be executed efficiently on conventional personal computers, reinforcing its suitability for educational and research applications. The results highlight the potential of QuTiP-based simulations as an accessible and reproducible framework for studying the security principles underlying quantum key distribution.

Published
2026-11-25