Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ complex_np_use_imag
Function
complex_np_use_imag
python/tests/kernel/test_kernel_complex.py:167–169 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
165
166
@cudaq.kernel
167
def
complex_np_use_imag() -> float:
168
v = np.sin(np.pi / 2 + 0j)
169
return
v.imag
170
171
t = np.sin(np.pi / 2 + 0j).imag
172
assert is_close(t, complex_np_use_imag())
Callers
3
test_complex_use
Function · 0.85
test_np_complex128_use
Function · 0.85
test_np_complex64_use
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected