Skip to content

Commit

Permalink
Merge branch 'fix_header' into 'main'
Browse files Browse the repository at this point in the history
Unified copyright and license statements

See merge request cuda-hpc-libraries/cuquantum-sdk/cuquantum-public!7
  • Loading branch information
ahehn-nv committed Apr 15, 2022
2 parents 0be6fa9 + 7251ce6 commit c365ac1
Show file tree
Hide file tree
Showing 111 changed files with 384 additions and 627 deletions.
5 changes: 2 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
BSD-3-Clause

Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
3 changes: 1 addition & 2 deletions python/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
BSD-3-Clause

Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
3 changes: 3 additions & 0 deletions python/cuquantum/__init__.pxd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause
4 changes: 4 additions & 0 deletions python/cuquantum/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

from cuquantum import custatevec
from cuquantum import cutensornet
from cuquantum.cutensornet import (
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

# Note: cuQuantum Python follows the cuQuantum SDK version, which is now
# switched to YY.MM and is different from individual libraries' (semantic)
# versioning scheme.
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/custatevec/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

from cuquantum.custatevec.custatevec import *
5 changes: 3 additions & 2 deletions python/cuquantum/custatevec/custatevec.pxd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# TODO: Ultimately, everything should be auto-generated using
# the scripts from the CUDA Python team
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

from libc.stdint cimport intptr_t, int32_t, uint32_t, int64_t

Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/custatevec/custatevec.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

# distutils: language = c++

cimport cython
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

from cuquantum.cutensornet.cutensornet import *
from cuquantum.cutensornet.configuration import *
from cuquantum.cutensornet.memory import *
Expand Down
3 changes: 3 additions & 0 deletions python/cuquantum/cutensornet/_internal/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/cupy_ifc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to seamlessly use Cupy ndarray objects.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/einsum_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
A collection of functions for parsing Einsum expressions.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/enum_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Factories for create options dataclasses, as well as utilities to add docstring to enum classes.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/formatters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Formatters for printing data.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/mem_limit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Memory specification regular expression.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/numpy_ifc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to seamlessly use Numpy ndarray objects.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/optimizer_ifc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface class to encapsulate low-level calls to get or set optimizer information.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/package_ifc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
An abstract interface to certain package-provided operations.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/package_ifc_cupy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to CuPy operations.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/package_ifc_torch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to Torch operations.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/package_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Create map from package names to package interface objects.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/tensor_ifc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to seamlessly use tensors (or ndarray-like objects) from different libraries.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/tensor_ifc_cupy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to seamlessly use Cupy ndarray objects.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/tensor_ifc_numpy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to seamlessly use Numpy ndarray objects.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/tensor_ifc_torch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to seamlessly use Torch tensor objects.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/tensor_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Entry point to using tensors from different libraries seamlessly.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/torch_ifc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Interface to seamlessly use Numpy ndarray objects.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/typemaps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Functions to link type names with CUDA data and compute types.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/_internal/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
A collection of (internal use) helper functions.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/configuration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
A collection of types for defining options to cutensornet.
"""
Expand Down
5 changes: 3 additions & 2 deletions python/cuquantum/cutensornet/cutensornet.pxd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# TODO: Ultimately, everything should be auto-generated using
# the scripts from the CUDA Python team
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

# The C types are prefixed with an underscore because we are not
# yet protected by the module namespaces as done in CUDA Python.
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/cutensornet.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

# distutils: language = c++

cimport cpython
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/memory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

""" Interface for pluggable memory handlers.
"""

Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/cutensornet/tensor_network.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Tensor network contraction with the standard einsum interface using cutensornet.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/utils.pxd
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

from libc.stdint cimport intptr_t
cimport cpython

Expand Down
4 changes: 4 additions & 0 deletions python/cuquantum/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

from enum import IntEnum


Expand Down
4 changes: 4 additions & 0 deletions python/samples/accessor_get.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
import cupy as cp

Expand Down
4 changes: 4 additions & 0 deletions python/samples/accessor_set.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
import cupy as cp

Expand Down
4 changes: 4 additions & 0 deletions python/samples/batch_measure.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
import cupy as cp

Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example using NumPy ndarrays with explicit Einstein summation.
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example10.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example using PyTorch tensors.
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example11.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example using NumPy ndarrays. Return contraction path and optimizer information.
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example12.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Verify FLOPS and largest intermediate size against NumPy for a given path.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example13.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Set sliced modes.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example14.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example illustrating a generalized Einstein summation expression.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example15.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example illustrating a generalized Einstein summation expression.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example16.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example illustrating a batched operation.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example17.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example illustrating mode broadcasting.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example18.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example illustrating ellipsis broadcasting.
"""
Expand Down
4 changes: 4 additions & 0 deletions python/samples/coarse/example19.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES
#
# SPDX-License-Identifier: BSD-3-Clause

"""
Example illustrating ellipsis broadcasting.
"""
Expand Down
Loading

0 comments on commit c365ac1

Please sign in to comment.