Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ simple
Function
simple
python/tests/kernel/test_kernel_features.py:476–482 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
474
475
@cudaq.kernel
476
def
simple():
477
q = cudaq.qvector(2)
478
h(q[0])
479
i = mz(q[0])
480
if
i:
481
x(q[1])
482
mz(q)
483
484
with
pytest.raises(RuntimeError)
as
e:
485
cudaq.sample(simple, shots_count=100)
Callers
1
kernel
Function · 0.70
Calls
6
qvector
Method · 0.80
h
Function · 0.50
mz
Function · 0.50
x
Function · 0.50
exp_pauli
Function · 0.50
front
Method · 0.45
Tested by
no test coverage detected