cuquantum-python-jax-cu13 0.0.5.post0__tar.gz → 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cuquantum_python_jax_cu13-0.0.7/MANIFEST.in +44 -0
- {cuquantum_python_jax_cu13-0.0.5.post0/cuquantum_python_jax_cu13.egg-info → cuquantum_python_jax_cu13-0.0.7}/PKG-INFO +15 -9
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/README.md +11 -6
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/configure.sh +2 -2
- cuquantum_python_jax_cu13-0.0.7/cuquantum/densitymat/jax/__init__.py +20 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/densitymat/jax/_build_info.py +19 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/cppsrc/cudensitymat.h +1139 -103
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/cppsrc/cudensitymat_jax.cpp +15 -19
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/cppsrc/cudensitymat_jax.h +1 -8
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/cppsrc/pybind.cpp +1 -7
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/cppsrc/utils.h +1 -1
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/operator_action.py +83 -75
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/pysrc/__init__.py +1 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/pysrc/base.py +0 -8
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/pysrc/context.py +56 -20
- cuquantum_python_jax_cu13-0.0.7/cuquantum/densitymat/jax/pysrc/elementary_operator.py +474 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/densitymat/jax/pysrc/matrix_operator.py +387 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/pysrc/operator.py +167 -65
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/pysrc/operator_action_prim.py +198 -93
- cuquantum_python_jax_cu13-0.0.7/cuquantum/densitymat/jax/pysrc/operator_term.py +1138 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/densitymat/jax/pysrc/simplifier_config.py +112 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/densitymat/jax/utils.py +858 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/__init__.py +25 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/_build_info.py +19 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/cppsrc/CMakeLists.txt +72 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/cppsrc/custabilizer.h +826 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/cppsrc/custabilizer_jax.cpp +96 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/cppsrc/custabilizer_jax.h +13 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/cppsrc/pybind.cpp +27 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/pysrc/__init__.py +3 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/pysrc/_backend.py +36 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum/stabilizer/jax/pysrc/_ffi.py +81 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7/cuquantum_python_jax_cu13.egg-info}/PKG-INFO +15 -9
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum_python_jax_cu13.egg-info/SOURCES.txt +12 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum_python_jax_cu13.egg-info/requires.txt +2 -0
- cuquantum_python_jax_cu13-0.0.7/cuquantum_python_jax_cu13.egg-info/top_level.txt +3 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/pyproject.toml +6 -4
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/pyproject.toml.template +4 -2
- cuquantum_python_jax_cu13-0.0.7/setup.py +300 -0
- cuquantum_python_jax_cu13-0.0.5.post0/MANIFEST.in +0 -9
- cuquantum_python_jax_cu13-0.0.5.post0/cuquantum/densitymat/jax/__init__.py +0 -18
- cuquantum_python_jax_cu13-0.0.5.post0/cuquantum/densitymat/jax/pysrc/elementary_operator.py +0 -245
- cuquantum_python_jax_cu13-0.0.5.post0/cuquantum/densitymat/jax/pysrc/matrix_operator.py +0 -194
- cuquantum_python_jax_cu13-0.0.5.post0/cuquantum/densitymat/jax/pysrc/operator_term.py +0 -473
- cuquantum_python_jax_cu13-0.0.5.post0/cuquantum/densitymat/jax/utils.py +0 -396
- cuquantum_python_jax_cu13-0.0.5.post0/cuquantum_python_jax_cu13.egg-info/requires.txt +0 -2
- cuquantum_python_jax_cu13-0.0.5.post0/cuquantum_python_jax_cu13.egg-info/top_level.txt +0 -2
- cuquantum_python_jax_cu13-0.0.5.post0/setup.py +0 -117
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/LICENSE +0 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/NV.LICENSE +0 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum/densitymat/jax/cppsrc/CMakeLists.txt +0 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum_python_jax_cu13.egg-info/dependency_links.txt +0 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/cuquantum_python_jax_cu13.egg-info/not-zip-safe +0 -0
- {cuquantum_python_jax_cu13-0.0.5.post0 → cuquantum_python_jax_cu13-0.0.7}/setup.cfg +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
3
|
+
# SPDX-License-Identifier: BSD-3-Clause
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions are met:
|
|
7
|
+
#
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
# list of conditions and the following disclaimer.
|
|
10
|
+
#
|
|
11
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
# and/or other materials provided with the distribution.
|
|
14
|
+
#
|
|
15
|
+
# 3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
# contributors may be used to endorse or promote products derived from
|
|
17
|
+
# this software without specific prior written permission.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
+
#
|
|
30
|
+
|
|
31
|
+
include pyproject.toml.template
|
|
32
|
+
include configure.sh
|
|
33
|
+
include cuquantum/densitymat/jax/cppsrc/CMakeLists.txt
|
|
34
|
+
include cuquantum/densitymat/jax/cppsrc/cudensitymat.h
|
|
35
|
+
include cuquantum/densitymat/jax/cppsrc/cudensitymat_jax.cpp
|
|
36
|
+
include cuquantum/densitymat/jax/cppsrc/cudensitymat_jax.h
|
|
37
|
+
include cuquantum/densitymat/jax/cppsrc/pybind.cpp
|
|
38
|
+
include cuquantum/densitymat/jax/cppsrc/utils.h
|
|
39
|
+
include cuquantum/stabilizer/jax/cppsrc/CMakeLists.txt
|
|
40
|
+
include cuquantum/stabilizer/jax/cppsrc/custabilizer.h
|
|
41
|
+
include cuquantum/stabilizer/jax/cppsrc/custabilizer_jax.cpp
|
|
42
|
+
include cuquantum/stabilizer/jax/cppsrc/custabilizer_jax.h
|
|
43
|
+
include cuquantum/stabilizer/jax/cppsrc/pybind.cpp
|
|
44
|
+
prune tests*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cuquantum-python-jax-cu13
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: NVIDIA cuQuantum Python JAX
|
|
5
5
|
Author-email: NVIDIA Corporation <cuquantum-python@nvidia.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
17
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
17
18
|
Classifier: Environment :: GPU :: NVIDIA CUDA
|
|
18
19
|
Classifier: Environment :: GPU :: NVIDIA CUDA :: 13
|
|
@@ -20,13 +21,13 @@ Requires-Python: >=3.11.0
|
|
|
20
21
|
Description-Content-Type: text/markdown
|
|
21
22
|
License-File: LICENSE
|
|
22
23
|
License-File: NV.LICENSE
|
|
23
|
-
Requires-Dist: cuquantum-python-cu13~=26.
|
|
24
|
-
Requires-Dist: jax[cuda13-local]
|
|
24
|
+
Requires-Dist: cuquantum-python-cu13~=26.9.0
|
|
25
|
+
Requires-Dist: jax[cuda13-local]>=0.8
|
|
25
26
|
Dynamic: license-file
|
|
26
27
|
|
|
27
28
|
# cuQuantum Python JAX
|
|
28
29
|
|
|
29
|
-
cuQuantum Python JAX provides a JAX extension for cuQuantum Python. It exposes selected
|
|
30
|
+
cuQuantum Python JAX provides a JAX extension for cuQuantum Python. It exposes selected functionalities of cuQuantum SDK in a JAX-compatible way that enables JAX frameworks to directly interface with the exposed cuQuantum API. In the current release, cuQuantum JAX exposes JAX interfaces to the Operator Action API from the cuDensityMat library and the GF(2) sparse-dense matrix multiplication from the cuStabilizer library.
|
|
30
31
|
|
|
31
32
|
## Documentation
|
|
32
33
|
|
|
@@ -38,14 +39,17 @@ Please visit the [NVIDIA cuQuantum Python documentation](https://docs.nvidia.com
|
|
|
38
39
|
|
|
39
40
|
The build-time dependencies of the cuQuantum Python JAX package include:
|
|
40
41
|
|
|
41
|
-
*
|
|
42
|
+
* Python 3.11+
|
|
43
|
+
* CUDA Toolkit 12.x or 13.x
|
|
44
|
+
* cmake>=3.22
|
|
45
|
+
* jax[cuda12-local]>=0.8 for CUDA 12 or jax[cuda13-local]>=0.8 for CUDA 13
|
|
42
46
|
* pybind11
|
|
43
47
|
* wheel
|
|
44
48
|
* setuptools>=77.0.3
|
|
45
49
|
|
|
46
50
|
Note:
|
|
47
|
-
- cuQuantum Python JAX is only supported with CUDA 12 and CUDA 13.
|
|
48
|
-
-
|
|
51
|
+
- cuQuantum Python JAX is only supported with CUDA 12 and CUDA 13 and the distributions are CUDA-versioned: `cuquantum-python-jax-cu12` for CUDA 12 and `cuquantum-python-jax-cu13` for CUDA 13.
|
|
52
|
+
- **Build isolation note:** When installing with build isolation (`pip`'s default mode), the JAX version used at build time is determined by the build dependency specification in `pyproject.toml` and may differ from the JAX version pre-installed in the environment. Mismatched build-time and runtime JAX versions can lead to errors when importing cuQuantum's JAX extension. We recommend passing `--no-build-isolation` to `pip install` and pre-installing all build dependencies manually.
|
|
49
53
|
|
|
50
54
|
#### Installation using `jax[cudaXX-local]`
|
|
51
55
|
|
|
@@ -99,9 +103,11 @@ The CUDA version is detected automatically from `$CUDA_PATH` and the wheel will
|
|
|
99
103
|
|
|
100
104
|
Runtime dependencies of the cuQuantum Python JAX package include:
|
|
101
105
|
|
|
106
|
+
* Python 3.11+
|
|
102
107
|
* An NVIDIA GPU with compute capability 7.5+
|
|
103
|
-
*
|
|
104
|
-
*
|
|
108
|
+
* CUDA Toolkit 12.x or 13.x
|
|
109
|
+
* cuquantum-python-cu12~=26.9.0 for CUDA 12 or cuquantum-python-cu13~=26.9.0 for CUDA 13
|
|
110
|
+
* jax[cuda12-local]>=0.8 for CUDA 12 or jax[cuda13-local]>=0.8 for CUDA 13
|
|
105
111
|
|
|
106
112
|
## Developer Notes
|
|
107
113
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# cuQuantum Python JAX
|
|
2
2
|
|
|
3
|
-
cuQuantum Python JAX provides a JAX extension for cuQuantum Python. It exposes selected
|
|
3
|
+
cuQuantum Python JAX provides a JAX extension for cuQuantum Python. It exposes selected functionalities of cuQuantum SDK in a JAX-compatible way that enables JAX frameworks to directly interface with the exposed cuQuantum API. In the current release, cuQuantum JAX exposes JAX interfaces to the Operator Action API from the cuDensityMat library and the GF(2) sparse-dense matrix multiplication from the cuStabilizer library.
|
|
4
4
|
|
|
5
5
|
## Documentation
|
|
6
6
|
|
|
@@ -12,14 +12,17 @@ Please visit the [NVIDIA cuQuantum Python documentation](https://docs.nvidia.com
|
|
|
12
12
|
|
|
13
13
|
The build-time dependencies of the cuQuantum Python JAX package include:
|
|
14
14
|
|
|
15
|
-
*
|
|
15
|
+
* Python 3.11+
|
|
16
|
+
* CUDA Toolkit 12.x or 13.x
|
|
17
|
+
* cmake>=3.22
|
|
18
|
+
* jax[cuda12-local]>=0.8 for CUDA 12 or jax[cuda13-local]>=0.8 for CUDA 13
|
|
16
19
|
* pybind11
|
|
17
20
|
* wheel
|
|
18
21
|
* setuptools>=77.0.3
|
|
19
22
|
|
|
20
23
|
Note:
|
|
21
|
-
- cuQuantum Python JAX is only supported with CUDA 12 and CUDA 13.
|
|
22
|
-
-
|
|
24
|
+
- cuQuantum Python JAX is only supported with CUDA 12 and CUDA 13 and the distributions are CUDA-versioned: `cuquantum-python-jax-cu12` for CUDA 12 and `cuquantum-python-jax-cu13` for CUDA 13.
|
|
25
|
+
- **Build isolation note:** When installing with build isolation (`pip`'s default mode), the JAX version used at build time is determined by the build dependency specification in `pyproject.toml` and may differ from the JAX version pre-installed in the environment. Mismatched build-time and runtime JAX versions can lead to errors when importing cuQuantum's JAX extension. We recommend passing `--no-build-isolation` to `pip install` and pre-installing all build dependencies manually.
|
|
23
26
|
|
|
24
27
|
#### Installation using `jax[cudaXX-local]`
|
|
25
28
|
|
|
@@ -73,9 +76,11 @@ The CUDA version is detected automatically from `$CUDA_PATH` and the wheel will
|
|
|
73
76
|
|
|
74
77
|
Runtime dependencies of the cuQuantum Python JAX package include:
|
|
75
78
|
|
|
79
|
+
* Python 3.11+
|
|
76
80
|
* An NVIDIA GPU with compute capability 7.5+
|
|
77
|
-
*
|
|
78
|
-
*
|
|
81
|
+
* CUDA Toolkit 12.x or 13.x
|
|
82
|
+
* cuquantum-python-cu12~=26.9.0 for CUDA 12 or cuquantum-python-cu13~=26.9.0 for CUDA 13
|
|
83
|
+
* jax[cuda12-local]>=0.8 for CUDA 12 or jax[cuda13-local]>=0.8 for CUDA 13
|
|
79
84
|
|
|
80
85
|
## Developer Notes
|
|
81
86
|
|
|
@@ -73,11 +73,11 @@ echo "Detected CUDA_VERSION=${CUDA_VERSION_RAW} (major=${CUDA_MAJOR}) from ${CUD
|
|
|
73
73
|
# -------------------------------------------------------------------
|
|
74
74
|
case "${CUDA_MAJOR}" in
|
|
75
75
|
12)
|
|
76
|
-
JAX_VERSION_SPEC=">=0.
|
|
76
|
+
JAX_VERSION_SPEC=">=0.8"
|
|
77
77
|
CUDA_CLASSIFIER="Environment :: GPU :: NVIDIA CUDA :: 12"
|
|
78
78
|
;;
|
|
79
79
|
13)
|
|
80
|
-
JAX_VERSION_SPEC=">=0.8
|
|
80
|
+
JAX_VERSION_SPEC=">=0.8"
|
|
81
81
|
CUDA_CLASSIFIER="Environment :: GPU :: NVIDIA CUDA :: 13"
|
|
82
82
|
;;
|
|
83
83
|
*)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: BSD-3-Clause
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
from ._build_info import check_jax_abi as _check_jax_abi
|
|
7
|
+
except ImportError:
|
|
8
|
+
pass
|
|
9
|
+
else:
|
|
10
|
+
_check_jax_abi()
|
|
11
|
+
del _check_jax_abi
|
|
12
|
+
|
|
13
|
+
from .operator_action import operator_action
|
|
14
|
+
from .pysrc import (
|
|
15
|
+
ElementaryOperator,
|
|
16
|
+
MatrixOperator,
|
|
17
|
+
OperatorTerm,
|
|
18
|
+
Operator,
|
|
19
|
+
SimplifierConfig
|
|
20
|
+
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Auto-generated by setup.py at build time; do not edit.
|
|
2
|
+
JAX_BUILD_VERSION = ""
|
|
3
|
+
PROJECT_NAME = "cuquantum-python-jax-cu13"
|
|
4
|
+
|
|
5
|
+
def check_jax_abi() -> None:
|
|
6
|
+
"""Warn whenever the runtime jax version differs from the
|
|
7
|
+
build-time jax version. JAX uses effort-based versioning, so
|
|
8
|
+
any difference -- patch bumps included -- may shift the FFI
|
|
9
|
+
capsule layout these bindings were compiled against."""
|
|
10
|
+
if not JAX_BUILD_VERSION:
|
|
11
|
+
return
|
|
12
|
+
import jax, warnings
|
|
13
|
+
if jax.__version__ != JAX_BUILD_VERSION:
|
|
14
|
+
warnings.warn(
|
|
15
|
+
f"JAX version mismatch: {PROJECT_NAME} was built using "
|
|
16
|
+
f"JAX {JAX_BUILD_VERSION}, current runtime is JAX "
|
|
17
|
+
f"{jax.__version__}. Rebuild against the runtime jax if "
|
|
18
|
+
f"you see issues.",
|
|
19
|
+
RuntimeWarning, stacklevel=3)
|