state_vector_reassign_wire_ordering#

cuquantum.bindings.custatevecEx.state_vector_reassign_wire_ordering(
intptr_t state_vector,
wire_ordering,
int32_t wire_ordering_len,
)[source]#

Reassign wire ordering to state vector.

Parameters:
  • state_vector (intptr_t) – state vector instance.

  • wire_ordering (object) –

    the pointer to a integer host array that holds wire ordering. It can be:

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

    • a Python sequence of int32_t.

  • wire_ordering_len (int32_t) – the length of wire ordering.