From ed5993c0594f2d2c815ef10efb400ab6e134fd48 Mon Sep 17 00:00:00 2001 From: bartandrews Date: Wed, 24 Apr 2024 08:46:35 -0700 Subject: [PATCH] add populate keys label --- python/ffsim/operators/fermi_hubbard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ffsim/operators/fermi_hubbard.py b/python/ffsim/operators/fermi_hubbard.py index d3f23b0bc..00a107dc9 100644 --- a/python/ffsim/operators/fermi_hubbard.py +++ b/python/ffsim/operators/fermi_hubbard.py @@ -65,6 +65,7 @@ def fermi_hubbard_1d( coeffs[(cre_a((p + 1) % norb), des_a(p))] = 0 coeffs[(cre_b((p + 1) % norb), des_b(p))] = 0 + # populate keys for p in range(norb - 1 + periodic): coeffs[(cre_a(p), des_a((p + 1) % norb))] -= tunneling coeffs[(cre_b(p), des_b((p + 1) % norb))] -= tunneling