Skip to main content

unitarylab-cu12

CUDA 12 native statevector and density-matrix backends for UnitaryLab.

This repository branch builds the CUDA backend as an independent Python wheel. The PyPI distribution name is unitarylab-cu12; the Python import package is unitarylab_cu12.

Supported environment

  • Linux x86_64 and Linux aarch64 server environments
  • Windows x86-64
  • CPython 3.10, 3.11, and 3.12
  • CUDA 12 runtime provided by nvidia-cuda-runtime-cu12
  • cuBLAS provided by nvidia-cublas-cu12
  • NVIDIA driver compatible with the CUDA version used by the wheel

Linux aarch64 wheels target server environments and do not promise Jetson compatibility. macOS, Windows ARM64, and Python 3.13 are not part of the wheel matrix.

Build

Building requires a CUDA 12 development toolkit, a C++ compiler, CMake, and Ninja. Build wheels only; source distributions are intentionally disabled.

python -m build --wheel

Override the CUDA architecture list when necessary:

UNITARYLAB_CUDA_ARCHS="80-real;86-real;89-real;90-real" \
  python -m build --wheel

Install a wheel

python -m pip install unitarylab-cu12

Verify the native extension import:

from unitarylab_cu12 import cudadensity, cugates

print(cugates.__doc__)
print(cudadensity.__doc__)

cugates provides the fused CUDA statevector backend, while cudadensity provides dense CUDA density-matrix execution. The high-level executors remain in the main unitarylab package.

On Linux, extension RUNPATH entries locate libcudart.so.12 and cuBLAS in the NVIDIA runtime wheels. On Windows, the Python package registers the runtime and cuBLAS bin directories before loading either extension; a complete system CUDA Toolkit is not required at runtime.

The machine must still have an NVIDIA driver compatible with CUDA 12. Import checks performed by GitHub Actions verify wheel and runtime-library loading on GPU-less runners; they do not execute CUDA kernels.

GitHub Actions

The Build CUDA Wheels workflow is started manually with workflow_dispatch. It builds Linux x86_64, Linux aarch64, and Windows AMD64 wheels, validates their native dependencies, then stores them as GitHub Actions artifacts for 14 days. It does not publish to PyPI.

Synchronize CUDA sources from main

Keep release-specific packaging files on this branch and synchronize only the shared CUDA source directory:

git switch release/cu12
git fetch origin main
git restore --source origin/main -- \
  unitarylab/backend/cugates/src \
  unitarylab/backend/density_matrix/cudadensity/src
git diff
git add \
  unitarylab/backend/cugates/src \
  unitarylab/backend/density_matrix/cudadensity/src
git commit -m "sync: update CUDA backends from main"

Do not merge main into this branch; doing so would restore the full UnitaryLab source tree.

Metadata

Release files for unitarylab-cu12 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for unitarylab-cu12 0.3.1
File Actions
unitarylab_cu12-0.3.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for unitarylab_cu12-0.3.1-cp312-cp312-win_amd64.whl
unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl
unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details for unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_aarch64.whl
unitarylab_cu12-0.3.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for unitarylab_cu12-0.3.1-cp311-cp311-win_amd64.whl
unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details for unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl
unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ ARM64 Details for unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_aarch64.whl
unitarylab_cu12-0.3.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for unitarylab_cu12-0.3.1-cp310-cp310-win_amd64.whl
unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl
unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ ARM64 Details for unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_aarch64.whl

Total release size: 183.4 MB

Release files / unitarylab_cu12-0.3.1-cp312-cp312-win_amd64.whl

Download URL unitarylab_cu12-0.3.1-cp312-cp312-win_amd64.whl
Size 20.4 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
69249527dbdae9db16f044e48c4be3a421187e9c9e38acbb09b7fdeb1f7361f5
BLAKE2b-256 checksum
How to use checksums
9442e677cef0eb2fdefcdb439f2fab707b0ef4d08e0df538ed4e5f936a48a826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl
Size 20.4 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
01b1103066927c6b2b959869389377f030bdd078e3e60ae5bab9ccd3c1cc9da6
BLAKE2b-256 checksum
How to use checksums
acd1ffc010c796c62f5ad1b6db2d3e926e728195cc8db3d1f1e131bdc26e2ad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL unitarylab_cu12-0.3.1-cp312-cp312-manylinux_2_34_aarch64.whl
Size 20.3 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
a4288ca9449734552454ed3bd263017f6eda68132882db679c45425f3c274087
BLAKE2b-256 checksum
How to use checksums
433539da5050a87f293e19b51c9704fd27ec8ef5591527bbf6e2f23045241963
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp311-cp311-win_amd64.whl

Download URL unitarylab_cu12-0.3.1-cp311-cp311-win_amd64.whl
Size 20.4 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
004add2947346452a55438570bb86dba5b7d95f462d68c43f2cf4a479c511953
BLAKE2b-256 checksum
How to use checksums
07472abcb9a2391aaa782e81d3304a1886197309c7ded9dea8eb243c81be6fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl
Size 20.4 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
8ddb1ac66585f31078758f1673a2f9bca12efc1965ef058c83142abcd25cf937
BLAKE2b-256 checksum
How to use checksums
b25c4651ddb6eea4534014f39bdbcd97e561b14a96ee12b625e8cbca7bb88cf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_aarch64.whl

Download URL unitarylab_cu12-0.3.1-cp311-cp311-manylinux_2_34_aarch64.whl
Size 20.3 MB
Tags CPython 3.11 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
4764944d4d04ef00191232d5bd471550419b45c98508d5650762858b30c3f7c1
BLAKE2b-256 checksum
How to use checksums
4cb41c306de56ba484e48b4d6fca6a4692c154afd2f08b8fbfd4aaf201134fe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp310-cp310-win_amd64.whl

Download URL unitarylab_cu12-0.3.1-cp310-cp310-win_amd64.whl
Size 20.4 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
d4f181b03dc5fd7a472db830cca8d915bac02ef722370f4739a1867b916007d1
BLAKE2b-256 checksum
How to use checksums
fa71be79cd9ddad68b95721d1141c7e42565b63b96cc735120e15ce6fa45e87c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl
Size 20.4 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
7106872efeb1d0c7c7a81661f9ea1e5ac69be34a07ef3ec6bf02427917de966a
BLAKE2b-256 checksum
How to use checksums
3ef8dc85d029ba21f6155c5260bfd46607ff87408268a009ddd8b0d27b3d866e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_aarch64.whl

Download URL unitarylab_cu12-0.3.1-cp310-cp310-manylinux_2_34_aarch64.whl
Size 20.3 MB
Tags CPython 3.10 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
77294e45c7107a5abfc8e0f9c604cb78c47984031d7ff318546d26b16b888303
BLAKE2b-256 checksum
How to use checksums
b674f842c94477272cb753890eb4f443773c5eda8b1a61edaecd06dee9379f25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for unitarylab-cu12 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page