pygsti.objects.GateSet.bulk_product¶
-
GateSet.
bulk_product
(evalTree, bScale=False, comm=None)¶ Compute the products of many gate strings at once.
Parameters: - evalTree (EvalTree) – given by a prior call to bulk_evaltree. Specifies the gate strings to compute the bulk operation on.
- bScale (bool, optional) – When True, return a scaling factor (see below).
- comm (mpi4py.MPI.Comm, optional) – When not None, an MPI communicator for distributing the computation across multiple processors. This is done over gate strings when a split evalTree is given, otherwise no parallelization is performed.
Returns: - prods (numpy array) –
Array of shape S x G x G, where:
- S == the number of gate strings
- G == the linear dimension of a gate matrix (G x G gate matrices).
- scaleValues (numpy array) – Only returned when bScale == True. A length-S array specifying the scaling that needs to be applied to the resulting products (final_product[i] = scaleValues[i] * prods[i]).