View source on GitHub |
Object which can be compared approximately.
cirq.SupportsApproximateEquality(
*args, **kwargs
)
Methods
_approx_eq_
_approx_eq_(
other: Any, *, atol: Union[int, float]
) -> bool
Approximate comparator.
Types implementing this protocol define their own logic for approximate comparison with other types.
Args | |
---|---|
other
|
Target object for approximate comparison. |
atol
|
The minimum absolute tolerance. See np.isclose() documentation for details. |
Returns | |
---|---|
True if objects are approximately equal, False otherwise. Returns NotImplemented when approximate equality is not implemented for given types. |