Using Psi4 as an external optimizer

See Geometry Optimisation with arbitrary wavefunction.