Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yoshimi committed Nov 11, 2024
1 parent a8f6434 commit bab66fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hwave/solver/uhfr.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,8 @@ def _calc_energy(self):
_green_list = self.green_list
Ene = {}
Ene["band"] = 0
def _calc_zero_temp_energy(self, green_list):

def _calc_zero_temp_energy(green_list):
"""Calculate band energy for zero temperature case.
Parameters
Expand Down Expand Up @@ -909,7 +910,7 @@ def _calc_zero_temp_energy(self, green_list):
energy += np.sum(eigenvalue[:occupied_number])
return energy

def _calc_log_terms(self, eigenvalue, mu):
def _calc_log_terms(eigenvalue, mu):
"""Calculate logarithmic terms in grand potential.
Parameters
Expand Down Expand Up @@ -942,7 +943,7 @@ def _calc_log_terms(self, eigenvalue, mu):
ln_Ene[idx] = -(value - mu) / self.T
return ln_Ene

def _calc_finite_temp_energy(self, green_list):
def _calc_finite_temp_energy(green_list):
"""Calculate band energy for finite temperature case.
Parameters
Expand Down

0 comments on commit bab66fb

Please sign in to comment.