pygsti.objects.GateSet.pr

GateSet.pr(spamLabel, gatestring, clipTo=None, bUseScaling=True)

Compute the probability of the given gate sequence, where initialization & measurement operations are together specified by spamLabel.

Parameters:
  • spamLabel (string) – the label specifying the state prep and measure operations
  • gatestring (GateString or tuple of gate labels) – The sequence of gate labels specifying the gate string.
  • clipTo (2-tuple, optional) – (min,max) to clip return value if not None.
  • bUseScaling (bool, optional) – Whether to use a post-scaled product internally. If False, this routine will run slightly faster, but with a chance that the product will overflow and the subsequent trace operation will yield nan as the returned probability.
Returns:

Return type:

float