示例#1
0
文件: argobj.py 项目: GiggleLiu/nrg
 def __init__(self,label='A',spinindex=0,site=0,T=0,*args,**kwargs):
     super(ARGobj_A,self).__init__(label)
     self.site=site
     self.T=T
     self.spinindex=spinindex if ndim(spinindex)==1 else [spinindex]
     for spin in self.spinindex:
         rop=rgop_cd(site,spin)
         self.requirements.append(RGRequirement(rop.label,tp='op',islist=True,beforetrunc=True,info={'kernel':rop}))
     self.time_dependant=False
示例#2
0
文件: argobj.py 项目: GiggleLiu/nrg
 def __init__(self,U,label='Sigma',site=0,nband=2,*args,**kwargs):
     self.U=U
     self.site=site
     self.nband=nband
     requirements=[]
     for spin in [0,1]:
         rop=rgop_cd(site,spin)
         rop3=rgop_c3(site,spin)
         requirements.append(RGRequirement(rop.label,tp='op',islist=True,beforetrunc=True,info={'kernel':rop}))
         requirements.append(RGRequirement(rop3.label,tp='op',islist=True,beforetrunc=True,info={'kernel':rop3}))
     self.time_dependant=False
     super(ARGobj_Sigma,self).__init__(label,requirements)
示例#3
0
 def __init__(self, label='A', spinindex=0, site=0, T=0, *args, **kwargs):
     super(ARGobj_A, self).__init__(label)
     self.site = site
     self.T = T
     self.spinindex = spinindex if ndim(spinindex) == 1 else [spinindex]
     for spin in self.spinindex:
         rop = rgop_cd(site, spin)
         self.requirements.append(
             RGRequirement(rop.label,
                           tp='op',
                           islist=True,
                           beforetrunc=True,
                           info={'kernel': rop}))
     self.time_dependant = False
示例#4
0
 def __init__(self, U, label='Sigma', site=0, nband=2, *args, **kwargs):
     self.U = U
     self.site = site
     self.nband = nband
     requirements = []
     for spin in [0, 1]:
         rop = rgop_cd(site, spin)
         rop3 = rgop_c3(site, spin)
         requirements.append(
             RGRequirement(rop.label,
                           tp='op',
                           islist=True,
                           beforetrunc=True,
                           info={'kernel': rop}))
         requirements.append(
             RGRequirement(rop3.label,
                           tp='op',
                           islist=True,
                           beforetrunc=True,
                           info={'kernel': rop3}))
     self.time_dependant = False
     super(ARGobj_Sigma, self).__init__(label, requirements)