Tomographer  v5.3
Tomographer C++ Framework Documentation
Tomographer::DenseDM::TSpace::ObservableValueCalculator< DMTypes_ > Class Template Reference

Calculate expectation value of an observable for each sample. More...

#include <tomographer/densedm/tspacefigofmerit.h>

+ Inheritance diagram for Tomographer::DenseDM::TSpace::ObservableValueCalculator< DMTypes_ >:
+ Collaboration diagram for Tomographer::DenseDM::TSpace::ObservableValueCalculator< DMTypes_ >:

Public Types

typedef DMTypes_ DMTypes
 
typedef DMTypes::MatrixType MatrixType
 
typedef DMTypes::MatrixTypeConstRef MatrixTypeConstRef
 
typedef DMTypes::VectorParamType VectorParamType
 
typedef DMTypes::VectorParamTypeConstRef VectorParamTypeConstRef
 
typedef DMTypes::RealScalar ValueType
 For ValueCalculator interface : value type.
 

Public Member Functions

 ObservableValueCalculator (DMTypes dmt, MatrixTypeConstRef A)
 Constructor directly accepting A as a hermitian matrix. More...
 
 ObservableValueCalculator (DMTypes dmt, VectorParamTypeConstRef A_x)
 Constructor directly accepting the X parameterization of A. More...
 
ValueType getValue (MatrixTypeConstRef T) const
 Calculate the expectation value of the observable for the state represented by T.
 
 ObservableValueCalculator ()
 Construct an invalid object – ONLY for use with Boost.serialization.
 

Detailed Description

template<typename DMTypes_>
class Tomographer::DenseDM::TSpace::ObservableValueCalculator< DMTypes_ >

Calculate expectation value of an observable for each sample.

Since
Since Tomographer 5.3, this class can be serialized with Boost.Serialization.

Definition at line 210 of file tspacefigofmerit.h.

Constructor & Destructor Documentation

§ ObservableValueCalculator() [1/2]

template<typename DMTypes_ >
Tomographer::DenseDM::TSpace::ObservableValueCalculator< DMTypes_ >::ObservableValueCalculator ( DMTypes  dmt,
MatrixTypeConstRef  A 
)
inline

Constructor directly accepting A as a hermitian matrix.

Definition at line 234 of file tspacefigofmerit.h.

§ ObservableValueCalculator() [2/2]

template<typename DMTypes_ >
Tomographer::DenseDM::TSpace::ObservableValueCalculator< DMTypes_ >::ObservableValueCalculator ( DMTypes  dmt,
VectorParamTypeConstRef  A_x 
)
inline

Constructor directly accepting the X parameterization of A.

Definition at line 241 of file tspacefigofmerit.h.


The documentation for this class was generated from the following file: