pygsti.objects.GateSet.jtracedist

GateSet.jtracedist(otherGateSet, transformMx=None)

Compute the Jamiolkowski trace distance between this gateset and otherGateSet, defined as the maximum of the trace distances between each corresponding gate, including spam gates.

Parameters:
  • otherGateSet (GateSet) – the other gate set to difference against.
  • transformMx (numpy array, optional) – if not None, transform this gateset by G => inv(transformMx) * G * transformMx, for each gate matrix G (and similar for rho and E vectors) before taking the difference. This transformation is applied only for the difference and does not alter the values stored in this gateset.
Returns:

Return type:

float