Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ sum
Function
sum
python/tests/kernel/test_assignments.py:24–28 ·
view source on GitHub ↗
(l: list[int])
Source
from the content-addressed store, hash-verified
22
23
@cudaq.kernel
24
def
sum(l: list[int]) -> int:
25
total = 0
26
for
item in l:
27
total += item
28
return
total
29
30
@cudaq.kernel
31
def
to_integer(ms: list[bool]) -> int:
Callers
15
qalloc
Method · 0.85
visit_List
Method · 0.85
mlirTryCreateStructType
Function · 0.85
mlirTypeFromPyType
Function · 0.85
dump
Method · 0.85
test_ptsbe_sample_result_total_shots_matches_requested
Function · 0.85
test_ptsbe_sample_single_shot
Function · 0.85
test_ptsbe_sample_large_shots
Function · 0.85
test_ptsbe_sample_custom_shots
Function · 0.85
test_ptsbe_sample_with_apply_noise_in_kernel
Function · 0.85
test_ptsbe_broadcast_bit_flip_noise
Function · 0.85
test_ptsbe_sample_async_returns_future_like
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected