def __eq__(self, other):
if type(self) is type(other) andself._name == other._name andself._params == other._params:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Two measurement options are the same if they are of the same type
        and have the same name and params.

        Args:
            other (MeasOpts): Other Discriminator/Kernel.

        Returns:
            bool: are self and other equal.