Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ swap
Function
swap
python/tests/kernel/test_kernel_qvector_init.py:25–28 ·
view source on GitHub ↗
(arr, index1, index2)
Source
from the content-addressed store, hash-verified
23
24
25
def
swap(arr, index1, index2):
26
t = arr[index2]
27
arr[index2] = arr[index1]
28
arr[index1] = t
29
30
31
# state preparation and synthesis
Callers
15
k
Function · 0.70
test_kernel_float_capture
Function · 0.70
test_kernel_float_np_array_from_capture
Function · 0.70
test_kernel_complex_capture
Function · 0.70
test_kernel_complex_np_array_from_capture
Function · 0.70
test_kernel_amplitudes_complex_from_capture
Function · 0.70
test_kernel_simulation_dtype_np_array_from_capture_f64
Function · 0.70
test_kernel_simulation_dtype_np_array_from_capture_f32
Function · 0.70
test_kernel_simulation_dtype_np_array_capture
Function · 0.70
kernel_to_draw
Function · 0.70
test_kernel
Function · 0.70
iqft
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected