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

Extending support for larger atomic numbers #5821

Merged
merged 22 commits into from
Jul 18, 2024

Conversation

obliviateandsurrender
Copy link
Contributor

Context: Currently, we support only first- or second-row elements of the periodic table for molecule and Hamiltonian constructions. This PR aims to push this limit to all the elements.

Description of the Change: Updates the atomic_numbers dictionary in the qchem/basis_data.py and adapts the qchem functionality with this update.

Benefits: We can support more elements by letting users use load_data=True keyword argument.

Possible Drawbacks: None

Related GitHub Issues:

Copy link

codecov bot commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@c10e423). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5821   +/-   ##
=========================================
  Coverage          ?   99.65%           
=========================================
  Files             ?      427           
  Lines             ?    40728           
  Branches          ?        0           
=========================================
  Hits              ?    40589           
  Misses            ?      139           
  Partials          ?        0           

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

Copy link
Contributor

@ddhawan11 ddhawan11 left a comment

Choose a reason for hiding this comment

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

Thanks @obliviateandsurrender, I only have a couple of non-blocking comments.

pennylane/qchem/basis_set.py Show resolved Hide resolved
pennylane/qchem/openfermion_pyscf.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ddhawan11 ddhawan11 left a 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 @obliviateandsurrender

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 @obliviateandsurrender, left a few comments.

pennylane/qchem/basis_data.py Show resolved Hide resolved
pennylane/qchem/basis_data.py Show resolved Hide resolved
pennylane/qchem/basis_data.py Show resolved Hide resolved
pennylane/qchem/basis_set.py Outdated Show resolved Hide resolved
pennylane/qchem/basis_data.py Show resolved Hide resolved
pennylane/qchem/basis_set.py Outdated Show resolved Hide resolved
@obliviateandsurrender obliviateandsurrender merged commit e76e301 into master Jul 18, 2024
40 checks passed
@obliviateandsurrender obliviateandsurrender deleted the atomic-numbers-upgrade branch July 18, 2024 04:18
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.

3 participants