-
Notifications
You must be signed in to change notification settings - Fork 365
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
qc.cx(0, 1, ctrl_state=0) fails - AerError: 'unknown instruction: cx_o0' #2127
Comments
I'd like to work on this. Could you tell me what is supposed to be done? Do we need to check if |
This is not a bug.
transpiler generates a sequence of |
Yes, in that sense it's a feature request. In previous version Aer seems to have accepted both cx and cx_o0. Resolving it with transpilation adds some overhead in transpiling on larger circuits, but I suppose it might not be that big of an issue. I don't have a strong opinion on this one. I guess I am fine to resolve the issue here by just leaving it as is, and using the transpiler |
Thank you |
Informations
What is the current behavior?
New version of AER does not recognize cx gate with control state = 0, while it did recognize cnot with control state = 0, which was not removed in favor of cx in 0.1.
Steps to reproduce the problem
What is the expected behavior?
Should handle the
qc.cx(0, 1, ctrl_state=0)
nativelySuggested solutions
Should be easy since we already had in there cnot with control on 0, just rename mapping
The text was updated successfully, but these errors were encountered: