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
Operator Arithmetic support to qubit_observable()
in qchem
#4138
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #4138 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 347 347
Lines 31416 31442 +26
=======================================
+ Hits 31345 31371 +26
Misses 71 71
|
[sc-38630] |
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! 🚀
Suggested a correction to an outdated example output, and one question :)
Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
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.
Nice! 🎉
Context:
Now that the new operator arithmetic machinery is integrated with pennylane (via
enable_new_opmath()
), we want to start making use of it across the codebase, specifically in the qchem module.Description of the Change:
Update the
qubit_observable()
function inobservable_hf.py
to use operator arithmetic whenactive_new_opmath()
isTrue
.Benefits:
We are slowly moving away from
Hamiltonian
and adopting the new machinery we have!