Skip to content
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

Update mapping support in qchem #5657

Merged
merged 29 commits into from
May 27, 2024

Conversation

ddhawan11
Copy link
Contributor

Context:
added different mappings to molecular_hamiltonian function

Description of the Change:
molecular Hamiltonian can be mapped using different mapping schemes.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

@ddhawan11 ddhawan11 changed the base branch from master to molecule_central_object May 6, 2024 17:09
Copy link
Contributor

github-actions bot commented May 6, 2024

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Copy link

codecov bot commented May 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.67%. Comparing base (8b982a0) to head (1c925f2).

Additional details and impacted files
@@                   Coverage Diff                    @@
##           qchem_feature_branch    #5657      +/-   ##
========================================================
- Coverage                 99.67%   99.67%   -0.01%     
========================================================
  Files                       416      416              
  Lines                     38843    38390     -453     
========================================================
- Hits                      38717    38264     -453     
  Misses                      126      126              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@soranjh soranjh changed the title Mapping molecular hamiltonian [WIP] update mapping support in qchem May 7, 2024
@ddhawan11 ddhawan11 changed the base branch from molecule_central_object to qchem_feature_branch May 17, 2024 14:25
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ddhawan11, looks good overall. We need to make sure that the pyscf backend is also checked with different mappings.

pennylane/qchem/openfermion_obs.py Outdated Show resolved Hide resolved
tests/qchem/of_tests/test_molecular_hamiltonian.py Outdated Show resolved Hide resolved
tests/qchem/of_tests/test_molecular_hamiltonian.py Outdated Show resolved Hide resolved
@ddhawan11
Copy link
Contributor Author

[sc-62837]

@ddhawan11 ddhawan11 marked this pull request as ready for review May 23, 2024 19:05
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ddhawan11, left two final comments.

tests/qchem/of_tests/test_decompose.py Show resolved Hide resolved
Copy link
Contributor

@austingmhuang austingmhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work @ddhawan11. Couple of changes but otherwise I think it's good.

pennylane/qchem/hamiltonian.py Show resolved Hide resolved
pennylane/qchem/observable_hf.py Show resolved Hide resolved
pennylane/qchem/openfermion_obs.py Outdated Show resolved Hide resolved
@ddhawan11 ddhawan11 changed the title [WIP] update mapping support in qchem Update mapping support in qchem May 27, 2024
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ddhawan11, looks good. Please update the changelog before merging.

Copy link
Contributor

@austingmhuang austingmhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Great work @ddhawan11 !

@soranjh soranjh merged commit 793d102 into qchem_feature_branch May 27, 2024
39 checks passed
@soranjh soranjh deleted the mapping_molecular_hamiltonian branch May 27, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants