pomerol
2.1
|
Canonical ensemble average of a monomial operator. More...
#include <EnsembleAverage.hpp>
Public Member Functions | |
EnsembleAverage (MonomialOperator const &A, DensityMatrix const &DM) | |
EnsembleAverage (EnsembleAverage const &EA) | |
void | compute () |
Compute the ensemble average of \(\hat A\). More... | |
ComplexType | operator() () const |
Return the ensemble average. More... | |
Public Member Functions inherited from Pomerol::Thermal | |
Thermal (RealType beta) | |
Public Member Functions inherited from Pomerol::ComputableObject | |
ComputableObject ()=default | |
StatusEnum | getStatus () const |
Return the current computation status. More... | |
void | setStatus (StatusEnum Status_in) |
Additional Inherited Members | |
Public Types inherited from Pomerol::ComputableObject | |
enum | StatusEnum { Constructed, Prepared, Computed } |
Computation status of the object. More... | |
Data Fields inherited from Pomerol::Thermal | |
const RealType | beta |
Inverse temperature \(\beta\). More... | |
const ComplexType | MatsubaraSpacing |
Spacing between (imaginary) Matsubara frequencies, \(i\pi/\beta\). More... | |
Protected Attributes inherited from Pomerol::ComputableObject | |
StatusEnum | Status = Constructed |
Current computation status. More... | |
Canonical ensemble average of a monomial operator.
This class represents the ensemble average of a monomial operator \(\hat A\),
\[ \langle A \rangle = Tr[\hat\rho \hat A]. \]
Usage example:
Definition at line 47 of file EnsembleAverage.hpp.
Pomerol::EnsembleAverage::EnsembleAverage | ( | MonomialOperator const & | A, |
DensityMatrix const & | DM | ||
) |
Constructor.
[in] | A | Monomial operator \(\hat A\). |
[in] | DM | Many-body density matrix \(\hat\rho\). |
Pomerol::EnsembleAverage::EnsembleAverage | ( | EnsembleAverage const & | EA | ) |
Copy-constructor.
[in] | EA | EnsembleAverage object to be copied. |
void Pomerol::EnsembleAverage::compute | ( | ) |
Compute the ensemble average of \(\hat A\).
|
inline |
Return the ensemble average.
Definition at line 73 of file EnsembleAverage.hpp.