Perceval_Interop
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.
Installation
Perceval-Interop requires:
- Python between 3.9 and 3.13
PIP
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 above
GitHub
git clone https://github.com/quandela/Perceval
then to install Perceval:
pip install .
Or for developers:
pip install -e .
Running tests
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
Documentation and Forum
- The documentation
- The Community Forum
Metadata
Release files for perceval-interop 1.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| perceval_interop-1.2.6.tar.gz | 34.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| perceval_interop-1.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.2 kB
Release files / perceval_interop-1.2.6.tar.gz
| Download URL | perceval_interop-1.2.6.tar.gz |
|---|---|
| Size | 34.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dffedf9ec79a56e22b8fe5a0d0c4d956f012b55094fda4e42d63b31dd9dd5a4
|
|
BLAKE2b-256 checksum How to use checksums |
931ebe0a42920f901948b1166e516ee63df5480ff0d7b1f43e7d8c2676b4f067
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / perceval_interop-1.2.6-py3-none-any.whl
| Download URL | perceval_interop-1.2.6-py3-none-any.whl |
|---|---|
| Size | 40.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da5b1f163ecdea976e255bfdb1e8e67a8324a134f43fa180819f0ce7bf8c92c1
|
|
BLAKE2b-256 checksum How to use checksums |
e0cf99148c8d1e1af610477b69e5f068ca9c14e33cd2d46f64defd02df3000eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|