9template <
typename TL,
typename TR,
typename TC>
25template <
typename Scalar_,
typename Symmetry_>
32 typedef typename Symmetry::qType
qType;
39 constexpr static std::size_t
Nq = Symmetry::Nq;
49 const qType& Qtarget_in = Symmetry::qvacuum(),
50 std::size_t Mmax_in = 10,
51 std::size_t Nqmax_in = 10,
52 std::size_t seed = 0ul);
98 std::vector<Qbasis<Symmetry, 1>>
qaux;
99 std::vector<Qbasis<Symmetry, 1>>
qloc;
106 std::vector<std::map<qType, VectorType>>
SVspec;
111 std::vector<RealScalar>
S;
115 void gen_auxBasis(
const std::size_t Mmax,
const std::size_t Nqmax);
131#ifndef XPED_COMPILED_LIB
std::size_t N_sites
Definition: Mps.hpp:93
void resizeArrays()
Definition: Mps.cpp:45
std::vector< qType > Qtarget
Definition: Mps.hpp:94
std::vector< std::map< qType, VectorType > > SVspec
Definition: Mps.hpp:106
std::vector< Qbasis< Symmetry, 1 > > qaux
Definition: Mps.hpp:98
static constexpr std::size_t Nq
Definition: Mps.hpp:39
GaugeTriple< std::vector< ALType >, std::vector< ARType >, std::vector< ALType > > A
Definition: Mps.hpp:96
std::vector< Qbasis< Symmetry, 1 > > qloc
Definition: Mps.hpp:99
Symmetry::qType qType
Definition: Mps.hpp:32
Qbasis< Symmetry, 1 > locBasis(std::size_t l) const
Definition: Mps.hpp:78
Symmetry_ Symmetry
Definition: Mps.hpp:29
Mps()
Definition: Mps.hpp:41
void leftSweepStep(const std::size_t loc, const DMRG::BROOM &broom, const bool DISCARD_U=false)
Definition: Mps.cpp:182
RealScalar eps_svd
Definition: Mps.hpp:105
Tensor< Scalar, 1, 2, Symmetry > ARType
Definition: Mps.hpp:37
ScalarTraits< Scalar >::Real RealScalar
Definition: Mps.hpp:31
ALType::MatrixType MatrixType
Definition: Mps.hpp:35
void gen_maxBasis()
Definition: Mps.cpp:57
std::vector< Qbasis< Symmetry, 1 > > maxBasis
Definition: Mps.hpp:102
std::vector< RealScalar > truncWeight
Definition: Mps.hpp:108
ALType::VectorType VectorType
Definition: Mps.hpp:36
ALType::TensorType TensorType
Definition: Mps.hpp:34
Tensor< Scalar, 2, 1, Symmetry > ALType
Definition: Mps.hpp:33
std::size_t length() const
Definition: Mps.hpp:66
Qbasis< Symmetry, 1 > outBasis(std::size_t l) const
Definition: Mps.hpp:73
Qbasis< Symmetry, 1 > inBasis(std::size_t l) const
Definition: Mps.hpp:68
Scalar_ Scalar
Definition: Mps.hpp:30
Qbasis< Symmetry, 1 > auxBasis(std::size_t l) const
Definition: Mps.hpp:83
std::vector< RealScalar > S
Definition: Mps.hpp:111
void gen_auxBasis(const std::size_t Mmax, const std::size_t Nqmax)
Definition: Mps.cpp:80
std::size_t min_Nsv
Definition: Mps.hpp:104
std::size_t max_Nsv
Definition: Mps.hpp:104
void rightSweepStep(const std::size_t loc, const DMRG::BROOM &broom, const bool DISCARD_V=false)
Definition: Mps.cpp:204
Definition: Qbasis.hpp:39
Definition: Tensor.hpp:40
BROOM
Definition: Mps.hpp:19
TL Al
Definition: Mps.hpp:12
TC Ac
Definition: Mps.hpp:14
TR Ar
Definition: Mps.hpp:13
Definition: ScalarTraits.hpp:10