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

Function kerneD

python/tests/kernel/test_run_async_kernel.py:1031–1036  ·  view source on GitHub ↗
(n: int)

Source from the content-addressed store, hash-verified

1029
1030 @cudaq.kernel
1031 def kerneD(n: int) -> Bar:
1032 q = cudaq.qvector(n)
1033 t = Bar(False, False, 4.14)
1034 t.x = True
1035 t.y = True
1036 return t
1037
1038 results = cudaq.run_async(kerneD, 2, shots_count=1).get()
1039 assert len(results) == 1

Callers

nothing calls this directly

Calls 2

qvectorMethod · 0.80
BarClass · 0.70

Tested by

no test coverage detected