Registry / ai-ml / cudensitymat-cu13

cudensitymat-cu13

JSON →
library0.5.2pypypiunverified

cuDensityMat is a component of the NVIDIA cuQuantum SDK for density matrix operations on GPU, optimized for CUDA 13. Version 0.5.2 focuses on high-performance tensor operations for quantum computing simulations. Release cadence is tied to cuQuantum SDK updates.

pip install cudensitymat-cu13
INSTALL
IMPORT
SIG · CUDENSITYMAT-CU13
C
cudensitymat-cu13
ai-mlpythonv0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DensityMatrix
from cuquantum import DensityMatrix
from cudensitymat import DensityMatrix

Minimal example using cuDensityMat with CuPy for density matrix operations.

import cudensitymat import cupy as cp # Create a simple density matrix on GPU n_qubits = 2 matrix = cp.eye(2**n_qubits, dtype=cp.complex128) / (2**n_qubits) dm = cudensitymat.DensityMatrix(matrix) # Apply a gate (example: X gate on qubit 0) x_gate = cp.array([[0,1],[1,0]], dtype=cp.complex128) dm.apply_gate(x_gate, [0]) result = dm.get_matrix() print(result)
Debug
Known issues
gotchaPackage name includes a hyphen, but Python modules use underscores or no prefix. The correct import is 'import cudensitymat', not 'cudensitymat-cu13'.
fix
Use 'import cudensitymat' instead of the package name as-is.
affects: all
deprecatedVersion 0.5.x may have breaking changes from earlier pre-release versions. Check migration notes if upgrading from 0.4.x.
fix
Refer to official cuQuantum SDK release notes for API changes.
affects: 0.4.x -> 0.5.x
gotchacuDensityMat requires a compatible CUDA 13 driver and GPU. Ensure your system has the correct NVIDIA driver (R530+) and a supported GPU (Volta or later).
fix
Verify with 'nvidia-smi' that driver supports CUDA 13.
affects: all
breakingThe module name changed from 'cudensitymat' to 'cudensitymat'? Actually consistent, but be aware of potential name changes across cuQuantum versions.
fix
Always use the documented import as per the latest cuQuantum SDK.
affects: all
Upgrade
Version history
0.5.2latest on PyPI · released Apr 30, 2026
Audit
Dependencies
nvidia-cuda-runtime-cu13requiredRequired for CUDA 13 runtime support
nvidia-cublas-cu13optionalRequired for cuBLAS operations
nvidia-custatevec-cu13optionalRequired if using state vector operations from cuQuantum
Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
cudensitymat-cu13 — pip install cudensitymat-cu13 · libregistry