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

Function k

python/tests/kernel/test_get_unitary.py:44–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43 @cudaq.kernel
44 def k():
45 q = cudaq.qubit()
46 h(q)
47
48 U = cudaq.get_unitary(k)
49 expected = (1 / np.sqrt(2)) * np.array([[1, 1], [1, -1]],

Callers

nothing calls this directly

Calls 5

qvectorMethod · 0.80
swapFunction · 0.70
hFunction · 0.50
xFunction · 0.50
rxFunction · 0.50

Tested by

no test coverage detected