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

Create object containing two-body elements as blocks #60

Open
Schoyen opened this issue May 31, 2021 · 0 comments
Open

Create object containing two-body elements as blocks #60

Schoyen opened this issue May 31, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Schoyen
Copy link
Collaborator

Schoyen commented May 31, 2021

Several ab initio methods are tailored to use only parts of the two-body elements. For example, the faster methods often avoid the pppp-block of the two-body elements. To reduce the memory load and allow for larger systems to be run we should store the two-body elements as blocks where we can optionally choose to only populate the necessary blocks. An abstraction to this (avoiding the need to rewrite a lot of downstream code) is to create an object containing the two-body elements as blocks and implementing the __getitem__-dunder method such that we can pass in slices and index tuples similar to NumPy-arrays. The method should then return the relevant elements/blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant