Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ kernel2
Function
kernel2
python/tests/kernel/test_kernel_features.py:829–832 ·
view source on GitHub ↗
(N: int, i: int, j: int)
Source
from the content-addressed store, hash-verified
827
828
@cudaq.kernel
829
def
kernel2(N: int, i: int, j: int) -> int:
830
myList = [[k, k]
for
k in range(N)]
831
l = myList[i]
832
return
l[j]
833
834
print(kernel2(5, 0, 0))
835
for
i in range(N):
Callers
1
test_list_creation
Function · 0.70
Calls
3
qvector
Method · 0.80
range
Function · 0.50
x
Function · 0.50
Tested by
no test coverage detected