def test_ops():
    k0 = Ket(0)
    k1 = Ket(1)
    k = (x/sqrt(2))*k1 - 2*I*k0
    assert k == Add(Mul(2, I, k0),
        Mul(Rational(-1, 2), x, Pow(2, Rational(1, 2)), k1))
dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/tests/test_state.py/test_ops/swapped operands of `-`