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 with 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, modelling 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 between 3.10 and 3.14

PIP

We recommend installing it with pip:

pip install --upgrade pip
pip install perceval-quandela

Our qiskit, qutip, cqasm or myqlm bridges have been moved to a separate interoperability package perceval-interop (https://perceval.quandela.net/interopdocs/).

GitHub

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

then to install Perceval:

pip install .

Or for developers:

pip install -e .

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 committed 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-1.2.1.tar.gz (250.6 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-1.2.1-py3-none-any.whl (445.1 kB view details)

Uploaded Python 3

File details

Details for the file perceval_quandela-1.2.1.tar.gz.

File metadata

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

File hashes

Hashes for perceval_quandela-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0e4517069c0681df3f80f8e166890372f42e6acf3f61942bf3b045b3b8c1ce66
MD5 3cd4d5714577fa21ff973e4980b92739
BLAKE2b-256 aa882c6b4e8c35c2f2ff31c3c74a9f8a5fc7dea03dbd76b1b3579b90c4b3ad5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for perceval_quandela-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da6b69fbb509a9c6395b1aa70106c4b2f61284c14a6d6e06d10b412cd14cb4e7
MD5 92f6cfbbaf03e40ae68a3a4dfaa33d7b
BLAKE2b-256 cb2cd6e4e4c21a240ba6e5de7edf3feded75388ee172471a18454508192895a0

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