pygsti.objects.GateSet.diamonddist¶
-
GateSet.
diamonddist
(otherGateSet, transformMx=None)¶ Compute the diamond-norm distance between this gateset and otherGateSet, defined as the maximum of the diamond-norm 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