From 6d44adf3514f4571c82562c859195e97a4c0d465 Mon Sep 17 00:00:00 2001 From: leburgel Date: Thu, 23 Jun 2022 12:04:26 +0200 Subject: [PATCH] update docstring --- python/chapter3.ipynb | 4 +--- python/chapter3Solution.ipynb | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/python/chapter3.ipynb b/python/chapter3.ipynb index 8d39d7d..4a648d3 100644 --- a/python/chapter3.ipynb +++ b/python/chapter3.ipynb @@ -573,9 +573,7 @@ "\n", "def expValMpo(O, Ac, Fl, Fr):\n", " \"\"\"\n", - " Gives the MPO tensor corresponding to the partition function of the 2d \n", - " classical Ising model at a given temperature and coupling, obtained by\n", - " distributing the Boltzmann weights evenly over all vertices.\n", + " Gives the expectation value of a local operator O.\n", " \n", " Parameters\n", " ----------\n", diff --git a/python/chapter3Solution.ipynb b/python/chapter3Solution.ipynb index 6daa04f..a747a94 100644 --- a/python/chapter3Solution.ipynb +++ b/python/chapter3Solution.ipynb @@ -523,7 +523,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### 3.2 The two-dimensional classical Ising model\n", + "### 3.3 The two-dimensional classical Ising model\n", "\n", "Next we apply the VUMPS algorithm for MPOs to the two-dimensional classical Ising model. To this end, consider classical spins $s_i = \\pm 1$ placed on the sites of an infinite square lattice which interact according to the nearest-neighbor Hamiltonian\n", "\n", @@ -641,9 +641,7 @@ "\n", "def expValMpo(O, Ac, Fl, Fr):\n", " \"\"\"\n", - " Gives the MPO tensor corresponding to the partition function of the 2d \n", - " classical Ising model at a given temperature and coupling, obtained by\n", - " distributing the Boltzmann weights evenly over all vertices.\n", + " Gives the expectation value of a local operator O.\n", " \n", " Parameters\n", " ----------\n",