cuquantum.cutensornet.create_accessor¶
- cuquantum.cutensornet.create_accessor(intptr_t handle, intptr_t tensor_network_state, int32_t num_projected_modes, projected_modes, amplitudes_tensor_strides) intptr_t [source]¶
Creates a tensor network state amplitudes accessor.
- Parameters
handle (intptr_t) – cuTensorNet library handle.
tensor_network_state (intptr_t) – Defined tensor network state.
num_projected_modes (int32_t) – Number of projected state modes (tensor network state modes projected to specific basis vectors).
projected_modes (object) –
Projected state modes (may be NULL when none or all modes are projected). It can be:
an
int
as the pointer address to the array, ora Python sequence of
int32_t
.
amplitudes_tensor_strides (object) –
Mode strides for the resulting amplitudes tensor. If NULL, the default generalized column-major strides will be assumed. It can be:
an
int
as the pointer address to the array, ora Python sequence of
int64_t
.
- Returns
Tensor network state amplitudes accessor.
- Return type
intptr_t
See also