Python Simulations of Chemistry Framework
Special forms (e.g. sparsity of V) are rarely exploited.
PySCF calculates \(h_{pq} \) and \( V_{pqrs} \) or users can provide them
Several basis options: Gaussian-type orbitals (GTOs) for molecules and solids and plane-wave
-------------|----------------------------------------------------
Language | files blank comment code
-------------|----------------------------------------------------
Python | 742 33356 42117 170260
C | 65 2888 2825 41259
Lisp | 5 78 145 886
C/C++ Header | 18 176 250 640
CMake | 12 68 203 268
Fortran 90 | 2 60 56 159
Bourne Shell | 5 20 25 81
-------------|----------------------------------------------------
SUM: | 851 36652 45628 213574
-------------|----------------------------------------------------
We have a lot of correlated methods that work well in molecules and solids
Xiao Wang
Hongzhou Ye and Verena Neufeld
h1 = numpy.zeros((n,n))
for i in range(n-1):
h1[i,i+1] = h1[i+1,i] = -1.0
h1[n-1,0] = h1[0,n-1] = -1.0
eri = numpy.zeros((n,n,n,n))
for i in range(n):
eri[i,i,i,i] = 2.0
mf = scf.RHF(mol)
mf.get_hcore = lambda *args: h1
mf.get_ovlp = lambda *args: numpy.eye(n)
mf.kernel()
mymp = mp.MP2(mf)
mymp.kernel()
mycc = cc.CCSD(mf)
mycc.kernel()
mycas = mcscf.CASSCF(mf, 4, 4)
mycas.kernel()
Option 1: Using pip
pip install pyscf
Option 2: Using pip
to installing the latest version
pip install -e git+https://github.com/pyscf/pyscf.git
Option 3: Build PySCF from sources
Requirements:
git clone https://github.com/pyscf/pyscf.git
cd pyscf/pyscf/lib
cmake -B build
cmake --build build --parallel
Over 350 examples!!
EXTRA SLIDES