Xped
Loading...
Searching...
No Matches
Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN > Struct Template Reference

#include <OneSiteObservable.hpp>

Inheritance diagram for Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >:
Collaboration diagram for Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >:

Public Types

using ObsScalar = std::conditional_t< HERMITIAN, typename ScalarTraits< Scalar >::Real, typename ScalarTraits< Scalar >::Comp >
 

Public Member Functions

 OneSiteObservable (const Pattern &pat, const std::string &name_in="")
 
OneSiteObservable< Scalar, Symmetry, HERMITIAN > shiftQN (const TMatrix< typename Symmetry::qType > &charges)
 
virtual std::string getResString (const std::string &offset) const override
 
virtual void toFile (HighFive::File &file, const std::string &root="/") const override
 
- Public Member Functions inherited from Xped::ObservableBase
 ObservableBase (const std::string &name_in="", bool MEASURE_IN=true)
 
virtual std::string file_name () const
 
virtual std::string format () const
 
virtual std::string getResString (const std::string &offset) const =0
 
virtual void toFile (HighFive::File &file, const std::string &) const =0
 
virtual ~ObservableBase ()=default
 

Public Attributes

TMatrix< Tensor< Scalar, 1, 1, Symmetry, false > > data
 
TMatrix< ObsScalarobs
 
- Public Attributes inherited from Xped::ObservableBase
std::string name = "Op"
 
bool MEASURE = true
 

Member Typedef Documentation

◆ ObsScalar

template<typename Scalar , typename Symmetry , bool HERMITIAN = true>
using Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >::ObsScalar = std::conditional_t<HERMITIAN, typename ScalarTraits<Scalar>::Real, typename ScalarTraits<Scalar>::Comp>

Constructor & Destructor Documentation

◆ OneSiteObservable()

template<typename Scalar , typename Symmetry , bool HERMITIAN = true>
Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >::OneSiteObservable ( const Pattern pat,
const std::string &  name_in = "" 
)
inlineexplicit

Member Function Documentation

◆ getResString()

template<typename Scalar , typename Symmetry , bool HERMITIAN = true>
virtual std::string Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >::getResString ( const std::string &  offset) const
inlineoverridevirtual

Implements Xped::ObservableBase.

Here is the call graph for this function:

◆ shiftQN()

template<typename Scalar , typename Symmetry , bool HERMITIAN = true>
OneSiteObservable< Scalar, Symmetry, HERMITIAN > Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >::shiftQN ( const TMatrix< typename Symmetry::qType > &  charges)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toFile()

template<typename Scalar , typename Symmetry , bool HERMITIAN = true>
virtual void Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >::toFile ( HighFive::File &  file,
const std::string &  root = "/" 
) const
inlineoverridevirtual

Implements Xped::ObservableBase.

Here is the call graph for this function:

Member Data Documentation

◆ data

template<typename Scalar , typename Symmetry , bool HERMITIAN = true>
TMatrix<Tensor<Scalar, 1, 1, Symmetry, false> > Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >::data

◆ obs

template<typename Scalar , typename Symmetry , bool HERMITIAN = true>
TMatrix<ObsScalar> Xped::OneSiteObservable< Scalar, Symmetry, HERMITIAN >::obs

The documentation for this struct was generated from the following files: