cuquantum.cutensornet.state_compute¶
- cuquantum.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 bestream (intptr_t) – The CUDA stream handle (
cudaStream_t
as Pythonint
).
- Returns
The metadata of the output tensors:
(extents_out, strides_out)
.- Return type
See also