qlasskit icon indicating copy to clipboard operation
qlasskit copied to clipboard

Sum and sub example not working

Open dakk opened this issue 1 year ago • 0 comments

This test case fails both on tweedledum and internalcompiler with the same result:

AssertionError: '10' != '11'

    def test_sum_and_sub(self):
        f = (
            "def test(a: Qint[2]) -> Qint[2]:\n"
            "\treturn (a + 3) - 3"
        )
        qf = qlassf(f, to_compile=True, compiler=self.compiler, uncompute=True)
        # print(qf.expressions)
        # qf.circuit().draw()
        compute_and_compare_results(self, qf)

The test is situated in test_compiler but it's commented.

dakk avatar Jul 09 '24 09:07 dakk