QASM exporter: wrong order of gate definitions Cannot find gate definition for 'rcccx'
#7773
Labels
bug
Something isn't working
Cannot find gate definition for 'rcccx'
#7773
Environment
What is happening?
The qasm exporter gives an invalid qasm in the order of gate definition, this happens with
RC3XGate
andC4XGate
in a subcircuit.How can we reproduce the issue?
Run:
Output:
Read the qasm, leads to error:
Cannot find gate definition for 'rcccx', line 4 file
What should happen?
The generated qasm should have had
rcccx
andmcx
definitions swapped.Any suggestions?
Provided that #7148 will be fixed, then it would be sufficient to reorder the gate definition. Thus fixing this bug, with a post-processing reordering will probably benefit also #7769 .
I am wondering if you think that this and #7769 have the same root cause or they have different reason why they end up with out of order gate definitions?
These features of the program concur to produce the error (removing any of them result in a valid qasm):
Looking forward to hearing your feedback on this situation, thanks in advance
The text was updated successfully, but these errors were encountered: