

def test_qft_represent():
    c = QFT(0, 3)
    a = represent(c, nqubits=3)
    b = represent(c.decompose(), nqubits=3)
    assert (a.evalf(prec=10) == b.evalf(prec=10))

dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/tests/test_qft.py test_qft_represent/original