When calculating the spin multiplicity at either the second-order Møller-Plesset (MP2) or the iterative second-order approximate coupled-cluster singles and doubles (CC2) levels of theory using the same strategy for the calculation of the expectation value as in regular CC theory together with the usual definitions of the MP2 and CC2 density matrices, artificial spin contamination occurs in closed-shell molecules. Non-intuitively, for open-shell systems, results at the MP2 or CC2 levels of theory based on this procedure even suggest stronger contamination at the correlated level than for the Hartree–Fock reference, although treatment of electron correlation should lower spin contamination. In this Communication, the reasons behind this inconsistency are investigated and a solution is proposed, which removes spin contamination for closed-shell molecules and leads to physically meaningful results for open-shell cases. Additionally, we show that CC2 significantly outperforms MP2 in describing systems with a strongly spin-contaminated reference with a performance similar to that of full coupled-cluster with singles and doubles substitutions (CCSD).

Coupled-Cluster (CC) theory is one of the most accurate and widely used methods for ab initio calculations. CCSD(T), i.e., CC with singles and doubles substitutions together with a perturbative treatment of triple excitations, is used today as a gold standard.1 In standard CC theory, a Hartree–Fock (HF) determinant is used as the reference wavefunction. For open-shell systems, a CC treatment based on either a restricted open-shell HF (ROHF) or an unrestricted HF (UHF) reference, respectively, leads to spin-contaminated wavefunctions.2 In order to obtain a sound wavefunction, spin contamination needs to be monitored using appropriate tools. Usually, the treatment of electron correlation, in particular when using CC theory, significantly lowers the extent of spin contamination as compared to the HF reference.3–6 

The first tool to be developed to calculate the spin multiplicity and hence to study the extent of spin contamination in CC wavefunctions was introduced by Purvis, Sekino, and Bartlett.3 In that work, the Ŝ2 operator was used, with Ŝ being the total spin operator Ŝ=Ŝxi+Ŝyj+Ŝzk and i, j, and k being the Cartesian unit vectors. For an eigenfunction to Ŝ2, |S, MS⟩, the eigenvalue is given in atomic units by

Ŝ2|S,MS=S(S+1)|S,MS,

with S being the total spin quantum number, MS being the spin projection quantum number, and 2S + 1 being the spin multiplicity. To investigate the extent of spin contamination, Purvis, Sekino, and Bartlett suggested, in analogy to the CC energy expression, to project the action of this operator on the CC wavefunction onto the reference wavefunction 0|Ŝ2|ΨCC=Ŝ2proj.3 

It has been pointed out that the projected expression leads only to an approximation of the spin multiplicity of the CC wavefunction.3–5 For this reason, Stanton proposed the calculation of the spin multiplicity using derivative theory.4 In this formalism, first-order properties are calculated as derivatives of the CC Lagrangian,7 which is equivalent to the expectation value in bivariational theory.8,9 Based on results for open-shell systems, Stanton suggested that there is no significant advantage in using an ROHF reference over a UHF reference since the respective CCSD energies seem to be rather invariant to the choice of reference and also the calculated spin contamination based on an ROHF vs a UHF reference is similar. Additionally, even for systems with a strongly spin-contaminated reference, the powerful treatment of correlation and effective orbital relaxation at the CCSD level brings the CC spin-expectation value very close to the exact eigenvalue Se.v..4 Note, however, that CCSD(T) or excited-state wavefunctions at the Equation of Motion (EOM)-CCSD level are rather sensitive to the spin contamination of the reference.10,11

For large systems, CCSD with its N6 scaling, where N is the number of electrons, is often computationally very expensive and second-order Møller–Plesset perturbation (MP2) theory or the iterative second-order approximate coupled-cluster singles and doubles (CC2) method may be used instead.12–16 

Because of the intrinsic relation between Many-Body Peturbation Theory (MBPT) and CC theory, CC models can be viewed as an infinite-order summation of selected excitations of the MBPT theory.17 Hence, the projection approach for the calculation of the Ŝ2 expectation value Ŝ2proj has already been introduced in the work of Purvis, Sekino, and Bartlett and is also used in the work of Chen and Schlegel for MP2.3,5 An extension to CC2 theory is readily available.

However, applying the expectation-value approach to MP2 and CC2 requires caution. In this Communication, we show that the results obtained using this formulation together with the usual definitions of the one- and, in particular, the two-particle reduced density matrices (RDMs) introduce artificial spin contamination to closed-shell systems, which is obviously not meaningful. In addition, at the MP2 and CC2 levels of theory, the Ŝ2 results obtained in this manner give unexpectedly strong contamination for open-shell systems. After discussing the origin of this inconsistency, we propose a modification to this approach in Sec. II. We then describe the implementation in Sec. III, apply the modified approach to our test systems, and present the findings in Sec. IV.

The total spin-squared operator Ŝ2 can be expressed (in atomic units) as the following sum:

Ŝ2=ŜŜ++Ŝz2+Ŝz,

where Ŝ± are the spin ladder operators and Ŝz is the spin projector operator onto the z axis. In second quantization, these operators are given as

Ŝ+=pq¯S+pq¯pq¯,
Ŝ=p¯qSp¯qp¯q,
Ŝz=12ppp12p¯p¯p¯=12n^α12n^β=12Δn^.

The creation (p) and annihilation operators (p) refer to α electrons and β electrons when carrying overbars, respectively. The letters p, q, r, s are used for the combined hole and particle space; a, b, c, d for the particle space; and i, j, k, l for the hole space. The symbols n^σ, with σ = α, β, are the electron number operators for α and β electrons, respectively, and Δn^=n^αn^β. The S± elements of the ladder operators correspond to orbital-overlap integrals between α and β orbitals with

S+qp¯*=q|p¯*=p¯|q=Sp¯q.

The norm of these elements is given as

|Sqp¯|2=S+qp¯Sp¯q.

The Ŝ2 expectation value for the reference determinant can then be expressed by

