06: another np.dot -> @

This commit is contained in:
2022-10-18 18:18:49 +02:00
parent 2ac0253aab
commit 6feb497e61

View File

@ -257,7 +257,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 100,
"id": "6e4a6d63",
"metadata": {
"deletable": false,
@ -288,7 +288,7 @@
" unvisited = deque([seed])\n",
" while unvisited:\n",
" site = unvisited.pop()\n",
" s_i_n = -np.dot(state[site], nhat)\n",
" s_i_n = -state[site]@nhat\n",
" for nbr in neighboring_sites(site,w):\n",
" s_j_n = state[nbr]@nhat\n",
" p_add = 1 - np.exp(-2*beta*s_i_n*s_j_n)\n",
@ -308,7 +308,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 101,
"id": "3f810041",
"metadata": {
"deletable": false,
@ -339,7 +339,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 102,
"id": "bde560e4",
"metadata": {
"deletable": false,