From Molecules to Quantum Circuits
A Computational Guide to Fermion-to-Qubit Encodings
John S Azariah Centre for Quantum Software and Information, University of Technology Sydney
📥 Download PDF · 💻 FockMap Library
About This Book
This is a self-contained, 23-chapter computational tutorial covering the complete pipeline from molecular electronic structure to quantum circuit compilation for quantum simulation.
Starting from the one-body and two-body integrals of hydrogen (H₂), we construct the qubit Hamiltonian explicitly under six fermion-to-qubit encodings, verify spectral equivalence, reduce qubit count via Z₂ symmetry tapering, decompose the tapered Hamiltonian into Trotter circuits with explicit CNOT gate counts, and export the result to OpenQASM 3.0 and Q#.
Every formula has a corresponding executable computation in the companion FockMap library.
Contents
Part I — The Molecule
Part II — The Machine
Part III — Encoding
- A Visual Guide to Encodings
- Building the Qubit Hamiltonian
- Six Encodings, One Interface
- Building a Tree Encoding
- Checking Our Answer
Part IV — Tapering
Part V — Circuits
- From Hamiltonian to Time Evolution
- Trotterization in Practice
- The CNOT Staircase
- Cost Analysis Across Encodings
Part VI — The Pipeline
- The Question We Can Now Answer
- The Water Bond Angle
- Algorithms — VQE and QPE
- Speaking the Hardware’s Language
Part VII — Horizons
Appendices
Citation
@misc{azariah2026molecules,
author = {Azariah, John S},
title = {From Molecules to Quantum Circuits: A Computational Guide to Fermion-to-Qubit Encodings},
year = {2026},
doi = {10.5281/zenodo.18917465},
url = {https://github.com/johnazariah/encodings-book}
}
License
Code: MIT. Manuscript text: © 2026 John S Azariah. All rights reserved.