C++QEDCore  v2 Milestone 10
a framework for simulating open quantum dynamics – core
Types.h
Go to the documentation of this file.
1 // Copyright András Vukics 2006–2014. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt)
2 // -*- C++ -*-
4 #ifndef CPPQEDCORE_QUANTUMDATA_TYPES_H_INCLUDED
5 #define CPPQEDCORE_QUANTUMDATA_TYPES_H_INCLUDED
6 
7 #include "LazyDensityOperatorFwd.h"
8 
9 #include "BlitzArray.h"
10 
11 
12 namespace quantumdata {
13 
14 
15 namespace details { struct EmptyBase {}; }
16 
18 
22 template<int RANK, typename B=details::EmptyBase>
23 struct Types : B
24 // it's basically just a metafunction
25 {
26  typedef CArray< RANK> StateVectorLow;
27  typedef CArray<2*RANK> DensityOperatorLow;
28 };
29 
30 
31 } // quantumdata
32 
33 #endif // CPPQEDCORE_QUANTUMDATA_TYPES_H_INCLUDED
Basically only a metafunction defining types for higher-level constructs of arity RANK ...
Definition: Types.h:23
Comprises classes representing the state of composite quantum systems and providing various interface...
Definition: ArrayBase.h:16
blitz::Array< dcomp,RANK > CArray
A complex array of arbitrary arity.
Definition: BlitzArray.h:16
Defines template aliases for real and complex arrays.