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

Function test_kernel

python/tests/kernel/test_kernel_features.py:1644–1648  ·  view source on GitHub ↗
(nQubits: int)

Source from the content-addressed store, hash-verified

1642
1643 @cudaq.kernel
1644 def test_kernel(nQubits: int):
1645 qubits = cudaq.qvector(nQubits)
1646 x(qubits)
1647 x.control(qubits[0], qubits[1])
1648 h(qubits)
1649
1650 test_kernel.compile()
1651 assert ('Unknown attribute on quantum' in repr(e) and

Callers 3

test_math_module_pi_1448Function · 0.70
test_len_qvector_1449Function · 0.70
test_cast_error_1451Function · 0.70

Calls 11

qvectorMethod · 0.80
swapFunction · 0.70
xFunction · 0.50
hFunction · 0.50
cxFunction · 0.50
crxFunction · 0.50
mzFunction · 0.50
sdgFunction · 0.50
rangeFunction · 0.50
controlMethod · 0.45
adjointMethod · 0.45

Tested by

no test coverage detected