Skip to content

Commit

Permalink
DCO Remediation Commit for Anna Gringauze <[email protected]>
Browse files Browse the repository at this point in the history
I, Anna Gringauze <[email protected]>, hereby add my Signed-off-by to this commit: 69ff3bd

Signed-off-by: Anna Gringauze <[email protected]>
  • Loading branch information
annagrin committed Nov 1, 2024
1 parent 428e409 commit ea3ced2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions python/tests/kernel/test_kernel_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ea3ced2

Please sign in to comment.