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

Function test_len_qvector_1449

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

Source from the content-addressed store, hash-verified

1843
1844
1845def test_len_qvector_1449():
1846
1847 @cudaq.kernel
1848 def test_kernel(nCountingQubits: int) -> int:
1849 qubits = cudaq.qvector(nCountingQubits)
1850 # can use N = counting_qubits.size()
1851 N = len(qubits)
1852 h(qubits)
1853 return N
1854
1855 test_kernel.compile()
1856 assert test_kernel(5) == 5
1857
1858
1859def test_missing_paren_1450():

Callers

nothing calls this directly

Calls 2

test_kernelFunction · 0.70
compileMethod · 0.45

Tested by

no test coverage detected