|q⟩ Bad Qubits

advanced · Programming · Quantum Chemistry on Quantum Computers

Computing Dissociation Curves

A single energy number is rarely the goal. Chemists want the potential energy surface: total energy as a function of nuclear geometry. The simplest slice is the dissociation curve of a diatomic molecule — energy versus bond length — from which the equilibrium bond length, the dissociation energy, and vibrational frequencies all follow.

Building the curve

To compute a dissociation curve you repeat the whole chemistry pipeline at each bond length RR:

  1. Recompute the molecular integrals hpq(R)h_{pq}(R), hpqrs(R)h_{pqrs}(R) for the new geometry.
  2. Re-map to a qubit Hamiltonian H^(R)\hat H(R) (the Pauli coefficients change with RR).
  3. Run VQE to obtain the ground-state energy E0(R)E_0(R).
  4. Add the constant nuclear–nuclear repulsion ZAZB/RZ_A Z_B / R.

Plotting Etotal(R)E_{\text{total}}(R) against RR traces the curve: it falls to a minimum at the equilibrium bond length ReR_e (about 0.74A˚0.74\,\text{Å} for H2\text{H}_2), then rises and flattens to the dissociation limit as the atoms separate. The depth of the well below the dissociation limit is the bond dissociation energy DeD_e.

The exact ground state of two-qubit H₂

For the two-qubit H2\text{H}_2 Hamiltonian the ground state always lies in the single-excitation subspace {01,10}\{|01\rangle, |10\rangle\}, where H^\hat H restricts to a 2×22\times2 matrix

H^sub=(accb),\hat H_{\text{sub}} = \begin{pmatrix} a & c \\ c & b \end{pmatrix},

with diagonal energies a=01H^01a = \langle 01|\hat H|01\rangle, b=10H^10b = \langle 10|\hat H|10\rangle (from the II, ZZ, ZZZZ terms) and off-diagonal coupling cc from the X0X1+Y0Y1X_0X_1 + Y_0Y_1 terms. Diagonalizing a real symmetric 2×22\times2 matrix is exact:

E±=a+b2±(ab2)2+c2.E_\pm = \frac{a+b}{2} \pm \sqrt{\left(\frac{a-b}{2}\right)^2 + c^2}.

The ground-state energy is the lower root EE_-. Because VQE's one-parameter ansatz can reach the exact eigenvector of this block, VQE recovers EE_- exactly at every bond length — the computed curve has no approximation error beyond the basis set itself.

Why the off-diagonal term matters most at dissociation

Near equilibrium the diagonal gap ab|a - b| is large, so the ground state is close to the Hartree–Fock determinant 01|01\rangle and the correlation energy Emin(a,b)E_- - \min(a,b) is small. As the bond stretches, the bonding and antibonding orbitals become degenerate (aba \to b), and the ground state becomes an equal mix of 01|01\rangle and 10|10\rangle. There Hartree–Fock fails badly, and the ()2+c2\sqrt{(\cdot)^2 + c^2} term — pure correlation — dominates.

Try it

For one geometry the 2×22\times2 subspace block has diagonal energies a=1.0a = -1.0, b=0.5b = -0.5 and off-diagonal coupling c=0.3c = 0.3 (Hartree). Compute the ground-state energy — the smaller eigenvalue of (accb)\begin{pmatrix} a & c \\ c & b\end{pmatrix} — and return it.

Run your code to see the quantum state.

Repeating this calculation across bond lengths and connecting the points is the dissociation curve.

Sign in on the full site to ask questions and join the discussion.