The module computes Kraus-operators for a hybrid quantum memory consisting of a single-photon source and a group-iv color center in diamond. The paper [https://arxiv.org/abs/2510.07045] contains comprehensive numerical examples which can be reproduced using the provided software code.
Users may select optical control for the SnV or microwave control for the SiV and SnV for both read-in and read-out, and in all cases they can configure photon-generation fidelity of the auxiliary photon source, bandwidth of the incoming photon for read-in and read-out and the nanophotonic system’s temperature. The user can also choose between the optimized phase gate and manually chosen parameters to produce a phase gate as well as the optimized spin gate and manually set propagated spin states. If microwave control is chosen, strain as well as DC and AC magnetic field strengths and orientations are also adjustable; under optical control these parameters remain fixed.
Python version >= 3.10 is necessary.
The provided code can be run using either the Dockerfile or by manually installing the required libraries.
-
Manually install required libraries (recommended)
Save all files from the repository in the same folder.
Install the libraries listed in requirements.txt using pip.
Install qsi using the following command:
pip install git+https://github.com/tqsd/special_issue_quantum.git@master
Run the module main.py.
-
Dockerfile
Save all files from the repository in the same folder.
Start Docker.
Navigate to the folder containg all files using the command prompt.
Type the following commands
docker build -t my-python-app .
docker run -it --rm my-python-app
Note: To automatically abort the code after the state is displayed when using Docker, ensure the following lines are uncommented in main.py:
import os
os._exit(0)