Home

Awesome

GitHub release PyPI - Python Version CI

CI CI

Perceval <a href="https://perceval.quandela.net" target="_blank"> <img src="https://perceval.quandela.net/img/Perceval_logo_white_320X320.png" width="50" height="50"> </a>

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

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

Key Features

Installation

Perceval requires:

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

<img src="https://www.quandela.com/wp-content/themes/quandela/img/logo-QUANDELA.svg" width="300" height=auto>

Twitter Follow YouTube Channel Subscribers