pygsti.tools.mpitools.parallel_apply

Contents

pygsti.tools.mpitools.parallel_apply#

parallel_apply(f, l, comm)#

Apply a function, f to every element of a list, l in parallel, using MPI.

Parameters:
  • f (function) – function of an item in the list l

  • l (list) – list of items as arguments to f

  • comm (MPI Comm) – MPI communicator object for organizing parallel programs

Returns:

results – list of items after f has been applied

Return type:

list