-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qasm() mistranslate the operator QuantumCircuit.ecr #8086
Comments
Thanks for the report. Sorry this is a bit bugged out - we have some problems with the OQ 2 exporter when dealing with gates that can take arbitrary parameters but are only used with exact angles, as you've seen. I unfortunately can't promise that this will be a top priority for the internal team because we're busy with a lot of new features for OpenQASM 3.0 support, but we'd be happy to accept PRs from other people about this issue. |
I have a fix for this which is just to include RZX as an atomic gate in qelib1.inc. Is this a suitable approach? |
For linking purposes, I gave the reason we can't add rzx to |
Environment
What is happening?
The circuit shown below can be translated into OpenQASM successfully,but there exists two
rzx
gates.The one and only difference between tworzx
gates is the parameter ofrz
gate,one is -pi/4,and another is pi/4.Here is the error message.
How can we reproduce the issue?
What should happen?
An expected OpenQASM code about
QuantumCircuit.ecr
is something like this.Any suggestions?
No response
The text was updated successfully, but these errors were encountered: