mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-25 13:03:28 +01:00
added example_convert_pyscf_ezfio.sh
This commit is contained in:
parent
65f4702a30
commit
4f9c398ffc
18
src/utils_complex/example_convert_pyscf_ezfio.sh
Executable file
18
src/utils_complex/example_convert_pyscf_ezfio.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ezfio_name=h2_cc-pvdz
|
||||||
|
cat <<EOF > convert.py
|
||||||
|
#!/usr/bin/env python
|
||||||
|
from pyscf import gto, scf
|
||||||
|
mol = gto.M(atom='H 0 0 0; H 0 0 1.2', basis='ccpvdz')
|
||||||
|
mf = scf.RHF(mol)
|
||||||
|
mf.kernel()
|
||||||
|
|
||||||
|
import importlib
|
||||||
|
import MolPyscfToQPkpts
|
||||||
|
from MolPyscfToQPkpts import *
|
||||||
|
pyscf2QP2_mol(mf)
|
||||||
|
EOF
|
||||||
|
python convert.py
|
||||||
|
mv qpdat.h5 $ezfio_name.h5
|
||||||
|
qp_convert_h5_to_ezfio ${ezfio_name}.h5
|
Loading…
Reference in New Issue
Block a user