()
| 1349 | |
| 1350 | |
| 1351 | def test_compare_with_true(): |
| 1352 | |
| 1353 | @cudaq.kernel |
| 1354 | def test(): |
| 1355 | data = cudaq.qvector(2) |
| 1356 | ancilla = cudaq.qvector(2) |
| 1357 | results = mz(ancilla) |
| 1358 | if results[0] == True: |
| 1359 | x(data[0]) |
| 1360 | |
| 1361 | # The test here is that this compiles. |
| 1362 | test() |
| 1363 | |
| 1364 | |
| 1365 | def test_with_docstring(): |