=========== Dets Module =========== This module contains the determinants of the CI wave function. H is applied on the list of generator determinants. Selected determinants are added into the *H_apply buffer*. Then the new wave function is constructred as the concatenation of the odl wave function and some determinants of the H_apply buffer. Generator determinants are built as a subset of the determinants of the wave function. Assumptions =========== .. Do not edit this section. It was auto-generated from the .. NEEDED_MODULES file. * The MOs are orthonormal * All the determinants have the same number of electrons * The determinants are orthonormal * The number of generator determinants <= the number of determinants * All the determinants in the H_apply buffer are supposed to be different from the wave function determinants * All the determinants in the H_apply buffer are supposed to be unique Needed Modules ============== .. Do not edit this section. It was auto-generated from the .. NEEDED_MODULES file. * `AOs `_ * `BiInts `_ * `Bitmask `_ * `Electrons `_ * `Ezfio_files `_ * `Hartree_Fock `_ * `MonoInts `_ * `MOs `_ * `Nuclei `_ * `Output `_ * `Utils `_ Documentation ============= .. Do not edit this section. It was auto-generated from the .. NEEDED_MODULES file. `copy_h_apply_buffer_to_wf `_ None `h_apply_buffer_coef `_ Buffer of determinants/coefficients for H_apply. Uninitialized. Filled by H_apply subroutines. `h_apply_buffer_det `_ Buffer of determinants/coefficients for H_apply. Uninitialized. Filled by H_apply subroutines. `h_apply_buffer_n_det `_ Buffer of determinants/coefficients for H_apply. Uninitialized. Filled by H_apply subroutines. `h_apply_buffer_size `_ Size of the H_apply buffer. `h_apply_threshold `_ Theshold on | | `resize_h_apply_buffer_det `_ None `n_det `_ Number of determinants in the wave function `n_det_generators `_ Number of generator determinants in the wave function `n_states `_ Number of states to consider `psi_coef `_ The wave function. Initialized with Hartree-Fock `psi_det `_ The wave function. Initialized with Hartree-Fock `psi_generators `_ Determinants on which H is applied `double_exc_bitmask `_ double_exc_bitmask(:,1,i) is the bitmask for holes of excitation 1 double_exc_bitmask(:,2,i) is the bitmask for particles of excitation 1 double_exc_bitmask(:,3,i) is the bitmask for holes of excitation 2 double_exc_bitmask(:,4,i) is the bitmask for particles of excitation 2 for a given couple of hole/particle excitations i. `n_double_exc_bitmasks `_ Number of double excitation bitmasks `n_single_exc_bitmasks `_ Number of single excitation bitmasks `single_exc_bitmask `_ single_exc_bitmask(:,1,i) is the bitmask for holes single_exc_bitmask(:,2,i) is the bitmask for particles for a given couple of hole/particle excitations i. `get_s2 `_ Returns `a_operator `_ Needed for diag_H_mat_elem `ac_operator `_ Needed for diag_H_mat_elem `decode_exc `_ Decodes the exc arrays returned by get_excitation. h1,h2 : Holes p1,p2 : Particles s1,s2 : Spins (1:alpha, 2:beta) degree : Degree of excitation `diag_h_mat_elem `_ Computes `filter_connected `_ Filters out the determinants that are not connected by H `filter_connected_i_h_psi0 `_ None `get_double_excitation `_ Returns the two excitation operators between two doubly excited determinants and the phase `get_excitation `_ Returns the excitation operators between two determinants and the phase `get_excitation_degree `_ Returns the excitation degree between two determinants `get_excitation_degree_vector `_ Applies get_excitation_degree to an array of determinants `get_mono_excitation `_ Returns the excitation operator between two singly excited determinants and the phase `get_occ_from_key `_ Returns a list of occupation numbers from a bitstring `i_h_j `_ Returns where i and j are determinants `i_h_psim `_ None `h_matrix_all_dets `_ H matrix on the basis of the slater deter;inants defined by psi_det