cuquantum.custatevec.sampler_create¶
- cuquantum.custatevec.sampler_create(intptr_t handle, intptr_t sv, int sv_data_type, uint32_t n_index_bits, uint32_t n_max_shots) tuple [source]¶
Create sampler descriptor.
- Parameters
handle (intptr_t) – the handle to the cuStateVec library.
sv (intptr_t) – pointer to state vector.
sv_data_type (int) – data type of state vector.
n_index_bits (uint32_t) – the number of index bits of the state vector.
n_max_shots (uint32_t) – the max number of shots used for this sampler context.
- Returns
intptr_t: pointer to a new sampler descriptor.
size_t: workspace size.
- Return type
A 2-tuple containing
See also