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

Function kernel

python/tests/backends/test_Quantinuum_ng_kernel.py:125–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124 @cudaq.kernel
125 def kernel():
126 qubit = cudaq.qubit()
127 u3(0.0, np.pi / 2, np.pi, qubit)
128 mz(qubit)
129
130 result = cudaq.sample(kernel)
131

Callers

nothing calls this directly

Calls 6

qvectorMethod · 0.80
u3Class · 0.50
mzFunction · 0.50
xFunction · 0.50
detectorMethod · 0.45
logical_observableMethod · 0.45

Tested by

no test coverage detected