Ŝ2ref=12Δn12Δn+1+īa|Saī|2.

In the UHF and ROHF approaches, the reference wavefunction is a spin eigenfunction to Ŝz as it preserves the number of α and β electrons,

ŜzΦUHF/ROHF=MSΦUHF/ROHF,

but only the ROHF wavefunction is an eigenfunction to Ŝ2. For this reason, for UHF based calculations, one often calculates the deviation of the expectation value Ŝ2 from the eigenvalue Se.v. evaluated with the exact spin quantum number S, i.e., S(S + 1), as a diagnostic tool,5,6

ΔS=S2^Se.v..

According to the derivation of Purvis, Sekino, and Bartlett, the CC correlation contribution for the projected expression ŜN2proj is given by3 

ŜN2proj=Ŝ2projŜ2ref=+j¯b¯aSj¯aS+ab¯tj¯b¯j¯aiSj¯aS+ij¯tiaj¯aib¯Sj¯aS+ib¯(tij¯ab¯+tiatj¯b¯),

with tia being the CC single amplitudes and tijab being the CC double amplitudes.

Note that the projected expression yields no spin contamination with an ROHF reference |ΦROHF⟩ due to

ΦROHF|Ŝ2|ΨCC=Ŝ2ΦROHF|ΨCC=S(S+1)ΦROHF|ΨCC=S(S+1)

even though the correlated wavefunction is indeed spin contaminated.4 As discussed by Stanton and Purvis, Sekino, and Bartlett,3,4ŜN2proj can be considered an approximation since ⟨0| is not the left-side CC eigenstate and it does not take the response of the CC amplitudes into account. Chen and Schlegel showed with their first-order approximation to the expectation-value approach that |ΔSCC| < |ΔSproj| since higher-order correlation contributions are present in ŜN2CC.5 On practical consideration, ŜN2proj is readily available after a CC energy calculation, while ŜN2CC requires the additional calculation of the λ amplitudes as usual for properties within CC theory. Furthermore, it has been pointed out by Stanton that, since in the expectation-value approach for CC theory the ket wavefunction |ΨCC=eT^|0 is not the Hermitian conjugate of the bra wavefunction Ψ̃CC|=0|(1+Λ^)eT^, there is no lower bound for Ŝ2CC and spin contamination may even be negative ΔSCC < 0.4 

Applying the projected variant to MP2 and CC2 theory is straightforward. For the MP2 case, the tijab amplitudes are replaced by the first-order response of the wavefunction tijab(1)=ab|ijab|jiεijab, with εijab=εa+εbεiεj as the difference of the orbital energies ϵp, while the tia(1) are zero. This is included in the work of Purvis, Sekino, and Bartlett, which contains a detailed description of ŜN2proj for the MBPT series.3 For the CC2 case, and generally for the CCn series, the CC amplitudes are replaced by the respective CCn solutions.

A description improving upon the projected—and hence only approximate—expressions discussed before was given by Stanton via the CC expectation value of Ŝ2.4 In this formulation, the CC Lagrangian is defined as17 

LCC=0|(1+Λ^)eT^ĤeT^|0=ECC,

with Λ^ being the de-excitation operator containing the λ amplitudes Λ^=λaiia+14λabijiajb+, T^ being the excitation operator containing the CC amplitudes T^=tiaai+14tijabaibj+, and Ĥ being the Hamiltonian. The Ŝ2 expectation value is calculated as a first derivative of the Lagrangian using the modified Hamiltonian

ĤĤ0+μŜ2,
(1)

where Ĥ0 is the electronic Hamiltonian and μ is a scalar prefactor that can be varied. The latter is formally set to 0 for the calculation of the energy, and its mere purpose is to introduce a perturbative linear dependency of the Lagrangian on the Ŝ2 operator. The derivative is then given as

LCCμ=Ŝ2CC=0|(1+Λ^)eT^Ŝ2eT^|0,
(2)

which is identical to the definition of the expectation value in bivariational theory.8,9 To obtain the correlation contribution LCCcorr, the HF energy is subtracted from Eq. (2).

In the general case, and also here for μ = 0, the Lagrangian for the correlation contribution can be brought to the form7,8,17

Lcorr=pq(γN)pqfpq+pqrs(ΓN)pqrsWpqrs,
(3)

where fpq are the elements of the Fock matrix and Wpqrs = ⟨pq|rs⟩ − ⟨pq|sr⟩ are the elements of the two-electron interaction part of the Hamiltonian, i.e., the antisymmetrized two-electron integrals. This means that the normal-ordered one- and two-particle RDMs are defined such that they reproduce the correlation energy when inserted into Eq. (3). In the case of CC theory, they are given as17 

0|(1+Λ^)eT^{pq}eT^|0=(γN)pq,
0|(1+Λ^)eT^{pqsr}eT^|0=(ΓN)pqrs,

with the curly bracket notation {⋯} signifying normal-ordered products of quasi-particle operators with respect to the Fermi vacuum. Essentially, the RDMs are defined by all parts of the expectation value apart from the integral itself.

In many cases, a first-order property A, depending on a parameter κ, can be calculated via

Acorr=Lcorrκ=pq(γN)pqfpqκ+pqrs(ΓN)pqrsWpqrsκ,
(4)

which also reflects the equivalence of generalized derivative theory and linear response apart from orbital relaxation.14,18,19 MP2 properties and CC2 properties are reported in Refs. 18 and 14 using derivative theory and response theory,19 respectively. Within a Lagrangian formulation, we may define

LMP2=0|Ĥ+[Ĥ,T^2(1)]|0+abijλabij(1)Φijab|Ĥ+[F^,T^2(1)]|0,
LCC2=0|H̃|0+aiλiaΦia|Ĥ1+[Ĥ1,T^2]|0+abijλabijΦijab|Ĥ1+[F^,T^2]|0

