Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ test
Function
test
python/tests/kernel/test_kernel_shadowing.py:47–53 ·
view source on GitHub ↗
(cond: bool)
Source
from the content-addressed store, hash-verified
45
46
@cudaq.kernel
47
def
test(cond: bool) -> bool:
48
q = cudaq.qubit()
49
if
cond:
50
apply_x(q)
51
else
:
52
apply_h(q)
53
return
mz(q)
54
55
assert cudaq.run(test, True, shots_count=10) == [True] * 10
56
Callers
1
test_kernel_with_same_name_as_loop_variable
Function · 0.70
Calls
11
apply_h
Function · 0.85
apply_y
Function · 0.85
apply_z
Function · 0.85
b
Function · 0.85
n
Function · 0.85
qvector
Method · 0.80
apply_x
Function · 0.70
flip
Function · 0.70
i
Function · 0.70
mz
Function · 0.50
range
Function · 0.50
Tested by
no test coverage detected