forked from pyscf/pyscf-forge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add MSDFT method * Using generalized Slater-Condon rules for HF integrals in NOCI * Add comments * typo * Lint * Fix bug in nuclear energy treatments * Error in sm_t * Update tests * Update tests * Adjust threshold in tests * Adjust tests * Numerical noises in mcpdft tests
- Loading branch information
1 parent
07cdae0
commit ef35ffc
Showing
6 changed files
with
581 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
The MC-PDFT module within this package was developed by: | ||
|
||
(in chronological order of first commit) | ||
Qiming Sun | ||
Matthew R Hermes (University of Chicago) | ||
Dayou Zhang (University of Minnesota) | ||
Aleksandr Lykhin (University of Chicago) | ||
|
@@ -12,3 +13,4 @@ Bhavnesh Jangid | |
Shirong Wang | ||
Jiachen Li <[email protected]> | ||
Jincheng Yu <[email protected]> | ||
Peng Bao |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env/python | ||
|
||
# Author: Peng Bao <[email protected]> | ||
# Edited by: Qiming Sun <[email protected]> | ||
|
||
from pyscf import gto, msdft | ||
|
||
mol = gto.M(atom=''' | ||
H 1.080977 -2.558832 0.000000 | ||
H -1.080977 2.558832 0.000000 | ||
H 2.103773 -1.017723 0.000000 | ||
H -2.103773 1.017723 0.000000 | ||
H -0.973565 -1.219040 0.000000 | ||
H 0.973565 1.219040 0.000000 | ||
C 0.000000 0.728881 0.000000 | ||
C 0.000000 -0.728881 0.000000 | ||
C 1.117962 -1.474815 0.000000 | ||
C -1.117962 1.474815 0.000000 | ||
''', basis='sto-3g') | ||
|
||
mf = msdft.NOCI(mol) | ||
mf.xc = 'pbe0' | ||
|
||
h = homo = mol.nelec[0] - 1 | ||
l = h + 1 | ||
# Single excitation orbital pair | ||
mf.s = [[h,l],[h-1,l],[h,l+1],[h-1,l+1]] | ||
# Double excitation orbital pair | ||
mf.d = [[h,l]] | ||
|
||
mf.run() | ||
# reference: | ||
#[-153.93158107 -153.8742658 -153.82198958 -153.69666086 -153.59511111 | ||
# -153.53734913 -153.5155775 -153.47367943 -153.40221993 -153.37353437] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .noci import NOCI |
Oops, something went wrong.