and take the corresponding derivative with respect to κ. Here, H̃=eT^ĤeT^ and Ĥ1=eT^1ĤeT^1. In MP2 theory, the λ amplitudes are simply given by the complex conjugate of the first-order response amplitudes λabij(1)=(tijab(1))*=ij|abij|baεijab. In CC2 theory, the λ amplitudes are obtained iteratively.14 For perturbative methods such as MPn and CCn that rely on the MP partitioning of the Hamiltonian, the Fock operator F^ is part of the unperturbed system, while the two-electron part Ŵ is the perturbation. Hence, in Eq. (3), the elements fpq are zeroth-order contributions and are therefore combined with elements (γN)pq of order n. Conversely, the elements Wpqrs comprise the perturbation and are of first order. Hence, they are combined with elements (ΓN)pqrs of order n − 1. Many properties, such as geometrical gradients, can be expressed as in Eq. (4). Since they contain the derivatives of fpq and Wpqrs, the order in perturbation theory of the RDMs is the same as for the energy.

However, as seen in Sec. IV, MP2 and CC2 results based on Eq. (2) together with RDMs that fulfill Eq. (3) lead to artificial spin contamination, which is discussed in the following paragraph.

The derivation of the Ŝ2 expectation value in CC theory is summarized in Sec. II B. Since the derivative of the Lagrangian [see Eq. (2)] is taken with respect to μ after modification of the Hamiltonian according to Eq. (1), it does actually not lead to perturbed Fock matrices and two-electron integrals. Instead, as discussed in Ref. 4, it is found that

ŜN2=p¯s¯aSp¯aS+as¯(γN)p¯s¯īqrSīqS+rī(γN)rqp¯qrs¯Sp¯qS+rs¯(ΓN)p¯rs¯q.
(5)

Note here that the two-particle RDM is contracted with combinations of overlap integrals instead of (differentiated) two-electron integrals. Since the perturbation Ŵ is not part of the equation, to calculate ŜN2 within MPn or CCn theory, both the one- and the two-particle RDMs must be of order n. In the case of CC2 and MP2, they should hence both be of second order. The issue stems from the fact that the additional term μŜ2 in Eq. (1) is neither part of the unperturbed system nor does it belong to the perturbation Ŵ. In other words, the two-body RDM that would reproduce the MPn or CCn energy is of the wrong order in perturbation theory when calculating ŜN2. The inconsistency that two-particle RDMs of different order are required for reproducing the energy vs for calculating the ŜN2 expectation value is solely an issue for perturbative methods such as MPn and CCn and poses no problem for regular CC methods.

To fix the problem and in order to obtain physically meaningful results in the evaluation of Eq. (5), the two-body RDM hence needs additional contributions of order n. For the specific cases of MP2 and CC2, the unmodified one- and two-body RDMs for MP2 and CC2 are given in Figs. 1 and 2. Compared to CCSD, the second- or higher-order contributions λ2t2k, with k ≥ 1, where λ2 and t2 are the sets of λ and t double amplitudes, respectively, are missing in CC2. To construct the modified two-particle RDM for the calculation of Ŝ2CC2mod, all second-order contributions need to be added to the usual definition of the CC2 two-body RDM. These modifications are denoted as (ΓN)pqrsmod in Fig. 3 and include all λ2t2 terms. (ΓN)pqrsmod for CC2 is identical to the CCSD two-particle RDM, except for the ijab block, which in CCSD contains additional λ2t22 contributions. (ΓN)(CC2)ijabmod can thus be written more compactly as

(ΓN)(CC2)ijabmod=(ΓN)(CCSD)ijab14efmnλefmntmnabtijefP(ij)efmnλefmntmieatjnbf.

Because of the additional second-order terms, the calculation of the modified two-body RDM scales as ∼N6. In the case of MP2, the modifications lead to the MP3 two-particle RDM.

FIG. 1.

Contributions to the one-body RDM for CC2. For MP2, only the terms inside the square brackets contribute.

FIG. 1.

Contributions to the one-body RDM for CC2. For MP2, only the terms inside the square brackets contribute.

Close modal
FIG. 2.

Contributions to the two-body RDM for CC2. For MP2, only the terms inside the square brackets contribute.

FIG. 2.

Contributions to the two-body RDM for CC2. For MP2, only the terms inside the square brackets contribute.

Close modal
FIG. 3.

Second-order contributions to the two-body RDM (ΓN)mod for CC2 for calculation of Ŝ2mod. For MP2, only the terms inside the square brackets contribute, which correspond to the MP3 two-particle RDM.

FIG. 3.

Second-order contributions to the two-body RDM (ΓN)mod for CC2 for calculation of Ŝ2mod. For MP2, only the terms inside the square brackets contribute, which correspond to the MP3 two-particle RDM.

Close modal

The modified two-body RDMs for the calculation of the Ŝ2 expectation value in CC2 and MP2 have been implemented in the QCUMBRE program suite.20 In the case of CC2, since the scaling of the calculation cannot be lowered to ∼N5 anyways, the procedure simply uses the code already available for the two-particle RDMs in CCSD20–22 and removes the λ2t22 contributions from the ijab block.

The necessary integrals and the UHF reference wavefunction are provided via an interface to the LONDON program package.23,24

We investigate a set of molecules that consists of closed-shell cases (LiH, HF, H2O, and NH3) as well as open-shell cases (CH, OH, CH3, CN, NO, and CH2O+). The calculations have been carried out using the Cartesian cc-pVTZ and cc-pVQZ basis sets.25 For every molecule, a corresponding geometry optimization at the same level of theory has been performed with the CFOUR program package,26,27 using the same basis set as for the following calculation of the Ŝ2 expectation value.

The results for the molecules LiH, HF, H2O, and NH3 are shown in Table I. For closed-shell systems, no spin contamination should occur, neither for the reference nor at correlated levels of theory. This holds in the case of Ŝ2proj. However, using the unmodified expectation-value approach Ŝ2, the results are non-zero at the MP2 and CC2 levels of theory, which is unphysical.

