Qasm exporter fails with RYYGate
in subcircuit (with inverse) QasmError: "Duplicate declaration for gate 'ryy'
#7771
Labels
RYYGate
in subcircuit (with inverse) QasmError: "Duplicate declaration for gate 'ryy'
#7771
Environment
What is happening?
Using an
RYYGate
in a subcircuit and then exporting it to qasm gives an invalid qasm code, which raise an error in case it is reimported. This happens only if the subcircuit and the subcircuit's inverse are both added to the larger circuit.How can we reproduce the issue?
Run this snippets:
Output:
Reimport the qasm code:
Output
What should happen?
The QASMexporter should generate a valid qasm.
Any suggestions?
This is probably related to the issue #7749 , but I fear they might be different since this case involves a subcircuit and an call to the inverse.
Looking forward to listening to your feedback. Thanks in advance
The text was updated successfully, but these errors were encountered: