Skip to content

Commit f2cd706

Browse files
authored
Fix image links (#6085)
* Use relative links to the image files * Update relative links that go up two levels
1 parent df3acbe commit f2cd706

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

docs/build/circuits.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"id": "77zB_UqkAwCR"
9898
},
9999
"source": [
100-
"![Circuits and Moments](/cirq/images/CircuitMomentOperation.png)"
100+
"![Circuits and Moments](../images/CircuitMomentOperation.png)"
101101
]
102102
},
103103
{
@@ -454,7 +454,7 @@
454454
"id": "6633b1d21176"
455455
},
456456
"source": [
457-
"![Insert Strategies](/cirq/images/InsertStrategy.png)"
457+
"![Insert Strategies](../images/InsertStrategy.png)"
458458
]
459459
},
460460
{

docs/build/ecosystem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The following document provides an ecosystem overview of how the various tools compatible with Cirq can work together to enable quantum computing research.
22

3-
![image alt text](/cirq/images/ecosystem.png )
3+
![image alt text](../images/ecosystem.png)
44

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

docs/build/gates.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"source": [
104104
"## Gates versus operations\n",
105105
"\n",
106-
"![Circuits and Moments](/cirq/images/moments.png)\n",
106+
"![Circuits and Moments](../images/moments.png)\n",
107107
"\n",
108108
"The above example shows the first half of a quantum teleportation circuit,\n",
109109
"found in many quantum computation textbooks. This example uses three different\n",

docs/dev/notebooks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ We also expect a standard header to be included in all of our notebooks:
2121

2222
Example header:
2323

24-
![notebook header](/cirq/images/notebook_header.png)
24+
![notebook header](../images/notebook_header.png)
2525

2626
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.
2727

@@ -46,7 +46,7 @@ See the [`dev_tools/notebooks`](https://github.com/quantumlib/Cirq/tree/master/d
4646
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
4747
to reduce the number of repetitions in sampling from a simulator).
4848

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

docs/experiments/quantum_walks.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
"looks something like this:\n",
324324
"\n",
325325
"\n",
326-
"<img src=\"/cirq/images/cycle.png\" style=\"width:550px;height:500px;\">\n",
326+
"<img src=\"../images/cycle.png\" style=\"width:550px;height:500px;\">\n",
327327
"\n",
328328
"\n",
329329
"Going back to our original idea of some position vector $\\lvert j\\rangle$, it is apparent that in order to \n",
@@ -476,7 +476,7 @@
476476
"\n",
477477
"2. Based on the state of the coin qubit after the flip, either perform the operation $|j\\rangle \\ \\rightarrow \\ |j \\ + \\ 1\\rangle$ or $|j\\rangle \\ \\rightarrow \\ |j \\ - \\ 1\\rangle$ on the register of qubits encoding the position vector of the walker on the graph. This will involve having two operations controlled by opposite states of the coin quibt, each representing a step forward or a step backward on the graph. Thus, our evolution operation will look something like this:\n",
478478
"\n",
479-
"<img src=\"/cirq/images/circ2.png\" style=\"width:400px;height:170px;margin-left:25%\">\n",
479+
"<img src=\"../images/circ2.png\" style=\"width:400px;height:170px;margin-left:25%\">\n",
480480
"\n",
481481
"\n",
482482
"If we construct our evolution operator in this fashion, the coin qubit is able to dictate whether the walker \n",

docs/hardware/pasqal/getting_started.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"id": "785bc8599470"
8888
},
8989
"source": [
90-
"<img src=\"/cirq/images/pasqal/Cirq_pasqal.png\" width=\"700\"/>\n",
90+
"<img src=\"../../images/pasqal/Cirq_pasqal.png\" width=\"700\"/>\n",
9191
"\n",
9292
"In this notebook, we show how to program a quantum circuit for Pasqal using cirq. The first step is to import cirq, and Pasqal custom classes. We use ``PasqalVirtualDevice`` to showcase how Cirq enforces Pasqal's devices' restrictions throughout the process."
9393
]
@@ -102,11 +102,11 @@
102102
"\n",
103103
"The QPU of Pasqal is made of neutral atoms controlled by lasers. Individual atoms are trapped at well-defined positions in 1, 2 or even 3D, as shown on the following plot ( [Nature 561, 79 (2018)](https://www.nature.com/articles/s41586-018-0450-2)).\n",
104104
"\n",
105-
"<img src=\"/cirq/images/pasqal/eiffel_tower.png\" width=\"500\"/>\n",
105+
"<img src=\"../../images/pasqal/eiffel_tower.png\" width=\"500\"/>\n",
106106
"\n",
107107
"We created a custom class in cirq, ThreeDQubit, that corresponds to a qubit placed in 3D space. Let us start by creating a register comprising $36=6\\times6$ qubits in 2D, regularly arranged on a square lattice. It corresponds to the following configuration (image taken from [Nature 561, 79 (2018)](https://www.nature.com/articles/s41586-018-0450-2))\n",
108108
"\n",
109-
"<img src=\"/cirq/images/pasqal/grid_atoms.png\" width=\"300\"/>"
109+
"<img src=\"../../images/pasqal/grid_atoms.png\" width=\"300\"/>"
110110
]
111111
},
112112
{
@@ -257,7 +257,7 @@
257257
"source": [
258258
"When the distance between the two qubits involved in the gate is greater than the control radius, as shown for example in the following plot, cirq will raise an error.\n",
259259
"\n",
260-
"<img src=\"/cirq/images/pasqal/r_radius.001.png\" width=\"300\"/><br>"
260+
"<img src=\"../../images/pasqal/r_radius.001.png\" width=\"300\"/><br>"
261261
]
262262
},
263263
{
@@ -291,7 +291,7 @@
291291
"\n",
292292
"More precisely, we will implement Grover's algorithm to search for the state $|10\\rangle$, which corresponds to the circuit:\n",
293293
"\n",
294-
"<img src=\"/cirq/images/pasqal/Grover_circuit.png\" width=\"750\"/><br>\n",
294+
"<img src=\"../../images/pasqal/Grover_circuit.png\" width=\"750\"/><br>\n",
295295
"\n",
296296
"Bear in mind that this is a naïve implementation that can be substantially optimized, particularly in the oracle and the usage of an ancilla, but that is beyond the scope of this tutorial.\n",
297297
"\n",

0 commit comments

Comments
 (0)