TABLE I.

Total energies in Eh as well as modified and unmodified Ŝ2 expectation values in 2 for closed-shell systems using the cc-pVQZ basis set at the MP2 and CC2 levels of theory. The final modified spin-expectation values are printed in bold face.

LiHHFH2ONH3
MP2 
Etot −8.045 149 −100.404 641 −76.388 141 −56.515 938 
Ŝ2unmod 0.035 894 0.104 758 0.127 882 0.135 181 
C1 0.035 894 0.104 758 0.127 882 0.135 181 
C2unmod 
Ŝ2mod 0 0 0 0 
C2mod −0.035 894 −0.104 758 −0.127 882 −0.135 181 
CC2 
Etot −8.045275 −100.406 880 −76.390 367 −56.517 721 
Ŝ2unmod 0.035995 0.108 436 0.131 697 0.137 845 
C1 0.036167 0.109 726 0.133 068 0.138 939 
C2unmod −0.000172 −0.001290 −0.001371 −0.001 094 
Ŝ2mod 0 0 0 0 
C2mod −0.036 167 −0.109 726 −0.133 068 −0.138 939 
LiHHFH2ONH3
MP2 
Etot −8.045 149 −100.404 641 −76.388 141 −56.515 938 
Ŝ2unmod 0.035 894 0.104 758 0.127 882 0.135 181 
C1 0.035 894 0.104 758 0.127 882 0.135 181 
C2unmod 
Ŝ2mod 0 0 0 0 
C2mod −0.035 894 −0.104 758 −0.127 882 −0.135 181 
CC2 
Etot −8.045275 −100.406 880 −76.390 367 −56.517 721 
Ŝ2unmod 0.035995 0.108 436 0.131 697 0.137 845 
C1 0.036167 0.109 726 0.133 068 0.138 939 
C2unmod −0.000172 −0.001290 −0.001371 −0.001 094 
Ŝ2mod 0 0 0 0 
C2mod −0.036 167 −0.109 726 −0.133 068 −0.138 939 

To be more specific, when dividing Eq. (5) into one- and two-body contribution parts C1 and C2,

C1=p¯s¯aSp¯aS+as¯(γN)p¯s¯īqrSīqS+rī(γN)rq,C2=p¯qrs¯Sp¯qS+rs¯(ΓN)p¯rs¯q.
(6)

C2 should exactly cancel out C1 for the theory to be physically sound. Instead, as seen in Table I, when the unmodified densities are used to calculate these contributions at the MP2 level, C2 is zero. This can be understood because for closed-shell systems in MP2, the only non-vanishing blocks in the unmodified (ΓN) are (ΓN)ijab and (ΓN)abij. Therefore, according to Eq. (6), the overlap integrals that contribute to C2 are S+iā, Sīa, S+aī, and S+āi, which for the closed-shell RHF case are all zero. The one-electron contributions C1 on the other hand are non-zero and depend strongly on the system at hand. A similar situation is observed at the CC2 level of theory. Even though C2 has non-zero contributions, it is still by two to three orders of magnitude smaller than C1.

Since for MP2 and CC2, (ΓN)pqrs is defined only up to the first order of the perturbation, but (γN)pq has contributions up to the second order, it follows that C2 cannot cancel out C1. When this inconsistency is corrected using (ΓN)pqrsmod defined up to the second order for MP2 and CC2, C1 and C2 correctly add up to 0.

Next, we investigate the spin contamination for the MP2 and CC2 methods in open-shell systems, specifically, in monoradical systems, for which Se.v. = 0.75 2. We first discuss results for CH, OH, and CH3, which have a weakly spin-contaminated reference. Next, we discuss systems with a strongly spin-contaminated reference: CN, NO, and CH2O+. The respective results are collected in Table II.

TABLE II.

Total energies in Eh as well as modified and unmodified Ŝ2 expectation values in 2 for open-shell systems using the cc-pVQZ basis set at the MP2, CC2, and CCSD levels of theory. The final modified spin-expectation values are printed in bold face.

