# Spin contamination

In computational chemistry, spin contamination is the artificial mixing of different electronic spin-states. This can occur when an approximate orbital-based wave function is represented in an unrestricted form – that is, when the spatial parts of α and β spin-orbitals are permitted to differ. Approximate wave functions with a high degree of spin contamination are undesirable. In particular, they are not eigenfunctions of the total spin-squared operator, Ŝ2, but can formally be expanded in terms of pure spin states of higher multiplicities (the contaminants).

## Open-shell wave functions

Within Hartree–Fock theory, the wave function is approximated as a Slater determinant of spin-orbitals. For an open-shell system, the mean-field approach of Hartree–Fock theory gives rise to different equations for the α and β orbitals. Consequently, there are two approaches that can be taken – either to force double occupation of the lowest orbitals by constraining the α and β spatial distributions to be the same (restricted open-shell Hartree–Fock, ROHF) or permit complete variational freedom (unrestricted Hartree–Fock UHF). In general, an N-electron Hartree–Fock wave function composed of Nα α-spin orbitals and Nβ β-spin orbitals can be written as[1]

${\displaystyle \Psi ^{\mathrm {HF} }(\mathbf {r} _{1}\sigma (1)\cdots \mathbf {r} _{N}\sigma (N))={\mathcal {A}}\left(\psi _{1}^{\alpha }(\mathbf {r} _{1}\alpha _{1})\cdots \psi _{N_{\alpha }}^{\alpha }(\mathbf {r} _{N_{\alpha }}\alpha _{N_{\alpha }})\psi _{N_{\alpha }+1}^{\beta }(\mathbf {r} _{N_{\alpha }+1}\beta _{N_{\alpha }+1})\cdots \psi _{N}^{\beta }(\mathbf {r} _{N}\beta _{N})\right).}$

where ${\displaystyle {\mathcal {A}}}$ is the antisymmetrization operator. This wave function is an eigenfunction of the total spin projection operator, Ŝz, with eigenvalue (Nα − Nβ)/2 (assuming Nα ≥ Nβ). For a ROHF wave function, the first 2Nβ spin-orbitals are forced to have the same spatial distribution:

${\displaystyle \psi _{j}^{\alpha }(\mathbf {r} _{j})=\psi _{N_{\alpha }+j}^{\beta }(\mathbf {r} _{N_{\alpha }+j}),\ \ \ 1\leq j\leq N_{\beta }.}$

There is no such constraint in an UHF approach.[2]

## Contamination

The total spin-squared operator commutes with the nonrelativistic molecular Hamiltonian so it is desirable that any approximate wave function is an eigenfunction of Ŝ2. The eigenvalues of Ŝ2 are S(S + 1) where S can take the values 0 (singlet), 1/2 (doublet), 1 (triplet), 3/2 (quartet), and so forth.

The ROHF wave function is an eigenfunction of Ŝ2: the expectation value Ŝ2 for a ROHF wave function is[3]

${\displaystyle \langle S^{2}\rangle _{\mathrm {ROHF} }=\langle S^{2}\rangle _{\mathrm {exact} }=\left({\frac {N_{\alpha }-N_{\beta }}{2}}\right)\left({\frac {N_{\alpha }-N_{\beta }}{2}}+1\right).}$

However, the UHF wave function is not: the expectation value of Ŝ2 for an UHF wave function is[3]

${\displaystyle \langle S^{2}\rangle _{\mathrm {UHF} }=\langle S^{2}\rangle _{\mathrm {exact} }+N_{\beta }-\sum _{i,j}^{\mathrm {all} }|\langle \psi _{i}^{\alpha }|\psi _{j}^{\beta }\rangle |^{2}.}$

The sum of the last two terms is a measure of the extent of spin contamination in the unrestricted Hartree–Fock approach and is always non-negative – the wave function is usually contaminated to some extent by higher order spin eigenstates unless a ROHF approach is taken. Naturally, there is no contamination if all electrons are the same spin. Also, there is often no contamination if the number of α and β electrons is the same. A small basis set could also constrain the wavefunction sufficiently to prevent spin contamination.

Such contamination is a manifestation of the different treatment of α and β electrons that would otherwise occupy the same molecular orbital. It is also present in Møller–Plesset perturbation theory calculations that employ an unrestricted wave function as a reference state (and even some that employ a restricted wave function) and, to a much lesser extent, in the unrestricted Kohn–Sham approach to density functional theory using approximate exchange-correlation functionals.[4]

## Elimination

Although the ROHF approach does not suffer from spin contamination, it is less commonly available in quantum chemistry computer programs. Given this, several approaches to remove or minimize spin contamination from UHF wave functions have been proposed.

