VQE for H2O Molecule (Active Space)
Overview
Water (H₂O) is a 10-electron system that would require ~14 qubits for full simulation. This circuit demonstrates the active space approach, which reduces the problem to 4 qubits while capturing most of the electron correlation energy.
Active Space Approximation
Full H₂O has:
- 10 electrons
- ~14 spin-orbitals (minimal basis)
- Too large for current quantum computers
Active space (4e, 4o):
- 4 active electrons (valence)
- 4 active orbitals
- 6 frozen core electrons
- Reduces to 4 qubits
The Ansatz
Hardware-efficient ansatz with enhanced entanglement:
CODELayer 1: Layer 2: ┌─────┐ ┌─────┐ ┤ RY ├──●──●──┤ RY ├──●──●── ├─────┤ │ │ ├─────┤ │ │ ┤ RY ├──X──●──┤ RY ├──X──●── ├─────┤ │ ├─────┤ │ ┤ RY ├──●──X──┤ RY ├──●──X── ├─────┤ │ ├─────┤ │ ┤ RY ├──X─────┤ RY ├──X───── └─────┘ └─────┘
Running the Circuit
PYTHONfrom circuit import run_circuit result = run_circuit() print(f"Energy: {result['energy']:.4f} Ha") print(f"Active space: {result['active_space']}")
Expected Output
| Property | Value |
|---|---|
| Active space | (4e, 4o) |
| Qubits | 4 |
| Approximate ground state | -76.0 Ha |
| Parameters | 20 |
Why Active Space?
The full H₂O Hamiltonian is intractable on current hardware, but:
- Core electrons (O 1s) don't participate in bonding
- "Freezing" them reduces qubit count
- Active space captures ~95%+ of correlation energy
Applications
- Water chemistry: Foundation for aqueous simulations
- Hydrogen bonding: Understanding water's unique properties
- Benchmark: Standard test for active space methods
Scaling to Real Molecules
| Molecule | Full qubits | Active space qubits |
|---|---|---|
| H₂O | 14 | 4 |
| NH₃ | 16 | 4-6 |
| CH₄ | 18 | 4-6 |
| Benzene | 72 | 6-12 |