pyscf.geomopt package#
Submodules#
pyscf.geomopt.addons module#
Helper functions for geometry optimizer
- pyscf.geomopt.addons.as_pyscf_method(mol, scan_function)[source]#
Creat an wrapper for the given scan_function, to make it work as a pyscf gradients scanner. The wrapper can be passed to
optimize()
.- Args:
scan_function : [mol] => (e_tot, grad)
Examples:: >>> mol = gto.M(atom=’H; H 1 1.2’, basis=’ccpvdz’) >>> scan_fn = scf.RHF(mol).nuc_grad_method().as_scanner() >>> m = as_pyscf_method(mol, scan_fn) >>> pyscf.geomopt.berny_solver.kernel(m)