cisd
This module contains a CI of single and double excitations.
The user point of view
The 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
scf()program gave the lowest SCF solution. In combination withsave_natorb()it can produce new MOs in order to reperform anscf()optimization.Excited states calculations: generate guess for all the
determinants n_stateswave functions, that will be used by thefci()program.
The main keywords/options to be used are:
determinants n_states: number of states to consider for the CISD calculationdeterminants s2_eig: force all states to have the desired value of \(S^2\)determinants expected_s2: desired value of \(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
- energy
Variational CISD energy
- lcc_energy
lccsd energy
Programs
lccsd
Providers
- lccsd_coef
File :
lccsd_prov.irp.fdouble precision, allocatable :: lccsd_coef (N_det,N_states) double precision, allocatable :: lccsd_energies (N_states)
Needs:
big_array_coulomb_integralsbig_array_coulomb_integralsdavidson_sze_maxdisk_based_davidsonmo_integrals_mapmo_two_e_integrals_in_map
n_detn_intn_statesn_states_diagnprocnthreads_davidson
psi_detqp_max_memref_bitmaskstate_followingthreshold_davidson
- lccsd_energies
File :
lccsd_prov.irp.fdouble precision, allocatable :: lccsd_coef (N_det,N_states) double precision, allocatable :: lccsd_energies (N_states)
Needs:
big_array_coulomb_integralsbig_array_coulomb_integralsdavidson_sze_maxdisk_based_davidsonmo_integrals_mapmo_two_e_integrals_in_map
n_detn_intn_statesn_states_diagnprocnthreads_davidson
psi_detqp_max_memref_bitmaskstate_followingthreshold_davidson
Subroutines / functions
- get_lccsd_2:
File :
lccsd.irp.fsubroutine get_lccsd_2
Needs:
ha_to_evlccsd_coef
n_detn_states
psi_coefsave_threshold
Called by:
run()
Calls:
ezfio_set_cisd_lcc_energy()
save_wavefunction_truncated()
Touches:
psi_coef
- h_apply_cisd:
File :
h_apply.irp.f_shell_12subroutine 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_applyscript.Needs:
generators_bitmaskh_apply_buffer_allocatedmo_nummo_two_e_integrals_in_mapn_det
n_det_generatorsn_intn_statespsi_coef
psi_det_generatorspsi_detpsi_det_generatorss2_eig
Called by:
run()
run_cisd()
Calls:
build_fock_tmp()copy_h_apply_buffer_to_wf()dsort()
h_apply_cisd_diexc()h_apply_cisd_monoexc()
make_s2_eigenfunction()wall_time()
Touches:
psi_configurationn_detc0_weight
psi_coefpsi_det_sorted_bitpsi_configuration
psi_detpsi_det_sizepsi_det_sorted_bit
- h_apply_cisd_diexc:
File :
h_apply.irp.f_shell_12subroutine H_apply_cisd_diexc(key_in, key_prev, hole_1,particl_1, hole_2, particl_2, fock_diag_tmp, i_generator, iproc_in )
Needs:
mo_num
n_det
n_int
Called by:
h_apply_cisd()
Calls:
h_apply_cisd_diexcp()
- h_apply_cisd_diexcorg:
File :
h_apply.irp.f_shell_12subroutine 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:
elec_alpha_num
mo_num
n_int
Called by:
h_apply_cisd_diexcp()
Calls:
bitstring_to_list_ab()
fill_h_apply_buffer_no_selection()
- h_apply_cisd_diexcp:
File :
h_apply.irp.f_shell_12subroutine H_apply_cisd_diexcP(key_in, fs1, fh1, particl_1, fs2, fh2, particl_2, fock_diag_tmp, i_generator, iproc_in )
Needs:
mo_num
n_det
n_int
Called by:
h_apply_cisd_diexc()
Calls:
h_apply_cisd_diexcorg()
- h_apply_cisd_monoexc:
File :
h_apply.irp.f_shell_12subroutine 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:
elec_alpha_num
mo_num
n_int
Called by:
h_apply_cisd()
Calls:
bitstring_to_list_ab()
fill_h_apply_buffer_no_selection()
- h_apply_cisd_sym:
File :
h_apply.irp.f_shell_12subroutine H_apply_cisd_sym()
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_applyscript.Needs:
generators_bitmaskh_apply_buffer_allocatedmo_nummo_two_e_integrals_in_mapn_det
n_det_generatorsn_intn_statespsi_coef
psi_det_generatorspsi_detpsi_det_generatorss2_eig
Called by:
run()
run_cisd()
Calls:
build_fock_tmp()copy_h_apply_buffer_to_wf()dsort()
h_apply_cisd_sym_diexc()h_apply_cisd_sym_monoexc()
make_s2_eigenfunction()wall_time()
Touches:
psi_configurationn_detc0_weight
psi_coefpsi_det_sorted_bitpsi_configuration
psi_detpsi_det_sizepsi_det_sorted_bit
- h_apply_cisd_sym_diexc:
File :
h_apply.irp.f_shell_12subroutine H_apply_cisd_sym_diexc(key_in, key_prev, hole_1,particl_1, hole_2, particl_2, fock_diag_tmp, i_generator, iproc_in )
Needs:
mo_num
n_det
n_int
Called by:
h_apply_cisd_sym()
Calls:
h_apply_cisd_sym_diexcp()
- h_apply_cisd_sym_diexcorg:
File :
h_apply.irp.f_shell_12subroutine H_apply_cisd_sym_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:
elec_alpha_num
mo_num
n_int
Called by:
h_apply_cisd_sym_diexcp()
Calls:
bitstring_to_list_ab()
connected_to_hf()
fill_h_apply_buffer_no_selection()
- h_apply_cisd_sym_diexcp:
File :
h_apply.irp.f_shell_12subroutine H_apply_cisd_sym_diexcP(key_in, fs1, fh1, particl_1, fs2, fh2, particl_2, fock_diag_tmp, i_generator, iproc_in )
Needs:
mo_num
n_det
n_int
Called by:
h_apply_cisd_sym_diexc()
Calls:
h_apply_cisd_sym_diexcorg()
- h_apply_cisd_sym_monoexc:
File :
h_apply.irp.f_shell_12subroutine H_apply_cisd_sym_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:
elec_alpha_num
mo_num
n_int
Called by:
h_apply_cisd_sym()
Calls:
bitstring_to_list_ab()
connected_to_hf()
fill_h_apply_buffer_no_selection()
- run_cisd:
File :
cisd_routine.irp.fsubroutine run_cisd
Needs:
ci_electronic_energyci_energy
n_detn_states
pseudo_sympsi_coef
Calls:
ezfio_set_cisd_energy()h_apply_cisd()
h_apply_cisd_sym()
save_wavefunction()
Touches:
psi_configurationn_detc0_weight
psi_coefpsi_det_sorted_bitpsi_configuration
psi_detpsi_det_sizepsi_det_sorted_bit