Install Scaluq Python package
Install from PyPI
The most simple way to install Scaluq is running below.
pip install scaluq
The configuration of distributed package is below.
Use OpenMP for parallel processing.
All of the simulation is run on CPU.
Do not use GPU.
Execution Space
defaultandhostis same.
Precision
f32andf64is enabled.
Build from source
If you want to install on the specific commit or with non-default option, you can install Scaluq from source.
The build requirements are below.
Ninja ≥ 1.10
GCC ≥ 13 or LLVM Clang ≥ 18
if you enable CUDA, GCC ≥ 11 is OK, but you cannot use Clang.
CMake ≥ 3.24
CUDA ≥ 12.8 (only when using CUDA)
Python ≥ 3.10 (only when using Python)
When using CUDA, use a host compiler version supported by your CUDA toolkit (see the CUDA Installation Guide Host Compiler Support Policy).
Note: It may work with lower versions, but this has not been verified.
The build options are below.
Variable Name |
Default |
Description |
|---|---|---|
|
- |
|
|
- |
|
|
- |
|
|
- |
|
|
|
Use OpenMP for parallel computation on CPU |
|
|
Enable parallel computation using GPU (CUDA) |
|
|
Build for native CPU architecture of builder’s |
|
- |
Target CPU architecture (see Kokkos CMake Keywords, e.g., |
|
(auto) |
Target Nvidia GPU architecture (see Kokkos CMake Keywords, e.g., |
|
|
Include |
|
|
Include |
|
|
Enable |
|
|
Enable |
|
|
Enable |
|
|
Enable |
To install Scaluq, clone the git repository first and enter.
git clone https://github.com/qulacs/scaluq
cd scaluq
Then, install qulacs with passing configuration by environment variable.
SCALUQ_USE_CUDA=ON SCALUQ_FLOAT32=OFF pip install .