PhotoniQLAB is a Python framework for simulating photonic quantum information processing (PQIP) experiments by an algebraic approach.
As we know, the scale and complexity of PQIP experiments grow rapidly.
The time-consuming and error-prone analyzing process for these complex experiments keeps annoying researchers.
Typically hours of time and cooperator’s rechecking is needed to verify the correctness of an analysis.
Here comes PhotoniQLAB, a systematic software solution for the pain point.
We have also achieved more appealing goals in PhotoniQLAB beyond its basic duty:
🔧 Virtual photonic-lab-style user experience. You can specify a experiment in the similar way of building up the experimental setup in a real lab.
♾️ Universality. More than 60 existing PQIP experiments involving multiple encoded degree of freedoms covering various subareas have been simulated by PhotoniQLAB.
⚡️ Being efficient enough for most near-term use cases. Because PhotoniQLAB’s creative operators manipulation system is strong but light-weight.
For more details of this project, please refer to our paper:
- photoniqlab
- experiments.......Usage cases covering various fields
- performance.......Code for performance tests
- photoniqlab.......Source code of PhotoniQLAB
- test..............Code for unit tests
Installation
You can install our package by the following command under a Python 3.6 environment.
pip install -e .
Usage
To get started with PhotoniQLAB to simulate a PQIP experiment, you need to create a Python script, e.g. yourscript.py, and describe the target PQIP experiment according to the step-by-step tutorial in PhotoniQLAB paper shown in the section of citation.
You can run the Python script to perform the simulation by the following command.
python yourscript.py
After the simulation process finished, you can get some output pdf files containing the simulation results. The content of each file is described by the following table.
PhotoniQLAB draws a schematic diagram of the experiment setup to help you debug your description.
PhotoniQLAB outputs the final quantum state of this experiment into a PDF file by the representation of creative operators.
From the result we can verify that the cases of outputting two photons at two sides simultaneously have been cancelled out.
Quantum Bernoulli factory PQIP experiment
The experiment setup of the quantum Bernoulli factory (multiplication operation) PQIP implementation (see https://doi.org/10.1088/2058-9565/ac2061) is shown as follows.
The PhotoniQLAB code for simulate this experiment is shown as follows.
PhotoniQLAB draws a schematic diagram of the experiment setup to help you debug your description.
PhotoniQLAB outputs the final quantum state of this experiment into a PDF file by the representation of creative operators, from which we can verify $\ket{h_1, 0}$ has been turned into $\ket{h_1 \cdot 0}$.
Citation
If PhotoniQLAB helps you in your research, please cite our paper :)
PhotoniQLAB
Introduction
PhotoniQLAB is a Python framework for simulating photonic quantum information processing (PQIP) experiments by an algebraic approach.
As we know, the scale and complexity of PQIP experiments grow rapidly. The time-consuming and error-prone analyzing process for these complex experiments keeps annoying researchers. Typically hours of time and cooperator’s rechecking is needed to verify the correctness of an analysis.
Here comes PhotoniQLAB, a systematic software solution for the pain point.
We have also achieved more appealing goals in PhotoniQLAB beyond its basic duty:
For more details of this project, please refer to our paper:
Wu, Z., Wu, J. & Huang, A. PhotoniQLAB: a framework for simulating photonic quantum information processing experiments. Quantum Science and Technology. 6, 024001 (2021)
Directory structure
Installation
You can install our package by the following command under a Python 3.6 environment.
Usage
To get started with PhotoniQLAB to simulate a PQIP experiment, you need to create a Python script, e.g.
yourscript.py
, and describe the target PQIP experiment according to the step-by-step tutorial in PhotoniQLAB paper shown in the section of citation.You can run the Python script to perform the simulation by the following command.
After the simulation process finished, you can get some output pdf files containing the simulation results. The content of each file is described by the following table.
init_state.pdf
after_layerX.pdf
post_selected.pdf
experiment.pdf
Simulate real-life examples
Hong-Ou-Mandel dip experiment
The experiment setup of Hong-Ou-Mandel dip experiment (see https://doi.org/10.48550/arXiv.1711.00080) is shown as follows.
The PhotoniQLAB code for simulate this experiment is shown as follows.
PhotoniQLAB draws a schematic diagram of the experiment setup to help you debug your description.
PhotoniQLAB outputs the final quantum state of this experiment into a PDF file by the representation of creative operators.
From the result we can verify that the cases of outputting two photons at two sides simultaneously have been cancelled out.
Quantum Bernoulli factory PQIP experiment
The experiment setup of the quantum Bernoulli factory (multiplication operation) PQIP implementation (see https://doi.org/10.1088/2058-9565/ac2061) is shown as follows.
The PhotoniQLAB code for simulate this experiment is shown as follows.
PhotoniQLAB draws a schematic diagram of the experiment setup to help you debug your description.
PhotoniQLAB outputs the final quantum state of this experiment into a PDF file by the representation of creative operators, from which we can verify $\ket{h_1, 0}$ has been turned into $\ket{h_1 \cdot 0}$.
Citation
If PhotoniQLAB helps you in your research, please cite our paper :)
__special_katext_id_0__
About
PhotoniQLAB is maintained by the QUANTA lab.
The main maintainers are:
This project is under apache 2.0 license. PhotoniQLAB is free to use under the conditions specified in the license.