CH(2Π)OH(2Π)CH3(  2A2)CN(2Σ+)NO(2Π)CH2O+(2B1)
MP2 
Etot −38.426 400 −75.681 812 −39.786 070 −92.616 357 −129.809 600 −114.004 055 
Ŝ2ref 0.759 442 0.756 657 0.761 483 0.985 386 0.774 143 0.783 873 
Ŝ2proj 0.755 549 0.753 838 0.757 175 0.956 069 0.767 243 0.775 764 
Ŝ2unmod 0.811 902 0.827 698 0.835 976 1.081 046 0.943 159 0.917 911 
C1 0.060 246 0.076 679 0.083 108 0.154 294 0.182 816 0.150 255 
C2unmod −0.007 786 −0.005 639 −0.008 615 −0.058 634 −0.013 800 −0.016 217 
Ŝ2mod 0.753 313 0.752 369 0.754 604 0.925 210 0.762 798 0.770 137 
C2mod −0.066 375 −0.080 968 −0.089 987 −0.214 470 −0.194 161 −0.163 990 
CC2 
Etot −38.427 290 −75.683 383 −39.787 259 −92.644 981 −129.821 743 −114.018 357 
Ŝ2ref 0.759 449 0.756 679 0.761 516 1.090 092 0.795 790 0.784 701 
Ŝ2proj 0.753 269 0.752 521 0.754 245 0.841 376 0.755 196 0.762 381 
Ŝ2unmod 0.810 700 0.828 373 0.833 967 0.948 336 0.947 794 0.920 700 
C1 0.057 378 0.076 581 0.078 820 −0.228 600 0.146 364 0.156 188 
C2unmod −0.006 127 −0.004 887 −0.006 369 0.086844 0.005640 −0.020189 
Ŝ2mod 0.751 332 0.751 190 0.751 708 0.757 992 0.751 318 0.754 574 
C2mod −0.065 495 −0.082 070 −0.088 627 −0.103 500 −0.190 837 −0.186 315 
CCSD 
Etot −38.450 330 −75.694 211 −39.806 134 −92.645 390 −129.812 062 −114.030 822 
Ŝ2ref 0.759 479 0.756 669 0.761 614 1.110 029 0.779 116 0.784 357 
Ŝ2proj 0.750 385 0.750 422 0.750 678 0.791 755 0.752 663 0.755 164 
Ŝ2CC 0.750 197 0.750 161 0.750 261 0.754 323 0.750 603 0.751 500 
CH(2Π)OH(2Π)CH3(  2A2)CN(2Σ+)NO(2Π)CH2O+(2B1)
MP2 
Etot −38.426 400 −75.681 812 −39.786 070 −92.616 357 −129.809 600 −114.004 055 
Ŝ2ref 0.759 442 0.756 657 0.761 483 0.985 386 0.774 143 0.783 873 
Ŝ2proj 0.755 549 0.753 838 0.757 175 0.956 069 0.767 243 0.775 764 
Ŝ2unmod 0.811 902 0.827 698 0.835 976 1.081 046 0.943 159 0.917 911 
C1 0.060 246 0.076 679 0.083 108 0.154 294 0.182 816 0.150 255 
C2unmod −0.007 786 −0.005 639 −0.008 615 −0.058 634 −0.013 800 −0.016 217 
Ŝ2mod 0.753 313 0.752 369 0.754 604 0.925 210 0.762 798 0.770 137 
C2mod −0.066 375 −0.080 968 −0.089 987 −0.214 470 −0.194 161 −0.163 990 
CC2 
Etot −38.427 290 −75.683 383 −39.787 259 −92.644 981 −129.821 743 −114.018 357 
Ŝ2ref 0.759 449 0.756 679 0.761 516 1.090 092 0.795 790 0.784 701 
Ŝ2proj 0.753 269 0.752 521 0.754 245 0.841 376 0.755 196 0.762 381 
Ŝ2unmod 0.810 700 0.828 373 0.833 967 0.948 336 0.947 794 0.920 700 
C1 0.057 378 0.076 581 0.078 820 −0.228 600 0.146 364 0.156 188 
C2unmod −0.006 127 −0.004 887 −0.006 369 0.086844 0.005640 −0.020189 
Ŝ2mod 0.751 332 0.751 190 0.751 708 0.757 992 0.751 318 0.754 574 
C2mod −0.065 495 −0.082 070 −0.088 627 −0.103 500 −0.190 837 −0.186 315 
CCSD 
Etot −38.450 330 −75.694 211 −39.806 134 −92.645 390 −129.812 062 −114.030 822 
Ŝ2ref 0.759 479 0.756 669 0.761 614 1.110 029 0.779 116 0.784 357 
Ŝ2proj 0.750 385 0.750 422 0.750 678 0.791 755 0.752 663 0.755 164 
Ŝ2CC 0.750 197 0.750 161 0.750 261 0.754 323 0.750 603 0.751 500 

For CH, OH, and CH3, |ΔSref| is smaller than 0.02 2. Ŝ2proj largely reduces spin contamination at both the MP2 and the CC2 levels of theory, i.e., Ŝ2projMP2 is ∼0.004 2 lower than Ŝ2ref, while Ŝ2projCC2 is lower by ∼0.006 2. In these cases, it is found that the stronger the contamination in the reference, the greater the improvement by the treatment of correlation.

Turning to the expectation-value approach, as seen in Table II and discussed by Chen and Schlegel,5 results at the CCSD level of theory show |ΔSprojCCSD|>|ΔSCCSD|. This trend, however, does not hold at the MP2 and CC2 levels of theory when using the unmodified expectation value. Specifically, the spin contamination is |ΔSunmod| ∼ 0.1 2 > |ΔSproj| for CH, OH, and CH3. At both MP2 and CC2 levels of theory, the absolute value of the unmodified two-electron contribution C2unmod is also one order of magnitude smaller than the one-electron contribution C1. Instead, for Ŝ2mod, the expected trend |ΔSmod| < |ΔSproj| re-emerges and the extent of spin contamination is indeed lower by ∼0.006 2 at the MP2 level and ∼0.008 2 at the CC2 level. The modified two-electron contributions C2mod are now of the same order of magnitude as the one-electron contributions. For these three cases at the CC2 level, Ŝ2CC2mod ranges between 0.751 and 0.752 2.

All three radicals CN, NO, and CH2O+ have a strongly spin-contaminated reference. For CN, it even reaches Ŝ2ref=1.0902 for a cc-pVQZ/CC2 geometry. As discussed by Krylov, spin contamination can be understood as an indicator of the failure of HF theory and suggests a multi-configurational character for the wavefunction.6,11 Non-dynamical electron correlation is thus expected to play an important role for these cases.

As shown by the results in Table II, MP2 does not show an adequate improvement for such strongly contaminated systems. Ŝ2projMP2 calculations lower the spin contamination by about 0.01 2. For CN, Ŝ2projMP2 is 0.96 2, while for the other two systems, it ranges between 0.77 and 0.78 2, which is still very far from Se.v. = 0.75 2. The unmodified Ŝ2MP2unmod ranges around 0.9–1.1 2. In contrast, the results for Ŝ2MP2mod are closer to Se.v. by ∼10−32 for NO and CH2O+ and by 0.03 2 for CN as compared to Ŝ2projMP2 but are still off by >0.01 2. These findings indicate that MP2 theory does not efficiently remove spin contamination from the wavefunction as it does not adequately account for non-dynamical correlation.

