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

DM gradient for non-hermitain case #3

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Conversation

basilib
Copy link
Contributor

@basilib basilib commented Feb 14, 2024

No description provided.

@@ -225,8 +225,13 @@ def gradient(self, x, fock=None, out=None):
h1 = -np.dot(c[gf.nphys :, gf_occ.naux :].conj().T, c[gf.nphys :, : gf_occ.naux])
Copy link
Collaborator

Choose a reason for hiding this comment

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

we probably also need some control over hermiticity here

@obackhouse
Copy link
Collaborator

before merging this we should probably make sure that the behaviour is sound regarding complex eigenvalues -- should AufbauPrinciple throw an exception for complex eigenvalues? Perhaps it can throw away small imaginary parts?

I also don't think that states are necessarily sorted at any point, so the filling might be in the wrong order even just by the real parts -- I guess we should write some unit tests with complex states.

@basilib basilib marked this pull request as draft February 28, 2024 18:42
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.

2 participants