Tests the adjoint of a kernel that is parameterized by a float.
()
| 114 | |
| 115 | |
| 116 | def test_kernel_adjoint_float_args(): |
| 117 | """ |
| 118 | Tests the adjoint of a kernel that is parameterized |
| 119 | by a float. |
| 120 | """ |
| 121 | other_kernel, other_value = cudaq.make_kernel(float) |
| 122 | other_qubit = other_kernel.qalloc() |
| 123 | other_kernel.x(other_qubit) |
| 124 | other_kernel.rx(other_value, other_qubit) |
| 125 | |
| 126 | kernel, _float = cudaq.make_kernel(float) |
| 127 | kernel.adjoint(other_kernel, _float) |
| 128 | |
| 129 | print(kernel) |
| 130 | |
| 131 | |
| 132 | # CHECK-LABEL: func.func @__nvqpp__mlirgen__PythonKernelBuilderInstance |