Skip to main content

Interoperability packages between Perceval and other quantum computing frameworks

Project description

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_bridge] #install qiskit and seaborn
pip install perceval-interop[qutip_bridge] #install qutip
pip install perceval-interop[myqlm_bridge] #install myqlm
pip install perceval-interop[cqasm_bridge] #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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

perceval_interop-1.1.1.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

perceval_interop-1.1.1-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

Details for the file perceval_interop-1.1.1.tar.gz.

File metadata

  • Download URL: perceval_interop-1.1.1.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for perceval_interop-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7ab0d0e9fe0ee32cc7079d7db9e329a516f746c116ce0df2739d5ead05d5f906
MD5 2832203bb778d22cb976d485712c4303
BLAKE2b-256 b3a1618899be55dd43081bdb99d390c69ca97db0f23cf6133e217460421a1e81

See more details on using hashes here.

File details

Details for the file perceval_interop-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for perceval_interop-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa9ef65dabdf9a3eb2c69ba3289691af80f1e6f7ec96e21d0e4f98c6ca1d1d55
MD5 54f7b6d8736f18c0393e5ddcf829aad9
BLAKE2b-256 c4b68f4b097caaa05015c461858ae9959c3123b63efb1861f9dbac0095ce3f0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page