scqubits.utils.cpu_switch.get_map_method#
- scqubits.utils.cpu_switch.get_map_method(num_cpus)[source]#
Selects the correct .map method depending on the specified number of desired cores. If num_cpus>1, the multiprocessing/pathos pool is started here.
- Parameters:
num_cpus (int) –
- Returns:
.map method to be used by caller
- Return type:
function