state_projection_mps_get_tensor_info#
-
cuquantum.
bindings. cutensornet. state_projection_mps_get_tensor_info( - intptr_t handle,
- intptr_t tensor_network_projection,
- intptr_t env_spec,
- intptr_t extents,
- intptr_t recommended_strides,
Queries the tensor dimension strides and extents for the MPS representation tensor for the specified contiguous 0-, 1-, or 2-site subset of sites.
- Parameters:
handle (intptr_t) – cuTensorNet library handle.
tensor_network_projection (intptr_t) – Tensor network state MPS projection.
env_spec (intptr_t) – Specification of the environment for which the tensor metadata is requested. Note that currently only single site environments are supported.
extents (intptr_t) – Mode extents of the environment MPS tensor. For pure states, the required length of the array is n+2 for an n-site environment specified by env_spec, except for environments which comprise the boundary for open boundary conditions, which are of length n+1. Note that currently only single site environments are supported.
recommended_strides (intptr_t) – Recommended strides of the environment MPS tensor, of the same length as the extents array. Using the recommended strides may offer performance benefits.