cuquantum.cutensornet.state_prepare(intptr_t handle, intptr_t tensor_network_state, size_t max_workspace_size_device, intptr_t work_desc, intptr_t cuda_stream)[source]

Prepares computation of the full tensor network state, either in the exact or a factorized form.

  • handle (intptr_t) – cuTensorNet library handle.

  • tensor_network_state (intptr_t) – Tensor network state.

  • max_workspace_size_device (size_t) – Upper limit on the amount of available GPU scratch memory (bytes).

  • work_desc (intptr_t) – Workspace descriptor (the required scratch/cache memory sizes will be set).

  • cuda_stream (intptr_t) – CUDA stream.