-
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
Create qchem refactoring feature branch #2164
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #2164 +/- ##
==========================================
+ Coverage 99.39% 99.41% +0.02%
==========================================
Files 229 242 +13
Lines 17457 18258 +801
==========================================
+ Hits 17351 18152 +801
Misses 106 106
Continue to review full report at Codecov.
|
* Add multipole moment integrals to hf
* add functions for creating observables * modify function locations * change module name to observable * change operator to observable in function names * change name of the test file * fix autograd warning * fix autograd warning * run black and modify comments * use dic to return pauli ops * modify variable names * replace return pauli function with dic * use reduce for obs multiplication * add code review comments * add more jordan wigner tests * add hydrogen test for fermionic operator * modify format in simplify
…lane into qchem_refactor
* add functions to convert openfermion obs to PL obs
…lane into qchem_refactor
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.
@soranjh I did a quick skim through 🙂 No need to re-tag me for review.
Just wanted to double check: this is the first stage in moving HF to qchem and renaming some functions, but subsequent steps (moving functionality to new locations) is still to be done?
Thanks @josh146. Yes, exactly, there will be few more PRs to fully polish qchem to its final format and then bring it inside pennylane. It is a bit easier for me to make those changes with separate PRs to master. |
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.
Overall looks good to me @soranjh! I just left a few minor comments.
Context:
This PR creates a feature branch for the first phase of refactoring the quantum chemistry functionality in PennyLane. The details are discussed here. In this PR, a differentiable equivalent of
qml.qchem
is created and can be accessed withqml.qchem.hf
.Description of the Change:
qchem.hf
subpackage is created.qchem.hf.dipole
.qchem.hf
.qchem.hf.observable
.qchem.hf.convert
.Benefits:
qml.qchem
, is fully differentiable and is independent of external libraries. Adding this functions toqml.qchem.hf
makes the future stepts of the quantum chemistry refactoring easier.Possible Drawbacks:
Some codes will be duplicated for 1-2 release cycles.
Related GitHub Issues:
NA