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

Function simple

python/tests/kernel/test_kernel_features.py:476–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474
475 @cudaq.kernel
476 def simple():
477 q = cudaq.qvector(2)
478 h(q[0])
479 i = mz(q[0])
480 if i:
481 x(q[1])
482 mz(q)
483
484 with pytest.raises(RuntimeError) as e:
485 cudaq.sample(simple, shots_count=100)

Callers 1

kernelFunction · 0.70

Calls 6

qvectorMethod · 0.80
hFunction · 0.50
mzFunction · 0.50
xFunction · 0.50
exp_pauliFunction · 0.50
frontMethod · 0.45

Tested by

no test coverage detected