MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / complex_vec_param_imag

Function complex_vec_param_imag

python/tests/kernel/test_kernel_complex.py:45–47  ·  view source on GitHub ↗
(vec: list[complex], i: int)

Source from the content-addressed store, hash-verified

43
44 @cudaq.kernel
45 def complex_vec_param_imag(vec: list[complex], i: int) -> float:
46 v = vec[i]
47 return v.imag
48
49 for i in range(len(c)):
50 assert is_close(c[i].imag, complex_vec_param_imag(c, i))

Callers 3

test_complex_paramsFunction · 0.85
test_np_complex64_paramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected