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

Function kernel

python/tests/backends/test_Ionq_LocalEmulation_kernel.py:81–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80 @cudaq.kernel
81 def kernel():
82 qubits = cudaq.qvector(num_qubits)
83 for i in range(num_electrons):
84 x(qubits[i])
85 cudaq.kernels.uccsd(qubits, thetas, num_electrons, num_qubits)
86
87 counts = cudaq.sample(kernel, shots_count=1000)
88 assert len(counts) == 6

Callers

nothing calls this directly

Calls 4

qvectorMethod · 0.80
uccsdMethod · 0.80
rangeFunction · 0.50
xFunction · 0.50

Tested by

no test coverage detected