Checkpoint: Ground-State Energy
This checkpoint ties the module together: starting from a molecular qubit Hamiltonian, you compute the electronic ground-state energy of molecular hydrogen — the quantity a VQE run on real hardware is designed to estimate.
The full pipeline, recalled
Everything in this module feeds one number:
- Electronic structure problem — the Born–Oppenheimer electronic Hamiltonian.
- Second quantization — rewrite it in fermionic creation/annihilation operators with molecular integrals.
- Jordan–Wigner — map fermions to qubits; the Hamiltonian becomes a weighted sum of Pauli strings.
- Tapering — symmetries reduce to two qubits: .
- Hartree–Fock — the reference state and its (uncorrelated) energy.
- VQE / UCC — a particle-preserving ansatz that mixes and to find the true ground state.
Reducing to a 2×2 eigenproblem
Because the Hamiltonian conserves particle number and spin, its ground state is confined to the single-excitation subspace . There is the matrix
where and come from the diagonal terms (using , ) and from the off-diagonal terms, both of which map with coefficient . The electronic ground-state energy is the lower eigenvalue,
This is exactly the energy the one-parameter VQE ansatz from the earlier lesson converges to — diagonalizing the block analytically here gives the same answer VQE finds variationally.
Try it
Using the equilibrium coefficients , , , (Hartree), build the subspace block and return the lower eigenvalue — the electronic ground-state energy. The grader also checks that your answer lies below the Hartree–Fock energy , confirming you captured the correlation energy.
You have now carried a molecule from its electronic Hamiltonian all the way to a ground-state energy — the complete quantum-chemistry workflow in miniature.
Sign in on the full site to ask questions and join the discussion.