cuquantum.custatevec.dist_index_bit_swap_scheduler_set_index_bit_swaps¶
- cuquantum.custatevec.dist_index_bit_swap_scheduler_set_index_bit_swaps(intptr_t handle, intptr_t scheduler, swapped_bits, uint32_t n_swapped_bits, mask_bit_string, mask_ordering, uint32_t mask_len) uint32_t [source]¶
Schedule the index bits to be swapped across processes.
- Parameters
handle (intptr_t) – The library handle.
scheduler (intptr_t) – The scheduler descriptor.
swapped_bits –
A host array of pairs of swapped index bits. It can be
an
int
as the pointer address to the nested sequencea nested Python sequence of swapped index bits
n_swapped_bits (uint32_t) – The number of pairs of swapped index bits.
mask_bit_string –
A host array for specifying mask values. It can be
an
int
as the pointer address to the arraya Python sequence of mask values
mask_ordering –
A host array of mask ordering. It can be
an
int
as the pointer address to the arraya Python sequence of index bit ordering
mask_len (uint32_t) – The length of
mask_ordering
.