PyQuante: Python Quantum Chemistry 
Version 1.3.1
Rick Muller, rmuller@sandia.gov

INTRODUCTION

PyQuante (http://pyquante.sourceforge.net) is a suite of programs for
writing quantum chemistry software. The program is written in the
Python programming language, but has many "rate-determining" modules
also written in C for speed. The resulting code is not nearly as fast
as Jaguar, Gaussian, or GAMESS, but the resulting code is much easier
to understand and modify.

The goal of this software is not necessarily to provide a working
quantum chemistry program (although it will hopefully do that), but
rather to provide a well-engineered set of tools so that scientists
can construct their own quantum chemistry programs without going
through the tedium of having to write everything.

The program is released under the GNU General Public License and is
thus freeware. PyQuante can be downloaded from
http://pyquante.sourceforge.net. People can subscribe to the
pyquante-users mailing list at 
http://lists.sourceforge.net/lists/listinfo/pyquante-users

Here is an example of what the closed-shell Hartree-Fock scripts look
like:

(best viewed in a fixed-width font...)

def rhf(atoms,**opts):
    "General wrapper for restricted closed-shell hartree fock"
    ConvCriteria = opts.get('ConvCriteria',1e-5)
    MaxIter = opts.get('MaxIter',20)
    bfs = getbasis(atoms,basis)
    S,h,Ints = getints(bfs,atoms)
    orbs = get_guess(h,S)
    nel = atoms.get_nel()
    enuke = atoms.get_enuke()
    nclosed,nopen = divmod(nel,2)
    eold = 0.
    for i in range(MaxIter):
        D = mkdens(evecs,0,nocc)
        G = get2JmK(Ints,D)
        F = h+G
        evals,evecs = GHeigenvectors(F,S)
        energy = get_energy(h,F,D,enuke)
        print energy
        if abs(energy-eold) < ConvCriteria: break
        eold = energy
    return energy

BUILDING PYQUANTE
PyQuante uses the Python distutils module to build and install
itself. Thus, to compile and install PyQuante you type:

% python setup.py install

This will use the standard version of Python to build and install the
code. If you want to use a different version, for example, RedHat's
python2 (the Python 2+ version), try

% python2 setup.py install

etc.

If you want to install somewhere non-standard (for example, if you
don't have permission to install in /usr/lib/python2.2), try

% python setup.py install --home=/my/own/directory

More info on distutils is available here: 
http://www.python.org/doc/current/inst/inst.html

CONFIGURING/RUNNING PYQUANTE
Both PyQuante and NumPy must be in your PYTHONPATH. Thus, if it isn't
already in the site-packages directory of your python installation,
you need to run a command like: 

% setenv PYTHONPATH .:/path/to/numpy:/path/to/pyquante

Email rmuller@sandia.gov if this doesn't work for you.

FEATURES
* Two electron integrals computed using Huzinaga, Rys, or
  Head-Gordon/Pople techniques. 
* Closed shell and unrestricted open-shell Hartree Fock
* LDA DFT
* MINDO/3 semiempirical energies and forces
* Leapfrog Verlet dynamics and simple minimizers  
* Configuration Interaction Singles excited states
* DIIS convergence acceleration
* MP2 calculation of the correlation energy

CHANGELOG

1.4.0		2005-10-25
* Fixed a serious bug in the AtomicGrid staggering (the spingrid=True)
  functions.
* Made charge a property of Molecule, and removed it from the
  arguments in hartree_fock.py and dft.py.
* Started a major interface change where all non-essential
  arguments to functions will be passed in keyword lists
  (i.e. **kwargs calls), since this provides *much* more
  flexibility.


1.3.1           2005-07-07
* Moved the cints, crys, chgp routines into the PyQuante subdirectory.
* Renamed chgp.index to chgp.iiindex, which fixed a compile error under
  gcc 4.0 (I think).

1.3.0           2005-06-01
* Added a capability to do three-center integrals over Gaussians,
  which is useful for EXX and OEP.
* Fixed a bug in cints.binomial() where the return type
  was incorrectly specified.
* Made the typing slightly stronger in CGBF and PGBF
* Fixed a bug in mopac_doverlap submitted by Andrew Ryzhkov

1.2		2004-10-19
* Relicensed the code under the modified BSD license.

1.1.1		2003-04-14
* Got MP2 working, so I decided to release a new version of the code.

1.1.0		2003-04-09
* Got Pulay's DIIS convergence acceleration working; this is now the
  default converger in both hartree_fock and dft.
* Got a simple version of Configuration-Interaction Singles working.
* Made the test suite a little bit more robust; hopefully the
  variations in the results that other people complained about are now
  fixed.

1.0.5		2002-12-12
* Added a MINDO3.py module, which performs semi-empirical calculations
  using Dewar's MINDO/3 Hamiltonian
* Added a Dynamics.py module to run molecular dynamics. Currently
  only the MINDO3.py module supplies forces.
* Added a Minimizers.py module with a steepest descent minimizer
  currently resides. 

1.0.4		2002-09-28
* Fixed a bug whereby the different integral modules cints, chgp, and
  crys could not be imported at the same time. Reported by Konrad Hinsen.
* Fixed a bug in crys related to the Rys polynomials. Reported by Pat
  Nichols.

1.0.3		2002-09-09
* Fixed an underflow bug in DFunctionals.py
* Slightly improved the test suite

1.0.2		2002-09-08
* Fixed a bug in CGBF/contr_coulomb where the return values were
  multiplied by the wrong normalization constants (all a.norm()).
* Wrote a test suite (Tests/TessSweet.py), that also contains the
  expected result of each program.
* Put additional comments in MolecularGrid.py, AtomicGrid.py, and
  DFunctionals.py on the methods these are based upon.

1.0.1		2002-09-01
* Rearranged the files according to the "proper" Python distutils
  module, according to Konrad Hinson's suggestions.

1.0.0		2002-07-22
* Original PyQuante release.

ADDITIONAL HELP:
Email Rick Muller at rmuller@sandia.gov if you're having further
problems.

OTHER CONTRIBUTORS
Thanks to Konrad Hinsen for help with making PyQuante a proper
package. Thanks to all of the PyQuante users who have submitted
helpful comments.

Tom Manz wrote the Epstein-Nesbet pair correlation theory that is
distributed in the EN2.py module.