Similar to MP2, results for the unmodified expectation values Ŝ2CC2unmod show large deviations from 0.75 2, with |ΔSCC2unmod|0.22. CN at the CC2 level of theory is the only case in which Ŝ2CC2unmod improves upon Ŝ2ref. Compared to MP2, although, at the CC2 level of theory, spin contamination of the reference is largely reduced when considering Ŝ2projCC2, which is 0.841 2 for CN, 0.762 2 for CH2O+, and 0.755 2 for NO. Again, the Ŝ2CC2unmod values seem to indicate higher spin contamination as compared to Ŝ2projCC2. This behavior is corrected for Ŝ2CC2mod. Comparing the two-body contribution C2mod to C2unmod, one observes that they change sign for CN and NO. Also, C2mod becomes more negative for CH2O+. The second-order contributions for these three cases are hence negative. The final results for Ŝ2CC2mod are promising. Treatment of electron correlation at the CC2 level manages to lower the spin-expectation value of CN from 1.050 2 for the reference to 0.758 2. The same is true for the other two “difficult” systems, for which Ŝ2CC2mod values are closer to 0.75 2. These observations suggest an adequate ability of CC2 to address strongly spin-contaminated systems.

Finally, we compare the MP2 and CC2 results with those at the CCSD level. As expected, the projected Ŝ2projCC2 results are closer to Ŝ2projCCSD than the corresponding Ŝ2projMP2 values. Specifically for CN, Ŝ2projCCSD with a value of 0.792 2 indicates a strong contamination even at the CCSD level of theory. Ŝ2projCC2 is 0.841 2, while Ŝ2projMP2 is 0.956 2, both suggesting a failure of the methods to describe the system adequately. However, focusing on the modified expectation value, one observes that the CC2 result (0.758 2) is similar to that of CCSD (0.754 2), while the MP2 result at 0.925 2 is still far off. The mean spin contamination of the “difficult” systems at the CCSD level |ΔS|¯CCSD is 2.1 · 10−32, less than half that of |ΔS|¯CC2mod=4.61032. These results show the importance of including the T1 amplitudes at zeroth order as an approximate treatment of orbital relaxation, which are missing in MP2.

Comparing in general the different basis sets used in this study (for calculations using the cc-pVTZ basis set, see the  Appendix), one notices that the differences are rather small and at the order of ∼10−42. The spin contamination for both MP2 and CC2 is, in general, lower with the larger basis set cc-pVQZ for the systems with stronger spin contamination, but it is the choice of method for the treatment of correlation that has the deciding impact.

In this Communication, a recipe for the calculation of the Ŝ2 expectation value at the MP2 and CC2 levels of theory has been introduced and the basis for the generalization to the MPn and CCn series has been given. The main point here is that within perturbative schemes such as MPn and CCn, the one- and two-body RDMs used for the Ŝ2 expectation value must be defined up to the same order of perturbation for the results to be physically meaningful. Conversely, the two-particle RDM used to compute Ŝ2 is different from the one that would reproduce the energy. Usually, for methods based on the MP partitioning of the Hamiltonian such as MPn and CCn, the two-particle RDM is of order n − 1, while it needs to be of order n to compute the Ŝ2 expectation value. There is no such inconsistency in full non-perturbative bivariational CC truncations such as CCD, CCSD, and so on. The results show that after modifying the RDMs, MP2 removes spin contamination from systems that have a weakly spin-contaminated reference but fails for strongly contaminated cases. CC2 has a superior performance over MP2 and is able to bring the spin contamination of even strongly contaminated systems down to ∼10−3, which is comparable to CCSD.

S. Stopkowicz dedicates this contribution to Professor Dr. Anna Krylov. Since we met, she has been an inspiration and has become an encouraging mentor and a friend with whom to discuss both science and personal growth. I also thank Anna for actively promoting women in theoretical chemistry by starting a list of female scientists in the field and by informing about and fighting against biases.

The authors thank Professor Dr. Jürgen Gauss and Professor Dr. Anna Krylov for valuable discussions. This work was supported by the Deutsche Forschungsgmeinschaft under Grant No. STO 1239/1-1.

The data that support the findings of this study are available within the article and its  Appendix.

Table III reports total energies in Eh as well as modified and unmodified Ŝ2 expectation values in 2 for closed-shell systems using the cc-pVTZ basis set at the MP2 and CC2 levels of theory. Table IV reports total energies in Eh as well as modified and unmodified Ŝ2 expectation values in 2 for open-shell systems using the cc-pVTZ basis set at the MP2, CC2, and CCSD levels of theory.

TABLE III.

Total energies in Eh as well as modified and unmodified Ŝ2 expectation values in 2 for closed-shell systems using the cc-pVTZ basis set at the MP2 and CC2 levels of theory. The final modified spin-expectation values are printed in bold face.

LiHHFH2ONH3
MP2 
Etot −8.029 213 −100.348 385 −76.336 700 −56.472 144 
Ŝ2unmod 0.032 637 0.098 444 0.121 535 0.129 509 
C1 0.032 637 0.098 444 0.121 535 0.129 509 
C2unmod 
Ŝ2mod 0 0 0 0 
C2mod −0.032 637 −0.098 444 −0.121 535 −0.129 509 
CC2 
Etot −8.029 357 −100.350 263 −76.338 533 −56.473 588 
Ŝ2unmod 0.032 839 0.101 328 0.124 579 0.131 740 
C1 0.033 011 0.102 224 0.125 526 0.132 521 
C2unmod −0.000 172 −0.000 896 −0.000 947 −0.000 781 
Ŝ2mod 0 0 0 0 
C2mod −0.033 011 −0.102 224 −0.125 526 −0.132 521 
LiHHFH2ONH3
MP2 
Etot −8.029 213 −100.348 385 −76.336 700 −56.472 144 
Ŝ2unmod 0.032 637 0.098 444 0.121 535 0.129 509 
C1 0.032 637 0.098 444 0.121 535 0.129 509 
C2unmod 
Ŝ2mod 0 0 0 0 
C2mod −0.032 637 −0.098 444 −0.121 535 −0.129 509 
CC2 
Etot −8.029 357 −100.350 263 −76.338 533 −56.473 588 
Ŝ2unmod 0.032 839 0.101 328 0.124 579 0.131 740 
C1 0.033 011 0.102 224 0.125 526 0.132 521 
C2unmod −0.000 172 −0.000 896 −0.000 947 −0.000 781 
Ŝ2mod 0 0 0 0 
C2mod −0.033 011 −0.102 224 −0.125 526 −0.132 521 
TABLE IV.

