Installation Guide¶
Warning
On Windows, QPE Toolbox is supported only through the Windows Subsystem for Linux (WSL) due to dependency constraints.
Requirements¶
QPE Toolbox is a pure python library and will run on any system as long as its dependencies support it. In practice, this means any 64-bit macOS or Linux distribution should work. Due to PySCF restrictions, Windows is only supported through the Windows Subsystem for Linux (WSL).
Install the python package¶
qpe-toolbox is available on both PyPI and conda-forge. Use the commands below to add qpe-toolbox to an existing python environment using your favorite packaging tool. They also install optional, recommended dependencies.
with uv¶
uv add "qpe-toolbox[recommended]"
with pip¶
pip install "qpe-toolbox[recommended]"
with conda¶
conda install -c conda-forge qpe-toolbox
pip install cotengrust kahypar # add recommended optional dependencies (only on pipy)
with pixi¶
pixi add qpe-toolbox
pixi add cotengrust kahypar # add recommended optional dependencies
Run the examples / Install from sources¶
Installing from sources gives access to our tutorials which contains detailed explanations on the Quantum Phase Estimation algorithm. To run our examples, follow the command below to start jupyter, then right-click on a given .py example and select “Open with > Notebook” or “Jupytext Notebook” to convert it to a notebook (see Jupytext documentation for more details)
with uv¶
This is the recommended installation method. We provide a uv.lock file and use it to run our examples as part of our test suite, therefore this setup is expected to work on any supported platform.
# clone the project
git clone git@github.com:quobly-sw/qpe-toolbox.git && cd qpe-toolbox
# start jupyter to run examples
uv run --locked jupyter lab --notebook-dir=examples/
with pixi¶
Installing with pixi allows to use the MKL as a backend for BLAS/LAPACK, which may provide a speed-up compared to NumPy openblas default.
# clone the project
git clone git@github.com:quobly-sw/qpe-toolbox.git && cd qpe-toolbox
# start jupyter to run examples
pixi run --environment=dev jupyter lab --notebook-dir=examples/
with pip¶
Installing development dependencies with pip requires pip >= 25.1 (for PEP 735 dependency group support). We recommend using uv or pixi for a simpler setup.
# clone the project
git clone git@github.com:quobly-sw/qpe-toolbox.git && cd qpe-toolbox
# Create a virtual environment
python3 -m venv .venv --prompt qpe-toolbox
# activate it
source .venv/bin/activate
# update pip to support dependency-groups
pip install --upgrade pip
# install the package and its dependencies
pip install -e ".[recommended]" --group dev
# start jupyter to run examples
jupyter lab --notebook-dir=examples/