diff --git a/dyson/expressions/expression.py b/dyson/expressions/expression.py index 9b05f3f..897368d 100644 --- a/dyson/expressions/expression.py +++ b/dyson/expressions/expression.py @@ -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.