https://github.com/wright-group/WrightSim/blob/8c23c2431a80f1eb87be6613c69a9db399354be8/WrightSim/hamiltonian/default.py#L172