RuntimeError
when using kernel.control()
alongside other controlled operations
#2692
Open
3 of 4 tasks
Required prerequisites
Describe the bug
Adding broader controlled operations (e.g., controlled on a 'sub kernel') can result in a
RuntimeError
if paired with gates such ascswap
,ccz
, orccx
.Steps to reproduce the bug
This issue can be seen, for example, in a snippet like:
whereas, the following works:
with
print(cudaq.draw(kernel))
showing that theccx
was correctly interpreted:Expected behavior
I would expect
kernel
to support allkernel.control()
,cswap
,ccx
,ccz
operationsIs this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
The text was updated successfully, but these errors were encountered: