pygsti.objects.GateSet.dpr¶
-
GateSet.
dpr
(spamLabel, gatestring, returnPr=False, clipTo=None)¶ Compute the derivative of a probability generated by a gate string and spam label as a 1 x M numpy array, where M is the number of gateset parameters.
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.
- returnPr (bool, optional) – when set to True, additionally return the probability itself.
- clipTo (2-tuple, optional) – (min,max) to clip returned probability to if not None. Only relevant when returnPr == True.
Returns: - derivative (numpy array) – a 1 x M numpy array of derivatives of the probability w.r.t. each gateset parameter (M is the length of the vectorized gateset).
- probability (float) – only returned if returnPr == True.