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.2.2

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.2.2
File Actions
unitarylab_cu12-0.2.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for unitarylab_cu12-0.2.2-cp312-cp312-win_amd64.whl
unitarylab_cu12-0.2.2-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.2.2-cp312-cp312-manylinux_2_34_x86_64.whl
unitarylab_cu12-0.2.2-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details for unitarylab_cu12-0.2.2-cp312-cp312-manylinux_2_34_aarch64.whl
unitarylab_cu12-0.2.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for unitarylab_cu12-0.2.2-cp311-cp311-win_amd64.whl
unitarylab_cu12-0.2.2-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.2.2-cp311-cp311-manylinux_2_34_x86_64.whl
unitarylab_cu12-0.2.2-cp311-cp311-manylinux_2_34_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ ARM64 Details for unitarylab_cu12-0.2.2-cp311-cp311-manylinux_2_34_aarch64.whl
unitarylab_cu12-0.2.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for unitarylab_cu12-0.2.2-cp310-cp310-win_amd64.whl
unitarylab_cu12-0.2.2-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.2.2-cp310-cp310-manylinux_2_34_x86_64.whl
unitarylab_cu12-0.2.2-cp310-cp310-manylinux_2_34_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ ARM64 Details for unitarylab_cu12-0.2.2-cp310-cp310-manylinux_2_34_aarch64.whl

Total release size: 182.0 MB

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

Download URL unitarylab_cu12-0.2.2-cp312-cp312-win_amd64.whl
Size 20.3 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5f06ec3686a5f512b4d4882dc0da2b33df7c96e2a0c0eb75ab14c46b2cb063da
BLAKE2b-256 checksum
How to use checksums
f23588b35de1ec887569475f3cb8402a086223d23239cb92e010c4a1eccb3f63
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.2.2-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL unitarylab_cu12-0.2.2-cp312-cp312-manylinux_2_34_x86_64.whl
Size 20.2 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
d4f04a8a3ac536b3ce486583f7260dc51979fc62a9a1f86efb342ac64e9e460b
BLAKE2b-256 checksum
How to use checksums
ef386063d1672478ab6a3719bb92cbc126fcb1f7a16405492eb6c11e14add4ba
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.2.2-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL unitarylab_cu12-0.2.2-cp312-cp312-manylinux_2_34_aarch64.whl
Size 20.2 MB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
c0386f0560376837b718b754cf99b6a045ae28553ea925e3a9a8b5ed94c5c27a
BLAKE2b-256 checksum
How to use checksums
63a3d26aaef9505ca1ea9cafb70a23396ef0fd1f8b564011471a638f12027d10
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.2.2-cp311-cp311-win_amd64.whl

Download URL unitarylab_cu12-0.2.2-cp311-cp311-win_amd64.whl
Size 20.3 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
7bd2f43ae8f880fd4239b6b7b27145606900597f3c6046f35e44d013ae932831
BLAKE2b-256 checksum
How to use checksums
11c4e4de13b675148519407d5ae297b63654ea1c7bda4e2eb4193ea6e9b09dae
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.2.2-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL unitarylab_cu12-0.2.2-cp311-cp311-manylinux_2_34_x86_64.whl
Size 20.2 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
46eb7daab87318c93719459f44f9efc872db20715a45ca16957d2ea17f6bb3f5
BLAKE2b-256 checksum
How to use checksums
e99c9ec5a820d66a8ab356d50dd4ffd319252c3a753fd58b8279423e78eebf72
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.2.2-cp311-cp311-manylinux_2_34_aarch64.whl

Download URL unitarylab_cu12-0.2.2-cp311-cp311-manylinux_2_34_aarch64.whl
Size 20.2 MB
Tags CPython 3.11 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
7d97e6d9af58ea06d3f7438f7b0d5bb9a2de15c85f5b87e24f2a1d859e1183b6
BLAKE2b-256 checksum
How to use checksums
8161f1f866693ceb92fbc03b2ab3a274530a1370ab8736e69d397db5a100a8ab
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.2.2-cp310-cp310-win_amd64.whl

Download URL unitarylab_cu12-0.2.2-cp310-cp310-win_amd64.whl
Size 20.3 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
62133415fe5016ff460e20feb8c709b2a3835b0920c2e28215bce3ca140e1537
BLAKE2b-256 checksum
How to use checksums
f8536d2d6b35eb82ae928857ffb1975de6a176c6c53232fc42db6ca7dc7605b0
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.2.2-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL unitarylab_cu12-0.2.2-cp310-cp310-manylinux_2_34_x86_64.whl
Size 20.2 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
3a86d2cf9f8e0a6e5a5f94db5dfa7d80a9902a942017a59cb38fadf7e586fc63
BLAKE2b-256 checksum
How to use checksums
aa32fba4631c8735e1f1145c4ee78f46cf6a0af0f4d140876c2fd0ad3c64ae02
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.2.2-cp310-cp310-manylinux_2_34_aarch64.whl

Download URL unitarylab_cu12-0.2.2-cp310-cp310-manylinux_2_34_aarch64.whl
Size 20.2 MB
Tags CPython 3.10 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
2f6907b7b3af5ad0d6a6cca0b03cd55b07ff97ab45b016f4434edccf1dc68567
BLAKE2b-256 checksum
How to use checksums
5eceedc00cecde1c7a4e16b00a2396ca94fd3d3d3a1a6723451fb7ac224262b5
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.2.2

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