The annihilated UHF (AUHF) approach involves the annihilation of first spin contaminant of the density matrix at each step in the self-consistent solution of the Hartree–Fock equations using a state-specific Löwdin annihilator.[5] The resulting wave function, while not completely free of contamination, dramatically improves upon the UHF approach especially in the absence of high order contamination.[6][7]

Projected UHF (PUHF) annihilates all spin contaminants from the self-consistent UHF wave function. The projected energy is evaluated as the expectation of the projected wave function.[8]

The spin-constrained UHF (SUHF) introduces a constraint into the Hartree–Fock equations of the form λ(Ŝ2 − S(S + 1)), which as λ tends to infinity reproduces the ROHF solution.[9]

All of these approaches are readily applicable to unrestricted Møller–Plesset perturbation theory.

## Density Functional Theory (DFT)

Although many DFT codes simply calculate spin-contamination using the Kohn–Sham orbitals as if they were Hartree–Fock orbitals, this is not necessarily correct. [10] [11] [12] [13]

## References

1. ^ Springborg, Michael (2000). Methods of Electronic-Structure Calculations. John Wiley & Sons. ISBN 978-0-471-97976-0.
2. ^ Glaesemann, Kurt R.; Schmidt, Michael W. (2010). "On the Ordering of Orbital Energies in High-Spin ROHF†". The Journal of Physical Chemistry A. 114 (33): 8772–8777. PMID 20443582. doi:10.1021/jp101758y.
3. ^ a b Szabo, Attila; Ostlund, Neil S. (1996). Modern Quantum Chemistry. Mineola, New York: Dover Publications. ISBN 0-486-69186-1.
4. ^ Young, David (2001). Computational Chemistry. Wiley-Interscience. ISBN 0-471-22065-5.
5. ^ Löwdin, Per-Olov (1955). "Quantum Theory of Many-Particle Systems. III. Extension of the Hartree–Fock Scheme to Include Degenerate Systems and Correlation Effects". Physical Review. 97 (6): 1509–1520. Bibcode:1955PhRv...97.1509L. doi:10.1103/PhysRev.97.1509.
6. ^ Baker, J (1988). "Møller–Plesset perturbation theory with the AUHF wavefunction". Chemical Physics Letters. 152 (2–3): 227–232. Bibcode:1988CPL...152..227B. doi:10.1016/0009-2614(88)87359-7.
7. ^ Baker, J (1989). "An investigation of the annihilated unrestricted Hartree–Fock wave function and its use in second-order Møller–Plesset perturbation theory". Journal of Chemical Physics. 91 (3): 1789. Bibcode:1989JChPh..91.1789B. doi:10.1063/1.457084.
8. ^ Schlegel, H. Bernhard (1986). "Potential energy curves using unrestricted Møller–Plesset perturbation theory with spin annihilation". Journal of Chemical Physics. 84 (8): 4530–4534. Bibcode:1986JChPh..84.4530S. doi:10.1063/1.450026.
9. ^ Andrews, Jamie S.; Jayatilaka, Dylan; Bone, Richard G. A.; Handy, Nicholas C.; Amos, Roger D. (1991). "Spin contamination in single-determinant wavefunctions". Chemical Physics Letters. 183 (5): 423–431. Bibcode:1991CPL...183..423A. doi:10.1016/0009-2614(91)90405-X.
10. ^ Cohen, Aron J.; Tozer, David J.; Handy, Nicholas C. (2007). "Evaluation of 〈Ŝ[sup 2]〉 in density functional theory". The Journal of Chemical Physics. 126 (21): 214104. Bibcode:2007JChPh.126u4104C. PMID 17567187. doi:10.1063/1.2737773.
11. ^ Wang, Jiahu; Becke, Axel D.; Smith, Vedene H. (1995). "Evaluation of 〈S2〉 in restricted, unrestricted Hartree–Fock, and density functional based theories". The Journal of Chemical Physics. 102 (8): 3477. Bibcode:1995JChPh.102.3477W. doi:10.1063/1.468585.
12. ^ Grafenstein, Jurgen; Cremer, Dieter (2001). "On the diagnostic value of (S2) in Kohn-Sham density functional theory". Molecular Physics. 99 (11): 981–989. Bibcode:2001MolPh..99..981G. doi:10.1080/00268970110041191.
13. ^ Wittbrodt, Joanne M.; Schlegel, H. Bernhard (1996). "Some reasons not to use spin projected density functional theory". The Journal of Chemical Physics. 105 (15): 6574. Bibcode:1996JChPh.105.6574W. doi:10.1063/1.472497.