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

Function test

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

Source from the content-addressed store, hash-verified

186
187 @cudaq.kernel
188 def test():
189 q, r, s = cudaq.qubit(), cudaq.qubit(), cudaq.qubit()
190 x(q, s)
191 swap.ctrl(q, r, s)
192
193 counts = cudaq.sample(test)
194 assert len(counts) == 1

Calls 14

hybridClass · 0.85
qvectorMethod · 0.80
qregMethod · 0.80
TClass · 0.70
HolderClass · 0.70
xFunction · 0.50
exp_pauliFunction · 0.50
rangeFunction · 0.50
cxFunction · 0.50
crxFunction · 0.50
hFunction · 0.50
mzFunction · 0.50

Tested by

no test coverage detected