Curriculum / Real-World Quantum Python / Quantum Chemistry on Quantum Computers

Lesson 8 of 20ReadingPro+70 XP

Quantum Chemistry on Quantum Computers

Learn how molecular Hamiltonians are mapped to qubit operators and why quantum computers offer an exponential advantage for chemistry.

Quantum Chemistry on Quantum Computers

The most commercially promising near-term application of quantum computing is simulating molecular systems, finding ground state energies of molecules to design drugs, catalysts, and materials.

Why Classical Computers Struggle

The electronic structure Schrödinger equation: H|Ψ⟩ = E|Ψ⟩

For a molecule with N electrons, the many-body wavefunction has exponentially many terms. Exact solution (Full CI) requires diagonalizing a matrix of size C(2M, N) × C(2M, N) where M is the number of basis orbitals:

  • H₂ (2 electrons, 4 spin-orbitals): 6 × 6 → tractable
  • H₂O (10 electrons, 20 spin-orbitals): 184,756 × 184,756 → barely tractable
  • Fe-nitrogenase (active site: 8 Fe, 1 Mo, 9 S, 113 electrons): → classically impossible

Quantum computers store this wavefunction naturally in their quantum state.

The Pipeline: Molecule → Qubits

Step 1: Second Quantization Express the Hamiltonian in terms of fermionic creation/annihilation operators (a†, a):

where and are one- and two-electron integrals (computed classically by packages like PySCF, PSI4).

Step 2: Qubit Mapping Convert fermionic operators to qubit operators using a mapping (Jordan-Wigner or Bravyi-Kitaev):

Jordan-Wigner:

Maps each spin-orbital to one qubit. Preserves fermion anti-commutation at the cost of long Pauli strings.

Bravyi-Kitaev: More complex but reduces Pauli string length from O(N) to O(log N).

Step 3: Pauli Decomposition Any qubit Hamiltonian decomposes into a sum of Pauli operators:

where and are real coefficients.

Example for H₂ in minimal basis (STO-3G, 4 qubits after reduction): H ≈ g₀ I + g₁ Z₀ + g₂ Z₁ + g₃ Z₀Z₁ + g₄ Y₀X₁X₂Y₃ + g₅ X₀X₁Y₂Y₃ + ...

This is the opening of the lesson. The full walkthrough, the interactive circuit, and the graded challenge continue inside myqubit.

How this lesson works

A guided reading lesson with interactive knowledge checks. Concepts are explained step by step with circuit diagrams and runnable examples, and you confirm understanding before moving on.

Part of: Real-World Quantum Python

Write production-quality quantum Python, circuit optimization, hybrid algorithms, cloud backends, noise modeling, and software engineering patterns.

This lesson is part of Pro

Unlock Real-World Quantum Python and all 10 tracks with Pro: $12.99/month, $79/year, or $97 lifetime. Start with the free track first if you are new.