HΦ  3.2.0
SingleEx.c
Go to the documentation of this file.
1 /* HPhi - Quantum Lattice Model Simulator */
2 /* Copyright (C) 2015 The University of Tokyo */
3 
4 /* This program is free software: you can redistribute it and/or modify */
5 /* it under the terms of the GNU General Public License as published by */
6 /* the Free Software Foundation, either version 3 of the License, or */
7 /* (at your option) any later version. */
8 
9 /* This program is distributed in the hope that it will be useful, */
10 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
11 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
12 /* GNU General Public License for more details. */
13 
14 /* You should have received a copy of the GNU General Public License */
15 /* along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #include "bitcalc.h"
20 #include "SingleEx.h"
21 #include "SingleExHubbard.h"
31  struct BindStruct *X,
32  double complex *tmp_v0,
33  double complex *tmp_v1
34 ) {
35  int iret = 0;
36  //tmp_v0
37  if (X->Def.NSingleExcitationOperator == 0) return TRUE;
38 
39  switch (X->Def.iCalcModel) {
40  case HubbardGC:
41  iret = GetSingleExcitedStateHubbardGC(X, tmp_v0, tmp_v1);
42  break;
43 
44  case KondoGC:
45  case Hubbard:
46  case Kondo:
47  iret = GetSingleExcitedStateHubbard(X, tmp_v0, tmp_v1);
48  break;
49 
50  case Spin:
51  case SpinGC:
52  iret = FALSE;
53  break;
54 
55  default:
56  iret = FALSE;
57  break;
58  }/*switch (X->Def.iCalcModel)*/
59  return iret;
60 }/*int GetSingleExcitedState*/
unsigned int NSingleExcitationOperator
Number of single excitaion operator for spectrum.
Definition: struct.h:182
struct DefineList Def
Definision of system (Hamiltonian) etc.
Definition: struct.h:410
#define TRUE
Definition: global.h:26
Bind.
Definition: struct.h:409
int GetSingleExcitedStateHubbardGC(struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
Calculation of Single excited state for Hubbard Grand canonical system.
#define FALSE
Definition: global.h:25
int GetSingleExcitedStateHubbard(struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
Calculation of Single excited state for Hubbard canonical system.
struct EDMainCalStruct X
Definition: struct.h:432
int iCalcModel
Switch for model. 0:Hubbard, 1:Spin, 2:Kondo, 3:HubbardGC, 4:SpinGC, 5:KondoGC, 6:HubbardNConserved.
Definition: struct.h:198
int GetSingleExcitedState(struct BindStruct *X, double complex *tmp_v0, double complex *tmp_v1)
Calculation of single excited state Target System: Hubbard, Kondo.
Definition: SingleEx.c:30