cuquantum.cutensornet.accessor_compute¶
- cuquantum.cutensornet.accessor_compute(intptr_t handle, intptr_t accessor, projected_mode_values, intptr_t workspace, intptr_t amplitudes_tensor, intptr_t state_norm, intptr_t stream)[source]¶
Computes the tensor network state amplitudes.
- Parameters
handle (intptr_t) – The library handle.
accessor (intptr_t) – The tensor network state accessor handle.
projected_mode_values –
A host array of values for the projected modes. It can be
workspace (intptr_t) – The workspace descriptor.
amplitudes_tensor (intptr_t) – The pointer address (as Python
int) for storing the computed amplitudes.state_norm (intptr_t) – The pointer address (as Python
int) for storing the 2-norm of the underlying state. If set to 0 (NULLpointer), the norm calculation will be ignored.stream (intptr_t) – The CUDA stream handle (
cudaStream_tas Pythonint).
See also