.. include:: autodoc_abbr_options_c.rst .. index:: CI .. index:: pair: CI; theory .. _`sec:ci`: CI: Configuration Interaction ============================= .. codeauthor:: C. David Sherrill and Matthew L. Leininger .. sectionauthor:: C. David Sherrill *Module:* :ref:`Keywords `, :ref:`PSI Variables `, :source:`DETCI ` Configuration interaction (CI) is one of the most general ways to improve upon Hartree--Fock theory by adding a description of the correlated motions of electrons. Simply put, a CI wavefunction is a linear combination of Slater determinants (or spin-adapted configuration state functions), with the linear coefficients being determined variationally via diagonalization of the Hamiltonian in the given subspace of determinants. For a "single-reference" CI based on reference function :math:`| \Phi_0 \rangle`, we can write the CI expansion as follows: .. math:: | \Psi \rangle = c_0 | \Phi_0 \rangle + \sum_i^{\rm occ} \sum_a^{\rm vir} c_i^a | \Phi_i^a \rangle + \sum_{i` *code.* The DETCI module is also capable of computing arbitrary-order coupled-cluster energies, using an approach similar to that of Hirata and Bartlett [Hirata:2000:216]_, or of Olsen [Olsen:2000:7140]_. Notably, the approach in DETCI also allows arbitrary-order *active space* coupled-cluster procedures. The general algorithm for doing this in DETCI is inefficient compared to optimized lower-order coupled-cluster codes and should not be used for CCSD, where the CCENERGY module is much more efficient. For higher-order CC (like CCSDT and beyond), the code is also not as efficient as the MRCC code by K\ |a_acute|\ llay, to which |PSIfour| can interface (see Section :ref:`sec:mrcc`); however, it may allow certain truncations of the model space that might not be available presently in MRCC. For very small systems, the code can be useful for testing of, for example, CCSDTQ or its active-space CCSDtq analog [Piecuch:1999:6103]_. To perform arbitrary-order coupled-cluster, set the DETCI option |detci__cc| to TRUE, and set |detci__cc_ex_level| (note: not |detci__ex_level|) to the desired coupled-cluster excitation level, and invoke ``energy('detci')``. Various other DETCI options have a similar option for coupled-cluster, usually named beginning with CC. The full list of options is given in Appendix :ref:`apdx:detci`.