From 263c596027611d2f75c424760bb7eda7f91f0082 Mon Sep 17 00:00:00 2001 From: Antonio Manesco <am@antoniomanesco.org> Date: Fri, 16 Feb 2024 11:54:08 +0100 Subject: [PATCH] fix Bloch phase --- codes/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/utils.py b/codes/utils.py index c2b1f42..442437d 100644 --- a/codes/utils.py +++ b/codes/utils.py @@ -181,7 +181,7 @@ def model2hk(tb_model): ham = 0 for vector in tb_model.keys(): ham += tb_model[vector] * np.exp( - 1j * np.dot(k, np.array(vector, dtype=float)) + -1j * np.dot(k, np.array(vector, dtype=float)) ) return ham -- GitLab