Stark Effect Calculations
Calculate molecular polarizability and Stark shift using VQE with an external electric field. Implementation inapp.py.
Theory Background
Stark Effect
When a molecule is placed in an external electric field E, the Hamiltonian becomes:Polarizability
For small fields, the energy shift is:Implementation
Fromapp.py, the calculation uses a particle-conserving ansatz to ensure physically valid states.
Dipole Operator Construction
Fromapp.py:203-234:
Stark Hamiltonian Evaluation
Fromapp.py:151-201:
Particle-Conserving Ansatz
Critical fix fromapp.py:61-149 - the standard UCCSD singles implementation does NOT conserve particle number. We use Givens rotations:
Running Polarizability Calculation
Command Line Usage
Expected Output
Key Features
Ansatz Verification
Fromapp.py:303-326, the code verifies particle conservation:
Symmetry Check
The energy should be symmetric in field:Fitting Procedure
Fromapp.py:386-396:
Diagnostic Tools
Fromapp.py:267-275:
- Zero dipole moment at F=0
- Energy decomposition
- Field-dependence of ⟨μ̂⟩
Performance
- Zero-field optimization: ~50-100 iterations, 2-5 minutes
- Each field point: ~30-50 iterations, 1-2 minutes
- Total runtime: ~15-20 minutes for full sweep
Next Steps
Molecular Simulation
VQE fundamentals
VQE + UCCSD
Ansatz implementation details