A powerful Quantum Photonic Framework
Project description
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:
- Above Python 3.8 and below Python 3.12
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 developers:
pip install -e .
Or to use converters:
pip install .[qiskit_bridge,qutip_bridge,myqlm_bridge,cqasm_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 committed in .benchmarks/
- see pytest-benchmark documentation for more information.
Documentation and Forum
- The documentation
- The Community Forum
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file perceval_quandela-0.11.2.tar.gz
.
File metadata
- Download URL: perceval_quandela-0.11.2.tar.gz
- Upload date:
- Size: 249.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc970cda3366ae84bbad785ec9adcd2ef80659b32bc38c281e1a5249ead143e1 |
|
MD5 | e0ac56dc69768edf7c8baa43454b93a6 |
|
BLAKE2b-256 | 5b521d1060e8fd2959adb6aed2243a38e238201e6d07307b9785ee9295bc5c82 |
File details
Details for the file perceval_quandela-0.11.2-py3-none-any.whl
.
File metadata
- Download URL: perceval_quandela-0.11.2-py3-none-any.whl
- Upload date:
- Size: 346.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b436e82d7cf4b659d031e72a6957265380b132e1d23796f440fce59006445a9 |
|
MD5 | ea512a5ac2497184b8d971c607f9b348 |
|
BLAKE2b-256 | 8ed00fb21dade61efb9d0afb2c29fbd010e4b23fd0b8ea7a39ba586ed5fe7fd4 |