Skip to main content

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

Metadata

Release files for perceval-quandela 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for perceval-quandela 1.3.1
File Size Uploaded
perceval_quandela-1.3.1.tar.gz 322.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for perceval-quandela 1.3.1
File Interpreter ABI Platform
perceval_quandela-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 901.2 kB

Release files / perceval_quandela-1.3.1.tar.gz

Download URL perceval_quandela-1.3.1.tar.gz
Size 322.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e58bf0910dd80737a9a9abbc98b952f551afe6098d2d63b52e4664367c2ee71f
BLAKE2b-256 checksum
How to use checksums
25336841362eea947553e81340508833ea2cf79c41251f6929acc4fb362af385
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / perceval_quandela-1.3.1-py3-none-any.whl

Download URL perceval_quandela-1.3.1-py3-none-any.whl
Size 578.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f69357674b1170d22daa9f8ab5cefa0d4600e851946131a4ead53451dfc23286
BLAKE2b-256 checksum
How to use checksums
1160a5be14ea5d3a6a98758b8c9d99abdc09953d937f1b0656e898d2b22c5b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3.0

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.5

2 release files

0.10.4

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.10.0

2 release files

0.9.3

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page