This repository contains code for simulation of famous QKD Protocols like BB84 and E91. We will use Python modules like Qiskit and Flask to achieve this. In the internet, there are a lot of simulating codes for these protocols. They perfectly demonstrate the mathematics behind these protocols. But, most of them fail to demonstrate the basic idea behind the Key Distribution. The protocol is actually designed to transfer the Key from one device to the other. Only demonstrating the mathematics behind it, is not enough. We need to show the real world application of the protocol.
So we used Flask module of Python to transfer the Key from one device to the other. We used Qiskit module to simulate the quantum circuit on our classical computers.
Our submited report can be found here: Report
-
Clone the repository.
git clone https://github.com/SoumikSamanta10/Simulation-QKD-protocols.git
-
Open the terminal and navigate to the directory.
cd Simulation-QKD-protocols
-
Install virtual environment package.
pip install virtualenv
-
make a virtual environment.
virtualenv venv
-
Activate the virtual environment. Windows:
./venv/Scripts/activate
Linux:source venv/bin/activate
-
Install the dependencies.
pip install -r requirements.txt
-
Run the codes as you want.