Commit e7597d5c authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Running tests in a loop shows that this decompose condition is too strict



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 6a7e1b47
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -64,7 +64,9 @@ class TestKernelJIT(unittest.TestCase):
        foo(q)
        counts = q.counts()
        self.assertTrue('110' in counts)
        self.assertTrue(counts['110'] == 1024)
        # The decompose infidelity (~1e-4) can cause
        # some small variations in the bitstring sampling.
        self.assertTrue(counts['110'] > 1000)

        @qjit
        def all_x(q : qreg):