Skip to content

Commit

Permalink
Fix localization example on Quickstart (#146)
Browse files Browse the repository at this point in the history
* Fix localization example on Quickstart

* Fix instance naming in localization Quickstart
  • Loading branch information
tberkel authored Nov 11, 2024
1 parent f6c4cc3 commit b063802
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ PySCF offers a number of different standard schemes for localizing MOs, e.g., Pi

>>> from pyscf import lo
>>> occ_orbs = rhf_h2o.mo_coeff[:, rhf_h2o.mo_occ > 0.]
>>> fb_h2o = lo.Boys(mol_h2o, occ_orbs, rhf_h2o) # Foster-Boys
>>> loc_occ_orbs = fb.kernel()
>>> fb_h2o = lo.Boys(mol_h2o, occ_orbs) # Foster-Boys
>>> loc_occ_orbs = fb_h2o.kernel()
>>> virt_orbs = rhf_h2o.mo_coeff[:, rhf_h2o.mo_occ == 0.]
>>> pm_h2o = lo.PM(mol_h2o, virt_orbs, rhf_h2o) # Pipek-Mezey
>>> loc_virt_orbs = pm.kernel()
>>> pm_h2o = lo.PM(mol_h2o, virt_orbs) # Pipek-Mezey
>>> loc_virt_orbs = pm_h2o.kernel()

Knizia's intrinsic bond orbitals can be computed as (cf. `local_orb/04-ibo_benzene_cubegen.py <https://github.com/pyscf/pyscf/blob/master/examples/local_orb/04-ibo_benzene_cubegen.py>`_):

Expand Down

0 comments on commit b063802

Please sign in to comment.