state_vector_create_single_process#

cuquantum.bindings.custatevecEx.state_vector_create_single_process(
intptr_t sv_config,
streams,
int32_t num_streams,
intptr_t resource_manager,
) intptr_t[source]#

Create state vector.

Parameters:
  • sv_config (intptr_t) – state vector configuration created by a state vector configuration function.

  • streams (object) –

    a pointer to a host array that holds CUDA streams. It can be:

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

    • a Python sequence of intptr_t.

  • num_streams (int32_t) – the number of streams given by the streams argument.

  • resource_manager (intptr_t) – resource manager.

Returns:

state vector instance.

Return type:

intptr_t