configure_state_vector_multi_process#

cuquantum.bindings.custatevecEx.configure_state_vector_multi_process(
int sv_data_type,
int32_t num_wires,
int32_t num_device_wires,
int32_t device_id,
int memory_sharing_method,
global_index_bit_classes,
num_global_index_bits_per_layer,
int32_t num_global_index_bit_layers,
size_t transfer_workspace_size_in_bytes,
intptr_t aux_config,
uint32_t capability,
) intptr_t[source]#

Create configuration for multi-process distributed state vector.

Parameters:
  • sv_data_type (int) – state vector data type.

  • num_wires (int32_t) – number of wires of state vector.

  • num_device_wires (int32_t) – number of wires of state vector on each device.

  • device_id (int32_t) – device id for this process.

  • memory_sharing_method (MemorySharingMethod) – method for sharing GPU virtual device memory between processes.

  • global_index_bit_classes (object) –

    host pointer to an array of global index bit classes for each layer. It can be:

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

    • a Python sequence of _GlobalIndexBitClass.

  • num_global_index_bits_per_layer (object) –

    host pointer to an array specifying number of global index bits per layer. It can be:

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

    • a Python sequence of int32_t.

  • num_global_index_bit_layers (int32_t) – number of global index bit layers.

  • transfer_workspace_size_in_bytes (size_t) – size in bytes of workspace memory for inter-process data transfers.

  • aux_config (intptr_t) – pointer to auxiliary configuration.

  • capability (uint32_t) – bit mask to specify optional features of state vector.

Returns:

dictionary instance that holds state vector

configuration.

Return type:

intptr_t