Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
qvector
Method · 0.80
swap
Function · 0.70
h
Function · 0.50
x
Function · 0.50
rx
Function · 0.50
Tested by
no test coverage detected