Installation
Requirements
Perceptrain is fully tested on Linux/MacOS operating systems. For Windows users, we recommend using WSL2 to install a Linux distribution of choice.
Installation
Perceptrain can be installed from PyPI with pip
as follows:
By default, this will also install PyQTorch, a differentiable state vector simulator which serves as the main numerical backend for Perceptrain.
Install from source
We recommend to use the hatch
environment manager to install perceptrain
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
Warning
hatch
will not combine nicely with other environment managers such Conda. If you want to use Conda,
install it from source using pip
:
Citation
If you use perceptrain for a publication, we kindly ask you to cite our work using the following BibTex entry: