get_num_ranks#

cuquantum.bindings.cudensitymat.get_num_ranks(intptr_t handle) int32_t[source]#

Returns the total number of distributed processes associated with the given library context in its current distributed execution configuration.

Parameters:

handle (intptr_t) – Library handle.

Returns:

Number of distributed processes.

Return type:

int32_t