-
Notifications
You must be signed in to change notification settings - Fork 575
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
Prevent Hamiltonians that share wires from being multiplied together #1273
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #1273 +/- ##
=======================================
Coverage 98.13% 98.13%
=======================================
Files 147 147
Lines 11256 11260 +4
=======================================
+ Hits 11046 11050 +4
Misses 210 210
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, is there anything stopping us from having |
Nice short term solution! A long term fix for this would render 1213 obselete. |
Which |
Raises a
ValueError
if Hamiltonians sharing wires are multiplied together:This will raise a
ValueError
.Fixes #1272 although this is just to help prevent users getting caught-out, we still need a better solution for manipulation of Hamiltonians.