qmcpack/examples/afqmc/08-diamond_2x2x2_kpoint_sym
Yubo "Paul" Yang 71328a24d7 update AFQMC converter Python scripts 2021-02-17 20:18:14 -06:00
..
reference Add data for example 8. 2019-09-09 14:55:08 -07:00
README.rst Add AFQMC tutorials to docs. 2020-08-11 16:24:03 -07:00
gen_input.py Update permissions. 2020-09-08 11:19:48 -07:00
scf.py update AFQMC converter Python scripts 2021-02-17 20:18:14 -06:00

README.rst

Example 8: 2x2x2 Diamond k-point symmetry
-----------------------------------------

In this example we will show how to run an AFQMC simulation that exploits k-point symmetry
which is much more efficient that running in the supercell way discussed in the previous
example. We will again look at the same 2x2x2 cell of diamond. We assume you have run the
scf calculation in the previous example.

Essentially all that changes in the integral generation step is that we pass the
`-k/--kpoint` flag to `pyscf_to_afqmc.py`.

.. code-block:: bash

    mpirun -n 8 /path/to/qmcpack/utils/afqmctools/bin/pyscf_to_afqmc.py -i ../07-diamond_2x2x2_supercell/scf.chk -o afqmc.h5 -t 1e-5 -v -a -k

You will notice that now the Cholesky decomposition is done for each momentum transfer
independently and the the form of the hamiltonian file has changed to be k-point dependent.

Apart from these changes, running the AFQMC simulation proceeds as before, however you
should see a significant performance boost relative to the supercell simulations,
particularly on GPU machines.