Skip to content

Commit

Permalink
add the test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
  • Loading branch information
amccaskey committed Mar 15, 2024
1 parent 0fca6b1 commit 0a61b07
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/tests/kernel/test_kernel_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,3 +900,12 @@ def kernel(argument: float):

with pytest.raises(RuntimeError) as error:
print(cudaq.draw(kernel))


def test_no_valueerror_np_array():
@cudaq.kernel
def test(var : np.ndarray):
q = cudaq.qubit()
ry(var[0], q)

test(np.array([1.,2.]))

0 comments on commit 0a61b07

Please sign in to comment.