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

Function float_vec_param

python/tests/kernel/test_kernel_float.py:28–29  ·  view source on GitHub ↗
(vec: list[float], i: int)

Source from the content-addressed store, hash-verified

26 # Pass a list of float as a parameter
27 @cudaq.kernel
28 def float_vec_param(vec: list[float], i: int) -> float:
29 return vec[i]
30
31 for i in range(len(f)):
32 assert is_close(f[i], float_vec_param(f, i))

Callers 3

test_float_paramsFunction · 0.85
test_float64_paramsFunction · 0.85
test_float32_paramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected