Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ complex_vec_capture_imag
Function
complex_vec_capture_imag
python/tests/kernel/test_kernel_complex.py:68–70 ·
view source on GitHub ↗
(i: int)
Source
from the content-addressed store, hash-verified
66
67
@cudaq.kernel
68
def
complex_vec_capture_imag(i: int) -> float:
69
v = c[i]
70
return
v.imag
71
72
for
i in range(len(c)):
73
assert is_close(c[i].imag, complex_vec_capture_imag(i))
Callers
3
test_complex_capture
Function · 0.85
test_np_complex128_capture
Function · 0.85
test_np_complex64_capture
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected