To use this Qiskit codebase, create a new Python virtual environment based on the requirements.txt
file, follow these steps:
-
Create a New Virtual Environment:
- Use a virtual environment tool such as
virtualenv
orvenv
to create a new virtual environment.
Example:
virtualenv venv_name # or python -m venv venv_name
- Use a virtual environment tool such as
-
Activate the Virtual Environment:
- Activate the newly created virtual environment.
Example:
# Windows venv_name\Scripts\activate # Mac/Linux source venv_name/bin/activate
-
Install Packages from requirements.txt:
- Install all the required packages listed in the
requirements.txt
file using pip.
Example:
pip install -r requirements.txt
- Install all the required packages listed in the
Run the authenticate QKD protocols:
Follow the instruction in the notebook protocol.ipynb
To test different authenticated protocols (AQKD, ASQKD1, ASQKD2), you can change the relevant imported functions here
from hybridoperations import Bases_preparation_AQKD, measure_message_AQKD
Bases_preparation = Bases_preparation_AQKD
measure_message = measure_message_AQKD