---
title: "Molecular electrons and the breaking of a bond"
description: "Follow hydrogen from orbitals and self-consistent fields to correlation, DFT and bond breaking, with nine chapters and three interactive experiments."
canonical_url: "https://sandboxphysics.com/stories/molecular-electronic/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/molecular-electronic/"
---

FR13

# Molecular electrons and the breaking of a bond

Sandbox Physics · 2026-10-28

A shared orbital describes the hydrogen bond well near its usual length. Stretch the same bond, and the electrons need a different way to stay apart. Start with one electron around one nucleus, build the simplest molecular calculation, then follow exactly where its assumptions stop working.

## Pull two hydrogen atoms apart

At the start, the electrons gain by spreading between the nuclei. Far apart, one electron should stay with each atom. A useful molecular theory must describe both situations and the continuous change between them. Hydrogen is small enough that we can compare an approximate answer with the best possible answer in exactly the same basis.

### One shared doubly occupied orbital

50% 50%

At infinite separation, half the weight has one electron on each atom; half has both on the same atom.

### A correlated singlet at separation

100%

Mix bonding and antibonding pairs with opposite signs. The double-occupancy terms cancel.

- One electron on each atom
- Both electrons on one atom

Exact algebraic weights in the zero-overlap limit of the two-function model, shown as configuration probabilities. These bars are a limiting argument, not a measured dissociation curve.

The first two chapters build orbitals and matrix elements. Chapters three to six follow self-consistency, spin symmetry, configuration mixing and perturbation theory. The final three explain what DFT changes, how to compare entire energy curves, and how an exact condition on fractional spin exposes a difficulty in approximate functionals.

