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] #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

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.2.2.tar.gz (33.5 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.2.2-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: perceval_interop-1.2.2.tar.gz
  • Upload date:
  • Size: 33.5 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.2.2.tar.gz
Algorithm Hash digest
SHA256 fba03d4c953a5770a7cc05cc8e608cb8916733cb4ff56a4a8ec355ddb597b4ec
MD5 fcfcd995f65003814b96c78901b04217
BLAKE2b-256 91579ada81a28a74c662b84cb24150035cc77ab92224a2123baada2e2a831969

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for perceval_interop-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8e117de5e2b3956a369dae84d86e918267c1ddb002b708e4205ceb690adabb57
MD5 c980d7e72cb739ecc7204366bc42d1ff
BLAKE2b-256 dcd23440fb43a7a9dd649e57b673c52d808fbe12efeaa6125fe6096f9bd0e92a

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