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

Function test4

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

Source from the content-addressed store, hash-verified

76
77 @cudaq.kernel
78 def test4(arg: list[int]) -> tuple[int, int]:
79 alias = arg
80 double_entries(arg)
81 return sum(alias), sum(arg)
82
83 results = cudaq.run(test4, [0, 1, 2], shots_count=1)
84 assert len(results) == 1 and results[0] == (6, 6)

Calls 7

double_entriesFunction · 0.85
sumFunction · 0.85
update_tuple2Function · 0.85
get_itemFunction · 0.85
MyTupleClass · 0.70
flattenFunction · 0.70
rangeFunction · 0.50

Tested by

no test coverage detected