Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sum and sub example not working #66

Open
dakk opened this issue Jul 9, 2024 · 0 comments
Open

Sum and sub example not working #66

dakk opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dakk
Copy link
Owner

dakk commented Jul 9, 2024

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 dakk added the bug Something isn't working label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant