|
Quantum 3xplorer (Q3)
An AI-native quantum simulation engine
|
#include <init.hpp>
Inheritance diagram for q3::SCFEnergies:Public Member Functions | |
| virtual | ~SCFEnergies ()=default |
| virtual Real | total () const =0 |
| Return the total energy as the sum of all component fields. | |
Base energy components in Rydberg.
Abstract base for all SCF energy breakdowns. Concrete subtypes add physics-level energy terms (Hartree, XC, Ewald, …) and override total() to sum them.
There is a single canonical energy value: the return value of total(). No separately-stored field mirrors it — that would create a silent divergence risk when new terms are added to an override chain.
|
virtualdefault |
|
pure virtual |
Return the total energy as the sum of all component fields.
Implemented in q3::KohnShamEnergies, q3::PlanewaveKohnShamEnergies, and q3::NormConservingPlanewaveKohnShamEnergies.