Skip to content

Perceval interoperability tools and classes with other quantum frameworks

License

Notifications You must be signed in to change notification settings

Quandela/Perceval_Interop

GitHub release PyPI - Python Version CI

CI CI

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

Twitter Follow YouTube Channel Subscribers

About

Perceval interoperability tools and classes with other quantum frameworks

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages