Test that we can use floats inside kernel functions.
()
| 61 | |
| 62 | |
| 63 | def test_float_use(): |
| 64 | """Test that we can use floats inside kernel functions.""" |
| 65 | |
| 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 | |
| 73 | |
| 74 | # np.float64 |
nothing calls this directly
no test coverage detected