From ea3ced2d6075c7af038d62402fb3f19897576343 Mon Sep 17 00:00:00 2001 From: Anna Gringauze Date: Fri, 1 Nov 2024 15:32:19 -0700 Subject: [PATCH] DCO Remediation Commit for Anna Gringauze I, Anna Gringauze , hereby add my Signed-off-by to this commit: 69ff3bd9358fb7bb9b62e460efd2be9cd7ed7cdf Signed-off-by: Anna Gringauze --- python/tests/kernel/test_kernel_features.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/python/tests/kernel/test_kernel_features.py b/python/tests/kernel/test_kernel_features.py index cbef332301..b01532f76d 100644 --- a/python/tests/kernel/test_kernel_features.py +++ b/python/tests/kernel/test_kernel_features.py @@ -880,24 +880,19 @@ def kernel(n: int, bools: list[bool]): x(q[j]) counts = cudaq.sample(kernel, 2, [True, True]) - assert "00" in counts - assert len(counts) == 1 + assert "00" in counts and len(counts) == 1 counts = cudaq.sample(kernel, 2, [False, True]) - assert "10" in counts - assert len(counts) == 1 + assert "10" in counts and len(counts) == 1 counts = cudaq.sample(kernel, 2, [True, False]) - assert "01" in counts - assert len(counts) == 1 + assert "01" in counts and len(counts) == 1 counts = cudaq.sample(kernel, 2, [False, False]) - assert "11" in counts - assert len(counts) == 1 + assert "11" in counts and len(counts) == 1 counts = cudaq.sample(kernel, 5, [True, True, False, True, True]) - assert "00100" in counts - assert len(counts) == 1 + assert "00100" in counts and len(counts) == 1 def test_list_float_pass_list_int():