Skip to main content

A powerful Quantum Photonic Framework

Project description

GitHub release PyPI - Python Version CI

CI CI

Perceval

Through a simple object-oriented python API, Perceval provides tools for building a circuit with linear optics components, defining single-photon sources and their error model, manipulating Fock states, running simulations, reproducing published experimental papers results, and experimenting a new generation of quantum algorithms.

It is interfaced with the available QPUs on the Quandela cloud, so it is possible to run computations on an actual photonic computer.

Perceval aims to be a companion tool for developing discrete-variable photonics circuits

  • while simulating their design, modeling their ideal and real-life behaviour;
  • and proposing a normalized interface to control photonic quantum computers;
  • while using powerful simulation backends to get state-of-the-art simulation;
  • and also allowing direct access to the QPUs of Quandela.

Perceval has been developed as a complete toolkit for physicists and quantum computational students, researchers and practitioners.

Key Features

  • Powerful Circuit designer making use of predefined components
  • Simple python API and powerful simulation backends optimized in C
  • Misc technical utilities to manipulate State Vector, Unitary Matrices, and circuit Parameters
  • Transversal tools for visualization compatible with notebooks or local development environments
  • Numerical and symbolical computation
  • Modular architecture welcoming contributions from the community

Installation

Perceval requires:

  • Python 3.8 or above

PIP

We recommend installing it with pip:

pip install --upgrade pip
pip install perceval-quandela

If you are looking to use our qiskit, qutip or myqlm bridges you can specify it:

pip install perceval-quandela[qiskit_bridge] #install qiskit and seaborn
pip install perceval-quandela[qutip_bridge] #install qutip
pip install perceval-quandela[myqlm_bridge] #install myqlm
pip install perceval-quandela[qiskit_bridge, qutip_bridge, myqlm_bridge] #install all above

GitHub

git clone https://github.com/quandela/Perceval

then to install Perceval:

pip install .

Or for developpers:

pip install -e .

Or to use converters:

pip install .[qiskit_bridge, qutip_bridge, myqlm_bridge]

Running tests and benchmarks

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

Benchmark tests for computing-intensive functions are in benchmark/ and can be run with:

pytest benchmark/benchmark_*.py

Comparison benchmarks for different platforms are also commit in .benchmarks/ - see pytest-benchmark documentation for more information.

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-quandela-0.10.0.tar.gz (192.1 kB view details)

Uploaded Source

Built Distribution

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

perceval_quandela-0.10.0-py3-none-any.whl (280.0 kB view details)

Uploaded Python 3

File details

Details for the file perceval-quandela-0.10.0.tar.gz.

File metadata

  • Download URL: perceval-quandela-0.10.0.tar.gz
  • Upload date:
  • Size: 192.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for perceval-quandela-0.10.0.tar.gz
Algorithm Hash digest
SHA256 a22f8d00c1274ecde02afe89b4d7afb1b4bd7011ba49aab82417ffeef80f2806
MD5 c8504fe5eec4f9bb80d64d1744d7de97
BLAKE2b-256 eefa901d12e1ba4273d7832ed46a2f1eaa3ed3f374cdf797c3ca96b4de57e439

See more details on using hashes here.

File details

Details for the file perceval_quandela-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for perceval_quandela-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bad600ddc7a11ae60d982e1c4f860ec8d9fcc12494cfd8181b61bc9144f66b47
MD5 5c79db4bf6d7faeef86e86fc05e6fcda
BLAKE2b-256 4fc7cef89a50ff14db558baa06b5f38b8632e626943cffedb6a8d65a28f5a2a4

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