Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-johnson committed Sep 10, 2024
1 parent 88dd955 commit 0740400
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/tutorials/02_qubit_hamiltonian.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@
"plt.plot(s_y, marker=\".\", linestyle=\"--\", markersize=10, label=\"y\")\n",
"plt.plot(s_z, marker=\".\", markersize=10, label=\"z\")\n",
"\n",
"plt.legend([r'$\\langle\\sigma^x_i\\rangle$', r'$\\langle\\sigma^y_i\\rangle$', r'$\\langle\\sigma^z_i\\rangle$'])\n",
"plt.legend(\n",
" [r\"$\\langle\\sigma^x_i\\rangle$\", r\"$\\langle\\sigma^y_i\\rangle$\", r\"$\\langle\\sigma^z_i\\rangle$\"]\n",
")\n",
"plt.xlabel(\"site, $i$\")\n",
"plt.ylabel(\"single-site magnetization\")"
]
Expand Down Expand Up @@ -451,8 +453,8 @@
")\n",
"plt.plot(np.arange(1, max_distance + 1), np.abs(c_z), marker=\".\", markersize=10, label=\"zz\")\n",
"\n",
"plt.legend([r'$C^x(\\ell)$', r'$C^y(\\ell)$', r'$C^z(\\ell)$'])\n",
"plt.xlabel(r'site, $\\ell$')\n",
"plt.legend([r\"$C^x(\\ell)$\", r\"$C^y(\\ell)$\", r\"$C^z(\\ell)$\"])\n",
"plt.xlabel(r\"site, $\\ell$\")\n",
"plt.ylabel(\"spin-spin correlators\")"
]
}
Expand Down

0 comments on commit 0740400

Please sign in to comment.