Object which can be compared for equality mod global phase.



View source

Approximate comparator.

Types implementing this protocol define their own logic for comparison with other types.

other Target object for comparison of equality up to global phase.
atol The minimum absolute tolerance. See np.isclose() documentation for details.

True if objects are equal up to a global phase, False otherwise. Returns NotImplemented when checking equality up to a global phase is not implemented for given types.