pygsti.objects.GateSet.bulk_pr

GateSet.bulk_pr(spamLabel, evalTree, clipTo=None, check=False, comm=None)

Compute the probabilities of the gate sequences given by evalTree, where initialization & measurement operations are always the same and are together specified by spamLabel.

Parameters:
  • spamLabel (string) – the label specifying the state prep and measure operations
  • evalTree (EvalTree) – given by a prior call to bulk_evaltree. Specifies the gate strings to compute the bulk operation on.
  • clipTo (2-tuple, optional) – (min,max) to clip return value if not None.
  • check (boolean, optional) – If True, perform extra checks within code to verify correctness, generating warnings when checks fail. Used for testing, and runs much slower when True.
  • comm (mpi4py.MPI.Comm, optional) – When not None, an MPI communicator for distributing the computation across multiple processors. Distribution is performed over subtrees of evalTree (if it is split).
Returns:

An array of length equal to the number of gate strings containing the (float) probabilities.

Return type:

numpy array