-
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
Unexpected behavior of copy_empty_like()
for BlueprintCircuit
s
#13535
Comments
This is because Honestly, I'm not even sure how we can reasonably fix this. I suspect it might need to be that |
I think returning a Just for the record too, this bug existed prior to 1.3.0, I was worried that something we changed around |
copy_empty_like()
sometimes copies instructions.copy_empty_like()
for BlueprintCircuit
s
Yeah I agree that
I was hoping this too, but this depends: do we want to keep the "old way" of the circuit library around for all of 2.0? Sure we could change the |
Environment
What is happening?
QuantumCircuit.copy_empty_like()
copiesRealAmplitudes
instruction to the clone.How can we reproduce the issue?
What should happen?
The copy should not have a gate
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: