Skip to content
CrawfordGroupPublic

About

PyCC is a simple, Python-based, reference implementation of the coupled cluster method of ab initio quantum chemistry.

Topics

Resources

Contributing

Stars

75 stars

Watchers

1 watching

Forks

Repository files navigation

PyCC

PyCC

License GitHub Actions Build Status codecov Documentation Status

A Python-based electronic-structure package centered on coupled cluster, built on a shared Wavefunction base that also hosts Hartree-Fock, MP2, and CI. Current capabilities include:

  • RHF-/UHF-/ROHF-based CCD, CC2, CCSD, CCSD(T), and CC3 energies, via either a spin-adapted (closed-shell RHF) or a spin-orbital formalism; the latter enables the open-shell (UHF/ROHF) correlated methods
  • Triples drivers for various approximate triples methods
  • One- and two-electron (reduced) density matrices for CC2 and CCSD (with CC3 and (T) contributions), and CC one-electron properties (e.g. dipole moments)
  • EOM-CCSD excitation energies for both the spin-adapted (closed-shell RHF) and the spin-orbital (open-shell UHF/ROHF) references
  • Linear response functions (dynamic polarizability, optical rotation) for both the spin-adapted (closed-shell) and spin-orbital references
  • Real-time (RT) CC2, CCSD, and CC3 with a selection of integrators
  • Local (PAO, PNO, PNO++) CCSD energies, and local RT-CC
  • MP2 (MPwfn) and CISD/CID (CIwfn) energies (closed- and open-shell)
  • Analytic MO-basis derivative properties for Hartree-Fock (HFwfn) and MP2 (MPwfn): energy gradient, static dipole polarizability, nuclear Hessian (force-constant matrix), atomic polar tensors (APTs / dipole derivatives, in both the length and velocity gauge), and atomic axial tensors (AATs) -- the building blocks for IR and VCD spectra. Both spin paths (spin-adapted closed-shell RHF and spin-orbital), all-electron and frozen-core; the MP2 second derivatives come via two independent routes (explicit-derivative and 2n+1)
  • Analytic derivative properties for CCSD and CCSD(T): nuclear energy gradients, relaxed electronic dipoles, static dipole polarizabilities, nuclear Hessians (force-constant matrices), and atomic polar tensors (APTs / dipole derivatives). Both spin paths (spin-adapted closed-shell RHF and spin-orbital UHF), all-electron and frozen-core, built on the same relaxed-density / Z-vector and 2n+1 machinery as the MP2 derivatives
  • Analytic CCSD atomic axial tensors (AATs) and velocity-gauge APTs, from the perturbed amplitudes and multipliers rather than the energy-derivative machinery, so CC VCD spectra are available alongside the HF, MP2, and CISD ones. Both spin paths, all-electron and frozen-core; CCSD only (the formulation is derived for the (1 + Lambda) e^T bra without (T), so CCSD(T) raises)
  • Analytic derivative properties for CISD (CIwfn): atomic polar tensors (APTs, in both the length and velocity gauge), atomic axial tensors (AATs), and nuclear Hessians, sharing the same CorrelatedDerivs base as the MP2 and CC properties
  • One-call IR and VCD spectra -- pycc.ir and pycc.vcd -- which compute the Hessian, the APTs and (for VCD) the AATs from a derivative driver, run the harmonic analysis, and return frequencies, intensities and rotatory strengths; velocity_gauge=True adds the velocity-gauge and origin-independent rotatory strengths. A property checkpoint (pycc.save_checkpoint) archives the tensors so a spectrum can be re-analyzed without recomputing anything
  • A uniform property interface -- pycc.dipole, pycc.gradient, pycc.polarizability, pycc.optical_rotation, pycc.hessian, pycc.apt, pycc.aat, pycc.dboc -- that takes a derivative driver (pycc.CCderiv, pycc.MPderiv, pycc.CIderiv) or an HFwfn, and returns each property's nuclear/reference/correlation decomposition as a PropertyComponents dataclass (.total, .nuclear, .reference, .correlation, .electronic)
  • GPU implementations for multiple methods
  • Single- and mixed-precision arithmetic

Future plans:

  • Quadratic response functions (in development)
  • CC2 and CC3 excited states

This repository is currently under development. To do a developmental install, download this repository and type pip install -e . in the repository directory.

This package requires the following:

Optional packages:

Documentation

The docs/ directory holds the Sphinx documentation — a getting-started guide with runnable examples and an API reference. GitHub renders these .rst files in the browser; to build the full HTML site locally, install Sphinx (and the Read the Docs theme) and run make html from docs/.

Authors

T. Daniel Crawford, Benjamin G. Peyton, Zhe Wang, Aparna Krishnan, Brendan M. Shumberger, Jose Madriaga, Joshua Atta-Kumi, Aaron De Clercq, Ritvik Prabhu

Copyright

Copyright (c) 2026, T. Daniel Crawford

Acknowledgements

Project structure based on the MolSSI's Computational Molecular Science Python Cookiecutter Version 1.5.

About

PyCC is a simple, Python-based, reference implementation of the coupled cluster method of ab initio quantum chemistry.

Topics

Resources

Contributing

Stars

75 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages