mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-16 02:53:51 +01:00
8b22e38c9c
* fixed laplacian of aos * corrected the laplacians of aos * added dft_one_e * added new feature for new dft functionals * changed the configure to add new functionals * changed the configure * added dft_one_e/README.rst * added README.rst in new_functionals * added source/programmers_guide/new_ks.rst * Thesis Yann * Added gmp installation in configure * improved qp_e_conv_fci * Doc * Typos * Added variance_max * Fixed completion in qp_create * modif TODO * fixed DFT potential for n_states gt 1 * improved pot pbe * trying to improve sr PBE * fixed potential pbe * fixed the vxc smashed for pbe sr and normal * Comments in selection * bug fixed by peter * Fixed bug with zero beta electrons * Update README.rst * Update e_xc_new_func.irp.f * Update links.rst * Update quickstart.rst * Update quickstart.rst * updated cipsi * Fixed energies of non-expected s2 (#9) * Moved diag_algorithm in Davdison * Add print_ci_vector in tools (#11) * Fixed energies of non-expected s2 * Moved diag_algorithm in Davdison * Fixed travis * Added print_ci_vector * Documentation * Cleaned qp_set_mo_class.ml * Removed Core in taskserver * Merge develop-toto and manus (#12) * Fixed energies of non-expected s2 * Moved diag_algorithm in Davdison * Fixed travis * Added print_ci_vector * Documentation * Cleaned qp_set_mo_class.ml * Removed Core in taskserver * Frozen core for heavy atoms * Improved molden module * In sync with manus * Fixed some of the documentation errors * Develop toto (#13) * Fixed energies of non-expected s2 * Moved diag_algorithm in Davdison * Fixed travis * Added print_ci_vector * Documentation * Cleaned qp_set_mo_class.ml * Removed Core in taskserver * Frozen core for heavy atoms * Improved molden module * In sync with manus * Fixed some of the documentation errors * Develop manus (#14) * modified printing for rpt2 * Comment * Fixed plugins * Scripting for functionals * Documentation * Develop (#10) * fixed laplacian of aos * corrected the laplacians of aos * added dft_one_e * added new feature for new dft functionals * changed the configure to add new functionals * changed the configure * added dft_one_e/README.rst * added README.rst in new_functionals * added source/programmers_guide/new_ks.rst * Thesis Yann * Added gmp installation in configure * improved qp_e_conv_fci * Doc * Typos * Added variance_max * Fixed completion in qp_create * modif TODO * fixed DFT potential for n_states gt 1 * improved pot pbe * trying to improve sr PBE * fixed potential pbe * fixed the vxc smashed for pbe sr and normal * Comments in selection * bug fixed by peter * Fixed bug with zero beta electrons * Update README.rst * Update e_xc_new_func.irp.f * Update links.rst * Update quickstart.rst * Update quickstart.rst * updated cipsi * Fixed energies of non-expected s2 (#9) * Moved diag_algorithm in Davdison * some modifs * modified gfortran_debug.cfg * fixed automatization of functionals * modified e_xc_general.irp.f * minor modifs in ref_bitmask.irp.f * modifying functionals * rs_ks_scf and ks_scf compiles with the automatic handling of functionals * removed prints * fixed configure * fixed the new functionals * Merge toto * modified automatic functionals * Changed python into python2 * from_xyz suppressed * Cleaning repo * Update README.md * Update README.md * Contributors * Update GITHUB.md * bibtex
274 lines
5.5 KiB
ReStructuredText
274 lines
5.5 KiB
ReStructuredText
.. _module_cisd:
|
|
|
|
.. program:: cisd
|
|
|
|
.. default-role:: option
|
|
|
|
====
|
|
cisd
|
|
====
|
|
|
|
This module contains a CI of single and double excitations.
|
|
|
|
The user point of view
|
|
----------------------
|
|
|
|
The :command:`cisd` program performs the CI of the ROHF-like + all single and double excitations on top of it.
|
|
This program can be very useful to :
|
|
|
|
* **Ground state calculations**: generate a guess for the ground state wave function if one is not sure that the :c:func:`scf` program gave the lowest SCF solution. In combination with :c:func:`save_natorb` it can produce new |MOs| in order to reperform an :c:func:`scf` optimization.
|
|
|
|
* **Excited states calculations**: generate guess for all the :option:`determinants n_states` wave functions, that will be used by the :c:func:`fci` program.
|
|
|
|
|
|
The main keywords/options to be used are:
|
|
|
|
* :option:`determinants n_states` : number of states to consider for the |cisd| calculation
|
|
|
|
* :option:`determinants s2_eig` : force all states to have the desired value of :math:`S^2`
|
|
|
|
* :option:`determinants expected_s2` : desired value of :math:`S^2`
|
|
|
|
The programmer point of view
|
|
----------------------------
|
|
|
|
This module have been built by setting the following rules:
|
|
|
|
|
|
* The only generator determinant is the Hartree-Fock (single-reference method)
|
|
* All generated determinants are included in the wave function (no perturbative
|
|
selection)
|
|
|
|
These rules are set in the ``H_apply.irp.f`` file.
|
|
|
|
|
|
|
|
|
|
|
|
EZFIO parameters
|
|
----------------
|
|
|
|
.. option:: energy
|
|
|
|
Variational |CISD| energy
|
|
|
|
|
|
|
|
Programs
|
|
--------
|
|
|
|
* :ref:`cisd`
|
|
|
|
Subroutines / functions
|
|
-----------------------
|
|
|
|
.. c:function:: h_apply_cisd:
|
|
|
|
|
|
File : :file:`h_apply.irp.f_shell_8`
|
|
|
|
.. code:: fortran
|
|
|
|
subroutine H_apply_cisd()
|
|
|
|
|
|
Calls H_apply on the |HF| determinant and selects all connected single and double
|
|
excitations (of the same symmetry). Auto-generated by the ``generate_h_apply`` script.
|
|
|
|
Needs:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:data:`psi_coef`
|
|
* :c:data:`n_states`
|
|
* :c:data:`generators_bitmask`
|
|
* :c:data:`mo_num`
|
|
* :c:data:`mo_two_e_integrals_in_map`
|
|
* :c:data:`h_apply_buffer_allocated`
|
|
* :c:data:`n_det`
|
|
* :c:data:`s2_eig`
|
|
* :c:data:`n_det_generators`
|
|
* :c:data:`i_bitmask_gen`
|
|
* :c:data:`n_int`
|
|
* :c:data:`psi_det`
|
|
* :c:data:`psi_det_generators`
|
|
* :c:data:`psi_det_generators`
|
|
|
|
Calls:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`build_fock_tmp`
|
|
* :c:func:`copy_h_apply_buffer_to_wf`
|
|
* :c:func:`dsort`
|
|
* :c:func:`h_apply_cisd_diexc`
|
|
* :c:func:`h_apply_cisd_monoexc`
|
|
* :c:func:`make_s2_eigenfunction`
|
|
* :c:func:`wall_time`
|
|
|
|
Touches:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:data:`n_det`
|
|
* :c:data:`psi_occ_pattern`
|
|
* :c:data:`c0_weight`
|
|
* :c:data:`psi_coef`
|
|
* :c:data:`psi_det_sorted_bit`
|
|
* :c:data:`psi_det`
|
|
* :c:data:`psi_det_size`
|
|
* :c:data:`psi_det_sorted_bit`
|
|
* :c:data:`psi_occ_pattern`
|
|
|
|
|
|
.. c:function:: h_apply_cisd_diexc:
|
|
|
|
|
|
File : :file:`h_apply.irp.f_shell_8`
|
|
|
|
.. code:: fortran
|
|
|
|
subroutine H_apply_cisd_diexc(key_in, key_prev, hole_1,particl_1, hole_2, particl_2, fock_diag_tmp, i_generator, iproc_in )
|
|
|
|
|
|
|
|
Needs:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:data:`n_int`
|
|
* :c:data:`n_det`
|
|
* :c:data:`mo_num`
|
|
|
|
Called by:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`h_apply_cisd`
|
|
|
|
Calls:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`h_apply_cisd_diexcp`
|
|
|
|
|
|
.. c:function:: h_apply_cisd_diexcorg:
|
|
|
|
|
|
File : :file:`h_apply.irp.f_shell_8`
|
|
|
|
.. code:: fortran
|
|
|
|
subroutine H_apply_cisd_diexcOrg(key_in,key_mask,hole_1,particl_1,hole_2, particl_2, fock_diag_tmp, i_generator, iproc_in )
|
|
|
|
|
|
Generate all double excitations of key_in using the bit masks of holes and
|
|
particles.
|
|
Assume N_int is already provided.
|
|
|
|
Needs:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:data:`n_int`
|
|
* :c:data:`elec_alpha_num`
|
|
* :c:data:`mo_num`
|
|
|
|
Called by:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`h_apply_cisd_diexcp`
|
|
|
|
Calls:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`bitstring_to_list_ab`
|
|
* :c:func:`fill_h_apply_buffer_no_selection`
|
|
|
|
|
|
.. c:function:: h_apply_cisd_diexcp:
|
|
|
|
|
|
File : :file:`h_apply.irp.f_shell_8`
|
|
|
|
.. code:: fortran
|
|
|
|
subroutine H_apply_cisd_diexcP(key_in, fs1, fh1, particl_1, fs2, fh2, particl_2, fock_diag_tmp, i_generator, iproc_in )
|
|
|
|
|
|
|
|
Needs:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:data:`n_int`
|
|
* :c:data:`n_det`
|
|
* :c:data:`mo_num`
|
|
|
|
Called by:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`h_apply_cisd_diexc`
|
|
|
|
Calls:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`h_apply_cisd_diexcorg`
|
|
|
|
|
|
.. c:function:: h_apply_cisd_monoexc:
|
|
|
|
|
|
File : :file:`h_apply.irp.f_shell_8`
|
|
|
|
.. code:: fortran
|
|
|
|
subroutine H_apply_cisd_monoexc(key_in, hole_1,particl_1,fock_diag_tmp,i_generator,iproc_in )
|
|
|
|
|
|
Generate all single excitations of key_in using the bit masks of holes and
|
|
particles.
|
|
Assume N_int is already provided.
|
|
|
|
Needs:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:data:`n_int`
|
|
* :c:data:`elec_alpha_num`
|
|
* :c:data:`mo_num`
|
|
|
|
Called by:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`h_apply_cisd`
|
|
|
|
Calls:
|
|
|
|
.. hlist::
|
|
:columns: 3
|
|
|
|
* :c:func:`bitstring_to_list_ab`
|
|
* :c:func:`fill_h_apply_buffer_no_selection`
|
|
|