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

Function complex_vec_param_real

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

Source from the content-addressed store, hash-verified

35
36 @cudaq.kernel
37 def complex_vec_param_real(vec: list[complex], i: int) -> float:
38 v = vec[i]
39 return v.real
40
41 for i in range(len(c)):
42 assert is_close(c[i].real, complex_vec_param_real(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