Skip to content

Commit feb46ef

Browse files
Docs update triggered by deployment on head branch main, commit f370fe2.
1 parent 8ab1a87 commit feb46ef

20 files changed

Lines changed: 52 additions & 58 deletions

latest/applications/python/adapt_qaoa.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ <h1>ADAPT-QAOA algorithm<a class="headerlink" href="#ADAPT-QAOA-algorithm" title
11831183
parameter</p>
11841184
<p>3- Optimize all parameters currently in the Ansatz <span class="math notranslate nohighlight">\(\beta_m, \gamma_m = 1, 2, ...k\)</span> such that <span class="math notranslate nohighlight">\(\braket{\psi (k)|H_C|\psi(k)}\)</span> is minimized, and return to the second step.</p>
11851185
<p>Below is a schematic representation of the ADAPT-QAOA algorithm explained above.</p>
1186-
<div><p><img alt="0faf385b160746cfb79914740de0a518" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
1186+
<div><p><img alt="20654fa73462425eaa880096bc8dd772" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
11871187
</div><div class="nbinput nblast docutils container">
11881188
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[15]:
11891189
</pre></div>

latest/applications/python/adapt_qaoa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ explained above.
21222122

21232123
<div>
21242124

2125-
![0faf385b160746cfb79914740de0a518](../../_images/adapt-qaoa.png){.no-scaled-link
2125+
![20654fa73462425eaa880096bc8dd772](../../_images/adapt-qaoa.png){.no-scaled-link
21262126
style="width: 1000px;"}
21272127

21282128
</div>

latest/applications/python/adapt_vqe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ <h1>ADAPT-VQE algorithm<a class="headerlink" href="#ADAPT-VQE-algorithm" title="
11801180
<p>7- Perform a VQE experiment to re-optimize all parameters in the ansatz.</p>
11811181
<p>8- go to step 4</p>
11821182
<p>Below is a Schematic depiction of the ADAPT-VQE algorithm</p>
1183-
<div><p><img alt="4f9322f5ddf545b98b024e085a57579b" class="no-scaled-link" src="../../_images/adapt-vqe.png" style="width: 800px;" /></p>
1183+
<div><p><img alt="8127be64d934457281d1854f24cf57f3" class="no-scaled-link" src="../../_images/adapt-vqe.png" style="width: 800px;" /></p>
11841184
</div><div class="nbinput docutils container">
11851185
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[1]:
11861186
</pre></div>

latest/applications/python/adapt_vqe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ Below is a Schematic depiction of the ADAPT-VQE algorithm
20902090

20912091
<div>
20922092

2093-
![4f9322f5ddf545b98b024e085a57579b](../../_images/adapt-vqe.png){.no-scaled-link
2093+
![8127be64d934457281d1854f24cf57f3](../../_images/adapt-vqe.png){.no-scaled-link
20942094
style="width: 800px;"}
20952095

20962096
</div>

latest/applications/python/deutsch_algorithm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
12401240
</section>
12411241
<section id="Quantum-oracles">
12421242
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
1243-
<p><img alt="cd6bb454b8ce46c2824f298677b51ea9" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
1243+
<p><img alt="c171bf1b1bc04efe974b75b88f950d41" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
12441244
<p>Suppose we have <span class="math notranslate nohighlight">\(f(x): \{0,1\} \longrightarrow \{0,1\}\)</span>. We can compute this function on a quantum computer using oracles which we treat as black box functions that yield the output with an appropriate sequence of logical gates.</p>
12451245
<p>Above you see an oracle represented as <span class="math notranslate nohighlight">\(U_f\)</span> which allows us to transform the state <span class="math notranslate nohighlight">\(\ket{x}\ket{y}\)</span> into:</p>
12461246
<div class="math notranslate nohighlight">
@@ -1288,7 +1288,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
12881288
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
12891289
<p>Our aim is to find out if <span class="math notranslate nohighlight">\(f: \{0,1\} \longrightarrow \{0,1\}\)</span> is a constant or a balanced function? If constant, <span class="math notranslate nohighlight">\(f(0) = f(1)\)</span>, and if balanced, <span class="math notranslate nohighlight">\(f(0) \neq f(1)\)</span>.</p>
12901290
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
1291-
<p><img alt="82f15d2ef8504c92b12cb1c64991351d" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
1291+
<p><img alt="0362a631380b465995395f40dab88e0c" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
12921292
<div class="math notranslate nohighlight">
12931293
\[\ket{\psi_0} = \ket{01}
12941294
\tag{1}\]</div>

latest/applications/python/deutsch_algorithm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,7 @@ number, the result is 0 otherwise 1.
21712171
::: {#Quantum-oracles .section}
21722172
## Quantum oracles[](#Quantum-oracles "Permalink to this heading"){.headerlink}
21732173

2174-
![cd6bb454b8ce46c2824f298677b51ea9](../../_images/oracle.png){.no-scaled-link
2174+
![c171bf1b1bc04efe974b75b88f950d41](../../_images/oracle.png){.no-scaled-link
21752175
style="width: 300px; height: 150px;"}
21762176

21772177
Suppose we have [\\(f(x): \\{0,1\\} \\longrightarrow \\{0,1\\}\\)]{.math
@@ -2277,7 +2277,7 @@ balanced function? If constant, [\\(f(0) = f(1)\\)]{.math .notranslate
22772277
We step through the circuit diagram below and follow the math after the
22782278
application of each gate.
22792279

2280-
![82f15d2ef8504c92b12cb1c64991351d](../../_images/deutsch.png){.no-scaled-link
2280+
![0362a631380b465995395f40dab88e0c](../../_images/deutsch.png){.no-scaled-link
22812281
style="width: 500px; height: 210px;"}
22822282

22832283
::: {.math .notranslate .nohighlight}

latest/applications/python/edge_detection.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ <h2>Image<a class="headerlink" href="#Image" title="Permalink to this heading">
12201220
<section id="Quantum-Probability-Image-Encoding-(QPIE):">
12211221
<h2>Quantum Probability Image Encoding (QPIE):<a class="headerlink" href="#Quantum-Probability-Image-Encoding-(QPIE):" title="Permalink to this heading"></a></h2>
12221222
<p>Lets take as an example a classical 2x2 image (4 pixels). We can label each pixel with its position</p>
1223-
<div><p><img alt="e04fdedf19524d9bb83b2db96953542f" class="no-scaled-link" src="../../_images/pixels-img.png" style="width: 200px;" /></p>
1223+
<div><p><img alt="2b0b8760265f4271967c8cc008fd7442" class="no-scaled-link" src="../../_images/pixels-img.png" style="width: 200px;" /></p>
12241224
</div><p>Each pixel will have its own color intensity represented along with its position label as an 8-bit black and white color. To convert the pixel intensity to probability amplitudes of a quantum state</p>
12251225
<div class="math notranslate nohighlight">
12261226
\[c_i = \frac{I_{yx}}{\sqrt(\sum I^2_{yx})}\]</div>

latest/applications/python/edge_detection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ each pixel with its position
21232123

21242124
<div>
21252125

2126-
![e04fdedf19524d9bb83b2db96953542f](../../_images/pixels-img.png){.no-scaled-link
2126+
![2b0b8760265f4271967c8cc008fd7442](../../_images/pixels-img.png){.no-scaled-link
21272127
style="width: 200px;"}
21282128

21292129
</div>

latest/applications/python/grovers.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ <h3>Good and Bad States<a class="headerlink" href="#Good-and-Bad-States" title="
12621262
<p>Let us now examine the geometric picture behind our current discussion. We’ll consider the ambient Hilbert space to be spanned by the standard basis vectors <span class="math notranslate nohighlight">\(|0\rangle, |1\rangle, \dots, |N-1\rangle\)</span>, where the full dimension is <span class="math notranslate nohighlight">\(N = 2^n\)</span>. Since the uniform superposition state <span class="math notranslate nohighlight">\(|\xi\rangle\)</span> can be expressed as a linear combination of the states <span class="math notranslate nohighlight">\(|G\rangle\)</span> and <span class="math notranslate nohighlight">\(|B\rangle\)</span> with real coefficients, all three states <span class="math notranslate nohighlight">\(|\xi\rangle, |G\rangle,\)</span> and <span class="math notranslate nohighlight">\(|B\rangle\)</span>
12631263
reside in a two-dimensional real subspace of the ambient Hilbert space, which we can visualize as a 2D plane as in the image below. Since, <span class="math notranslate nohighlight">\(|G\rangle\)</span> and <span class="math notranslate nohighlight">\(|B\rangle\)</span> are orthogonal, we can imagine them graphed as unit vectors in the positive <span class="math notranslate nohighlight">\(y\)</span> and positive <span class="math notranslate nohighlight">\(x\)</span> directions, respectively. From our previous expression, <span class="math notranslate nohighlight">\(\ket{\xi} = \sin(\theta) |G\rangle + \cos(\theta) |B\rangle,\)</span> we see that the state <span class="math notranslate nohighlight">\(|\xi\rangle\)</span> forms an angle <span class="math notranslate nohighlight">\(\theta\)</span> with
12641264
<span class="math notranslate nohighlight">\(|B\rangle\)</span>.</p>
1265-
<div style="text-align: center;"><p><img alt="e24238d4faba46cd8b83d5a37e8dfb62" src="../../_images/grovers-2D-plane.png" /></p>
1265+
<div style="text-align: center;"><p><img alt="9a8b1484722f48fdb73fe0cb93c59bfe" src="../../_images/grovers-2D-plane.png" /></p>
12661266
</div><p>Given that the number of marked states <span class="math notranslate nohighlight">\(t\)</span> is typically small compared to <span class="math notranslate nohighlight">\(N\)</span>, it follows that <span class="math notranslate nohighlight">\(\theta = \arcsin\left(\sqrt{\frac{t}{N}}\right)\)</span> is a small angle. This assumption is reasonable, as otherwise, a sufficient number of independent queries to the oracle would likely yield a solution through classical search methods.</p>
12671267
</section>
12681268
<section id="Step-2:-Oracle-application">
@@ -1377,9 +1377,9 @@ <h4>Completing Step 3<a class="headerlink" href="#Completing-Step-3" title="Perm
13771377
<div class="math notranslate nohighlight">
13781378
\[\mathcal{G} = r_\xi \circ r_B = H^{\otimes n} \big( 2|0^{\otimes n} \rangle \langle 0^{\otimes n}| - \text{Id} \big) H^{\otimes n} \mathcal{O}_f.\]</div>
13791379
<p>The circuit diagram below puts together steps 1 through 3:</p>
1380-
<div style="text-align: center;"><p><img alt="6a26b34d7ed34f538590bb2c80f809f6" src="../../_images/grovers-steps1-3.png" /></p>
1380+
<div style="text-align: center;"><p><img alt="65f00084cba54a66881f7a320a577303" src="../../_images/grovers-steps1-3.png" /></p>
13811381
</div><p>Running this circuit initializes <span class="math notranslate nohighlight">\(\ket{\xi}\)</span> and performs a rotation by <span class="math notranslate nohighlight">\(2\theta\)</span> (twice the angle between <span class="math notranslate nohighlight">\(|\xi\rangle\)</span> and <span class="math notranslate nohighlight">\(|B\rangle\)</span>) in the direction from <span class="math notranslate nohighlight">\(|B\rangle\)</span> to <span class="math notranslate nohighlight">\(|G\rangle\)</span>.</p>
1382-
<div style="text-align: center;"><p><img alt="4f400d23fee148ada1f8092e3142c1f9" src="../../_images/grovers-full-rotation.png" /></p>
1382+
<div style="text-align: center;"><p><img alt="ccaec4b37a7a4fbb95b83d6134ddafa0" src="../../_images/grovers-full-rotation.png" /></p>
13831383
</div><p>Let’s verify that the state resulting from one iteration of Grover’s algorithm brings us closer to the good state, <span class="math notranslate nohighlight">\(\ket{G}\)</span>. In particular, notice that the amplitudes of <code class="docutils literal notranslate"><span class="pre">1001</span></code> and <code class="docutils literal notranslate"><span class="pre">1111</span></code> in the resulting state have been amplified compared to the equal superposition of states.</p>
13841384
<div class="nbinput docutils container">
13851385
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[18]:

latest/applications/python/grovers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ can imagine them graphed as unit vectors in the positive [\\(y\\)]{.math
23152315
[\\(\|B\\rangle\\)]{.math .notranslate .nohighlight}.
23162316

23172317
::: {style="text-align: center;"}
2318-
![e24238d4faba46cd8b83d5a37e8dfb62](../../_images/grovers-2D-plane.png)
2318+
![9a8b1484722f48fdb73fe0cb93c59bfe](../../_images/grovers-2D-plane.png)
23192319
:::
23202320

23212321
Given that the number of marked states [\\(t\\)]{.math .notranslate
@@ -2530,7 +2530,7 @@ which we will denote by [\\(\\mathcal{G}\\)]{.math .notranslate
25302530
The circuit diagram below puts together steps 1 through 3:
25312531

25322532
::: {style="text-align: center;"}
2533-
![6a26b34d7ed34f538590bb2c80f809f6](../../_images/grovers-steps1-3.png)
2533+
![65f00084cba54a66881f7a320a577303](../../_images/grovers-steps1-3.png)
25342534
:::
25352535

25362536
Running this circuit initializes [\\(\\ket{\\xi}\\)]{.math .notranslate
@@ -2542,7 +2542,7 @@ from [\\(\|B\\rangle\\)]{.math .notranslate .nohighlight} to
25422542
[\\(\|G\\rangle\\)]{.math .notranslate .nohighlight}.
25432543

25442544
::: {style="text-align: center;"}
2545-
![4f400d23fee148ada1f8092e3142c1f9](../../_images/grovers-full-rotation.png)
2545+
![ccaec4b37a7a4fbb95b83d6134ddafa0](../../_images/grovers-full-rotation.png)
25462546
:::
25472547

25482548
Let's verify that the state resulting from one iteration of Grover's

0 commit comments

Comments
 (0)