MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / test_empty_lists

Function test_empty_lists

python/tests/kernel/test_kernel_features.py:1507–1515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1505
1506
1507def test_empty_lists():
1508
1509 @cudaq.kernel
1510 def empty(var: list[cudaq.pauli_word], varvar: list[float],
1511 varvarvar: list[bool]):
1512 q = cudaq.qvector(2)
1513 x(q[0])
1514
1515 empty([], [], [])
1516
1517
1518def test_no_valueerror_np_array():

Callers

nothing calls this directly

Calls 1

emptyFunction · 0.70

Tested by

no test coverage detected