QASM exporter error with CSwapGate
and CCXGate
: Cannot find gate definition for 'unitary...'
#8222
Labels
bug
Something isn't working
Environment
What is happening?
Using the
CSwapGate
andCCXGate
in a subcircuit and converting it to qasm leads to an incorrect qasm file, where a unitary is never defined. Note that this happens only with optimization level 3 and not with others.How can we reproduce the issue?
Run the following script:
Output qasm:
Read the qasm:
output:
What should happen?
The QASM exporter should create the definition for unitary139839047598864 as well.
Any suggestions?
This is similar to another issue (#7772) but in that case the problem was with CSwap and DCX, thus the error might be due to the interaction between the CSwap and other CX gates.
The text was updated successfully, but these errors were encountered: