Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image links #6085

Merged
merged 6 commits into from May 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
125 changes: 99 additions & 26 deletions docs/build/circuits.ipynb
Expand Up @@ -14,7 +14,10 @@
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "tUshu7YfcAAW"
"id": "tUshu7YfcAAW",
"vscode": {
"languageId": "python"
}
yinghui-hu marked this conversation as resolved.
Show resolved Hide resolved
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -66,7 +69,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "bd9529db1c0b"
"id": "bd9529db1c0b",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -97,7 +103,7 @@
"id": "77zB_UqkAwCR"
},
"source": [
"![Circuits and Moments](/cirq/images/CircuitMomentOperation.png)"
"![Circuits and Moments](https://github.com/quantumlib/Cirq/blob/master/docs/images/CircuitMomentOperation.png)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace (here and below) with a relative link, e.g., (../images/CircuitMomentOperation.png)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

]
},
{
Expand All @@ -115,7 +121,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "G30Zl1VwAwCU"
"id": "G30Zl1VwAwCU",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -138,7 +147,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "-X_LL4_nAwCa"
"id": "-X_LL4_nAwCa",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -164,7 +176,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "naO0-nS0AwCe"
"id": "naO0-nS0AwCe",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -190,7 +205,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "W7ToOyp9AwCi"
"id": "W7ToOyp9AwCi",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -230,7 +248,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "7xtjmYzKAwCn"
"id": "7xtjmYzKAwCn",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -254,7 +275,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "HO8WYyU9AwCq"
"id": "HO8WYyU9AwCq",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -276,7 +300,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "Q3qzMlQmAwCt"
"id": "Q3qzMlQmAwCt",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -318,7 +345,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "Hd5IGmQrAwCx"
"id": "Hd5IGmQrAwCx",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -348,7 +378,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "Yupv8gQOAwC0"
"id": "Yupv8gQOAwC0",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -389,7 +422,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "J3LTjH9-AwC5"
"id": "J3LTjH9-AwC5",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -426,7 +462,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "LmT3IKEEAwC9"
"id": "LmT3IKEEAwC9",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -449,12 +488,13 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "6633b1d21176"
},
"source": [
"![Insert Strategies](/cirq/images/InsertStrategy.png)"
"![Insert Strategies](https://github.com/quantumlib/Cirq/blob/master/docs/images/InsertStrategy.png)"
]
},
{
Expand All @@ -472,7 +512,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "kmt8hAfZAwDA"
"id": "kmt8hAfZAwDA",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -494,7 +537,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "LXs7ffVWAwDC"
"id": "LXs7ffVWAwDC",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -527,7 +573,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "dC6iBIqrAwDF"
"id": "dC6iBIqrAwDF",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -550,7 +599,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "z2csEbbyAwDI"
"id": "z2csEbbyAwDI",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -572,7 +624,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "hxczWjkMAwDL"
"id": "hxczWjkMAwDL",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -606,7 +661,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "b3772732f57b"
"id": "b3772732f57b",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -629,7 +687,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "3d80776e09fe"
"id": "3d80776e09fe",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -654,7 +715,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "62d50a44bdb3"
"id": "62d50a44bdb3",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -682,7 +746,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "1b06bfaddfdf"
"id": "1b06bfaddfdf",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -708,7 +775,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "4acf1a942b75"
"id": "4acf1a942b75",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand All @@ -733,7 +803,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "7a0b7fc127f2"
"id": "7a0b7fc127f2",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down
2 changes: 1 addition & 1 deletion docs/build/ecosystem.md
@@ -1,6 +1,6 @@
The following document provides an ecosystem overview of how the various tools compatible with Cirq can work together to enable quantum computing research.

![image alt text](/cirq/images/ecosystem.png )
![image alt text](https://github.com/quantumlib/Cirq/blob/master/docs/images/ecosystem.png)

* **Research Libraries and Tools:** Libraries and tools used for researching new quantum algorithms and designing and preparing experiments on quantum devices.

Expand Down
17 changes: 13 additions & 4 deletions docs/build/gates.ipynb
Expand Up @@ -14,7 +14,10 @@
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "KQa9t_gadIuR"
"id": "KQa9t_gadIuR",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -66,7 +69,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "bd9529db1c0b"
"id": "bd9529db1c0b",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -103,7 +109,7 @@
"source": [
"## Gates versus operations\n",
"\n",
"![Circuits and Moments](/cirq/images/moments.png)\n",
"![Circuits and Moments](https://github.com/quantumlib/Cirq/blob/master/docs/images/moments.png)\n",
"\n",
"The above example shows the first half of a quantum teleportation circuit,\n",
"found in many quantum computation textbooks. This example uses three different\n",
Expand All @@ -127,7 +133,10 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "psYGZcjUEF5V"
"id": "psYGZcjUEF5V",
"vscode": {
"languageId": "python"
}
},
"outputs": [],
"source": [
Expand Down
4 changes: 2 additions & 2 deletions docs/dev/notebooks.md
Expand Up @@ -21,7 +21,7 @@ We also expect a standard header to be included in all of our notebooks:

Example header:

![notebook header](/cirq/images/notebook_header.png)
![notebook header](https://github.com/quantumlib/Cirq/blob/master/docs/images/notebook_header.png)

You can use [our template notebook](https://storage.googleapis.com/tensorflow_docs/Cirq/docs/_template.ipynb) to get started - please remember to change the `$$$REPLACE_WITH_TITLE$$$`, `$$$REPLACE_WITH_SITE_URL$$$` and `$$$REPLACE_WITH_NOTEBOOK_PATH$$$` placeholders.

Expand All @@ -46,7 +46,7 @@ See the [`dev_tools/notebooks`](https://github.com/quantumlib/Cirq/tree/master/d
In order to speed up the execution of these tests an auxiliary file may be supplied which performs substitutions on the notebook to make it faster (for example it is often useful
to reduce the number of repetitions in sampling from a simulator).

Tod do this, for a notebook file notebook.ipynb, one can supply a file notebook.tst which contains the substitutes.
To do this, for a notebook file notebook.ipynb, one can supply a file notebook.tst which contains the substitutes.
The substitutions are provide in the form `pattern->replacement` where the pattern is what is matched and will be replaced.
While the pattern is compiled, it is considered best practice to not sure complicated regular expressions.
Lines in this file that do not have `->` are ignored. Note that because the pattern is
Expand Down