From d83b1250406aa5ebb582ec241a083db90ecf2647 Mon Sep 17 00:00:00 2001 From: Kees van Kempen Date: Tue, 18 Oct 2022 18:22:54 +0200 Subject: [PATCH] 06: Comment on the minus in front of the inproduct --- Exercise sheet 6/exercise_sheet_06.ipynb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Exercise sheet 6/exercise_sheet_06.ipynb b/Exercise sheet 6/exercise_sheet_06.ipynb index 738ac6c..d04ff24 100644 --- a/Exercise sheet 6/exercise_sheet_06.ipynb +++ b/Exercise sheet 6/exercise_sheet_06.ipynb @@ -289,6 +289,8 @@ " cluster_size = 1\n", " while unvisited:\n", " site = unvisited.pop()\n", + " # As the site is already added to the queue, it has already been flipped\n", + " # so we need to take a minus into account.\n", " s_i_n = -state[site]@nhat\n", " for nbr in neighboring_sites(site,w):\n", " s_j_n = state[nbr]@nhat\n",