create_sampler#
-
cuquantum.
bindings. cutensornet. create_sampler( - intptr_t handle,
- intptr_t tensor_network_state,
- int32_t num_modes_to_sample,
- modes_to_sample,
Creates a tensor network state sampler.
- Parameters:
handle (intptr_t) – cuTensorNet library handle.
tensor_network_state (intptr_t) – Tensor network state.
num_modes_to_sample (int32_t) – Number of the tensor network state modes to sample from.
modes_to_sample (object) –
Pointer to the state modes to sample from (can be NULL when all modes are requested). It can be:
an
int
as the pointer address to the array, ora Python sequence of
int32_t
.
- Returns:
Tensor network sampler.
- Return type:
intptr_t
See also