qlasskit
qlasskit copied to clipboard
Sum and sub example not working
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.