Test that we can pass float lists to kernel functions.
()
| 75 | |
| 76 | |
| 77 | def test_float64_params(): |
| 78 | """Test that we can pass float lists to kernel functions.""" |
| 79 | |
| 80 | f = [np.float64(1.), np.float64(2)] |
| 81 | |
| 82 | # Pass a list of float as a parameter |
| 83 | @cudaq.kernel |
| 84 | def float_vec_param(vec: list[np.float64], i: int) -> np.float64: |
| 85 | return vec[i] |
| 86 | |
| 87 | for i in range(len(f)): |
| 88 | assert is_close(f[i], float_vec_param(f, i)) |
| 89 | |
| 90 | |
| 91 | def test_float64_capture(): |
nothing calls this directly
no test coverage detected