Project: Molecular Ground State
Computing molecular ground-state energies is the application most often cited as a near-term payoff for quantum computers. This capstone walks the smallest real example — the hydrogen molecule — from its electronic Hamiltonian down to a two-qubit state you can prepare and check.
From molecule to qubits
The electronic structure problem asks for the lowest eigenvalue of the molecular Hamiltonian in a chosen basis. For in a minimal (STO-3G) basis, the second-quantized Hamiltonian maps — via the Jordan–Wigner or Bravyi–Kitaev transform — to a sum of Pauli strings on four qubits. Exploiting particle-number and parity symmetries reduces this to an effective two-qubit Hamiltonian of the form
with real coefficients that depend on the bond length . This is the model used by O'Malley et al. (2016) in the first VQE measurement of an curve.
The relevant subspace
Number conservation confines the ground state to the single-excitation sector spanned by and . The ansatz
is therefore expressive enough to reach the true ground state with a single parameter . The classical optimizer varies to minimize .
The converged state
At the equilibrium bond length the and coupling drives the optimizer to the symmetric mixing angle , producing the singlet-like state
This is the lowest-energy combination of the two configurations: the antisymmetric superposition maximizes the favorable exchange term, exactly as the variational principle predicts.
Try it
Prepare the converged ground state with the supplied gate recipe. The grader checks the two-qubit statevector.
Sign in on the full site to ask questions and join the discussion.