state_vector_permute_index_bits#

cuquantum.bindings.custatevecEx.state_vector_permute_index_bits(
intptr_t state_vector,
permutation,
int32_t permutation_len,
int permutation_type,
)[source]#

Permute index bits and wires of state vector.

Parameters:
  • state_vector (intptr_t) – StateVector instance.

  • permutation (object) –

    a host pointer to an integer array specifying the permutation. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of int32_t.

  • permutation_len (int32_t) – length of the permutation.

  • permutation_type (PermutationType) – permutation type (scatter or gather).