-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from BoothGroup/fno
Frozen natural orbitals
- Loading branch information
Showing
5 changed files
with
276 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
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,26 @@ | ||
""" | ||
Example of a simple FNO-CCSD calculation. | ||
""" | ||
|
||
import numpy as np | ||
from pyscf import gto, scf | ||
|
||
from ebcc import EBCC | ||
from ebcc.space import construct_fno_space | ||
|
||
# Define the molecule using PySCF | ||
mol = gto.Mole() | ||
mol.atom = "H 0 0 0; F 0 0 1.1" | ||
mol.basis = "cc-pvdz" | ||
mol.build() | ||
|
||
# Run a Hartree-Fock calculation using PySCF | ||
mf = scf.RHF(mol) | ||
mf.kernel() | ||
|
||
# Construct the FNOs | ||
no_coeff, no_occ, no_space = construct_fno_space(mf, occ_tol=1e-3) | ||
|
||
# Run a FNO-CCSD calculation using EBCC | ||
ccsd = EBCC(mf, mo_coeff=no_coeff, mo_occ=no_occ, space=no_space) | ||
ccsd.kernel() |
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