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

Function float_vec_definition

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

Source from the content-addressed store, hash-verified

54 # Define a list of float inside a kernel
55 @cudaq.kernel
56 def float_vec_definition(i: int) -> float:
57 return [1., 2][i]
58
59 for i in range(len(f)):
60 assert is_close(f[i], float_vec_definition(i))

Callers 3

test_float_definitionFunction · 0.85
test_float64_definitionFunction · 0.85
test_float32_definitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected