From c0f5bb99d970b5d01b464b405af3c7a4da195b79 Mon Sep 17 00:00:00 2001 From: Basil Ibrahim Date: Thu, 25 Jul 2024 13:53:02 +0100 Subject: [PATCH] Fix bug for left Hamiltonain application --- dyson/expressions/expression.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.