Perceval_Interop is designed to facilitate a bridge between Perceval, a photonic quantum computing framework, and several leading gate-based frameworks through a python API.
It provides converters to translate gate-based quantum circuits from various frameworks into Perceval's linear optical circuits using dual rail encoding. Currently supported frameworks include:
- Quantum gate circuit conversion from Qiskit, myQLM, and cQASM.
- Quantum states conversion from Qutip and Qiskit.
Perceval-Interop requires:
- Python between 3.9 and 3.13
We recommend installing it with pip, and selecting any interop package such as qiskit, qutip, myqlm, or cqasm:
pip install --upgrade pip
pip install perceval-interop[qiskit] #install qiskit and seaborn
pip install perceval-interop[qutip] #install qutip
pip install perceval-interop[myqlm] #install myqlm
pip install perceval-interop[cqasm] #install cqasm
pip install perceval-interop[all] #install all abovegit clone https://github.com/quandela/Percevalthen to install Perceval:
pip install .Or for developers:
pip install -e .Unit tests files are part of the repository in tests/ and can be run with:
pip install -r tests/requirements.txt
pytest
Additionally, you can see a coverage report with the command:
pytest --cov=perceval-interop
- The documentation
- The Community Forum
