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

Function float_vec_capture

python/tests/kernel/test_kernel_float.py:42–43  ·  view source on GitHub ↗
(i: int)

Source from the content-addressed store, hash-verified

40 # Capture a list of float
41 @cudaq.kernel
42 def float_vec_capture(i: int) -> float:
43 return f[i]
44
45 for i in range(len(f)):
46 assert is_close(f[i], float_vec_capture(i))

Callers 3

test_float_captureFunction · 0.85
test_float64_captureFunction · 0.85
test_float32_captureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected