def __ne__(self, other: Any) -> bool:
        """Checks whether two linear combinations are not exactly equal.

        See __eq__().
        """
        if not isinstance(other, LinearDict):
            return NotImplemented

        return not self == other
Checks whether two linear combinations are not exactly equal.

        See __eq__().
        
cirq-core/cirq/value/linear_dict.py