Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ complex_vec_capture_real
Function
complex_vec_capture_real
python/tests/kernel/test_kernel_complex.py:60–62 ·
view source on GitHub ↗
(i: int)
Source
from the content-addressed store, hash-verified
58
59
@cudaq.kernel
60
def
complex_vec_capture_real(i: int) -> float:
61
v = c[i]
62
return
v.real
63
64
for
i in range(len(c)):
65
assert is_close(c[i].real, complex_vec_capture_real(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