VMPS++
Loading...
Searching...
No Matches
HubbardSU2xU1xZN.h
Go to the documentation of this file.
1#ifndef HUBBARDMODELSU2XU1XZN_H_
2#define HUBBARDMODELSU2XU1XZN_H_
3
4#include "symmetry/S1xS2.h"
5#include "symmetry/U1.h"
6#include "symmetry/SU2.h"
7#include "symmetry/ZN.h"
8#include "bases/FermionBase.h"
10//include "tensors/SiteOperatorQ.h"
11//include "tensors/SiteOperator.h"
12#include "Mpo.h"
13//include "DmrgExternal.h"
14//include "ParamHandler.h"
15#include "ParamReturner.h"
16#include "Geometry2D.h" // from TOOLS
17#include "HubbardSU2xU1.h"
18
19namespace VMPS
20{
22public Mpo<Sym::S1xS2<Sym::S1xS2<Sym::SU2<Sym::SpinSU2>,Sym::U1<Sym::ChargeU1> >,Sym::ZN<Sym::Momentum,YMOMENTUM>>>,
23public HubbardObservables<Sym::S1xS2<Sym::S1xS2<Sym::SU2<Sym::SpinSU2>,Sym::U1<Sym::ChargeU1> >,Sym::ZN<Sym::Momentum,YMOMENTUM>>>,
24public ParamReturner
25{
26public:
27
30 typedef Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic> MatrixType;
32
33//private:
34
35 typedef Eigen::Index Index;
37
38public:
39
42
43 HubbardSU2xU1xZN(Mpo<Symmetry> &Mpo_input, const vector<Param> &params)
44 :Mpo<Symmetry>(Mpo_input),
47 {
48 ParamHandler P(params,HubbardSU2xU1xZN::defaults);
49 size_t Lcell = P.size();
50 N_phys = 0;
51 for (size_t l=0; l<N_sites; ++l) N_phys += P.get<size_t>("Ly",l%Lcell);
52 this->precalc_TwoSiteData();
53 this->HERMITIAN = true;
54 this->HAMILTONIAN = true;
55 };
56
57 HubbardSU2xU1xZN (const size_t &L, const vector<Param> &params, const BC &boundary=BC::OPEN, const DMRG::VERBOSITY::OPTION &VERB=DMRG::VERBOSITY::OPTION::ON_EXIT);
59
60 static qarray<2> singlet (int N=0) {return qarray<2>{1,N};};
61 static constexpr MODEL_FAMILY FAMILY = HUBBARD;
62 static constexpr int spinfac = 1;
63
64 static const map<string,any> defaults;
65 static const map<string,any> sweep_defaults;
66};
67
68// V is standard next-nearest neighbour density interaction
69// Vz and Vxy are anisotropic isospin-isospin next-nearest neighbour interaction
70const map<string,any> HubbardSU2xU1xZN::defaults =
71{
72 {"t",1.}, {"tPrime",0.}, {"tRung",1.}, {"tPrimePrime",0.},
73 {"mu",0.}, {"t0",0.},
74 {"U",0.}, {"Uph",0.},
75 {"V",0.}, {"Vext",0.}, {"Vrung",0.},
76 {"Vz",0.}, {"Vzrung",0.}, {"Vxy",0.}, {"Vxyrung",0.},
77 {"J",0.}, {"Jperp",0.},
78 {"X",0.}, {"Xrung",0.},
79 {"REMOVE_DOUBLE",false}, {"REMOVE_EMPTY",false}, {"REMOVE_UP",false}, {"REMOVE_DN",false}, {"mfactor",1}, {"k",0},
80 {"maxPower",2ul}, {"CYLINDER",false}, {"Ly",1ul}
81};
82
83const map<string,any> HubbardSU2xU1xZN::sweep_defaults =
84{
85 {"max_alpha",100.}, {"min_alpha",1.}, {"lim_alpha",21ul}, {"eps_svd",1e-7},
86 {"Mincr_abs", 50ul}, {"Mincr_per", 4ul}, {"Mincr_rel", 1.1},
87 {"min_Nsv",0ul}, {"max_Nrich",-1},
88 {"max_halfsweeps",24ul}, {"min_halfsweeps",1ul},
89 {"Minit",2ul}, {"Qinit",2ul}, {"Mlimit",1000ul},
90 {"tol_eigval",1e-7}, {"tol_state",1e-6},
91 {"savePeriod",0ul}, {"CALC_S_ON_EXIT", true}, {"CONVTEST", DMRG::CONVTEST::VAR_2SITE}
92};
93
95HubbardSU2xU1xZN (const size_t &L, const vector<Param> &params, const BC &boundary, const DMRG::VERBOSITY::OPTION &VERB)
96:Mpo<Symmetry> (L, qarray<Symmetry::Nq>({1,0,0}), "", PROP::HERMITIAN, PROP::NON_UNITARY, boundary, VERB),
99{
100 ParamHandler P(params,defaults);
101 size_t Lcell = P.size();
102
103 for (size_t l=0; l<N_sites; ++l)
104 {
105 N_phys += P.get<size_t>("Ly",l%Lcell);
106 setLocBasis(F[l].get_basis().qloc(),l);
107 }
108
109 this->set_name("Hubbard");
110
112 std::vector<std::vector<std::string>> labellist;
113 HubbardSU2xU1::set_operators(F, P, pushlist, labellist, boundary);
114
115 this->construct_from_pushlist(pushlist, labellist, Lcell);
116 this->finalize(PROP::COMPRESS, P.get<size_t>("maxPower"));
117
118 this->precalc_TwoSiteData();
119}
120
121} // end namespace VMPS::models
122
123#endif
MODEL_FAMILY
Definition: DmrgTypedefs.h:96
@ HUBBARD
Definition: DmrgTypedefs.h:96
BC
Definition: DmrgTypedefs.h:161
std::enable_if< Dummy::IS_SPIN_SU2() and!Dummy::IS_CHARGE_SU2(), Mpo< Sym::S1xS2< Sym::S1xS2< Sym::SU2< Sym::SpinSU2 >, Sym::U1< Sym::ChargeU1 > >, Sym::ZN< Sym::Momentum, YMOMENTUM > >, double > >::type P(size_t locx1, size_t locx2, size_t locy1=0, size_t locy2=0) const
std::size_t N_phys
Definition: MpoTerms.h:400
std::size_t N_sites
Definition: MpoTerms.h:395
DMRG::VERBOSITY::OPTION VERB
Definition: MpoTerms.h:102
Definition: Mpo.h:40
Definition: U1.h:25
Definition: ZN.h:25
static const map< string, any > defaults
static const map< string, any > sweep_defaults
static void set_operators(const std::vector< FermionBase< Symmetry_ > > &F, const ParamHandler &P, PushType< SiteOperator< Symmetry_, double >, double > &pushlist, std::vector< std::vector< std::string > > &labellist, const BC boundary=BC::OPEN)
HubbardSU2xU1xZN(Mpo< Symmetry > &Mpo_input, const vector< Param > &params)
static qarray< 2 > singlet(int N=0)
static const map< string, any > sweep_defaults
static constexpr MODEL_FAMILY FAMILY
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixType
Sym::S1xS2< Sym::S1xS2< Sym::SU2< Sym::SpinSU2 >, Sym::U1< Sym::ChargeU1 > >, Sym::ZN< Sym::Momentum, YMOMENTUM > > Symmetry
static const map< string, any > defaults
static constexpr int spinfac
#define MAKE_TYPEDEFS(MODEL)
Definition: macros.h:4
const bool COMPRESS
Definition: DmrgTypedefs.h:499
const bool NON_UNITARY
Definition: DmrgTypedefs.h:495
const bool HERMITIAN
Definition: DmrgTypedefs.h:492
Definition: qarray.h:26