Skip to content

Commit 2e78236

Browse files
Docs preview for PR #4328.
1 parent 5d1923d commit 2e78236

25 files changed

Lines changed: 56 additions & 56 deletions

pr-4328/_sources/applications/python/divisive_clustering_coresets.ipynb.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651
"source": [
652652
"threshold_height = 1\n",
653653
"clusters = dendo.get_clusters_using_height(threshold_height)\n",
654-
"colors = [\"red\", \"blue\", \"green\", \"black\", \"purple\", \"orange\", \"yellow\"]\n",
654+
"colors = [\"red\", \"blue\", \"green\", \"black\", \"purple\", \"orange\", \"yellow\", \"cyan\", \"magenta\", \"brown\"]\n",
655655
"dendo.plot_dendrogram(\n",
656656
" plot_title=\"Dendrogram of Coreset using VQE\",\n",
657657
" colors=colors,\n",

pr-4328/applications/python/adapt_qaoa.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ <h1>ADAPT-QAOA algorithm<a class="headerlink" href="#ADAPT-QAOA-algorithm" title
11801180
parameter</p>
11811181
<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>
11821182
<p>Below is a schematic representation of the ADAPT-QAOA algorithm explained above.</p>
1183-
<div><p><img alt="dd2235b724c74424b5ed74dca4247542" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
1183+
<div><p><img alt="f4e3fc8001214892946d3aa0fe6d546d" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
11841184
</div><div class="nbinput nblast docutils container">
11851185
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[15]:
11861186
</pre></div>

pr-4328/applications/python/adapt_qaoa.md

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

21152115
<div>
21162116

2117-
![dd2235b724c74424b5ed74dca4247542](../../_images/adapt-qaoa.png){.no-scaled-link
2117+
![f4e3fc8001214892946d3aa0fe6d546d](../../_images/adapt-qaoa.png){.no-scaled-link
21182118
style="width: 1000px;"}
21192119

21202120
</div>

pr-4328/applications/python/adapt_vqe.html

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

pr-4328/applications/python/adapt_vqe.md

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

20832083
<div>
20842084

2085-
![c726d9b3f6154a9c897a0890db8de4ed](../../_images/adapt-vqe.png){.no-scaled-link
2085+
![e3d96b9be3094d33b2a722953c0c0a38](../../_images/adapt-vqe.png){.no-scaled-link
20862086
style="width: 800px;"}
20872087

20882088
</div>

pr-4328/applications/python/deutsch_algorithm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
12371237
</section>
12381238
<section id="Quantum-oracles">
12391239
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
1240-
<p><img alt="f847b7e9f88c4f249183145b31781522" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
1240+
<p><img alt="711ed9fd37664e06ad2e80b0f76ee811" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
12411241
<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>
12421242
<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>
12431243
<div class="math notranslate nohighlight">
@@ -1285,7 +1285,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
12851285
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
12861286
<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>
12871287
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
1288-
<p><img alt="0b2d2200c1f34dc09d324a4bc247bb52" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
1288+
<p><img alt="df6985f7b07143b6b51dfd97d5ec3093" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
12891289
<div class="math notranslate nohighlight">
12901290
\[\ket{\psi_0} = \ket{01}
12911291
\tag{1}\]</div>

pr-4328/applications/python/deutsch_algorithm.md

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

2166-
![f847b7e9f88c4f249183145b31781522](../../_images/oracle.png){.no-scaled-link
2166+
![711ed9fd37664e06ad2e80b0f76ee811](../../_images/oracle.png){.no-scaled-link
21672167
style="width: 300px; height: 150px;"}
21682168

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

2272-
![0b2d2200c1f34dc09d324a4bc247bb52](../../_images/deutsch.png){.no-scaled-link
2272+
![df6985f7b07143b6b51dfd97d5ec3093](../../_images/deutsch.png){.no-scaled-link
22732273
style="width: 500px; height: 210px;"}
22742274

22752275
::: {.math .notranslate .nohighlight}

pr-4328/applications/python/divisive_clustering_coresets.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ <h2>Divisive Clustering Function<a class="headerlink" href="#Divisive-Clustering
16531653
</div>
16541654
<div class="input_area highlight-ipython3 notranslate"><div class="highlight"><pre><span></span><span class="n">threshold_height</span> <span class="o">=</span> <span class="mi">1</span>
16551655
<span class="n">clusters</span> <span class="o">=</span> <span class="n">dendo</span><span class="o">.</span><span class="n">get_clusters_using_height</span><span class="p">(</span><span class="n">threshold_height</span><span class="p">)</span>
1656-
<span class="n">colors</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;red&quot;</span><span class="p">,</span> <span class="s2">&quot;blue&quot;</span><span class="p">,</span> <span class="s2">&quot;green&quot;</span><span class="p">,</span> <span class="s2">&quot;black&quot;</span><span class="p">,</span> <span class="s2">&quot;purple&quot;</span><span class="p">,</span> <span class="s2">&quot;orange&quot;</span><span class="p">,</span> <span class="s2">&quot;yellow&quot;</span><span class="p">]</span>
1656+
<span class="n">colors</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;red&quot;</span><span class="p">,</span> <span class="s2">&quot;blue&quot;</span><span class="p">,</span> <span class="s2">&quot;green&quot;</span><span class="p">,</span> <span class="s2">&quot;black&quot;</span><span class="p">,</span> <span class="s2">&quot;purple&quot;</span><span class="p">,</span> <span class="s2">&quot;orange&quot;</span><span class="p">,</span> <span class="s2">&quot;yellow&quot;</span><span class="p">,</span> <span class="s2">&quot;cyan&quot;</span><span class="p">,</span> <span class="s2">&quot;magenta&quot;</span><span class="p">,</span> <span class="s2">&quot;brown&quot;</span><span class="p">]</span>
16571657
<span class="n">dendo</span><span class="o">.</span><span class="n">plot_dendrogram</span><span class="p">(</span>
16581658
<span class="n">plot_title</span><span class="o">=</span><span class="s2">&quot;Dendrogram of Coreset using VQE&quot;</span><span class="p">,</span>
16591659
<span class="n">colors</span><span class="o">=</span><span class="n">colors</span><span class="p">,</span>

pr-4328/applications/python/divisive_clustering_coresets.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@
651651
"source": [
652652
"threshold_height = 1\n",
653653
"clusters = dendo.get_clusters_using_height(threshold_height)\n",
654-
"colors = [\"red\", \"blue\", \"green\", \"black\", \"purple\", \"orange\", \"yellow\"]\n",
654+
"colors = [\"red\", \"blue\", \"green\", \"black\", \"purple\", \"orange\", \"yellow\", \"cyan\", \"magenta\", \"brown\"]\n",
655655
"dendo.plot_dendrogram(\n",
656656
" plot_title=\"Dendrogram of Coreset using VQE\",\n",
657657
" colors=colors,\n",

pr-4328/applications/python/divisive_clustering_coresets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2783,7 +2783,7 @@ figure below shows the clusters that are formed at threshold height of
27832783
::: highlight
27842784
threshold_height = 1
27852785
clusters = dendo.get_clusters_using_height(threshold_height)
2786-
colors = ["red", "blue", "green", "black", "purple", "orange", "yellow"]
2786+
colors = ["red", "blue", "green", "black", "purple", "orange", "yellow", "cyan", "magenta", "brown"]
27872787
dendo.plot_dendrogram(
27882788
plot_title="Dendrogram of Coreset using VQE",
27892789
colors=colors,

0 commit comments

Comments
 (0)