You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, qiskit.qasm2.dumps still outputs assuming the mutant version of qelib1.inc right now - we have a discussion (#10737) on fixing that situation, but we keep struggling to find time to prioritise it. In the mean time, you can make qasm2.loads (and load) understand the whole legacy file by doing:
Thank you for �the clarification. Indeed, I encountered issues when trying to dump and load QASM programs. I'll use LEGACY_CUSTOM_INSTRUCTIONS in the meantime.
Environment
What is happening?
qiskit.qasm2.loads
is not recognizing standard gates provided in qelib1.inc.How can we reproduce the issue?
To reproduce the issue, execute the following Python code:
Running this code results in a
QASMParseError
:This error is also happening with other standard gates from
qelib1.inc
:u0
u
p
sx
sxdg
swap
cswap
crx
cry
cp
csx
cu
rxx
rzz
rccx
rc3x
c3x
c3sqrtx
c4x
What should happen?
The parser should recognize and correctly process these gates as pre-defined, analogous to how it handles the Hadamard gate.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: