Skip to content

Commit

Permalink
Use %tensorflow_version and remove cirq install since tfq will instal…
Browse files Browse the repository at this point in the history
…l cirq. (tensorflow#125)
  • Loading branch information
yashk2810 authored Feb 28, 2020
1 parent 63eee39 commit d43f6a3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 65 deletions.
18 changes: 4 additions & 14 deletions docs/tutorials/barren_plateaus.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,6 @@
"Download and install the required packages:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {},
"colab_type": "code",
"id": "fAVlg7rxkvUw"
},
"outputs": [],
"source": [
"!pip install cirq==0.7.0"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -112,7 +99,10 @@
},
"outputs": [],
"source": [
"!pip install --upgrade tensorflow==2.1.0"
"try:\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
]
},
{
Expand Down
18 changes: 4 additions & 14 deletions docs/tutorials/gradients.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,6 @@
"Download and install the required packages:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {},
"colab_type": "code",
"id": "fAVlg7rxkvUw"
},
"outputs": [],
"source": [
"!pip install cirq==0.7.0"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -114,7 +101,10 @@
},
"outputs": [],
"source": [
"!pip install --upgrade tensorflow==2.1.0"
"try:\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
]
},
{
Expand Down
17 changes: 8 additions & 9 deletions docs/tutorials/hello_many_worlds.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,23 @@
"metadata": {
"colab": {},
"colab_type": "code",
"id": "fAVlg7rxkvUw"
"id": "TorxE5tnkvb2"
},
"outputs": [],
"source": [
"!pip install cirq==0.7.0 graphviz pydot"
"try:\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {},
"colab_type": "code",
"id": "TorxE5tnkvb2"
},
"metadata": {},
"outputs": [],
"source": [
"!pip install --upgrade tensorflow==2.1.0"
"!pip install graphviz pydot"
]
},
{
Expand Down Expand Up @@ -1045,7 +1044,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3rc1"
"version": "3.7.5rc1"
}
},
"nbformat": 4,
Expand Down
18 changes: 4 additions & 14 deletions docs/tutorials/mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,6 @@
"Download and install the required packages:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {},
"colab_type": "code",
"id": "fAVlg7rxkvUw"
},
"outputs": [],
"source": [
"!pip install cirq==0.7.0"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -112,7 +99,10 @@
},
"outputs": [],
"source": [
"!pip install --upgrade tensorflow==2.0.0"
"try:\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
]
},
{
Expand Down
18 changes: 4 additions & 14 deletions docs/tutorials/qcnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,6 @@
"Download and install the required packages:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {},
"colab_type": "code",
"id": "evObd2BXr5hs"
},
"outputs": [],
"source": [
"!pip install cirq==0.7.0"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -114,7 +101,10 @@
},
"outputs": [],
"source": [
"!pip install --upgrade tensorflow==2.1.0"
"try:\n",
" %tensorflow_version 2.x\n",
"except Exception:\n",
" pass"
]
},
{
Expand Down

0 comments on commit d43f6a3

Please sign in to comment.