We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Parameter appears in empty circuit after copy
p1 = Parameter("P1") qc = QuantumCircuit(1) qc.rz(p1, 0) qc.parameters # dummy call to fill cache cpy = qc.copy_empty_like() cpy.parameters
I see
ParameterView([Parameter(P1)])
which should not exist.
Parameter should be empty
Nullify _parameters after copy
_parameters
The text was updated successfully, but these errors were encountered:
Thanks for the report Naoki. I think this has actually been in existence for some time, more than just the Rust changes.
Sorry, something went wrong.
parameters
Yeah, this appears to be in 1.1 and 0.46 - might well have been around for a long time.
Successfully merging a pull request may close this issue.
Environment
What is happening?
Parameter appears in empty circuit after copy
How can we reproduce the issue?
I see
which should not exist.
What should happen?
Parameter should be empty
Any suggestions?
Nullify
_parameters
after copyThe text was updated successfully, but these errors were encountered: