Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ float_np_use
Function
float_np_use
python/tests/kernel/test_kernel_float.py:68–69 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
66
# Use a float inside np in a kernel
67
@cudaq.kernel
68
def
float_np_use() -> float:
69
return
np.sin(np.pi / 2 + 1)
70
71
assert is_close(np.sin(np.pi / 2 + 1), float_np_use())
72
Callers
3
test_float_use
Function · 0.85
test_float64_use
Function · 0.85
test_float32_use
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected