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

Function test7

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

Source from the content-addressed store, hash-verified

134
135 @cudaq.kernel
136 def test7() -> tuple[int, int, int]:
137 arg = [2, 2]
138 t = get_MyTuple(arg)
139 arg[0] = 3
140 return sum(arg), sum(t.l1), sum(t.l2)
141
142 results = cudaq.run(test7, shots_count=1)
143 assert len(results) == 1 and results[0] == (5, 4, 2)

Calls 8

sumFunction · 0.85
NumberedTupleClass · 0.85
update_list2Function · 0.85
update_listFunction · 0.85
fctFunction · 0.85
get_MyTupleFunction · 0.70
MyTupleClass · 0.70
flattenFunction · 0.70

Tested by

no test coverage detected