Installation#

Basic install#

QUICHE is available on PyPI as pyquiche. For a basic install, run:

pip install pyquiche

Then import the package from Python:

import quiche

Prebuilt wheels are available for Linux (x86_64, aarch64), macOS 15+ (arm64) and Windows (x64), on Python 3.12 or later. They bundle a multithreaded, double-precision build of QuEST.

For other platforms, custom precision, GPU acceleration or MPI support, QUICHE must be built from source.

Custom install#

Custom installs require building QUICHE from source, which needs CMake, a C++17 compiler and network access to fetch dependencies. MPI- and GPU-enabled builds additionally require the corresponding toolchains, which are not fetched automatically.

QUICHE’s compiled extension depends on:

  • QuEST for simulation. Always fetched from a pinned source archive, since QUICHE depends on internal headers that are not part of the installed interface.

  • nanobind for Python bindings. Toggled with QUICHE_BUILD_BINDINGS.

  • Catch2 for testing. Toggled with QUICHE_BUILD_TESTS.

nanobind and Catch2 are located with find_package and downloaded via FetchContent if not found.

To build the Python package from the published sdist, passing configuration flags through to CMake:

pip install pyquiche --no-binary pyquiche -C cmake.define.ENABLE_DISTRIBUTION=ON

Tip

--no-binary is required: without it pip installs the prebuilt wheel and the configuration flags are ignored.

To build from a local clone instead, run:

git clone https://github.com/Quantum-Motion/quiche.git
cd quiche
pip install .

C++-only install#

To build only the C++ simulator backend, run:

cd quiche
cmake -B build
cmake --build build

Build options are set with -D<OPTION>=<VALUE>. See the QuEST docs for the available simulator options.

Then install using:

cmake --install build --prefix </path/to/install>