Reference implementation of:
- RHF orbital analysis with PySCF
- UCCSD VQE ground-state optimization with PennyLane
- QSC-EOM excited-state analysis with
R1/R2coefficient export
run_exact.py: canonical CLI entrypointSCF.py: RHF + orbital/two-electron integral report generationvqe.py: UCCSD VQE optimizerqsceom.py: QSC-EOM matrix build +R1/R2exportexc.py: determinant/excitation configuration generatorexample/*/run_*.py: per-system runnable examples (H4, H8, N2, CH-)
- Python 3.10+
- Dependencies from
requirements.txt
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txtOptional editable install:
python -m pip install -e .
run-exact --helpRun the full H4 pipeline:
python run_exact.pyRun individual stages:
python run_exact.py scf
python run_exact.py vqe
python run_exact.py qsceomChoose preset systems:
python run_exact.py all --system h4
python run_exact.py all --system h8
python run_exact.py all --system n2
python run_exact.py all --system ch-Other common options:
python run_exact.py all --max-iter 700
python run_exact.py qsceom --state-idx 1
python run_exact.py all --skip-files
python run_exact.py all --method pyscfBy default, the workflow writes:
fock.txt: SCF orbital summarytwo_elec.txt: antisymmetrized two-electron spin-orbital integralst1_t2.txt: optimized UCCSD amplitudesout_r1_r2.txt: QSC-EOMR1/R2excitation coefficients
python -m py_compile run_exact.py SCF.py vqe.py qsceom.py exc.py fun.py
python run_exact.py --help- Contributions:
CONTRIBUTING.md - Code of conduct:
CODE_OF_CONDUCT.md - Security policy:
SECURITY.md - Pull request template:
.github/pull_request_template.md - Issue templates:
.github/ISSUE_TEMPLATE/
MIT. See LICENSE.