[Shared textbook foundations](https://github.com/yangzichao/sandboxphysics/issues/27) · [FR13 research route](https://github.com/yangzichao/sandboxphysics/issues/43)

1. L1 · 1

   ## [Choosing an orbital for one hydrogen electron](https://sandboxphysics.com/stories/molecular-electronic/variational-orbitals/)

   Use the hydrogen atom to understand probability, trial orbitals and the variational energy before combining two atomic functions.

2. L1 · 2

   ## [Turning a molecule into a small matrix problem](https://sandboxphysics.com/stories/molecular-electronic/basis-and-integrals/)

   Fix the nuclei, choose STO-3G functions and identify the overlap, one-electron and repulsion integrals that define the calculation.

3. L2 · 3

   ## [Making the density and its field agree](https://sandboxphysics.com/stories/molecular-electronic/self-consistent-field/)

   Derive the restricted Hartree–Fock field, follow SCF residuals and see why orbital energies cannot simply be added into a total energy.

4. L2 · 4

   ## [Why a shared orbital struggles when the bond stretches](https://sandboxphysics.com/stories/molecular-electronic/restricted-and-unrestricted/)

   Expand the restricted hydrogen state at separation, then see how UHF lowers its energy and introduces spin contamination.

5. L3 · 5

   ## [Mixing configurations to keep the electrons apart](https://sandboxphysics.com/stories/molecular-electronic/configuration-interaction/)

   Build the small FCI problem, derive the correlated singlet and use natural occupations to follow the growth of static correlation.

6. L3 · 6

   ## [When a small correlation correction becomes too large](https://sandboxphysics.com/stories/molecular-electronic/perturbation-correlation/)

   Derive a second-order energy correction and connect shrinking orbital gaps to the failure of restricted MP2 for a stretched bond.

7. L3 · 7

   ## [What density functional theory changes](https://sandboxphysics.com/stories/molecular-electronic/density-functional-theory/)

   Build the Kohn–Sham energy expression, distinguish exact DFT from PBE and compare a versioned restricted calculation with same-basis FCI.

8. L3 · 8

   ## [An accurate energy can still give the wrong bond force](https://sandboxphysics.com/stories/molecular-electronic/energies-forces-and-bases/)

   Compare hydrogen energy curves, force errors and natural occupations, then separate electronic-method error from the limits of a small basis.

9. L4 · 9

   ## [A fractional-spin test for a broken bond](https://sandboxphysics.com/stories/molecular-electronic/fractional-spin-paper/)

   Read the exact constancy condition from Cohen, Mori-Sánchez and Yang, then reproduce a bounded one-orbital hydrogen calculation.

## Follow the calculation in three experiments

- [Watch a density and its self-consistent field agree](https://sandboxphysics.com/labs/h2-self-consistent-field/)
- [Stretch a bond and compare RHF, UHF and FCI](https://sandboxphysics.com/labs/h2-bond-breaking/)
- [Compare energy errors, forces and occupations along one geometry set](https://sandboxphysics.com/labs/electronic-method-error-map/)

Earlier models and the calculation used here

The Morse wavepacket experiment describes nuclear motion on a prescribed empirical potential. The XPS experiment relates a synthetic spectrum to chemical shifts. This course adds finite-basis electronic calculations with fixed nuclei. Its orbitals and densities are calculated distributions, and the reference energies are numerical calculations, not experimental measurements.

- [Nuclear motion on a Morse potential](https://sandboxphysics.com/labs/morse-molecular-bond-breaking/)
- [Chemical shifts in a synthetic XPS spectrum](https://sandboxphysics.com/labs/xps-chemical-state/)

## Sources and calculation scope

1. [Sandbox Physics, FR13 reference inputs, raw numerical records and reproduction guide (2026)](https://github.com/yangzichao/sandboxphysics/blob/main/docs/frontier/fr13/reference-reproduction.md)

   Original generated data: H2/STO-3G method energies, forces and occupations; independent Psi4 checks; basis and DFT-grid checks; fixed-orbital fractional-spin data. The guide links scripts, raw outputs, runtime versions and data licenses.

2. [A. E. DePrince III, The Hartree–Fock Self-Consistent Field Procedure](https://www.chem.fsu.edu/~deprince/tutorials/jupyter_notebooks/hartree_fock/hartree_fock.html)

   Author tutorial: electronic Hamiltonian, variational principle, density matrices, SCF, basis convergence and spin-symmetry breaking. The browser calculation specializes these equations to two hydrogen STO-3G functions.

3. [Psi4 manual, HF: Hartree–Fock Theory](https://psicode.org/psi4manual/master/scf.html)

   Theory and numerical methods sections: restricted and unrestricted references, generalized eigenproblem, total energy and convergence. The reproducible reference manifest records the installed version and settings.

4. [Psi4 manual, CI: Configuration Interaction](https://psicode.org/psi4manual/master/detci.html)

   CI expansion and full configuration interaction within a chosen orbital space. Here FCI is exact only for the stated finite-basis Hamiltonian.

5. [C. Møller and M. S. Plesset, Note on an Approximation Treatment for Many-Electron Systems (1934)](https://doi.org/10.1103/PhysRev.46.618)

   Original perturbation partition. The two-orbital worked example uses ordinary restricted second-order perturbation theory with conventional integrals.

6. [P. Hohenberg and W. Kohn, Inhomogeneous Electron Gas (1964)](https://doi.org/10.1103/PhysRev.136.B864)

   Ground-state density and the exact density variational principle. This existence result does not provide an approximate functional.

7. [W. Kohn and L. J. Sham, Self-Consistent Equations Including Exchange and Correlation Effects (1965)](https://doi.org/10.1103/PhysRev.140.A1133)

   Auxiliary noninteracting orbitals and the separation of kinetic, electrostatic and exchange-correlation energies.

8. [J. P. Perdew, K. Burke and M. Ernzerhof, Generalized Gradient Approximation Made Simple (1996)](https://doi.org/10.1103/PhysRevLett.77.3865)

   Published PBE generalized-gradient functional, with the 1997 erratum. The method-error experiment selects PBE; its saved numerical record fixes the library, grid and spin restriction.

9. [A. J. Cohen, P. Mori-Sánchez and W. Yang, Fractional spins and static correlation error in density functional theory (2008)](https://arxiv.org/abs/0805.1724v1)

   Locked preprint v1, 12 May 2008; published as J. Chem. Phys. 129, 121104, DOI 10.1063/1.2987202. The final chapter studies the exact constancy condition and a newly computed finite-basis illustration of the hydrogen-atom figure.

10. [Basis Set Exchange, STO-3G basis data](https://www.basissetexchange.org/)

    Hydrogen STO-3G contraction: one contracted s function per atom, made from three Gaussian primitives. Basis coefficients and normalization are fixed in the calculation manifest.
