diff --git a/docs/tutorials/barren_plateaus.ipynb b/docs/tutorials/barren_plateaus.ipynb index 5c4b4ce8c..bbd5d5e9a 100644 --- a/docs/tutorials/barren_plateaus.ipynb +++ b/docs/tutorials/barren_plateaus.ipynb @@ -123,6 +123,21 @@ "!pip install tensorflow-quantum" ] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/docs/tutorials/gradients.ipynb b/docs/tutorials/gradients.ipynb index 4b7beebce..926cde38e 100644 --- a/docs/tutorials/gradients.ipynb +++ b/docs/tutorials/gradients.ipynb @@ -125,6 +125,21 @@ "!pip install tensorflow-quantum" ] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/docs/tutorials/hello_many_worlds.ipynb b/docs/tutorials/hello_many_worlds.ipynb index 4e2e55644..e7fdc7d91 100644 --- a/docs/tutorials/hello_many_worlds.ipynb +++ b/docs/tutorials/hello_many_worlds.ipynb @@ -123,6 +123,21 @@ "!pip install tensorflow-quantum" ] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/docs/tutorials/mnist.ipynb b/docs/tutorials/mnist.ipynb index f91c95fc3..aee01e359 100644 --- a/docs/tutorials/mnist.ipynb +++ b/docs/tutorials/mnist.ipynb @@ -123,6 +123,21 @@ "!pip install tensorflow-quantum" ] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/docs/tutorials/noise.ipynb b/docs/tutorials/noise.ipynb index a11e16f20..97f643b49 100644 --- a/docs/tutorials/noise.ipynb +++ b/docs/tutorials/noise.ipynb @@ -122,6 +122,21 @@ "execution_count": null, "outputs": [] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "code", "metadata": { @@ -787,4 +802,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/docs/tutorials/qcnn.ipynb b/docs/tutorials/qcnn.ipynb index 582224851..702f65fea 100644 --- a/docs/tutorials/qcnn.ipynb +++ b/docs/tutorials/qcnn.ipynb @@ -125,6 +125,21 @@ "!pip install tensorflow-quantum" ] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "markdown", "metadata": { diff --git a/docs/tutorials/quantum_data.ipynb b/docs/tutorials/quantum_data.ipynb index e9ee34706..94c38cbab 100644 --- a/docs/tutorials/quantum_data.ipynb +++ b/docs/tutorials/quantum_data.ipynb @@ -114,6 +114,21 @@ "!pip install tensorflow==2.4.1 tensorflow-quantum" ] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "code", "execution_count": 3, diff --git a/docs/tutorials/quantum_reinforcement_learning.ipynb b/docs/tutorials/quantum_reinforcement_learning.ipynb index 5ce39666b..aec1139dd 100644 --- a/docs/tutorials/quantum_reinforcement_learning.ipynb +++ b/docs/tutorials/quantum_reinforcement_learning.ipynb @@ -175,6 +175,21 @@ "Now import TensorFlow and the module dependencies:" ] }, + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/docs/tutorials/research_tools.ipynb b/docs/tutorials/research_tools.ipynb index 35ee52636..109ddcf94 100644 --- a/docs/tutorials/research_tools.ipynb +++ b/docs/tutorials/research_tools.ipynb @@ -86,7 +86,22 @@ "!pip install tensorflow==2.4.1 tensorflow-quantum tensorboard_plugin_profile==2.4.0" ] }, - { + { + "cell_type": "code", + "execution_count": 0, + "metadata": { + "colab": {}, + "colab_type": "code", + "id": "4Ql5PW-ACO0J" + }, + "outputs": [], + "source": [ + "# Update package resources to account for version changes.\n", + "import importlib, pkg_resources\n", + "importlib.reload(pkg_resources)" + ] + }, + { "cell_type": "code", "execution_count": null, "metadata": {