pygsti.objects.GateSet.hprobs

GateSet.hprobs(gatestring, returnPr=False, returnDeriv=False, clipTo=None)

Construct a dictionary containing the probability derivatives of every spam label for a given gate string.

Parameters:
  • gatestring (GateString or tuple of gate labels) – The sequence of gate labels specifying the gate string.
  • returnPr (bool, optional) – when set to True, additionally return the probabilities.
  • returnDeriv (bool, optional) – when set to True, additionally return the derivatives of the probabilities.
  • clipTo (2-tuple, optional) – (min,max) to clip returned probability to if not None. Only relevant when returnPr == True.
Returns:

hprobs – A dictionary such that hprobs[SL] = hpr(SL,gatestring,gates,G0,SPAM,SP0,returnPr,returnDeriv,clipTo) for each spam label (string) SL.

Return type:

dictionary