Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ test
Function
test
python/tests/kernel/test_kernel_features.py:188–191 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
186
187
@cudaq.kernel
188
def
test():
189
q, r, s = cudaq.qubit(), cudaq.qubit(), cudaq.qubit()
190
x(q, s)
191
swap.ctrl(q, r, s)
192
193
counts = cudaq.sample(test)
194
assert len(counts) == 1
Callers
6
test_compare_with_true
Function · 0.70
test_cmpi_error_ints_different_widths
Function · 0.70
test_aug_assign_add
Function · 0.70
test_no_valueerror_np_array
Function · 0.70
test_disallow_hybrid_types
Function · 0.70
test_disallow_quantum_struct_return
Function · 0.70
Calls
14
hybrid
Class · 0.85
qvector
Method · 0.80
qreg
Method · 0.80
T
Class · 0.70
Holder
Class · 0.70
x
Function · 0.50
exp_pauli
Function · 0.50
range
Function · 0.50
cx
Function · 0.50
crx
Function · 0.50
h
Function · 0.50
mz
Function · 0.50
Tested by
no test coverage detected