From 02fb18f62fc1740325f86f0866d8587493b294b0 Mon Sep 17 00:00:00 2001 From: Simon Kuberski Date: Mon, 2 Jan 2023 19:06:32 +0100 Subject: [PATCH] fix: corrected small bug in qtop_projection with several replica --- pyerrors/input/openQCD.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index 28e4eac9..7e07c522 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -929,7 +929,7 @@ def qtop_projection(qtop, target=0): proj_qtop = [] for n in qtop.deltas: - proj_qtop.append(np.array([1 if round(qtop.value + q) == target else 0 for q in qtop.deltas[n]])) + proj_qtop.append(np.array([1 if round(qtop.r_values[n] + q) == target else 0 for q in qtop.deltas[n]])) reto = Obs(proj_qtop, qtop.names, idl=[qtop.idl[name] for name in qtop.names]) reto.is_merged = qtop.is_merged