Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ kernel
Function
kernel
python/tests/kernel/test_kernel_features.py:32–33 ·
view source on GitHub ↗
(n: int)
Source
from the content-addressed store, hash-verified
30
31
@cudaq.kernel
32
def
kernel(n: int):
33
qubits = cudaq.qvector(n)
34
35
counts = cudaq.sample(kernel, 2)
36
assert len(counts) == 1
Callers
11
test_pauli_word_input
Function · 0.70
test_no_dynamic_Lists
Function · 0.70
test_simple_return_types
Function · 0.70
test_tuple_creation_and_access
Function · 0.70
test_list_creation
Function · 0.70
test_bad_return_int_bool_param
Function · 0.70
test_return_bool_bool_param
Function · 0.70
test_return_int_int_param
Function · 0.70
test_return_no_param
Function · 0.70
test_no_param_no_return
Function · 0.70
test_issue_9
Function · 0.70
Calls
15
qvector
Method · 0.80
uccsd
Method · 0.80
simple
Function · 0.70
range
Function · 0.50
x
Function · 0.50
cx
Function · 0.50
exp_pauli
Function · 0.50
h
Function · 0.50
mz
Function · 0.50
ry
Function · 0.50
rx
Function · 0.50
rz
Function · 0.50
Tested by
no test coverage detected