Skip to content
Pasqal Documentation

Installation

Qadence is fully tested on Linux/MacOS operating systems. For Windows users, we recommend using WSL2 (external) to install a Linux distribution of choice.

Qadence can be installed from PyPI with pip as follows:

pip install qadence

By default, this will also install PyQTorch (external), a differentiable state vector simulator which serves as the main numerical backend for Qadence.

It is possible to install additional backends and the circuit visualization library using the following extras:

  • visualization: to display quantum circuits.
  • pulser: the Pulser (external) backend for composing, simulating and executing pulse sequences for neutral-atom quantum devices (in development).

To install other backends or the visualization tool, please use:

pip install "qadence[pulser, visualization]"

We recommend to use the hatch (external) environment manager to install qadence from source:

python -m pip install hatch
# get into a shell with all the dependencies
python -m hatch shell
# run a command within the virtual environment with all the dependencies
python -m hatch run python my_script.py

If you use Qadence for a publication, we kindly ask you to cite our work using the following BibTex entry:

@article{qadence2024pasqal,
title = {Qadence: a differentiable interface for digital-analog programs.},
author={Dominik Seitz and Niklas Heim and João P. Moutinho and Roland Guichard and Vytautas Abramavicius and Aleksander Wennersteen and Gert-Jan Both and Anton Quelle and Caroline de Groot and Gergana V. Velikova and Vincent E. Elfving and Mario Dagrada},
journal={arXiv:2401.09915},
url = {https://github.com/pasqal-io/qadence},
year = {2024}
}