Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ test_u3_op
Function
test_u3_op
python/tests/builder/test_kernel_builder.py:1454–1460 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1452
1453
1454
def
test_u3_op():
1455
kernel = cudaq.make_kernel()
1456
q = kernel.qalloc(1)
1457
kernel.u3(np.pi, np.pi, np.pi / 2, q)
1458
1459
counts = cudaq.sample(kernel)
1460
assert counts[
"1"
] == 1000
1461
1462
1463
def
test_u3_ctrl():
Callers
nothing calls this directly
Calls
3
qalloc
Method · 0.45
u3
Method · 0.45
sample
Method · 0.45
Tested by
no test coverage detected