def _commutes_(self, other: Any, *, atol: float = 1e-8) -> bool | NotImplementedType:
        """The identity gate commutes with all other gates."""
        if not isinstance(other, raw_types.Gate):
            return NotImplemented
        return True
The identity gate commutes with all other gates.
cirq-core/cirq/ops/identity.py