Skip to content

Commit 2ec15f0

Browse files
committed
Merge branch 'release25.03public' into 'main'
sync with internal cuQuantum repo main branch for release (commit 0091f609c) See merge request cuda-hpc-libraries/cuquantum-sdk/cuquantum-public!32
2 parents b3e6d62 + 6f4f9b3 commit 2ec15f0

File tree

280 files changed

+8596
-4195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+8596
-4195
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22

33
BSD-3-Clause
44

python/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22

33
BSD-3-Clause
44

python/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ For instructions on installing *cuQuantum Python*, refer to our
1414
The build-time dependencies of the cuQuantum Python package include:
1515

1616
* CUDA Toolkit 11.x or 12.x
17-
* cuStateVec 1.7.0+
18-
* cuTensorNet 2.6.0+
19-
* cuDensityMat >=0.0.5, <0.1.0
17+
* cuStateVec 1.8.0+
18+
* cuTensorNet 2.7.0+
19+
* cuDensityMat >=0.1.0
2020
* Python 3.10+
2121
* Cython >=0.29.22,<3
2222
* pip 21.3.1+
@@ -56,7 +56,7 @@ Runtime dependencies of the cuQuantum Python package include:
5656
* An NVIDIA GPU with compute capability 7.0+
5757
* Driver: Linux (450.80.02+ for CUDA 11, 525.60.13+ for CUDA 12)
5858
* CUDA Toolkit 11.x or 12.x
59-
* cuStateVec 1.7.0+
59+
* cuStateVec 1.8.0+
6060
* cuTensorNet 2.6.0+
6161
* cuDensityMat >=0.0.5, <0.1.0
6262
* Python 3.10+

python/builder/pep517.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES
1+
# Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES
22
#
33
# SPDX-License-Identifier: BSD-3-Clause
44

@@ -30,9 +30,9 @@ def get_requires_for_build_wheel(config_settings=None):
3030
# set up version constraints: note that CalVer like 22.03 is normalized to
3131
# 22.3 by setuptools, so we must follow the same practice in the constraints;
3232
# also, we don't need the patch number here
33-
cuqnt_require = [f'custatevec-cu{utils.cuda_major_ver}~=1.7', # ">=1.7.0,<2"
34-
f'cutensornet-cu{utils.cuda_major_ver}~=2.6', # ">=2.6.0,<3"
35-
f'cudensitymat-cu{utils.cuda_major_ver}~=0.0.5' # ">=0.0.5, <0.1"
33+
cuqnt_require = [f'custatevec-cu{utils.cuda_major_ver}~=1.8', # ">=1.8.0,<2"
34+
f'cutensornet-cu{utils.cuda_major_ver}~=2.7', # ">=2.7.0,<3"
35+
f'cudensitymat-cu{utils.cuda_major_ver}~=0.1' # ">=0.1, <0.2"
3636
]
3737

3838
return _build_meta.get_requires_for_build_wheel(config_settings) + cuqnt_require

python/cuquantum/__init__.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES
1+
# Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES
22
#
33
# SPDX-License-Identifier: BSD-3-Clause
44

55
from cuquantum import bindings
66
from cuquantum import custatevec
77
from cuquantum import cutensornet
88
from cuquantum import densitymat
9+
from cuquantum import tensornet
910
from cuquantum.cutensornet import (
1011
contract, contract_path, einsum, einsum_path, tensor, tensor_qualifiers_dtype, BaseCUDAMemoryManager, CircuitToEinsum, MemoryPointer,
1112
Network, NetworkOptions, OptimizerInfo, OptimizerOptions, PathFinderOptions,
1213
ReconfigOptions, SlicerOptions, MemoryLimitExceeded)
13-
from cuquantum._utils import ComputeType, cudaDataType, libraryPropertyType
14+
from cuquantum.bindings._utils import ComputeType, cudaDataType, libraryPropertyType
15+
from cuquantum._internal import enum_utils
1416
from cuquantum._version import __version__
1517

1618

@@ -27,23 +29,35 @@
2729
custatevec.CommunicatorType,
2830
custatevec.DataTransferType,
2931
custatevec.StateVectorType,
32+
cutensornet.Status,
3033
cutensornet.ContractionOptimizerInfoAttribute,
3134
cutensornet.ContractionOptimizerConfigAttribute,
3235
cutensornet.ContractionAutotunePreferenceAttribute,
36+
cutensornet.NetworkAttribute,
3337
cutensornet.WorksizePref,
38+
cutensornet.WorkspaceKind,
3439
cutensornet.Memspace,
40+
cutensornet.SmartOption,
3541
cutensornet.GraphAlgo,
3642
cutensornet.MemoryModel,
3743
cutensornet.OptimizerCost,
3844
cutensornet.TensorSVDConfigAttribute,
45+
cutensornet.TensorSVDAlgo,
3946
cutensornet.TensorSVDNormalization,
4047
cutensornet.TensorSVDPartition,
4148
cutensornet.TensorSVDInfoAttribute,
4249
cutensornet.GateSplitAlgo,
50+
cutensornet.BoundaryCondition,
4351
cutensornet.StatePurity,
52+
cutensornet.StateAttribute,
4453
cutensornet.MarginalAttribute,
4554
cutensornet.SamplerAttribute,
55+
cutensornet.AccessorAttribute,
56+
cutensornet.ExpectationAttribute,
57+
cutensornet.StateMPOApplication,
58+
cutensornet.StateMPSGaugeOption,
4659
):
47-
cutensornet._internal.enum_utils.add_enum_class_doc(enum, chomp="_ATTRIBUTE|_PREFERENCE_ATTRIBUTE")
60+
enum_utils.add_enum_class_doc(enum, chomp="_ATTRIBUTE|_PREFERENCE_ATTRIBUTE")
4861

4962
del enum
63+
del enum_utils

python/cuquantum/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES
1+
# Copyright (c) 2021-2025, NVIDIA CORPORATION & AFFILIATES
22
#
33
# SPDX-License-Identifier: BSD-3-Clause
44

@@ -16,11 +16,11 @@ def get_lib_path(name):
1616

1717
# We have switched to use dlopen, force library loading via internal API
1818
if "custatevec" in name:
19-
from cuquantum import custatevec as cusv
20-
cusv._internal.custatevec._inspect_function_pointers()
19+
from cuquantum import bindings
20+
bindings._internal.custatevec._inspect_function_pointers()
2121
elif "cutensor" in name: # cutensor or cutensornet
22-
from cuquantum import cutensornet as cutn
23-
cutn._internal.cutensornet._inspect_function_pointers()
22+
from cuquantum import bindings
23+
bindings._internal.cutensornet._inspect_function_pointers()
2424
elif "cudensitymat" in name:
2525
from cuquantum import bindings
2626
bindings._internal.cudensitymat._inspect_function_pointers()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES
2+
#
3+
# SPDX-License-Identifier: BSD-3-Clause

0 commit comments

Comments
 (0)