Quantum 3xplorer (Q3)
Loading...
Searching...
No Matches
init.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
layer_4_computation/state/internal/energies/init.hpp
"
4
5
namespace
q3
{
6
7
/**
8
* Abstract base for a converged self-consistent field state.
9
*
10
* Produced by an SCFIterator at convergence. Carries the iteration count,
11
* the convergence flag, and the energy breakdown (via the energies()
12
* accessor). Concrete subtypes add the quantum system snapshot, charge
13
* density, and effective potential at the appropriate representation level.
14
*
15
* Mirrors the SCFIterator / Diagonalizer / FermiEnergyCalculator pattern:
16
* each top-level L4 concept has an abstract base in its folder's init.hpp.
17
*/
18
struct
SCFState
{
19
virtual
~SCFState
() =
default
;
20
SCFState
() =
default
;
21
SCFState
(
SCFState
&&) =
default
;
22
SCFState
&
operator=
(
SCFState
&&) =
default
;
23
SCFState
(
const
SCFState
&) =
default
;
24
SCFState
&
operator=
(
const
SCFState
&) =
default
;
25
26
int
scf_iterations
{};
27
bool
converged
{
false
};
28
29
/// Return the converged energy breakdown.
30
virtual
const
SCFEnergies
&
energies
()
const
= 0;
31
};
32
33
}
// namespace q3
init.hpp
q3
Definition
q3_core_api.hpp:33
q3::SCFEnergies
Definition
init.hpp:18
q3::SCFState
Definition
init.hpp:18
q3::SCFState::operator=
SCFState & operator=(SCFState &&)=default
q3::SCFState::operator=
SCFState & operator=(const SCFState &)=default
q3::SCFState::SCFState
SCFState()=default
q3::SCFState::converged
bool converged
Definition
init.hpp:27
q3::SCFState::SCFState
SCFState(const SCFState &)=default
q3::SCFState::scf_iterations
int scf_iterations
Definition
init.hpp:26
q3::SCFState::SCFState
SCFState(SCFState &&)=default
q3::SCFState::energies
virtual const SCFEnergies & energies() const =0
Return the converged energy breakdown.
q3::SCFState::~SCFState
virtual ~SCFState()=default
src
layer_4_computation
state
init.hpp
Generated by
1.9.8