Installation
pytket-custatevec requires Python 3.10+ and a Linux machine with an NVIDIA GPU (Compute Capability 7.0+).
Prerequisites
Ensure your machine has the NVIDIA Drivers installed and working (check with nvidia-smi).
You generally do not need to install the full CUDA Toolkit system package, as the Python packages below include the necessary runtime libraries.
1. Install Dependencies
Select your package manager to install the required libraries.
We recommend Conda because it reliably manages the system-level CUDA libraries alongside Python packages.
You can install everything via pip. This will automatically download the binary wheels for cuquantum and cupy.
Linux Requirements
If you see ImportError: libcustatevec.so not found, ensure you have a recent version of pip (pip install --upgrade pip) and a compatible Linux distribution (glibc 2.17+).
2. Verify Installation
You can check if the backend loads correctly by running this one-liner: