@doc_private
def _equal_up_to_global_phase_(self, other: Any, *, atol: Union[(int, float)]) -> bool:
    'Approximate comparator.\n\n        Types implementing this protocol define their own logic for comparison\n        with other types.\n\n        Args:\n            other: Target object for comparison of equality up to global phase.\n            atol: The minimum absolute tolerance. See `np.isclose()`\n                documentation for details.\n\n        Returns:\n            True if objects are equal up to a global phase, False otherwise.\n            Returns NotImplemented when checking equality up to a global phase\n            is not implemented for given types.\n        '
Approximate comparator.

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

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

Returns:
    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.
@doc_private
def _equal_up_to_global_phase_(self, other: Any, *, atol: Union[(int, float)]) -> bool:
    'Approximate comparator.\n\n        Types implementing this protocol define their own logic for comparison\n        with other types.\n\n        Args:\n            other: Target object for comparison of equality up to global phase.\n            atol: The minimum absolute tolerance. See `np.isclose()`\n                documentation for details.\n\n        Returns:\n            True if objects are equal up to a global phase, False otherwise.\n            Returns NotImplemented when checking equality up to a global phase\n            is not implemented for given types.\n        '