Total energies in Eh as well as modified and unmodified Ŝ2 expectation values in 2 for open-shell systems using the cc-pVTZ basis set at the MP2, CC2, and CCSD levels of theory. The final modified spin-expectation values are printed in bold face.

CH(2Π)OH(2Π)CH3(  2A2)CN(2Σ+)NO(2Π)CH2O+(2B1)
MP2 
Etot −38.395 620 −75.635 320 −39.753 806 −92.547 788 −129.726 703 −113.929 682 
Ŝ2ref 0.758 896 0.756 097 0.761 309 0.990 504 0.774 387 0.783 808 
Ŝ2proj 0.755 130 0.753 442 0.757 065 0.960 725 0.767 567 0.775 824 
Ŝ2unmod 0.809 024 0.823 065 0.832 958 1.079 052 0.936 750 0.913 148 
C1 0.057 659 0.072 279 0.080 137 0.148 106 0.176 002 0.145 308 
C2unmod −0.007 531 −0.005 310 −0.008 489 −0.059 558 −0.013 639 −0.015 968 
Ŝ2mod 0.752 993 0.752 080 0.754 537 0.929 339 0.763 128 0.770 274 
C2mod −0.063 562 −0.076 296 −0.086 910 −0.209 271 −0.187 260 −0.158 842 
CC2 
Etot −38.396 347 −75.636 610 −39.754 757 −92.575 768 −129.738 411 −113.943 405 
Ŝ2ref 0.758 902 0.756 116 0.761 337 1.094 079 0.797 966 0.784 529 
Ŝ2proj 0.753 146 0.752 317 0.754 355 0.845 969 0.755 687 0.762 851 
Ŝ2unmod 0.808 057 0.823 580 0.831 012 0.942 594 0.940 596 0.915 995 
C1 0.055 191 0.072 027 0.076 021 −0.236 940 0.135 475 0.151 898 
C2unmod −0.006 036 −0.004 563 −0.006 345 −0.098 460 0.007 155 −0.020 431 
Ŝ2mod 0.751 283 0.751 079 0.751 811 0.758 678 0.751 246 0.754 858 
C2mod −0.062 810 −0.077 064 −0.085 547 −0.098 460 −0.182 194 −0.181 568 
CCSD 
Etot −38.420 163 −75.648 995 −39.774 790 −92.578 381 −129.731 349 −113.957 979 
Ŝ2ref 0.758 933 0.756 115 0.761 427 1.120 451 0.782 809 0.784 282 
Ŝ2proj 0.750 306 0 750 330 0.750 632 0.791 040 0.752 874 0.755 110 
Ŝ2CC 0.750 167 0.750 128 0.750 245 0.754 095 0.750 579 0.751 491 
CH(2Π)OH(2Π)CH3(  2A2)CN(2Σ+)NO(2Π)CH2O+(2B1)
MP2 
Etot −38.395 620 −75.635 320 −39.753 806 −92.547 788 −129.726 703 −113.929 682 
Ŝ2ref 0.758 896 0.756 097 0.761 309 0.990 504 0.774 387 0.783 808 
Ŝ2proj 0.755 130 0.753 442 0.757 065 0.960 725 0.767 567 0.775 824 
Ŝ2unmod 0.809 024 0.823 065 0.832 958 1.079 052 0.936 750 0.913 148 
C1 0.057 659 0.072 279 0.080 137 0.148 106 0.176 002 0.145 308 
C2unmod −0.007 531 −0.005 310 −0.008 489 −0.059 558 −0.013 639 −0.015 968 
Ŝ2mod 0.752 993 0.752 080 0.754 537 0.929 339 0.763 128 0.770 274 
C2mod −0.063 562 −0.076 296 −0.086 910 −0.209 271 −0.187 260 −0.158 842 
CC2 
Etot −38.396 347 −75.636 610 −39.754 757 −92.575 768 −129.738 411 −113.943 405 
Ŝ2ref 0.758 902 0.756 116 0.761 337 1.094 079 0.797 966 0.784 529 
Ŝ2proj 0.753 146 0.752 317 0.754 355 0.845 969 0.755 687 0.762 851 
Ŝ2unmod 0.808 057 0.823 580 0.831 012 0.942 594 0.940 596 0.915 995 
C1 0.055 191 0.072 027 0.076 021 −0.236 940 0.135 475 0.151 898 
C2unmod −0.006 036 −0.004 563 −0.006 345 −0.098 460 0.007 155 −0.020 431 
Ŝ2mod 0.751 283 0.751 079 0.751 811 0.758 678 0.751 246 0.754 858 
C2mod −0.062 810 −0.077 064 −0.085 547 −0.098 460 −0.182 194 −0.181 568 
CCSD 
Etot −38.420 163 −75.648 995 −39.774 790 −92.578 381 −129.731 349 −113.957 979 
Ŝ2ref 0.758 933 0.756 115 0.761 427 1.120 451 0.782 809 0.784 282 
Ŝ2proj 0.750 306 0 750 330 0.750 632 0.791 040 0.752 874 0.755 110 
Ŝ2CC 0.750 167 0.750 128 0.750 245 0.754 095 0.750 579 0.751 491 
1.
K.
Raghavachari
,
G. W.
Trucks
,
J. A.
Pople
, and
M.
Head-Gordon
,
Chem. Phys. Lett.
157
,
479
(
1989
).
2.
M.
Rittby
and
R. J.
Bartlett
,
J. Phys. Chem.
92
,
3033
(
1988
).
3.
G. D.
Purvis
,
H.
Sekino
, and
R. J.
Bartlett
,
Collect. Czech. Chem. Commun.
53
,
2203
(
1988
).
4.
J. F.
Stanton
,
J. Chem. Phys.
101
,
371
(
1994
).
5.
W.
Chen
and
H. B.
Schlegel
,
J. Chem. Phys.
101
,
5957
(
1994
).
6.
A. I.
Krylov
,
J. Chem. Phys.
113
,
6052
(
2000
).
7.
J.
Gauss
, in
Molecular Properties
, edited by
J.
Grotendorst
(
John von Neumann Institute for Computing
,
Jülich
,
2000
), p.
541
.
8.
S. V.
Levchenko
,
T.
Wang
, and
A. I.
Krylov
,
J. Chem. Phys.
122
,
224106
(
2005
).
9.
S.
Kvaal
,
Mol. Phys.
111
,
1100
(
2013
).
10.
P. G.
Szalay
and
J.
Gauss
,
J. Chem. Phys.
112
,
4027
(
2000
).
11.
A. I.
Krylov
, “
The quantum chemistry of open-shell species
,” in
Reviews in Computational Chemistry
(
John Wiley & Sons, Ltd.
,
2017
), Chap. 4, pp.
151
224
.
12.
G. D.
Purvis
and
R. J.
Bartlett
,
J. Chem. Phys.
76
,
1910
(
1982
).
13.
C.
Møller
and
M. S.
Plesset
,
Phys. Rev.
46
,
618
(
1934
).
14.
O.
Christiansen
,
H.
Koch
, and
P.
Jørgensen
,
Chem. Phys. Lett.
243
,
409
(
1995
).
15.
O.
Christiansen
,
H.
Koch
, and
P.
Jørgensen
,
J. Chem. Phys.
103
,
7429
(
1995
).
16.
H.
Koch
,
O.
Christiansen
,
P.
Jørgensen
,
A. M.
Sanchez de Merás
, and
T.
Helgaker
,
J. Chem. Phys.
106
,
1808
(
1997
).
17.
I.
Shavitt
and
R. J.
Bartlett
,
Many-Body Methods in Chemistry and Physics
(
Cambridge University Press
,
Cambridge
,
2009
).
18.
P.
Jørgensen
and
T.
Helgaker
,
J. Chem. Phys.
89
,
1560
(
1988
).
19.
O.
Christiansen
,
P.
Jørgensen
, and
C.
Hättig
,
Int. J. Quantum Chem.
68
,
1
(
1998
).
20.
E.
Tellgren
,
T.
Helgaker
,
A.
Soncini
,
K. K.
Lange
,
A. M.
Teale
,
U.
Ekström
,
S.
Stopkowicz
,
J. H.
Austad
, and
S.
Sen
LONDON, a quantum-chemistry program for plane-wave/GTO hybrid basis sets and finite magnetic field calculations
”; available at http://londonprogram.org.
21.
M.-P.
Kitsaras
and
S.
Stopkowicz
, “
Geometrical gradients for excited states in strong magnetic fields using EOM-CC theory
” (unpublished).
22.
J.
Gauss
,
J. F.
Stanton
, and
R. J.
Bartlett
,
J. Chem. Phys.
95
,
2623
(
1991
).
23.
F.
Hampe
,
S.
Stopkowicz
,
N.
Groß
, and
M.-P.
Kitsaras
, “
QCUMBRE, Quantum Chemical Utility enabling Magnetic-field dependent investigations benefitting from rigorous electron-correlation treatment
”; available at http://:qcumbre.org.
24.
E. I.
Tellgren
,
A.
Soncini
, and
T.
Helgaker
,
J. Chem. Phys.
129
,
154114
(
2008
).
25.
T. H.
Dunning
, Jr.
,
J. Chem. Phys.
90
,
1007
(
1989
).
26.
J. F.
Stanton
,
J.
Gauss
,
L.
Cheng
,
M. E.
Harding
,
D. A.
Matthews
, and
P. G.
Szalay
, “
CFOUR, coupled-cluster techniques for computational chemistry, a quantum-chemical program package
,” With contributions from
A. A.
Auer
,
R. J.
Bartlett
,
U.
Benedikt
,
C.
Berger
,
D. E.
Bernholdt
,
S.
Blaschke
,
Y. J.
Bomble
,
S.
Burger
,
O.
Christiansen
,
D.
Datta
,
F.
Engel
,
R.
Faber
,
J.
Greiner
,
M.
Heckert
,
O.
Heun
,
M.
Hilgenberg
,
C.
Huber
,
T.-C.
Jagau
,
D.
Jonsson
,
J.
Jusélius
,
T.
Kirsch
,
K.
Klein
,
G. M.
Kopper
,
W. J.
Lauderdale
,
F.
Lipparini
,
T.
Metzroth
,
L. A.
Mück
,
D. P.
O’Neill
,
T.
Nottoli
,
D. R.
Price
,
E.
Prochnow
,
C.
Puzzarini
,
K.
Ruud
,
F.
Schiffmann
,
W.
Schwalbach
,
C.
Simmons
,
S.
Stopkowicz
,
A.
Tajti
,
J.
Vázquez
,
F.
Wang
,
J. D.
Watts
and integral packages MOLECULE (
J.
Almlöf
and
P. R.
Taylor
), PROPS (
P. R.
Taylor
), ABACUS (
T.
Helgaker
,
H.J. Aa.
Jensen
,
P.
Jørgensen
, and
J.
Olsen
), and ECP routines by
A. V.
Mitin
and
C.
van Wüllen
, for the current version, see http://www.cfour.de.
27.
D. A.
Matthews
,
L.
Cheng
,
M. E.
Harding
,
F.
Lipparini
,
S.
Stopkowicz
,
T.-C.
Jagau
,
P. G.
Szalay
,
J.
Gauss
, and
J. F.
Stanton
,
J. Chem. Phys.
152
,
214108
(
2020
).