The qm_project_sss package implements semi-empirical quantum mechanical (SCF+MP2) simulation parameterized to reproduce first-principles QM data using a minimal model. The package serves three main classes:
- NobleGasModel (in Noble_Gas_Model module)
- HartreeFock (in hartree_fock module)
- MP2 (in mp2 module)
You can learn more about attributes and methods in three classes in the documentation. However, you can also keep reading below to get started.
git clone https://github.com/MolSSI-Education/qm_2019_sss_4.git
cd qm_2019_sss_4
pip install -e .
You can run tests to make sure the package is installed successfully
pytest -v
In just a few lines, we can compute the Hartree-Fock energy and the MP2 energy correction of a system of two Argon atoms.
from qm_project_sss import NobleGasModel, HartreeFock, MP2
import numpy as np
# Initilize a NobleGasModel object
Ar = NobleGasModel('ar')
atomic_coordinates = np.array([[0.0,0.0,0.0], [3.0,4.0,5.0]])
# Initilize a HartreeFock object
hf = HartreeFock(atomic_coordinates, Ar)
# Start SCF iterations
hf.scf_cycle()
hf_energy = hf.calculate_energy_ion() + hf.calculate_energy_scf()
# Compute MP2 correction to HF energy
mp2 = MP2(atomic_coordinates, Ar)
mp2_correction = mp2.mp2_energy
Copyright (c) 2019, sss_2019_qm_4
Project based on the Computational Molecular Science Python Cookiecutter version 1.0.