Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ bell
Function
bell
python/tests/mlir/ast_control_kernel.py:28–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
27
@cudaq.kernel
28
def
bell():
29
q = cudaq.qvector(2)
30
h(q[0])
31
cudaq.control(applyX, [q[0]], q[1])
32
33
print(bell)
34
# CHECK-LABEL: func.func @__nvqpp__mlirgen__bell
Callers
nothing calls this directly
Calls
3
qvector
Method · 0.80
h
Function · 0.50
control
Method · 0.45
Tested by
no test coverage detected