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

Function test9

python/tests/kernel/test_assignments.py:163–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161
162 @cudaq.kernel
163 def test9() -> int:
164 ls = create_list_list_int(1, (3, 4))
165 tot = 0
166 ls[1] = [5]
167 ls[2][3] = 2
168 inner = ls[2]
169 inner[1] = 2
170 for l in ls:
171 tot += sum(l)
172 return tot
173
174 assert test9() == 15
175

Callers 3

test_list_updateFunction · 0.70
test_inner_functionsFunction · 0.70

Calls 7

create_list_list_intFunction · 0.85
sumFunction · 0.85
modify_MyTupleFunction · 0.85
BasicTupleClass · 0.85
fctFunction · 0.85
MyTupleClass · 0.70
flattenFunction · 0.70

Tested by

no test coverage detected