Tests the adjoint of a kernel that is parameterized by a list.
()
| 177 | |
| 178 | |
| 179 | def test_kernel_adjoint_list_args(): |
| 180 | """ |
| 181 | Tests the adjoint of a kernel that is parameterized |
| 182 | by a list. |
| 183 | """ |
| 184 | other_kernel, other_value = cudaq.make_kernel(list) |
| 185 | other_qubit = other_kernel.qalloc() |
| 186 | other_kernel.rx(other_value[0], other_qubit) |
| 187 | |
| 188 | kernel, _list = cudaq.make_kernel(list) |
| 189 | kernel.adjoint(other_kernel, _list) |
| 190 | |
| 191 | print(kernel) |
| 192 | |
| 193 | |
| 194 | # CHECK-LABEL: func.func @__nvqpp__mlirgen__PythonKernelBuilderInstance |