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

Function simple_strucC

python/tests/kernel/test_run_async_kernel.py:1012–1016  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1010
1011 @cudaq.kernel
1012 def simple_strucC() -> MyClass:
1013 q = cudaq.qubit()
1014 t = MyClass(-13, True)
1015 t.x = 42
1016 return t
1017
1018 results = cudaq.run_async(simple_strucC, shots_count=2).get()
1019 print(results)

Callers

nothing calls this directly

Calls 1

MyClassClass · 0.70

Tested by

no test coverage detected