accessor_compute#
-
cuquantum.
bindings. cutensornet. accessor_compute( - intptr_t handle,
- intptr_t tensor_network_accessor,
- projected_mode_values,
- intptr_t work_desc,
- intptr_t amplitudes_tensor,
- intptr_t state_norm,
- intptr_t cuda_stream,
Computes the amplitudes of the tensor network state.
- Parameters:
handle (intptr_t) – cuTensorNet library handle.
tensor_network_accessor (intptr_t) – Tensor network state amplitudes accessor.
projected_mode_values (object) –
The values of the projected state modes or NULL pointer if there are no projected modes. It can be:
an
int
as the pointer address to the array, ora Python sequence of
int64_t
.
work_desc (intptr_t) – Workspace descriptor (the required scratch/cache memory buffers must be set by the user).
amplitudes_tensor (intptr_t) – Storage for the computed tensor network state amplitudes tensor.
state_norm (intptr_t) – The squared 2-norm of the underlying tensor circuit state (Host pointer). The returned scalar will have the same numerical data type as the tensor circuit state. Providing a NULL pointer will ignore norm calculation.
cuda_stream (intptr_t) – CUDA stream.
See also