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

Function test_single_float_arg

python/tests/kernel/test_kernel_signature.py:121–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119
120
121def test_single_float_arg():
122
123 def my_kernel(theta: float):
124 q = cudaq.qubit()
125 ry(theta, q)
126
127 sig = _parse_and_assert_equal(my_kernel)
128 assert sig.arg_types == [MlirTypes.FLOAT64]
129 assert sig.return_type is None
130
131
132def test_multiple_mixed_args():

Callers

nothing calls this directly

Calls 1

_parse_and_assert_equalFunction · 0.85

Tested by

no test coverage detected