def METHOD_NAME(self):
    """Test that the eigvals property controls the hash property."""
    m1 = ExpectationMP(eigvals=[-0.5, 0.5], wires=qml.wires.Wires(0))
    m2 = ExpectationMP(eigvals=[-0.5, 0.5], wires=qml.wires.Wires(0), id="something")
    assert m1.hash == m2.hash
    m3 = ExpectationMP(eigvals=[-0.5, 0.5], wires=qml.wires.Wires(1))
    assert m1.hash != m3.hash
    m4 = ExpectationMP(eigvals=[-1, 1], wires=qml.wires.Wires(1))
    assert m1.hash != m4.hash
    assert m3.hash != m4.hash