-
Notifications
You must be signed in to change notification settings - Fork 592
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
Add __mul__ dunder method #2891
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2891 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 258 258
Lines 21759 21772 +13
=======================================
+ Hits 21683 21696 +13
Misses 76 76
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Co-authored-by: Christina Lee <christina@xanadu.ai>
…nnylane into mul_dunder_method
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.
Looks good to me! Just a few small comments! Also, I think there are some errors that get raised in the Hamiltonian class because we don't currently support multiplication of Hamiltonians. Maybe in the error message there we can direct users to the Prod class.
Just some small changes and then happy to approve 👍🏼
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Co-authored-by: Christina Lee <christina@xanadu.ai>
Co-authored-by: Christina Lee <christina@xanadu.ai>
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.
Excellent job! 🎉
Co-authored-by: Christina Lee <christina@xanadu.ai>
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.
Looks great! 💯
Add
__mul__
and__matmul__
dunder methods to theOperator
class.