Step 0:
Physical system H\(_2\)
Electronic Hamiltonian (Born-Oppenheimer approximation):
$$
H = -\frac12 \nabla_1^2 - \frac12 \nabla_2^2 - \frac{1}{r_{1A}} - \frac{1}{r_{1B}} - \frac{1}{r_{2A}} - \frac{1}{r_{2B}} + \frac{1}{r_{12}}
$$
Step 1:
Atomic basis set
Minimal basis sto-3g: for the H₂ molecule - one 1s orbital per hydrogen atom.
$$
\phi_A(\mathbf r) = \sum_{k=1}^3 d_k e^{-\alpha_k |\mathbf r - \mathbf R_A|^2}, \quad
\phi_B(\mathbf r) = \sum_{k=1}^3 d_k e^{-\alpha_k |\mathbf r - \mathbf R_B|^2}
$$
Normalization: \(\int |\phi_A|^2 d^3r = \int |\phi_B|^2 d^3 r = 1\)
Step 2:
Spin-orbitals
Each spin-orbital represents a quantum state of an electron:
$$ |\chi\rangle = |\phi\rangle \otimes |\sigma\rangle $$
where \(|\phi\rangle\) is a spatial orbital, \(|\sigma\rangle\) is a spin state: \(\alpha\) - spin up and \(\beta\) - spin down.
For \(\text{H}_2\), we define four spin-orbitals:
$$
\chi_0 = \phi_A \alpha, \quad
\chi_1 = \phi_A \beta , \quad
\chi_2 = \phi_B \alpha, \quad
\chi_3 = \phi_B \beta
$$
To use a quantum computer, we introduce occupation number encoding:
-
\(|0\rangle\) - empty spin-orbital (no electron)
-
\(|1\rangle\) - occupied spin-orbital (one electron)
This encoding is the basis for second quantization and mapping the system onto qubits. For \(\text{H}_2\) the system is mapped onto
4 qubits.
Step 3:
Calculation of integrals
One-electron integrals:
\(
h_{pq} = \langle \chi_p | -\frac12 \nabla^2 - \frac{1}{r_{1A}} - \frac{1}{r_{1B}} | \chi_q \rangle
\)
Two-electron integrals:
\(
g_{pqrs} = \langle \chi_p \chi_q | \frac{1}{r_{12}} | \chi_r \chi_s \rangle
\)
Step 4:
Fermionic Hamiltonian
$$
H = \sum_{pq} h_{pq} a_p^\dagger a_q + \frac12 \sum_{pqrs} g_{pqrs} a_p^\dagger a_q^\dagger a_r a_s
$$
Step 5:
Fermion - to - qubit
transformation
The fermionic Hamiltonian (Step 4) is mapped to qubits Hamiltonian using transformation of Jordan-Wigner:
$$
a_j = \left( \prod_{k=0}^{j-1} Z_k \right)\frac{X_j + iY_j}{2}
$$
$$
a_j^\dagger = \left( \prod_{k=0}^{j-1} Z_k \right)\frac{X_j - iY_j}{2}
$$
One spin orbital corresponds to one qubit: 4 spin-orbitals → 4 qubits:
$$
a_0 = \frac{X_0 + i Y_0}{2}, \quad a_0^\dagger = \frac{X_0 - i Y_0}{2}
$$
$$
a_1 = Z_0 \frac{X_1 + i Y_1}{2}, \quad a_1^\dagger = Z_0 \frac{X_1 - i Y_1}{2}
$$
$$
a_2 = Z_0Z_1 \frac{X_2 + i Y_2}{2}, \quad a_2^\dagger= Z_0Z_1 \frac{X_2 - i Y_2}{2}
$$
$$
a_3 = Z_0Z_1Z_2 \frac{X_3 + i Y_3}{2}, \quad a_3^\dagger = Z_0Z_1Z_2 \frac{X_3 - i Y_3}{2}
$$
The operator \( n_j = a_j^\dagger a_j \) determines the occupation of spin-orbital \( j \), giving 1 if it is occupied and 0 if it is empty.
Substituting the Jordan-Wigner transformation of the fermionic operators \( a_j^\dagger \) and \( a_j \) leads to
$$
n_j = a_j^\dagger a_j = \frac{1-Z_j}{2},
$$
which connects fermionic occupation with qubit Pauli operators.
Step 6:
Final qubit Hamiltonian
After applying the Jordan-Wigner transformation, the fermionic Hamiltonian is mapped to a 4-qubit Hamiltonian
expressed as a sum of Pauli strings:
$$
H_q = c_0 I + c_1 Z_0 + c_2 Z_1 + c_3 Z_2 + c_4 Z_3 \\
+ c_5 Z_0 Z_1 + c_6 Z_0 Z_2 + c_7 Z_0 Z_3
+ c_8 Z_1 Z_2 + c_9 Z_1 Z_3 + c_{10} Z_2 Z_3 \\
+ c_{11} \big(
X_0 Y_1 Y_2 X_3
- X_0 X_1 Y_2 Y_3
- Y_0 Y_1 X_2 X_3
+ Y_0 X_1 X_2 Y_3\big)
$$
The coefficients \(c_i\) are functions of the one-electron integrals \(h_{pq}\) and two-electron integrals \(g_{pqrs}\) calculated in Step 3.
Step 7:
Reduction by singlet symmetry
For 2 electrons in 4 spin orbitals → 6 determinants
$$ |1100\rangle, |1010\rangle, |1001\rangle, |0110\rangle, |0101\rangle, |0011\rangle $$
Each bitstring indicates the occupation of spin-orbitals in the order ($\chi_0, \chi_1, \chi_2, \chi_3$): 1 - occupied, 0 - unoccupied.
These states can be classified according to total spin:
-
Singlets (S = 0): \( |1100\rangle, |0011\rangle, \frac{|1001\rangle - |0110\rangle}{\sqrt{2}} \) → the ground state of H\(_2\) is a singlet;
-
Triplets (S = 1): \( |1010\rangle, |0101\rangle, \frac{|1001\rangle + |0110\rangle}{\sqrt{2}} \) → do not contribute to the ground state.
Step 8:
Construction of logical qubits
Due to additional spatial symmetry (particle number + spin symmetry + spatial symmetry),
the ground state can be well approximated within the 2-dimensional subspace.
For the reduced ground-state model, the best basis is
$$
|1100\rangle, |0011\rangle.
$$
Logical basis is defined as:
$$
|0\rangle_\text{logical} \equiv |1100 \rangle , \quad
|1\rangle_\text{logical} \equiv |0011\rangle
$$
In the molecular orbital basis, the states \(|1100 \rangle\) and \(|0011\rangle\) correspond to double occupation of the bonding and antibonding molecular orbitals, respectively.
Step 9:
Reduced Hamiltonian
After symmetry reduction (Step 7), the Hamiltonian (Step 6) projected onto a reduced 2-dimensional subspace in the reduced basis { \(|0\rangle_\text{logical}, |1\rangle_\text{logical}\) } can be expressed :
$$
H_{logical} = c_0 I + c_1 Z + c_2 X ,
$$
where
$$
c_0 = h_{00} + h_{11} + \frac{g_{0000} + g_{1111}}{2} \\
c_1 = h_{00} - h_{11} + \frac{ (g_{0000} - g_{1111}) }{2}, \\
c_2 = g_{0101}.
$$
The final qubit Hamiltonian depends on the choice of orbital basis, fermion-to-qubit mapping, and symmetry reductions applied during the mapping procedure.
Different effective qubit representations (for example, 4-qubit, 2-qubit, or reduced 1-qubit models for \(\text{H}_2\)) lead to different Pauli-string forms of the Hamiltonian while describing the same physical system.
Step 10:
VQE Ansatz
Since the reduced space is 2-dimensional, the trial state can be written as
$$|\psi(\theta)\rangle = \cos\theta |0\rangle_\text{logical} - \sin\theta |1\rangle_\text{logical} $$
the parameter \(\theta\) is sufficient to span the entire singlet subspace.
Step 11:
VQE Procedure
- Prepare \(|\psi(\theta)\rangle\) on 1 qubit.
- Measure \(E(\theta) = \langle \psi(\theta)|H|\psi(\theta)\rangle\).
- Optimize \(\theta\) to minimize \(E(\theta)\).
- Result: The minimum value of \(E_\text{VQE} \approx E_\text{0}\) within the chosen basis.