06: Comment on the minus in front of the inproduct

This commit is contained in:
2022-10-18 18:22:54 +02:00
parent c82d13536f
commit d83b125040

View File

@ -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",