ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
identity_mps.h File Reference
#include "dmrg/block_matrix/grouped_symmetry.h"

Go to the source code of this file.

Functions

template<class Matrix , class InSymm >
MPS< Matrix, typename
grouped_symmetry< InSymm >
::type > 
identity_dm_mps (std::size_t L, Index< InSymm > const &phys_psi, std::vector< Index< typename grouped_symmetry< InSymm >::type > > const &allowed)
 

Function Documentation

template<class Matrix , class InSymm >
MPS<Matrix, typename grouped_symmetry<InSymm>::type> identity_dm_mps ( std::size_t  L,
Index< InSymm > const &  phys_psi,
std::vector< Index< typename grouped_symmetry< InSymm >::type > > const &  allowed 
)

Definition at line 33 of file identity_mps.h.

35 {
37  t.set(0, 0, identity_matrix<Matrix>(phys_psi));
38 
39  MPO<Matrix, InSymm> mpo(L, t);
40  return mpo_to_smps_group(mpo, phys_psi, allowed);
41 }
MPS< Matrix, typename grouped_symmetry< InSymm >::type > mpo_to_smps_group(MPO< Matrix, InSymm > const &mpo, Index< InSymm > const &phys_i, std::vector< Index< typename grouped_symmetry< InSymm >::type > > const &allowed)
Definition: super_mpo.h:195
Definition: mpo.h:36