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

Function kernel

python/tests/backends/test_Quantinuum_kernel.py:131–134  ·  view source on GitHub ↗
(qubit_count: int, parameters: List[float])

Source from the content-addressed store, hash-verified

129
130 @cudaq.kernel
131 def kernel(qubit_count: int, parameters: List[float]):
132 qvector = cudaq.qvector(qubit_count)
133 for i in range(qubit_count - 1):
134 rx(parameters[i], qvector[i])
135
136 results = cudaq.observe(kernel,
137 spin.z(0), [qubit_count] * sample_count,

Callers

nothing calls this directly

Calls 8

qvectorMethod · 0.80
rangeFunction · 0.50
rxFunction · 0.50
u3Class · 0.50
xFunction · 0.50
hFunction · 0.50
mzFunction · 0.50
detectorMethod · 0.45

Tested by

no test coverage detected