-
Notifications
You must be signed in to change notification settings - Fork 67
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
added _is_copyable to Parameter and updated AParametrizedComponent #447
base: release/0.12.0
Are you sure you want to change the base?
Conversation
Failing tests on Windows are not related to the proposed changes |
OK on creating and running the circuit
OK circuit
|
What would be the intended behavior of the Perceval in the cases similar to the above? It could become much harder to fix later, especially if you would like to add a move constructor to the existing features. I see two possible solutions:
Let me know what you think :) |
1eee236
to
db8ed9a
Compare
Perceval allows to use same parameter object in multiple components of the circuit to give uniform access to the identical components in the circuit. But when copying the circuit, components are making copies of themselves and copying all of the existing parameters, as a result instead of reference to the common Parameter object each new component receives a unique copy of that, and assembly of the circuit runs into RuntimeError "Two parameters with the same name".
Better description in #414 (comment)