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

Uks dev #78

Merged
merged 5 commits into from
Jan 20, 2024
Merged

Uks dev #78

merged 5 commits into from
Jan 20, 2024

Conversation

puzhichen
Copy link
Contributor

Add a UHF method, where density fitting is not allowed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this supposed to be an unit test file?

return f


def _kernel(mf, conv_tol=1e-10, conv_tol_grad=None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

reuse _kernel in hf.py, modify it if necessary

def test_rks_lda(self):
print('------- LDA ----------------')
e_tot = run_dft("LDA, vwn5")
assert np.allclose(e_tot, -75.42821982483972)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are those values from qchem?

'''
known values are obtained by pyscf
'''
def test_rks_lda(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

test_uks_lda

@wxj6000 wxj6000 merged commit b501107 into pyscf:master Jan 20, 2024
1 check passed
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