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
- The documentation
- The Community Forum
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| perceval_quandela-1.3.1.tar.gz | 322.3 kB | Without provenance | Details for perceval_quandela-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| perceval_quandela-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for perceval_quandela-1.3.1-py3-none-any.whl |
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
|
Security for perceval-quandela 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.