initialize_state_vector#

cuquantum.bindings.custatevec.initialize_state_vector(
intptr_t handle,
intptr_t sv,
int sv_data_type,
uint32_t n_index_bits,
int sv_type,
)[source]#

Initialize the state vector to a certain form.

Parameters:
  • handle (intptr_t) – the handle to the cuStateVec library.

  • sv (intptr_t) – state vector.

  • sv_data_type (int) – data type of state vector.

  • n_index_bits (uint32_t) – the number of index bits.

  • sv_type (StateVectorType) – the target quantum state.