ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
ietl Namespace Reference

Classes

struct  vectorspace_traits< SingleSiteVS< Matrix, SymmGroup > >
 

Functions

template<class Matrix , class SymmGroup , class Generator >
void generate (MPSTensor< Matrix, SymmGroup > &m, Generator g)
 
template<class Matrix , class SymmGroup >
void generate (MPSTensor< Matrix, SymmGroup > &m, MPSTensor< Matrix, SymmGroup > const &m2)
 
template<class Matrix , class SymmGroup >
void swap (MPSTensor< Matrix, SymmGroup > &x, MPSTensor< Matrix, SymmGroup > &y)
 
template<class Matrix , class SymmGroup >
MPSTensor< Matrix, SymmGroup >
::scalar_type 
dot (MPSTensor< Matrix, SymmGroup > const &x, MPSTensor< Matrix, SymmGroup > const &y)
 
template<class Matrix , class SymmGroup >
MPSTensor< Matrix, SymmGroup >
::real_type 
two_norm (MPSTensor< Matrix, SymmGroup > const &x)
 
template<class Matrix , class SymmGroup >
void mult (SiteProblem< Matrix, SymmGroup > const &H, MPSTensor< Matrix, SymmGroup > const &x, MPSTensor< Matrix, SymmGroup > &y)
 

Function Documentation

template<class Matrix , class SymmGroup >
MPSTensor<Matrix, SymmGroup>::scalar_type ietl::dot ( MPSTensor< Matrix, SymmGroup > const &  x,
MPSTensor< Matrix, SymmGroup > const &  y 
)

Definition at line 51 of file ietl_lanczos_solver.h.

52  {
53  return x.scalar_overlap(y);
54  }
scalar_type scalar_overlap(MPSTensor const &) const
Definition: mpstensor.hpp:356
template<class Matrix , class SymmGroup , class Generator >
void ietl::generate ( MPSTensor< Matrix, SymmGroup > &  m,
Generator  g 
)

Definition at line 34 of file ietl_lanczos_solver.h.

35  {
36  m.data().generate(g);
37  }
block_matrix< Matrix, SymmGroup > & data()
Definition: mpstensor.hpp:423
template<class Matrix , class SymmGroup >
void ietl::generate ( MPSTensor< Matrix, SymmGroup > &  m,
MPSTensor< Matrix, SymmGroup > const &  m2 
)

Definition at line 39 of file ietl_lanczos_solver.h.

40  {
41  m = m2;
42  }
template<class Matrix , class SymmGroup >
void ietl::mult ( SiteProblem< Matrix, SymmGroup > const &  H,
MPSTensor< Matrix, SymmGroup > const &  x,
MPSTensor< Matrix, SymmGroup > &  y 
)

Definition at line 108 of file ietl_lanczos_solver.h.

111  {
112  y = contraction::site_hamil2(x, H.left, H.right, H.mpo);
113  x.make_left_paired();
114  }
void make_left_paired() const
Definition: mpstensor.hpp:173
MPOTensor< Matrix, SymmGroup > const & mpo
static MPSTensor< Matrix, SymmGroup > site_hamil2(MPSTensor< Matrix, SymmGroup > ket_tensor, Boundary< OtherMatrix, SymmGroup > const &left, Boundary< OtherMatrix, SymmGroup > const &right, MPOTensor< Matrix, SymmGroup > const &mpo)
Definition: contractions.h:431
Boundary< typename storage::constrained< Matrix >::type, SymmGroup > const & left
Boundary< typename storage::constrained< Matrix >::type, SymmGroup > const & right
template<class Matrix , class SymmGroup >
void ietl::swap ( MPSTensor< Matrix, SymmGroup > &  x,
MPSTensor< Matrix, SymmGroup > &  y 
)

Definition at line 44 of file ietl_lanczos_solver.h.

45  {
46  x.swap_with(y);
47  }
void swap_with(MPSTensor &b)
Definition: mpstensor.hpp:511
template<class Matrix , class SymmGroup >
MPSTensor<Matrix, SymmGroup>::real_type ietl::two_norm ( MPSTensor< Matrix, SymmGroup > const &  x)

Definition at line 58 of file ietl_lanczos_solver.h.

59  {
60  return x.scalar_norm();
61  }
real_type scalar_norm() const
Definition: mpstensor.hpp:339