Below, all directories are w.r.t. your PySCF directory.  FILE denotes
a file provided along with the problem txt.

1.0 Getting started with Hartree-Fock

    A very simple Hartree-Fock script for the HF molecule is shown in
      	examples/scf/00-simple_hf.py

    Try running it!

1.1 Hartree-Fock basis set convergence

    Modify the above script, to run a HF calculation for a He atom,
    using the basis sets cc-pvdz, cc-pvtz, cc-pvqz, cc-pv5z. Tabulate
    the energies.

    You can examine these basis sets. They are defined in gto/basis
	 
    in files such as cc-pvtz.dat. For example, the entry for He shows

    #BASIS SET: (6s,2p,1d) -> [3s,2p,1d]

    This means that the cc-pvtz basis contains 3 s-type functions, 2
    p-type functions, and 1-d function (a total of 3 + 2*3 + 1*5 = 14
    basis fns).

    You can print the #basis functions in your calculation by using
    the line

        print mol.nao_nr()

    in your script.

    Plot the energies against the #basis fns. Show that the
    convergence is exponential in the #basis fns.

2.0 H2 Hartree-Fock

    Modify your above script, to run a HF calculation for the H2
    molecule at a bond length of R=0.5-4.0 Ang, in the cc-pvtz basis.
    Plot the corresponding curve. (If you are having difficulty with
    this, take a look at the FILE h2_curve.py).

2.1 Unrestricted Hartree-Fock

    The above calculations were all for *restricted HF*, where the up
    and down spin electrons share the same set of orbitals. We will
    now try an unrestricted HF calculation, where the up and down spin
    electrons can have different sets of orbitals.

    A UHF script for the H2 molecule is provided in
    
      	examples/scf/32-break_spin_symm.py

    Try running it!

    Now modify the script to produce a whole potential energy curve
    for H2 (as in the problem 2.0 above). Compare the UHF and RHF
    energy curves - what do you see?

    What should the value of the H2 energy be as R->infty?

2.2 Implement your own Hartree-Fock (Advanced)

    To get a flavour for how Hartree-Fock is implemented, study the
    supplied FILE hf_program.py. Try it out and modify it!

3.0 Dynamic correlation and basis set convergence

    We will now study dynamic correlation. The FILE cc.py shows an
    example of an input to compute the MP2 and CCSD energy for H2.

    Try running it!

    Now modify the script to compute the energy using the basis sets:
    cc-pvdz, cc-pvtz, cc-pvqz, cc-pv5z.  Printed out are the
    *correlation* energies (i.e. the energies in addition to the HF
    energy).  Plot these against the number of basis functions. Study
    the convergence of the correlation energy as a function of the
    basis size (as in problem 1.1 above).

4.0 Bond-breaking: FCI

    We will now study bond-breaking and multireference correlation. We
    will do this for the hydrogen fluoride molecule. For this, we will
    need to generate some exact reference data, using FCI.

        examples/fci/00-simple_fci.py

    gives an example for the HF molecule. Modify it to generate a
    complete potential energy curve (e.g. 0.8-4.0 Ang), and tabulate
    the FCI energies.

4.1 Bond-breaking: MP2

    Now recompute the same curve using MP2 and CCSD and compare your
    results with the FCI curve.  When are MP2 and CCSD good
    approximations to FCI?

4.2 Bond-breaking: CASSCF

    FILE cas.py shows a simple input for the HF molecule for two
    different choices of active space, CAS(2o,2e) [2 active orbitals
    with 2 electrons], and CAS(5o,6e) [5 active orbitals, 6
    electrons].

    (Advanced: You may wish to examine what these active spaces are,
    with

         mf.analyze()

    after the mean-field calculation, to look at the orbitals).
    
    Use these scripts to generate the corresponding CAS curves. A
    useful metric to measure the quality is to compute the
    non-parallelity error (NPE) over the curve.

    NPE = 1/N_i sum_i (|E_i(CAS)-E_i(FCI)|) - (E_i(CAS) - E_i(FCI))

    where i ranges over the points on the curve.

4.3 Bond-breaking: NEVPT2

    FILE nevpt2.py shows a simple input for a NEVPT2 calculation (2nd
    order perturbation theory on top of the CAS starting point).

    Try running it!

    Why is the NEVPT2 correction using the CAS(5o,6e) active space smaller
    than the energy using the CAS(2o,2e) active space?
    
    Generate the NEVPT2 binding curve for the HF molecule.  Finally,
    using the results for MP2, CCSD, CASSCF, and NEVPT2 generate a
    comparison plot of all the methods for the HF binding curve.
