Skip to content

Commit

Permalink
Fix bug for left Hamiltonain application
Browse files Browse the repository at this point in the history
  • Loading branch information
basilib committed Jul 25, 2024
1 parent d4adfbe commit c0f5bb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dyson/expressions/expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ def build_gf_moments(self, nmom, store_vectors=True, left=False):
u = apply_hamiltonian(u)

if left:
t = t.transpose(1, 2).conj()
t = t.transpose(0,2,1).conj()

return t


def build_gf_chebyshev_moments(self, nmom, store_vectors=True, left=False, scaling=None):
"""Build moments of the Green's function using Chebyshev polynomials.
Expand Down

0 comments on commit c0f5bb9

Please sign in to comment.