Python objects & constants¶
Objects¶
DType class corresponding to the scalar type and dtype of the same name. |
|
DType class corresponding to the scalar type and dtype of the same name. |
|
DType class corresponding to the scalar type and dtype of the same name. |
|
DType class corresponding to the scalar type and dtype of the same name. |
Enums¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Python functions¶
Handle Management API¶
|
Create a cuTensorNet handle. |
|
Destroy a cuTensorNet handle. |
Network Descriptor API¶
|
Create a tensor network descriptor. |
|
Destroy a tensor network descriptor. |
|
Get the output tensor's metadata. |
Get the networks output tensor descriptor. |
|
|
Get the network descriptor attribute. |
|
Set the network descriptor attribute. |
Tensor Descriptor API¶
|
Create a tensor descriptor. |
|
Destroy a tensor descriptor. |
|
Get the tensor's metadata. |
Contraction Optimizer API¶
Create a contraction optimizer info object. |
|
Create a contraction optimizer info object from the packed data. |
|
Update an existing contraction optimizer info object from the packed data. |
|
|
Destroy a contraction optimizer info object. |
Get the Python data type of the corresponding optimizer info attribute. |
|
Get the optimizer info attribute. |
|
Set the optimizer info attribute. |
|
Get the required buffer size for packing the optimizer info object. |
|
Pack the contraction optimizer info data into a contiguous buffer. |
|
Create a contraction optimizer config object. |
|
Destroy a contraction optimizer config object. |
|
Get the Python data type of the corresponding optimizer config attribute. |
|
Get the optimizer config attribute. |
|
Set the optimizer config attribute. |
|
|
Optimize the contraction path, slicing, etc, for the given tensor network. |
Contraction Plan API¶
|
Create a contraction plan for the given tensor network and the associated path. |
|
Destroy a contraction plan. |
Create a handle to hold all autotune parameters. |
|
Destroy the autotue preference handle. |
|
Get the Python data type of the corresponding autotune preference attribute. |
|
Get the autotue preference attributes. |
|
Set the autotue preference attributes. |
|
|
Autotune the contraction plan to find the best kernels for each pairwise tensor contraction. |
Workspace Management API¶
|
Create a workspace descriptor. |
|
Destroy a workspace descriptor. |
|
Compute the required workspace sizes. |
Compute the required workspace sizes for tensor network contraction. |
|
|
Compute the required workspace sizes for |
|
Compute the required workspace sizes for |
Compute the required workspace sizes for |
|
|
Get the workspace size for the corresponding preference and memory space. |
|
Get the workspace size for the corresponding preference and memory space. |
|
Set the workspace pointer and size for the corresponding memory space in the workspace descriptor for later use. |
|
Set the workspace pointer and size for the corresponding memory space and workspace kind in the workspace descriptor for later use. |
|
Get the workspace pointer and size for the corresponding memory space that are set in a workspace descriptor. |
|
Get the workspace pointer and size for the corresponding memory space and workspace kind that are set in a workspace descriptor. |
|
Purge the cached data in the specified memory space. |
Memory Management API¶
|
Set the device memory handler for cuTensorNet. |
|
Get the device memory handler for cuTensorNet. |
Network Contraction API¶
|
Perform the contraction of the input tensors. |
|
Perform the contraction of the input tensors. |
Gradient Computation API¶
|
Compute the gradients of the network w.r.t. |
Slice Group API¶
Create a slice group that contains a sequence of slice IDs from |
|
|
Create a slice group from a sequence of slice IDs. |
|
Destroy the slice group. |
Approximate Tensor Network Execution API¶
|
Perform QR decomposition of a tensor. |
|
Perform SVD decomposition of a tensor. |
|
Perform gate split operation. |
Tensor SVD Config API¶
|
Create a tensor SVD config object. |
|
Destroy a tensor SVD config object. |
|
Get the Python data type of the corresponding tensor SVD config attribute. |
Get the tensor SVD config attribute. |
|
Set the tensor SVD config attribute. |
Tensor SVD Info API¶
|
Create a tensor SVD info object. |
|
Destroy a tensor SVD info object. |
|
Get the Python data type of the corresponding tensor SVD info attribute. |
Get the tensor SVD info attribute. |
Distributed Parallelization API¶
Reset the distributed communicator. |
|
|
Get the number of distributed ranks. |
|
Get the current process rank. |
|
Synchronize the distributed communicator. |
|
Simple helper to get the address to and size of a |
High-Level Tensor Network API¶
|
Create a tensor network state. |
|
Destroy a tensor network state. |
|
Apply a tensor operator to the tensor network state. |
|
Update a tensor operand that has been applied to the tensor network state. |
|
Create a representation for the tensor network state marginal distribution. |
|
Destroy a tensor network marginal representation. |
|
Get the Python data type of the corresponding marginal attribute. |
|
Configures computation of the tensor network state marginal distribution. |
|
Prepares computation of the tensor network state marginal distribution. |
|
Computes the tensor network state marginal distribution. |
|
Creates a tensor network state sampler. |
|
Destroy a tensor network state sampler. |
|
Get the Python data type of the corresponding sampler attribute. |
|
Configures the tensor network state sampler. |
|
Prepares computation of the tensor network state marginal distribution. |
|
Computes the tensor network state marginal distribution. |
Versioning API¶
Query the version of the cuTensorNet library. |
|
Query the version of the CUDA runtime used to build cuTensorNet. |