VMPS++
|
This class is the type for local operators and defines the relevant operations: adjoint(), prod(), outerprod(),...
Symmetry | : A class providing all relevant functions and infos that are determined by the Symmetry. Click here for more information. |
Scalar | : double or complex<double> |
Definition at line 89 of file SiteOperatorQ.h.
#include <SiteOperatorQ.h>
Public Types | |
typedef Symmetry::qType | qType |
typedef MatrixType_ | MatrixType |
typedef MatrixType::Scalar | Scalar |
Public Member Functions | |
SiteOperatorQ () | |
SiteOperatorQ (const qType &Q_in, const Qbasis< Symmetry > &basis_in, std::string label_in="") | |
SiteOperatorQ (const qType &Q_in, const Qbasis< Symmetry > &basis_in, const base &data_in) | |
base & | data () |
const base & | data () const |
qType & | Q () |
const qType & | Q () const |
Qbasis< Symmetry > & | basis () |
const Qbasis< Symmetry > & | basis () const |
std::string & | label () |
const std::string & | label () const |
MatrixType | operator() (const qType &bra, const qType &ket) const |
MatrixType & | operator() (const qType &bra, const qType &ket) |
Scalar | operator() (const std::string &bra, const std::string &ket) const |
Scalar & | operator() (const std::string &bra, const std::string &ket) |
SiteOperatorQ< Symmetry, MatrixType_ > & | operator+= (const SiteOperatorQ< Symmetry, MatrixType_ > &Op) |
SiteOperatorQ< Symmetry, MatrixType_ > & | operator-= (const SiteOperatorQ< Symmetry, MatrixType_ > &Op) |
SiteOperatorQ< Symmetry, MatrixType_ > | adjoint () const |
SiteOperatorQ< Symmetry, MatrixType_ > | hermitian_conj () const |
void | setZero () |
void | setIdentity () |
void | setRandom () |
SiteOperatorQ< Symmetry, MatrixType_ > | diagonalize (const std::vector< qType > &blocks={}, Eigen::DecompositionOptions opt=Eigen::DecompositionOptions::EigenvaluesOnly) const |
MatrixType_::Scalar | norm () const |
template<typename Scalar > | |
SiteOperator< Symmetry, Scalar > | plain () const |
std::string | print (bool PRINT_BASIS=false) const |
template<typename OtherScalar > | |
SiteOperatorQ< Symmetry, Eigen::Matrix< OtherScalar, -1, -1 > > | cast () const |
Static Public Member Functions | |
static SiteOperatorQ< Symmetry, MatrixType_ > | prod (const SiteOperatorQ< Symmetry, MatrixType_ > &O1, const SiteOperatorQ< Symmetry, MatrixType_ > &O2, const qType &target) |
static SiteOperatorQ< Symmetry, MatrixType_ > | outerprod (const SiteOperatorQ< Symmetry, MatrixType_ > &O1, const SiteOperatorQ< Symmetry, MatrixType_ > &O2, const qType &target) |
static SiteOperatorQ< Symmetry, MatrixType_ > | outerprod (const SiteOperatorQ< Symmetry, MatrixType_ > &O1, const SiteOperatorQ< Symmetry, MatrixType_ > &O2) |
Private Types | |
typedef Eigen::Index | Index |
typedef Biped< Symmetry, MatrixType_ > | base |
Private Attributes | |
base | data_ |
qType | Q_ |
Qbasis< Symmetry > | basis_ |
std::string | label_ ="" |
|
private |
Definition at line 93 of file SiteOperatorQ.h.
|
private |
Definition at line 92 of file SiteOperatorQ.h.
typedef MatrixType_ SiteOperatorQ< Symmetry, MatrixType_ >::MatrixType |
Definition at line 97 of file SiteOperatorQ.h.
typedef Symmetry::qType SiteOperatorQ< Symmetry, MatrixType_ >::qType |
Definition at line 96 of file SiteOperatorQ.h.
typedef MatrixType::Scalar SiteOperatorQ< Symmetry, MatrixType_ >::Scalar |
Definition at line 98 of file SiteOperatorQ.h.
|
inline |
Does nothing.
Definition at line 101 of file SiteOperatorQ.h.
|
inline |
Definition at line 103 of file SiteOperatorQ.h.
|
inline |
Definition at line 107 of file SiteOperatorQ.h.
SiteOperatorQ< Symmetry, MatrixType_ > SiteOperatorQ< Symmetry, MatrixType_ >::adjoint |
Definition at line 291 of file SiteOperatorQ.h.
|
inline |
Definition at line 117 of file SiteOperatorQ.h.
|
inline |
Definition at line 118 of file SiteOperatorQ.h.
|
inline |
Definition at line 163 of file SiteOperatorQ.h.
|
inline |
Definition at line 111 of file SiteOperatorQ.h.
|
inline |
Definition at line 112 of file SiteOperatorQ.h.
SiteOperatorQ< Symmetry, MatrixType_ > SiteOperatorQ< Symmetry, MatrixType_ >::diagonalize | ( | const std::vector< qType > & | blocks = {} , |
Eigen::DecompositionOptions | opt = Eigen::DecompositionOptions::EigenvaluesOnly |
||
) | const |
Definition at line 264 of file SiteOperatorQ.h.
SiteOperatorQ< Symmetry, MatrixType_ > SiteOperatorQ< Symmetry, MatrixType_ >::hermitian_conj |
Definition at line 308 of file SiteOperatorQ.h.
|
inline |
Definition at line 120 of file SiteOperatorQ.h.
|
inline |
Definition at line 121 of file SiteOperatorQ.h.
MatrixType_::Scalar SiteOperatorQ< Symmetry, MatrixType_ >::norm |
Definition at line 283 of file SiteOperatorQ.h.
MatrixType_ & SiteOperatorQ< Symmetry, MatrixType_ >::operator() | ( | const qType & | bra, |
const qType & | ket | ||
) |
Definition at line 183 of file SiteOperatorQ.h.
MatrixType_ SiteOperatorQ< Symmetry, MatrixType_ >::operator() | ( | const qType & | bra, |
const qType & | ket | ||
) | const |
Definition at line 200 of file SiteOperatorQ.h.
MatrixType_::Scalar & SiteOperatorQ< Symmetry, MatrixType_ >::operator() | ( | const std::string & | bra, |
const std::string & | ket | ||
) |
Definition at line 210 of file SiteOperatorQ.h.
MatrixType_::Scalar SiteOperatorQ< Symmetry, MatrixType_ >::operator() | ( | const std::string & | bra, |
const std::string & | ket | ||
) | const |
Definition at line 250 of file SiteOperatorQ.h.
SiteOperatorQ< Symmetry, MatrixType_ > & SiteOperatorQ< Symmetry, MatrixType_ >::operator+= | ( | const SiteOperatorQ< Symmetry, MatrixType_ > & | Op | ) |
Definition at line 554 of file SiteOperatorQ.h.
SiteOperatorQ< Symmetry, MatrixType_ > & SiteOperatorQ< Symmetry, MatrixType_ >::operator-= | ( | const SiteOperatorQ< Symmetry, MatrixType_ > & | Op | ) |
Definition at line 561 of file SiteOperatorQ.h.
|
inlinestatic |
Definition at line 142 of file SiteOperatorQ.h.
|
static |
Definition at line 496 of file SiteOperatorQ.h.
SiteOperator< Symmetry, Scalar > SiteOperatorQ< Symmetry, MatrixType_ >::plain |
Definition at line 325 of file SiteOperatorQ.h.
std::string SiteOperatorQ< Symmetry, MatrixType_ >::print | ( | bool | PRINT_BASIS = false | ) | const |
Prints the operator.
Definition at line 568 of file SiteOperatorQ.h.
|
static |
Definition at line 422 of file SiteOperatorQ.h.
|
inline |
Definition at line 114 of file SiteOperatorQ.h.
|
inline |
Definition at line 115 of file SiteOperatorQ.h.
void SiteOperatorQ< Symmetry, MatrixType_ >::setIdentity |
Definition at line 402 of file SiteOperatorQ.h.
void SiteOperatorQ< Symmetry, MatrixType_ >::setRandom |
Definition at line 412 of file SiteOperatorQ.h.
void SiteOperatorQ< Symmetry, MatrixType_ >::setZero |
Definition at line 392 of file SiteOperatorQ.h.
|
private |
Definition at line 177 of file SiteOperatorQ.h.
|
private |
Definition at line 175 of file SiteOperatorQ.h.
|
private |
Definition at line 179 of file SiteOperatorQ.h.
|
private |
Definition at line 176 of file SiteOperatorQ.h.