cuquantum.cutensornet.create_accessor¶
- cuquantum.cutensornet.create_accessor(intptr_t handle, intptr_t state, int32_t n_projected_modes, projected_modes, amplitudes_tensor_strides) intptr_t [source]¶
Create a representation for the tensor network state accessor.
- Parameters
handle (intptr_t) – The library handle.
state (intptr_t) – The tensor network state.
n_projected_modes (int32_t) – The number of modes that are projected out for the state.
projected_modes –
A host array of projected modes for the marginal. It can be
amplitudes_tensor_strides –
A host array of strides for the amplitudes tensor. It can be
- Returns
An opaque tensor network state accessor handle (as Python
int
).- Return type
intptr_t
See also