cuquantum.cutensornet.state_prepare

cuquantum.cutensornet.state_prepare(intptr_t handle, intptr_t state, size_t max_workspace_size_device, intptr_t workspace, intptr_t stream)[source]

Prepares computation of the tensor network state representation.

Parameters
  • handle (intptr_t) – The library handle.

  • state (intptr_t) – The tensor network state handle.

  • max_workspace_size_device (size_t) – The maximal device workspace size (in bytes) allowed for the mariginal computation.

  • workspace (intptr_t) – The workspace descriptor.

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