06: Comment on the minus in front of the inproduct
This commit is contained in:
@ -289,6 +289,8 @@
|
|||||||
" cluster_size = 1\n",
|
" cluster_size = 1\n",
|
||||||
" while unvisited:\n",
|
" while unvisited:\n",
|
||||||
" site = unvisited.pop()\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",
|
" s_i_n = -state[site]@nhat\n",
|
||||||
" for nbr in neighboring_sites(site,w):\n",
|
" for nbr in neighboring_sites(site,w):\n",
|
||||||
" s_j_n = state[nbr]@nhat\n",
|
" s_j_n = state[nbr]@nhat\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user