C++QEDCore  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics – core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
structure::LiouvilleanAveragedCommonRanked< RANK > Class Template Referenceabstract

Common functionality of Liouvillean & Averaged. More...

#include <LiouvilleanAveragedCommon.h>

+ Inheritance diagram for structure::LiouvilleanAveragedCommonRanked< RANK >:
+ Collaboration diagram for structure::LiouvilleanAveragedCommonRanked< RANK >:

Public Types

typedef boost::shared_ptr< const LiouvilleanAveragedCommonRankedPtr
 
typedef LiouvilleanAveragedCommon::DArray1D DArray1D
 
typedef quantumdata::LazyDensityOperator< RANK > LazyDensityOperator
 
- Public Types inherited from structure::LiouvilleanAveragedCommon
typedef boost::shared_ptr< const LiouvilleanAveragedCommonPtr
 
typedef DArray< 1 > DArray1D
 A 1D real array storing the quantum averages – even if they are complex, their real & imaginary parts must be stored separately as reals.
 

Public Member Functions

const DArray1D average (double t, const LazyDensityOperator &matrix) const
 Calculates quantum averages & checks post-conditions. More...
 
- Public Member Functions inherited from structure::LiouvilleanAveragedCommon
std::ostream & displayKey (std::ostream &o, size_t &i) const
 Displays a key (a.k.a. legend) More...
 
size_t nAvr () const
 Returns the number of calculated quantum averages. More...
 

Detailed Description

template<int RANK>
class structure::LiouvilleanAveragedCommonRanked< RANK >

Common functionality of Liouvillean & Averaged.

Template Parameters
RANKarity of the Hilbert space

Definition at line 85 of file LiouvilleanAveragedCommon.h.

Member Function Documentation

template<int RANK>
const DArray1D structure::LiouvilleanAveragedCommonRanked< RANK >::average ( double  t,
const LazyDensityOperator matrix 
) const
inline

Calculates quantum averages & checks post-conditions.

Warning
The elements of the returned array must have a linear dependence on matrix, in particular, they must be of the form $\Tr{\Ob_m\rho},$ where $\Ob_m$ is a set of quantum operators defined on the Hilbert space of the system.
Exceptions
AveragesNumberMismatchExceptionif postcondition 1. is not met
InfiniteDetectedExceptionif postcondition 2. is not met
Postcondition
1.: number of averages must equal LiouvilleanAveragedCommon::nAvr
2.: all quantum averages must be finite
Parameters
tone or more of the operators whose quantum average is calculated, might be time-dependent
matrixthe state of the quantum system

Definition at line 105 of file LiouvilleanAveragedCommon.h.


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