VMPS++
Loading...
Searching...
No Matches
PeierlsHubbardU1xZN.h
Go to the documentation of this file.
1#ifndef HUBBARDMODELU1XZN_H_COMPLEX
2#define HUBBARDMODELU1XZN_H_COMPLEX
3
4#include "symmetry/S1xS2.h"
5//#include "symmetry/U1.h"
6//#include "bases/FermionBase.h"
7//#include "models/HubbardObservables.h"
8//#include "Mpo.h"
9//#include "ParamReturner.h"
10//#include "Geometry2D.h" // from TOOLS
12
13#ifndef YMOMENTUM
14#define YMOMENTUM 6
15#endif
16
17namespace VMPS
18{
19class PeierlsHubbardU1xZN : public Mpo< Sym::S1xS2< Sym::U1<Sym::ChargeU1>, Sym::ZN<Sym::Momentum,YMOMENTUM> > ,complex<double> >,
20 public HubbardObservables< Sym::S1xS2<Sym::U1<Sym::ChargeU1>, Sym::ZN<Sym::Momentum,YMOMENTUM> >, complex<double> >,
21 public ParamReturner
22{
23public:
24
27 typedef Eigen::Matrix<complex<double>,Eigen::Dynamic,Eigen::Dynamic> MatrixType;
29 typedef Eigen::Index Index;
31
32public:
33
35
36 PeierlsHubbardU1xZN(Mpo<Symmetry,complex<double>> &Mpo_input, const vector<Param> &params)
37 :Mpo<Symmetry,complex<double>>(Mpo_input),
40 {
41 ParamHandler P(params,PeierlsHubbardU1xZN::defaults);
42 size_t Lcell = P.size();
43 N_phys = 0;
44 for (size_t l=0; l<N_sites; ++l) N_phys += P.get<size_t>("Ly",l%Lcell);
45 this->calc(P.get<size_t>("maxPower"));
46 this->precalc_TwoSiteData();
47 this->HERMITIAN = true;
48 this->HAMILTONIAN = true;
49 };
50
51 PeierlsHubbardU1xZN (const size_t &L, const vector<Param> &params, const BC &boundary=BC::OPEN, const DMRG::VERBOSITY::OPTION &VERB=DMRG::VERBOSITY::OPTION::ON_EXIT);
52
53 static qarray<1> singlet (int N=0) {return qarray<1>{N};};
54 static constexpr MODEL_FAMILY FAMILY = HUBBARD;
55 static constexpr int spinfac = 2;
56
57 static const map<string,any> defaults;
58 static const map<string,any> sweep_defaults;
59};
60
61// V is standard next-nearest neighbour density interaction
62// Vz and Vxy are anisotropic isospin-isospin next-nearest neighbour interaction
63const map<string,any> PeierlsHubbardU1xZN::defaults =
64{
65 {"t",1.+0.i}, {"tPrime",0.+0.i}, {"tRung",1.+0.i},
66 {"mu",0.}, {"t0",0.},
67 {"U",0.}, {"Uph",0.},
68 {"V",0.}, {"Vrung",0.},
69 {"Vxy",0.}, {"Vz",0.},
70 {"Bz",0.}, {"Bx",0.},
71 {"J",0.}, {"Jperp",0.}, {"J3site",0.},
72 {"X",0.}, {"Xperp",0.},
73 {"REMOVE_DOUBLE",false}, {"REMOVE_EMPTY",false}, {"REMOVE_UP",false}, {"REMOVE_DN",false}, {"mfactor",1}, {"k",0},
74 {"maxPower",2ul}, {"CYLINDER",false}, {"Ly",1ul}
75};
76
77const map<string,any> PeierlsHubbardU1xZN::sweep_defaults =
78{
79 {"max_alpha",100.}, {"min_alpha",1.}, {"lim_alpha",11ul}, {"eps_svd",1e-7},
80 {"Mincr_abs", 50ul}, {"Mincr_per", 2ul}, {"Mincr_rel", 1.1},
81 {"min_Nsv",0ul}, {"max_Nrich",-1},
82 {"max_halfsweeps",24ul}, {"min_halfsweeps",1ul},
83 {"Minit",2ul}, {"Qinit",2ul}, {"Mlimit",1000ul},
84 {"tol_eigval",1e-7}, {"tol_state",1e-6},
85 {"savePeriod",0ul}, {"CALC_S_ON_EXIT", true}, {"CONVTEST",DMRG::CONVTEST::VAR_2SITE}
86};
87
89PeierlsHubbardU1xZN (const size_t &L, const vector<Param> &params, const BC &boundary, const DMRG::VERBOSITY::OPTION &VERB)
90:Mpo<Symmetry,complex<double>> (L, Symmetry::qvacuum(), "", PROP::HERMITIAN, PROP::NON_UNITARY, boundary, VERB),
91 HubbardObservables(L,params,PeierlsHubbardU1xZN::defaults),
92 ParamReturner(PeierlsHubbardU1xZN::sweep_defaults)
93{
94 ParamHandler P(params,defaults);
95 size_t Lcell = P.size();
96
97 for (size_t l=0; l<N_sites; ++l)
98 {
99 N_phys += P.get<size_t>("Ly",l%Lcell);
100 setLocBasis(F[l].get_basis().qloc(),l);
101 }
102
103 this->set_name("Peierls-Hubbard");
104
105 PushType<SiteOperator<Symmetry,complex<double>>,complex<double>> pushlist;
106 std::vector<std::vector<std::string>> labellist;
107 PeierlsHubbardU1xU1::set_operators(F, P, pushlist, labellist, boundary);
108
109 this->construct_from_pushlist(pushlist, labellist, Lcell);
110 this->finalize(PROP::COMPRESS, P.get<size_t>("maxPower"));
111
112 this->precalc_TwoSiteData();
113}
114
115} // end namespace VMPS::models
116
117#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::U1< Sym::ChargeU1 >, Sym::ZN< Sym::Momentum, YMOMENTUM > >, complex< double > > >::type P(size_t locx1, size_t locx2, size_t locy1=0, size_t locy2=0) const
vector< FermionBase< Sym::S1xS2< Sym::U1< Sym::ChargeU1 >, Sym::ZN< Sym::Momentum, YMOMENTUM > > > > F
std::size_t N_phys
Definition: MpoTerms.h:400
void finalize(const bool COMPRESS=true, const std::size_t power=1, const double tolerance=::mynumeric_limits< double >::epsilon())
Definition: MpoTerms.h:1281
std::size_t N_sites
Definition: MpoTerms.h:395
void setLocBasis(const std::vector< std::vector< qType > > &q)
Definition: MpoTerms.h:715
DMRG::VERBOSITY::OPTION VERB
Definition: MpoTerms.h:102
void calc(const std::size_t power)
Definition: MpoTerms.h:1135
void set_name(const std::string &label_in)
Definition: MpoTerms.h:471
Definition: Mpo.h:40
void precalc_TwoSiteData(bool FORCE=false)
bool HAMILTONIAN
Definition: Mpo.h:160
bool HERMITIAN
Definition: Mpo.h:159
void construct_from_pushlist(const PushType< OperatorType, CouplScalar > &pushlist, const std::vector< std::vector< std::string > > &labellist, size_t Lcell)
Definition: ZN.h:25
static void set_operators(const std::vector< FermionBase< Symmetry_ > > &F, const ParamHandler &P, PushType< SiteOperator< Symmetry_, complex< double > >, complex< double > > &pushlist, std::vector< std::vector< std::string > > &labellist, const BC boundary=BC::OPEN)
Sym::S1xS2< Sym::U1< Sym::ChargeU1 >, Sym::ZN< Sym::Momentum, YMOMENTUM > > Symmetry
static qarray< 1 > singlet(int N=0)
Eigen::Matrix< complex< double >, Eigen::Dynamic, Eigen::Dynamic > MatrixType
static const map< string, any > defaults
static constexpr int spinfac
static const map< string, any > sweep_defaults
PeierlsHubbardU1xZN(Mpo< Symmetry, complex< double > > &Mpo_input, const vector< Param > &params)
static constexpr MODEL_FAMILY FAMILY
#define MAKE_TYPEDEFS(MODEL)
Definition: macros.h:4
const bool COMPRESS
Definition: DmrgTypedefs.h:499
Definition: qarray.h:26