cuquantum.cutensornet.create_contraction_plan¶
- cuquantum.cutensornet.create_contraction_plan(intptr_t handle, intptr_t tn_desc, intptr_t info, intptr_t workspace) intptr_t [source]¶
Create a contraction plan for the given tensor network and the associated path.
When this function is called, the optimizer info object should already contain a contraction path.
- Parameters
handle (intptr_t) – The library handle.
tn_desc (intptr_t) – The tensor network descriptor.
info (intptr_t) – The optimizer info handle.
workspace (intptr_t) – The workspace descriptor.
- Returns
An opaque contraction plan handle (as Python
int
).- Return type
intptr_t
See also