cuquantum.cutensornet.workspace_compute_contraction_sizes(intptr_t handle, intptr_t desc_net, intptr_t optimizer_info, intptr_t work_desc)[source]

Computes the workspace size needed to contract the input tensor network using the provided contraction path.

  • handle (intptr_t) – Opaque handle holding cuTensorNet’s library context.

  • desc_net (intptr_t) – Describes the tensor network (i.e., its tensors and their connectivity).

  • optimizer_info (intptr_t) – Opaque structure.

  • work_desc (intptr_t) – The workspace descriptor in which the information is collected.