⚗️ Quantum Chemistry with Quantum Computers

From Second Quantization to a Working VQE

📖 Reading Time: 20-25 minutes 📊 Difficulty: Beginner 💻 Code Examples: 0 📝 Exercises: 0

AI Terakoya Top›Quantum Computing Dojo›Quantum Chemistry with Quantum Computers

🌐 EN | 🇯🇵 JP | Last sync: 2026-08-17

← Back to Quantum Computing Dojo

🎯 Series Overview

The Introduction to Quantum Computing series ended with a claim it did not have room to justify: that chemistry is the most natural application of a quantum computer, and that the variational quantum eigensolver is how the near-term version of it works. This series is that justification, worked out in full. It is the third series of the Quantum Computing Dojo — a direct sequel to the introductory series, and a complement to Quantum Computing Hardware, which asks the same questions one layer down, about the machines themselves.

The route runs from Feynman's argument to a running calculation. We build the electronic structure problem, put it into second-quantized form, map fermions onto qubits, assemble a variational algorithm around the resulting Pauli Hamiltonian, and then compute the potential energy curve of the hydrogen molecule from scratch — integrals, mapping, ansatz, optimizer, and all — in plain NumPy. There is no quantum chemistry package and no quantum SDK anywhere in the series. Every object you use, you build, which means every object you use, you can inspect.

This series is written for the materials and chemistry-adjacent reader: someone who works with DFT results, machine-learned potentials, or experimental materials data, and wants to know what the quantum computing conversation actually amounts to for their field. No prior quantum chemistry background is assumed. Second quantization, occupation number states, orbitals, and the electronic Hamiltonian are all built up from the beginning.

The final chapter is deliberately unsentimental. Having built H₂, we look at what grows when the molecule grows — qubits, Hamiltonian terms, circuit depth, and above all the measurement budget — and state the honest criterion for quantum advantage in chemistry. The overlap region between "classically hard" and "quantum-tractable today" is still empty. The aim of this series is that you finish it able to tell when it stops being empty.

Learning Path

flowchart LR A["Chapter 1
Why Chemistry Is
the Killer App"] B["Chapter 2
From Molecules
to Qubits"] C["Chapter 3
VQE:
The Algorithm"] D["Chapter 4
Hands-On:
H2 from Scratch"] E["Chapter 5
Beyond H2:
The Honest Frontier"] A --> B --> C --> D --> E style A fill:#667eea,stroke:#764ba2,stroke-width:2px,color:#fff style B fill:#667eea,stroke:#764ba2,stroke-width:2px,color:#fff style C fill:#667eea,stroke:#764ba2,stroke-width:2px,color:#fff style D fill:#667eea,stroke:#764ba2,stroke-width:2px,color:#fff style E fill:#667eea,stroke:#764ba2,stroke-width:2px,color:#fff

📋 Learning Objectives

📖 Prerequisites

The Introduction to Quantum Computing series is the intended starting point. Its Chapter 2 (qubits, superposition, entanglement, and the Pauli operators) and Chapter 5 (NISQ constraints and the variational quantum eigensolver) are the two you will lean on most directly — this series picks up exactly where that chapter's toy VQE left off. If you already know what a qubit, a parametrized circuit, and an expectation value are, you can begin here.

Basic linear algebra is assumed at the same level as the introductory series: vectors, matrices, eigenvalues and eigenvectors, complex numbers, and the tensor product. Familiarity with Python and NumPy is needed for the hands-on work in Chapters 4 and 5, which is written to be read line by line and is fully explained.

No prior quantum chemistry is required. Orbitals, occupation numbers, second quantization, creation and annihilation operators, and the molecular Hamiltonian are introduced from scratch as they become necessary. If you have taken an undergraduate quantum mechanics course you will recognize some of the machinery, but nothing here depends on that.

Chapter 1

Why Chemistry Is the Killer App

Understand Feynman's argument that quantum systems should be simulated with quantum machines, and why electronic structure is the application that follows from it. See where classical methods genuinely succeed, where strong correlation defeats them, and what "chemical accuracy" means as an engineering target rather than a slogan.

Feynman's Argument Electronic Structure Strong Correlation Chemical Accuracy Classical Baselines

⏱️ 20-25 minutes

Read Chapter 1 →

Chapter 2

From Molecules to Qubits

Learn the translation layer. Build the electronic Hamiltonian in second-quantized form with creation and annihilation operators, understand why fermionic antisymmetry is the obstacle, and see how the Jordan–Wigner transformation turns fermionic operators into Pauli strings that a quantum circuit can handle.

Second Quantization Fock Space Fermionic Operators Jordan–Wigner Pauli Hamiltonian

⏱️ 25-30 minutes

Read Chapter 2 →

Chapter 3

VQE: The Algorithm

Learn the variational quantum eigensolver as a complete algorithm rather than a slogan. See how the variational principle guarantees an upper bound, how an ansatz defines the reachable state family, how a Pauli sum is measured term by term, and how the classical optimizer closes the hybrid loop.

Variational Principle Ansatz Design Pauli Measurement Hybrid Loop Parameter-Shift Rule

⏱️ 25-30 minutes

Read Chapter 3 →

Chapter 4

Hands-On: H2 from Scratch

Build the whole calculation yourself. Assemble the H₂ Hamiltonian, map it to four qubits, reduce it using symmetry, construct an ansatz, run the optimization, and trace the potential energy curve — checking every step against exact diagonalization, in NumPy alone.

H₂ Hamiltonian Qubit Mapping Symmetry Reduction Potential Energy Curve Exact Diagonalization

💻 NumPy hands-on ⏱️ 30-35 minutes

Read Chapter 4 →

Chapter 5

Beyond H2: The Honest Frontier

Learn what breaks when the molecule grows. Compute the fourth-power growth of the Hamiltonian and the inverse-square shot budget that chemical accuracy demands, meet barren plateaus and the reductions that fight back, and apply the honest criterion for quantum advantage — the one whose overlap region is still empty.

Scaling Measurement Cost Barren Plateaus Active Spaces Quantum Phase Estimation Honest Criterion

💻 NumPy hands-on ⏱️ 25-30 minutes

Read Chapter 5 →

📚 Recommended Learning Paths

Pattern 1: Beginner - Full Tour (5 days)

Pattern 2: Intermediate - Fast Track (3 days)

Pattern 3: Practitioner - Straight to the Code (1 day)

🎯 Overall Learning Outcomes

Upon completing this series, you will achieve:

Knowledge Level

Practical Skills

Application Ability

🛠️ Technologies and Tools Used

Main Libraries

Development Environment

Recommended Tools

🚀 Next Steps

Deep Dive Learning

For more advanced study in this field:

Related Series

Expand your knowledge with related topics:

Practical Projects

Apply your skills to hands-on projects:

⚠️ Disclaimer