diff --git a/netsalt/non_abelian.py b/netsalt/non_abelian.py index fc4e371..2ee812f 100644 --- a/netsalt/non_abelian.py +++ b/netsalt/non_abelian.py @@ -117,9 +117,9 @@ def _ext(i): chi = graph.graph["ks"][ei] length = graph.graph["lengths"][ei] - w_perp = Ad(2.0 * length * chi).dot(proj_perp(chi)) - w_paral = abelian_scale * np.exp(2.0j * length * norm(chi)) * proj_paral(chi) - w = w_perp + w_paral - np.eye(3) + w_perp = (Ad(2.0 * length * chi) - np.eye(3)).dot(proj_perp(chi)) + w_paral = abelian_scale * (np.exp(2.0j * length * norm(chi)) - np.eye(3)) * proj_paral(chi) + w = w_perp + w_paral winv = linalg.inv(w)