Like adiabatic time-dependent density-functional theory (TD-DFT), the Bethe-Salpeter equation (BSE) formalism in its static approximation is ``blind'' to double (and higher) excitations, which are, for example, ubiquitous in conjugated molecules like polyenes.
Here, we apply the spin-flip technique (which consists in considering the lowest triplet state as the reference configuration instead of the singlet ground state) to the BSE formalism of many-body perturbation theory in order to access double excitations.
The present scheme is based on a spin-unrestricted version of the $GW$ approximation employed to compute the charged excitations and screened Coulomb potential required for the BSE calculations.
Dynamical corrections to the static BSE optical excitations are taken into account via an unrestricted generalization of our recently developed (renormalized) perturbative treatment.
The performance of the present spin-flip BSE formalism is illustrated by computing the vertical excitation energies of the beryllium atom, the hydrogen molecule at various bond lengths, and cyclobutadiene.
Due to the ubiquitous influence of processes involving electronic excited states in physics, chemistry, and biology, their faithful description from first principles has been one of the grand challenges faced by theoretical chemists since the dawn of computational chemistry.
Accurately predicting ground- and excited-state energies (hence excitation energies) is particularly valuable in this context, and it has concentrated most of the efforts within the community.
An armada of theoretical and computational methods have been developed to this end, each of them being plagued by its own flaws. \cite{Roos_1996,Piecuch_2002,Dreuw_2005,Krylov_2006,Sneskov_2012,Gonzales_2012,Laurent_2013,Adamo_2013,Ghosh_2018,Blase_2020,Loos_2020d,Casanova_2020}
The fact that none of these methods is successful in every chemical scenario has encouraged chemists to carry on the development of new excited-state methodologies, their main goal being to get the most accurate excitation energies (and properties) at the lowest possible computational cost in the most general context. \cite{Loos_2020d}
Originally developed in the framework of nuclear physics, \cite{Salpeter_1951} and popularized in condensed-matter physics, \cite{Sham_1966,Strinati_1984,Delerue_2000} one of the new emerging method in the computational chemistry landscape is the Bethe-Salpeter equation (BSE) formalism \cite{Salpeter_1951,Strinati_1988,Albrecht_1998,Rohlfing_1998,Benedict_1998,vanderHorst_1999,Blase_2018,Blase_2020} from many-body perturbation theory (MBPT) \cite{Onida_2002,Martin_2016} which, based on an underlying $GW$ calculation to compute accurate charged excitations and the dynamically-screened Coulomb potential, \cite{Hedin_1965,Golze_2019} is able to provide accurate optical (\ie, neutral) excitations for molecular systems at a rather modest computational cost.\cite{Rohlfing_1999a,Horst_1999,Puschnig_2002,Tiago_2003,Boulanger_2014,Jacquemin_2015a,Bruneval_2015,Jacquemin_2015b,Hirose_2015,Jacquemin_2017a,Jacquemin_2017b,Rangel_2017,Krause_2017,Gui_2018,Blase_2018,Liu_2020,Blase_2020,Holzer_2018a,Holzer_2018b,Loos_2020e}
Most of BSE implementations rely on the so-called static approximation, \cite{Blase_2018,Bruneval_2016,Krause_2017,Liu_2020} which approximates the dynamical (\ie, frequency-dependent) BSE kernel by its static limit.
Like adiabatic time-dependent density-functional theory (TD-DFT), \cite{Runge_1984,Casida_1995,Petersilka_1996,UlrichBook} the static BSE formalism is plagued by the lack of double (and higher) excitations, which are, for example, ubiquitous in conjugated molecules like polyenes\cite{Maitra_2004,Cave_2004,Saha_2006,Watson_2012,Shu_2017,Barca_2018a,Barca_2018b,Loos_2019} or the ground state of open-shell molecules, \cite{Casida_2005,Huix-Rotllant_2011,Loos_2020f} and can be a real challenge to accurately predict even with state-of-the-art methods, \cite{Loos_2018a,Loos_2019,Loos_2020c,Loos_2020d,Veril_2020} like the approximate third-order coupled-cluster (CC3) method \cite{Christiansen_1995b,Koch_1997} or equation-of-motion coupled-cluster with singles, doubles and triples (EOM-CCSDT). \cite{Kucharski_1991,Kallay_2004,Hirata_2000,Hirata_2004}
Indeed, both adiabatic TD-DFT \cite{Levine_2006,Tozer_2000,Elliott_2011,Maitra_2012,Maitra_2016} and static BSE \cite{ReiningBook,Romaniello_2009b,Sangalli_2011,Loos_2020h,Authier_2020} can only access (singlet and triplet) single excitations with respect to the reference determinant usually taken as the closed-shell singlet ground state.
One way to access double excitations is via the spin-flip formalism established by Krylov in 2001, \cite{Krylov_2001a,Krylov_2001b,Krylov_2002} with earlier attempts by Bethe, \cite{Bethe_1931} as well as Shibuya and McKoy. \cite{Shibuya_1970}
The idea behind spin-flip is rather simple: instead of considering the singlet ground state as reference, the reference is taken as the lowest triplet state.
In such a way, one can access the singlet ground state and the singlet doubly-excited state via a spin-flip deexcitation and excitation (respectively), the difference of these two excitation energies providing an estimate of the double excitation.
Note that a similar idea has been exploited by the group of Weito Yang to access double excitations in the context of the particle-particle random-phase approximation. \cite{Peng_2013,Yang_2013b,Yang_2014a,Peng_2014,Zhang_2016,Sutton_2018}
Moreover, spin-flip methods are usually hampered by spin-contamination \cite{Casanova_2020} (\ie, artificial mixing with configurations of different spin multiplicities) due to spin incompleteness of the configuration interaction expansion as well as the possible spin-contamination of the reference configuration. \cite{Krylov_2000b}
This issue can be alleviated by increasing the excitation order at a significant cost or by selectively complementing the spin-incomplete configuration set with the missing configurations. \cite{Sears_2003,Casanova_2008,Huix-Rotllant_2010,Li_2010,Li_2011a,Li_2011b,Zhang_2015,Lee_2018}
Nowadays, spin-flip techniques are widely available for many types of methods such as equation-of-motion coupled cluster (EOM-CC), \cite{Krylov_2001a,Levchenko_2004,Manohar_2008,Casanova_2009a,Dutta_2013} configuration interaction (CI), \cite{Krylov_2001b,Krylov_2002,Mato_2018,Casanova_2008,Casanova_2009b} TD-DFT, \cite{Shao_2003,Wang_2004,Li_2011a,Bernard_2012,Zhang_2015} the algebraic-diagrammatic construction (ADC) scheme,\cite{Lefrancois_2015,Lefrancois_2016} and others \cite{Mayhall_2014a,Mayhall_2014b,Bell_2013,Mayhall_2014c} with successful applications in bond breaking processes, \cite{Golubeva_2007} radical chemistry, \cite{Slipchenko_2002,Wang_2005,Slipchenko_2003,Rinkevicius_2010,Ibeji_2015,Hossain_2017,Orms_2018,Luxon_2018} and photochemistry in general \cite{Casanova_2012,Gozem_2013,Nikiforov_2014,Lefrancois_2016} to mention a few.
The present BSE calculations are based on the spin unrestricted version of both $GW$ (Sec.~\ref{sec:UGW}) and BSE (Sec.~\ref{sec:UBSE}).
To the best of our knowledge, the present study is the first to apply the spin-flip formalism to the BSE method.
Moreover, we also go beyond the static approximation by taking into account dynamical effects (Sec.~\ref{sec:dBSE}) via an unrestricted generalization of our recently developed (renormalized) perturbative correction which builds on the seminal work of Strinati, \cite{Strinati_1982,Strinati_1984,Strinati_1988} Romaniello and collaborators, \cite{Romaniello_2009b,Sangalli_2011} and Rohlfing and coworkers. \cite{Rohlfing_2000,Ma_2009a,Ma_2009b,Baumeier_2012b,Lettmann_2019}
We also discuss the computation of oscillator strengths (Sec.~\ref{sec:os}) and the expectation value of the spin operator $\expval{\hS^2}$ as a diagnostic of the spin contamination for both ground and excited states (Sec.~\ref{sec:spin}).
Computational details are reported in Sec.~\ref{sec:compdet} and our results for the beryllium atom \ce{Be} (Subsec.~\ref{sec:Be}), the hydrogen molecule \ce{H2} (Subsec.~\ref{sec:H2}), and cyclobutadiene \ce{C4H4} (Subsec.~\ref{sec:CBD}) are discussed in Sec.~\ref{sec:res}.
Let us consider an electronic system consisting of $n = n_\up+ n_\dw$ electrons (where $n_\up$ and $n_\dw$ are the number of spin-up and spin-down electrons, respectively) and $N$ one-electron basis functions.
The number of spin-up and spin-down occupied orbitals are $O_\up= n_\up$ and $O_\dw= n_\dw$, respectively, and, assuming the absence of linear dependencies in the one-electron basis set, there is $V_\up= N - O_\up$ and $V_\dw= N - O_\dw$ spin-up and spin-down virtual (\ie, unoccupied) orbitals.
The number of spin-conserved (sc) single excitations is then $S^\spc= S_{\up\up}^\spc+ S_{\dw\dw}^\spc= O_\up V_\up+ O_\dw V_\dw$, while the number of spin-flip excitations is $S^\spf= S_{\up\dw}^\spf+ S_{\dw\up}^\spf= O_\up V_\dw+ O_\dw V_\up$.
It is important to understand that, in a spin-conserved excitation the hole orbital $\MO{i_\sig}$ and particle orbital $\MO{a_\sig}$ have the same spin $\sig$.
In the following, we assume real quantities throughout this manuscript, $i$ and $j$ are occupied orbitals, $a$ and $b$ are unoccupied orbitals, $p$, $q$, $r$, and $s$ indicate arbitrary orbitals, and $m$ labels single excitations.
Moreover, we consider systems with collinear spins and a spin-independent hamiltonian without contributions such as spin-orbit interaction.
The pillar of Green's function many-body perturbation theory is the (time-ordered) one-body Green's function, which has poles at the charged excitations (i.e., ionization potentials and electron affinities) of the system. \cite{ReiningBook}
The spin-$\sig$ component of the one-body Green's function reads \cite{ReiningBook,Bruneval_2016a}
As readily seen in Eq.~\eqref{eq:G}, the Green's function can be evaluated at different levels of theory depending on the choice of orbitals and energies, $\MO{p_\sig}$ and $\e{p_\sig}{}$.
For example, $G_{\KS}^{\sig}$ is the independent-particle Green's function built with KS orbitals $\MO{p_\sig}^{\KS}(\br)$ and one-electron energies $\e{p_\sig}^{\KS}$. \cite{Hohenberg_1964,Kohn_1965,ParrBook}
Within self-consistent schemes, these quantities can be replaced by quasiparticle energies and orbitals evaluated within the $GW$ approximation (see below). \cite{Hedin_1965,Golze_2019}
Based on the spin-up and spin-down components of $G$ defined in Eq.~\eqref{eq:G}, one can easily compute the non-interacting polarizability (which is a sum over spins)
Within the $GW$ formalism, \cite{Hedin_1965,Onida_2002,Golze_2019} the dynamical screening is computed at the random-phase approximation (RPA) level by considering only the manifold of the spin-conserved neutral excitations.
In Eqs.~\eqref{eq:W_spectral} and \eqref{eq:sERI}, the spin-conserved RPA neutral excitations $\Om{m}{\spc,\RPA}$ and their corresponding eigenvectors, $\bX{m}{\spc,\RPA}$ and $\bY{m}{\spc,\RPA}$, are obtained by solving a linear response system of the form
In the absence of instabilities, the linear eigenvalue problem \eqref{eq:LR-RPA} has particle-hole symmetry which means that the eigenvalues are obtained by pairs $\pm\Om{m}{}$.
In such a case, $(\bA{}{}-\bB{}{})^{1/2}$ is positive definite, and Eq.~\eqref{eq:LR-RPA} can be recast as a Hermitian problem of half its original dimension
Within the Tamm-Dancoff approximation (TDA), the coupling terms between the resonant and anti-resonant parts, $\bA{}{}$ and $-\bA{}{}$, are neglected, which consists in setting $\bB{}{}=\bO$.
Note that, for spin-flip excitations, it is quite common to enforce the TDA especially when one considers a triplet reference as the first ``excited-state'' is usually the ground state of the closed-shell system (hence, corresponding to a negative excitation energy).
The target quantities here are the quasiparticle energies $\eGW{p_\sig}$, \ie, the poles of $G$ [see Eq.~\eqref{eq:G}], which correspond to well-defined addition/removal energies (unlike the KS orbital energies).
Because the exchange-correlation part of the self-energy is, itself, constructed with the Green's function [see Eq.~\eqref{eq:Sig}], the present process is, by nature, self-consistent.
The same comment applies to the dynamically-screened Coulomb potential $W$ entering the definition of $\Sig{}{\xc}$ [see Eq.~\eqref{eq:Sig}] which is also constructed from $G$ [see Eqs.~\eqref{eq:chi0}, \eqref{eq:eps}, and \eqref{eq:W}].
In its simplest perturbative (\ie, one-shot) version, known as {\GOWO}, \cite{Strinati_1980,Hybertsen_1985a,Hybertsen_1986,Godby_1988,Linden_1988,Northrup_1991,Blase_1994,Rohlfing_1995,Shishkin_2007} a single iteration is performed, and the quasiparticle energies $\eGW{p_\sig}$ are obtained by solving the frequency-dependent quasiparticle equation
Because, from a practical point of view, one is usually interested by the so-called quasiparticle solution (or peak), the quasiparticle equation \eqref{eq:QP-eq} is often linearized around $\omega=\e{p_\sig}^{\KS}$, yielding
In addition to the principal quasiparticle peak which, in a well-behaved case, contains most of the spectral weight, the frequency-dependent quasiparticle equation \eqref{eq:QP-eq} generates a finite number of satellite resonances with smaller weights. \cite{Loos_2018b}
Within the ``eigenvalue'' self-consistent $GW$ scheme (known as ev$GW$), \cite{Hybertsen_1986,Shishkin_2007,Blase_2011,Faber_2011,Rangel_2016,Gui_2018} several iterations are performed during which only the one-electron energies entering the definition of the Green's function [see Eq.~\eqref{eq:G}] are updated by the quasiparticle energies obtained at the previous iteration (the corresponding orbitals remain evaluated at the KS level).
Finally, within the quasiparticle self-consistent $GW$ (qs$GW$) scheme, \cite{Faleev_2004,vanSchilfgaarde_2006,Kotani_2007,Ke_2011,Kaplan_2016} both the one-electron energies and the orbitals are updated until convergence is reached.
These are obtained via the diagonalization of an effective Fock matrix which includes explicitly a frequency-independent and hermitian self-energy defined as
Like its TD-DFT cousin, \cite{Runge_1984,Casida_1995,Petersilka_1996,Dreuw_2005} the BSE formalism \cite{Salpeter_1951,Strinati_1988,Albrecht_1998,Rohlfing_1998,Benedict_1998,vanderHorst_1999} deals with the calculation of (neutral) optical excitations as measured by absorption spectroscopy. \cite{Rohlfing_1999a,Horst_1999,Puschnig_2002,Tiago_2003,Boulanger_2014,Jacquemin_2015a,Bruneval_2015,Jacquemin_2015b,Hirose_2015,Jacquemin_2017a,Jacquemin_2017b,Rangel_2017,Krause_2017,Gui_2018}
In a nutshell, BSE builds on top of a $GW$ calculation by adding up excitonic effects (\ie, the electron-hole binding energy) to the $GW$ fundamental gap which is itself a corrected version of the KS gap.
The purpose of the underlying $GW$ calculation is to provide quasiparticle energies and a dynamically-screened Coulomb potential that are used to build the BSE Hamiltonian from which the vertical excitations of the system are extracted.
The Dyson equation that links the generalized four-point susceptibility $L^{\sig\sigp}(\br_1,\br_2;\br_1',\br_2';\omega)$ and the BSE kernel $\Xi^{\sig\sigp}(\br_3,\br_5;\br_4,\br_6;\omega)$ is
where, as usual, we have not considered the higher-order terms in $W$ by neglecting the derivative $\partial W/\partial G$. \cite{Hanke_1980,Strinati_1982,Strinati_1984,Strinati_1988}
Within the static approximation which consists in neglecting the frequency dependence of the dynamically-screened Coulomb potential, the spin-conserved and spin-flip BSE optical excitations are obtained by solving the usual Casida-like linear response (eigen)problem:
Defining the elements of the static screening as $W^{\stat}_{p_\sig q_\sig,r_\sigp s_\sigp}= W_{p_\sig q_\sig,r_\sigp s_\sigp}(\omega=0)$, the general expressions of the BSE matrix elements are
At this stage, it is of particular interest to discuss the form of the spin-flip matrix elements defined in Eqs.~\eqref{eq:LR_BSE-Asf} and \eqref{eq:LR_BSE-Bsf}.
As readily seen from Eq.~\eqref{eq:LR_RPA-Asf}, at the RPA level, the spin-flip excitations are given by the difference of one-electron energies, hence missing out on key exchange and correlation effects.
This explains why most of spin-flip TD-DFT calculations are performed with hybrid functionals containing a substantial amount of Hartree-Fock exchange as only the exact exchange integral of the form $\ERI{i_\sig j_\sig}{b_\bsig a_\bsig}$ survive spin-symmetry requirements.
At the BSE level, these matrix elements are, of course, also present thanks to the contribution of $W^{\stat}_{i_\sig j_\sig,b_\bsig a_\bsig}$ as evidenced in Eq.~\eqref{eq:W_spectral} but it also includes correlation effects.
In order to go beyond the ubiquitous static approximation of BSE \cite{Strinati_1988,Rohlfing_2000,Sottile_2003,Myohanen_2008,Ma_2009a,Ma_2009b,Romaniello_2009b,Sangalli_2011,Huix-Rotllant_2011,Sakkinen_2012,Zhang_2013,Rebolini_2016,Olevano_2019,Lettmann_2019} (which is somehow similar to the adiabatic approximation of TD-DFT \cite{Casida_2005,Huix-Rotllant_2011,Casida_2016,Maitra_2004,Cave_2004,Elliott_2011,Maitra_2012}), we have recently implemented, following Strinati's seminal work \cite{Strinati_1982,Strinati_1984,Strinati_1988} (see also the work of Romaniello \textit{et al.}\cite{Romaniello_2009b} and Sangalli \textit{et al.}\cite{Sangalli_2011}), a renormalized first-order perturbative correction in order to take into consideration the dynamical nature of the screened Coulomb potential $W$. \cite{Loos_2020h,Authier_2020}
This dynamical correction to the static BSE kernel (dubbed as dBSE in the following) does permit to recover additional relaxation effects coming from higher excitations.
Our implementation follows closely the work of Rohlfing and co-workers \cite{Rohlfing_2000,Ma_2009a,Ma_2009b,Baumeier_2012b} in which they computed the dynamical correction in the TDA and plasmon-pole approximation.
However, our scheme goes beyond the plasmon-pole approximation as the spectral representation of the dynamically-screened Coulomb potential is computed exactly at the RPA level consistently with the underlying $GW$ calculation:
from which one can easily obtained the matrix elements for the spin-conserved and spin-flip manifolds similarly to Eqs.~\eqref{eq:LR_BSE-Asc}, \eqref{eq:LR_BSE-Bsc}, \eqref{eq:LR_BSE-Asf}, and \eqref{eq:LR_BSE-Bsf}.
Following Rayleigh-Schr\"odinger perturbation theory, we then decompose the non-linear eigenproblem \eqref{eq:LR-dyn} as a zeroth-order static (\ie, linear) reference and a first-order dynamic (\ie, non-linear) perturbation such that
Oscillator strengths, \ie, transition dipole moments from the ground to the corresponding excited state, are key quantities that are linked to experimental intensities and are usually used to probe the quality of excited-state calculations. \cite{Harbach_2014,Kannar_2014,Chrayteh_2021,Sarkar_2021}
For spin-flip transitions, we have $f_{m}^{\spf}=0$ as the transition matrix elements $(i_\sig|x|a_\bsig)$ vanish via integration over the spin coordinate.
One of the key issues of linear response formalism based on unrestricted references is spin contamination or the artificial mixing with configurations of different spin multiplicities.
As nicely explained in Ref.~\onlinecite{Casanova_2020}, there are two sources of spin contamination: i) spin contamination of the reference configuration for which, for example, $\expval{\hS^2} > 2$ for a high-spin triplets, and ii) spin-contamination of the excited states due to spin incompleteness of the CI expansion.
The latter issue is an important source of spin contamination in the present context as BSE is limited to single excitations with respect to the reference configuration.
Specific schemes have been developed to palliate these shortcomings and we refer the interested reader to Ref.~\onlinecite{Casanova_2020} for a detailed discussion on this matter.
For a given single excitation $m$, the explicit expressions of $\Delta\expval{\hS^2}_m^{\spc}$ and $\Delta\expval{\hS^2}_m^{\spf}$ can be found in the Appendix of Ref.~\onlinecite{Li_2011a} for spin-conserved and spin-flip excitations, and are functions of the vectors $\bX{m}{}$ and $\bY{m}{}$ as well as the orbital overlaps defined in Eq.~\eqref{eq:OV}.
%The {\GOWO} and ev$GW$ calculations performed to obtain the screened Coulomb potential and the quasiparticle energies required to compute the BSE neutral excitations are performed using an unrestricted HF (UHF) starting point, while, by construction, the corresponding qs$GW$ quantities are independent from the starting point.
%For {\GOWO}, the quasiparticle energies are obtained by linearizing the frequency-dependent quasiparticle equation [see Eq.~\eqref{eq:G0W0_lin}].
%Note that, in any case, the entire set of orbitals and energies is corrected.
%Further details about our implementation of {\GOWO}, ev$GW$, and qs$GW$ can be found in Refs.~\onlinecite{Loos_2018b,Veril_2018,Loos_2020e,Loos_2020h}.
%Here, we do not investigate how the starting orbitals affect the BSE@{\GOWO} and BSE@ev$GW$ excitation energies.
The {\GOWO} calculations performed to obtain the screened Coulomb potential and the quasiparticle energies required to compute the BSE neutral excitations are performed using an unrestricted HF (UHF) starting point, and the {\GOWO} quasiparticle energies are obtained by linearizing the frequency-dependent quasiparticle equation [see Eq.~\eqref{eq:G0W0_lin}].
Note that the entire set of orbitals and energies is corrected.
Further details about our implementation of {\GOWO} can be found in Refs.~\onlinecite{Loos_2018b,Veril_2018,Loos_2020e,Loos_2020h}.
Here, we do not investigate how the starting orbitals affect the BSE@{\GOWO} excitation energies.
However, it is worth mentioning that, for the present (small) molecular systems, HF is usually a good starting point, \cite{Loos_2020a,Loos_2020e,Loos_2020h} although improvements could certainly be obtained with starting orbitals and energies computed with, for example, optimally-tuned range-separated hybrid functionals. \cite{Stein_2009,Stein_2010,Refaely-Abramson_2012,Kronik_2012}
Besides, {\GOWO}@UHF and ev$GW$@UHF yield similar quasiparticle energies, while {\GOWO} allows us to avoid rather laborious iterations as well as the significant additional computational effort of ev$GW$.
In the following, all linear response calculations are performed within the TDA to ensure consistency between the spin-conserved and spin-flip results.
%\titou{As one-electron basis sets, we employ Pople's 6-31G basis or the Dunning families cc-pVXZ and aug-cc-pVXZ (X = D, T, and Q) defined with cartesian Gaussian functions.}
Finally, the infinitesimal $\eta$ is set to $100$ meV for all calculations.
All the static and dynamic BSE calculations (labeled in the following as SF-BSE and SF-dBSE respectively) are performed with the software \texttt{QuAcK}, \cite{QuAcK} developed in our group and freely available on \texttt{github}.
The standard and extended spin-flip ADC(2) calculations [SF-ADC(2)-s and SF-ADC(2)-x, respectively] as well as the SF-ADC(3) \cite{Lefrancois_2015} are performed with Q-CHEM 5.2.1. \cite{qchem4}
Spin-flip TD-DFT calculations \cite{Shao_2003} considering the BLYP, \cite{Becke_1988,Lee_1988} B3LYP, \cite{Becke_1988,Lee_1988,Becke_1993a} and BH\&HLYP \cite{Lee_1988,Becke_1993b} functionals with contains $0\%$, $20\%$, and $50\%$ of exact exchange are labeled as SF-TD-BLYP, SF-TD-B3LYP, and SF-TD-BH\&HLYP, respectively, and are also performed with Q-CHEM 5.2.1.
EOM-CCSD excitation energies \cite{Koch_1990,Stanton_1993,Koch_1994} are computed with Gaussian 09. \cite{g09}
As a consistency check, we systematically perform the SF-CIS calculations \cite{Krylov_2001a} with both \texttt{QuAcK} and Q-CHEM, and make sure that they yield identical excitation energies.
Throughout this work, all spin-flip calculations are performed with a UHF reference.
%T2: I think it might be worth doing some calculations with a larger basis set (ie, aug-cc-pvqz).
% I've done a quick check and it seems to work much better and we could get some CIPSI excitation energies as reference.
% Also, I think we have much more spin contamination in this larger basis and it would be worth reporting it (for the reference and the excited state).
% No need to do evGW and qsGW, G0W0 (BSE and dBSE) is enough I guess + SF-ADC and SF-TD-DFT.
%%%%%%%%%%%%%%%
As a first example, we consider the simple case of the beryllium atom in a small basis (6-31G) which was considered by Krylov in two of her very first papers on spin-flip methods \cite{Krylov_2001a,Krylov_2001b} and was also considered in later studies thanks to its pedagogical value. \cite{Sears_2003,Casanova_2020}
The excitation energies corresponding to the first singlet and triplet single excitations $2s \to2p$ with $P$ spatial symmetry as well as the first singlet and triplet double excitations $2s^2\to2p^2$ with $D$ and $P$ spatial symmetries (respectively) are reported in Table \ref{tab:Be} and depicted in Fig.~\ref{fig:Be}.
The left side of Fig.~\ref{fig:Be} (red lines) reports SF-TD-DFT excitation energies obtained with the BLYP, B3LYP, and BH\&HLYP functionals, which correspond to an increase of exact exchange from 0\% to 50\%.
As mentioned in Ref.~\onlinecite{Casanova_2020}, the $^3P(1s^22s^12p^1)$ and the $^1P(1s^22s^12p^1)$ states are degenerate at the SF-TD-BLYP level and their excitation energies are given by the $2s$--$2p$ orbital energy difference due to the lack of coupling terms in the spin-flip block of the SD-TD-DFT equations (\textit{vide supra}).
Including exact exchange, like in SF-TD-B3LYP and SF-TD-BH\&HLYP, lifts this degeneracy.
However, the SF-TD-BH\&HLYP excitation energy of the $^1P(1s^22s^12p^1)$ state is still off by $1.6$ eV as compared to the FCI reference.
For the other states, the agreement between SF-TD-BH\&HLYP and FCI is significantly improved.
All of these are computed with 100\% of exact exchange with the inclusion of correlation in the case of SF-BSE thanks to the introduction of the screening.
They are close the FCI results, because of the fact that there is one hundred percent exact exchange in the BSE method, with an error of $0.02$-$0.6$ eV depending on the scheme of SF-BSE.
For the last excited state $^1D(1s^22p^2)$ the largest error is $0.85$ eV with SF-dBSE@{\qsGW}, so we have a bad description of this state due to spin contamination.
Generally we can observe that all the scheme with SF-BSE used do not increase significantly the accuracy of excitations energies.
Excitation energies (in eV) with respect to the $^1S(1s^22s^2)$ singlet ground state of \ce{Be} obtained for various methods with the 6-31G and aug-cc-pVQZ basis sets.
Excitation energies (in eV) with respect to the $^1S(1s^22s^2)$ singlet ground state of \ce{Be} obtained with the 6-31G basis for various levels of theory:
Our second example deals with the dissociation of the \ce{H2} molecule, which is a prototypical system for testing new electronic structure methods and, specifically, their accuracy in the presence of strong correlation (see, for example, Refs.~\onlinecite{Caruso_2013,Barca_2014,Vuckovic_2017}, and references therein).
The $\text{X}\,{}^1\Sigma_g^+$ ground state of \ce{H2} has an electronic configuration $(1\sigma_g)^2$ configuration.
The variation of the excitation energies associated with the three lowest singlet excited states with respect to the elongation of the \ce{H-H} bond are of particular interest here.
The lowest singly excited state $\text{B}\,{}^1\Sigma_u^+$ has a $(1\sigma_g )(1\sigma_u)$ configuration, while the singly excited state $\text{E}\,{}^1\Sigma_g^+$ and the doubly excited state $\text{F}\,{}^1\Sigma_g^+$ have $(1\sigma_g )(2\sigma_g)$ and $(1\sigma_u )(1\sigma_u)$ configurations, respectively.
Because these latter two excited states interact strongly and form an avoided crossing around $R(\ce{H-H})=1.4$\AA, they are usually labeled as the $\text{EF}\,{}^1\Sigma_g^+$ state.
Note that this avoided crossing is not visible with non-spin-flip methods, such as CIS, TD-DFT, and BSE, as these are ``blind'' to double excitations.
Three methods, in their standard and spin-flip versions, are studied here (CIS, TD-BH\&HLYP and BSE) and are compared to the reference EOM-CCSD excitation energies (that is equivalent to FCI in the case of \ce{H2}).
All these calculations are performed in the cc-pVQZ basis, and both the spin-conserved and spin-flip calculations are performed with an unrestricted reference.
The top panel of Fig.~\ref{fig:H2} shows the CIS (dotted lines) and SF-CIS (dashed lines) excitation energies as a function of $R(\ce{H-H})$.
The EOM-CCSD reference energies are represented by solid lines.
We observe that both CIS and SF-CIS poorly describe the $\text{B}\,{}^1\Sigma_u^+$ state, especially in the dissociation limit with an error greater than $1$ eV.
The same analysis can be done for the $\text{F}\,{}^1\Sigma_g^+$ state at dissociation.
SF-CIS does not model accurately the $\text{E}\,{}^1\Sigma_g^+$ state before the avoided crossing, but the agreement between SF-CIS and EOM-CCSD is much satisfactory for bond length greater than $1.6$\AA.
Nonetheless, this results in a rather good qualitative agreement with an avoided crossing placed at a slightly larger bond length than at the EOM-CCSD level.
In the bottom panel of Fig.~\ref{fig:H2} we have results for BSE calculation with and without spin-flip.
SF-BSE gives a good representation of the $\text{B}\,{}^1\Sigma_u^+$ state with error of 0.05-0.3 eV.
However SF-BSE does not describe well the $\text{E}\,{}^1\Sigma_g^+$ state with error of 0.5-1.6 eV. SF-BSE shows a good agreement with the EOM-CCSD reference for the double excitation to the $\text{F}\,{}^1\Sigma_g^+$ state, indeed we have an error of 0.008-0.6 eV. BSE results for the $\text{B}\,{}^1\Sigma_u^+$ state are close to the reference until 2.0 \AA~ and the give bad agreement for the dissociation limit.
For the $\text{E}\,{}^1\Sigma_g^+$ state BSE gives closer results to the reference than SF-BSE.
Excitation energies of the $\text{B}\,{}^1\Sigma_u^+$ (red), $\text{E}\,{}^1\Sigma_g^+$ (black), and $\text{E}\,{}^1\Sigma_g^+$ (blue) states (with respect to the $\text{X}\,{}^1\Sigma_g^+$ ground state) of \ce{H2} obtained with the cc-pVQZ basis at the (SF-)CIS (top), (SF-)TD-BH\&HLYP (middle), and (SF-)BSE (bottom) levels of theory.
The reference EOM-CCSD excitation energies are represented as solid lines, while the results obtained with and without spin-flip results are represented as dashed and dotted lines, respectively.
Cyclobutadiene (CBD) is an interesting example as its electronic character of its ground state can be tune via geometrical deformation. \cite{Balkova_1994,Levchenko_2004,Manohar_2008,Karadakov_2008,Li_2009,Shen_2012,Lefrancois_2015,Casanova_2020,Vitale_2020}
In its $D_{2h}$ rectangular $^1 A_g$ singlet ground-state equilibrium geometry, the highest occupied molecular orbital (HOMO) and lowest unoccupied molecular orbital (LUMO) are non-degenerate, and the singlet ground state can be safely labeled as single-reference with well-defined doubly-occupied orbitals.
However, in its $D_{4h}$ square-planar $^3 A_{2g}$ ground-state equilibrium geometry, the HOMO and LUMO are strictly degenerate, and the electronic ground state (which is still of singlet nature with $B_{1g}$ spatial symmetry, hence violating Hund's rule) is strongly multi-reference with singly occupied orbitals (\ie, singlet open-shell state).
In this case, single-reference methods notoriously fail.
Nonetheless, the lowest triplet state of symmetry $^3 A_{2g}$ remains of single-reference character and is then a perfect starting point for spin-flip calculations.
The $D_{2h}$ and $D_{4h}$ optimized geometries of the $^1 A_g$ and $^3 A_{2g}$ states of CBD have been extracted from Ref.~\onlinecite{Manohar_2008} and have been obtained at the CCSD(T)/cc-pVTZ level.
EOM-CCSD and SF-ADC calculations have been taken from Refs.~\onlinecite{Manohar_2008} and Ref.~\onlinecite{Lefrancois_2015}.
All of them have been obtained with a UHF reference like the SF-BSE calculations performed here.
Tables~\ref{tab:CBD_D2h} and \ref{tab:CBD_D4h} report excitation energies (with respect to the singlet ground state) obtained for the $D_{2h}$ and $D_{4h}$ geometries, respectively.
These are also represented in Fig.~\ref{fig:CBD}.
For each geometry, three states are under investigation.
For the $D_{2h}$ CBD, we look at the $1\,{}^3B_{1g}$, $1\,{}^1B_{1g}$ and $2\,{}^1A_{1g}$ states.
In this case, it is important to mention that the $2\,{}^1A_{1g}$ state has a significant double excitation character.
For the $D_{4h}$ CBD we look at the $1\,{}^3 A_{2g}$, $2\,{}^1 A_{1g}$ and $1\,{}^1 B_{2g}$ states.
Several methods using spin-flip are compared to the spin-flip version of BSE with and without dynamical corrections.
In Table~\ref{tab:CBD_D2h}, comparing the results of our work and the most accurate ADC level, \ie, SF-ADC(3) with SF-BSE@{\GOWO} we have a difference in the excitation energy of 0.017 eV for the $1 ~^3 B_{1g}$ state.
This difference grows to 0.572 eV for the $1 ~^1 B_{1g}$ state and then it is 0.212 eV for the $2 ~^1 A_{1g}$ state.
Adding dynamical corrections in SF-dBSE@{\GOWO} do not improve the accuracy of the excitation energies comparing to SF-ADC(3).
Indeed, we have a difference of 0.052 eV for the $1 ~^3 B_{1g}$ state, 0.393 eV for the $1 ~^1 B_{1g}$ state and 0.293 eV for the $2 ~^1 A_{1g}$ state.
Now, looking at the Table~\ref{tab:CBD_D4h} and comparing SF-BSE@{\GOWO} to SF-ADC(3) we have an interesting result.
Indeed, we have a wrong ordering in our first excited state, we find that the triplet state $1 ~^3 A_{2g}$ is lower in energy that the singlet state $B_{1g}$ in contrary to all of the results extracted in Refs.~\onlinecite{Manohar_2008,Lefrancois_2015}.
Then adding dynamical corrections in SF-dBSE@{\GOWO} not only improve the difference of excitation energies with SF-ADC(3) it gives the right ordering for the first excited state, meaning that we retrieve the triplet state $1\,{}^3 A_{2g}$ above the singlet state $B_{1g}$.
So here we have an example where the dynamical corrections are necessary to get the right chemistry.
Left: $1\,{}^3B_{1g}$, $1\,{}^1B_{1g}$, and $2\,{}^1A_{1g}$ states at the $D_{2h}$ rectangular equilibrium geometry of the $\text{X}\,{}^1 A_{g}$ ground state (see Table \ref{tab:CBD_D2h} for the raw data).
Right: $1\,{}^3A_{2g}$, $2\,{}^1A_{1g}$, and $1\,{}^1B_{2g}$ states at the $D_{4h}$ square-planar equilibrium geometry of the $1\,{}^3 A_{2g}$ state (see Table \ref{tab:CBD_D4h} for the raw data).
All the spin-flip calculations have been performed with a UHF reference and the cc-pVTZ basis set.
Vertical excitation energies (with respect to the singlet $\text{X}\,{}^1A_{g}$ ground state) of the $1\,{}^3B_{1g}$, $1\,{}^1B_{1g}$, and $2\,{}^1A_{1g}$ states of CBD at the $D_{2h}$ rectangular equilibrium geometry of the $\text{X}\,{}^1 A_{g}$ ground state.
All the spin-flip calculations have been performed with a UHF reference and the cc-pVTZ basis set.
Vertical excitation energies (with respect to the singlet $\text{X}\,{}^1B_{1g}$ ground state) of the $1\,{}^3A_{2g}$, $2\,{}^1A_{1g}$, and $1\,{}^1B_{2g}$ states of CBD at the $D_{4h}$ square-planar equilibrium geometry of the $1\,{}^3A_{2g}$ state.
All the spin-flip calculations have been performed with a UHF reference and the cc-pVTZ basis set.
This project has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (Grant agreement No.~863481).}