state_compute#

cuquantum.bindings.cutensornet.state_compute(
intptr_t handle,
intptr_t state,
intptr_t workspace,
state_tensors_out,
intptr_t stream,
) tuple[source]#

Computes the tensor network state representation.

Parameters:
  • handle (intptr_t) – The library handle.

  • state (intptr_t) – The tensor network state.

  • workspace (intptr_t) – The workspace descriptor.

  • state_tensors_out

    A host array of pointer addresses (as Python int) for each output tensor (on device). It can be

    • an int as the pointer address to the array

    • a Python sequence of int

  • stream (intptr_t) – The CUDA stream handle (cudaStream_t as Python int).

Returns:

The metadata of the output tensors: (extents_out, strides_out).

Return type:

tuple