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

Function test2

python/tests/kernel/test_assignments.py:55–57  ·  view source on GitHub ↗
(arg: list[int])

Source from the content-addressed store, hash-verified

53
54 @cudaq.kernel
55 def test2(arg: list[int]) -> int:
56 double_entries(arg)
57 return sum(arg)
58
59 arg = [4, 5, 6]
60 results = cudaq.run(test2, arg, shots_count=1)

Callers 4

test_var_scopesFunction · 0.70

Calls 13

double_entriesFunction · 0.85
sumFunction · 0.85
get_list_of_int_tupleFunction · 0.85
populate_MyTuple_listFunction · 0.85
serializeFunction · 0.85
populate_MyTuple_list2Function · 0.85
fctFunction · 0.85
qvectorMethod · 0.80
MyTupleClass · 0.70
flattenFunction · 0.70
rangeFunction · 0.50
mzFunction · 0.50

Tested by

no test coverage detected