Skip to content

Commit bb59c45

Browse files
Docs preview for PR #4395.
1 parent aa917e4 commit bb59c45

22 files changed

Lines changed: 53 additions & 53 deletions

pr-4395/api/languages/python_api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3454,7 +3454,7 @@ <h2>Data Types<a class="headerlink" href="#data-types" title="Permalink to this
34543454

34553455
<dl class="py attribute">
34563456
<dt class="sig sig-object py" id="cudaq.State.from_data">
3457-
<span class="sig-name descname"><span class="pre">from_data</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">&lt;nanobind.nb_func</span> <span class="pre">object</span> <span class="pre">at</span> <span class="pre">0x5e79b60&gt;</span></em><a class="headerlink" href="#cudaq.State.from_data" title="Permalink to this definition">¶</a></dt>
3457+
<span class="sig-name descname"><span class="pre">from_data</span></span><em class="property"><span class="w"> </span><span class="p"><span class="pre">=</span></span><span class="w"> </span><span class="pre">&lt;nanobind.nb_func</span> <span class="pre">object&gt;</span></em><a class="headerlink" href="#cudaq.State.from_data" title="Permalink to this definition">¶</a></dt>
34583458
<dd></dd></dl>
34593459

34603460
<dl class="py attribute">

pr-4395/api/languages/python_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5042,7 +5042,7 @@ aria-hidden="true"}](../default_ops.html "Quantum Operations"){.btn
50425042

50435043
: Print the state to the console.
50445044

5045-
[[from_data]{.pre}]{.sig-name .descname}*[ ]{.w}[[=]{.pre}]{.p}[ ]{.w}[\<nanobind.nb_func]{.pre} [object]{.pre} [at]{.pre} [0x5e79b60\>]{.pre}*[¶](#cudaq.State.from_data "Permalink to this definition"){.headerlink}
5045+
[[from_data]{.pre}]{.sig-name .descname}*[ ]{.w}[[=]{.pre}]{.p}[ ]{.w}[\<nanobind.nb_func]{.pre} [object\>]{.pre}*[¶](#cudaq.State.from_data "Permalink to this definition"){.headerlink}
50465046

50475047
:
50485048

pr-4395/applications/python/adapt_qaoa.html

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

pr-4395/applications/python/adapt_qaoa.md

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

21082108
<div>
21092109

2110-
![3db088e1f85c440a83c8e66ed96e1bab](../../_images/adapt-qaoa.png){.no-scaled-link
2110+
![6eb7164bb84a4f30887091ce29f22aae](../../_images/adapt-qaoa.png){.no-scaled-link
21112111
style="width: 1000px;"}
21122112

21132113
</div>

pr-4395/applications/python/adapt_vqe.html

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

pr-4395/applications/python/adapt_vqe.md

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

20762076
<div>
20772077

2078-
![07aab7f407ad4c1e976a08b319301252](../../_images/adapt-vqe.png){.no-scaled-link
2078+
![37d32f855eea41648e3c992f556dc702](../../_images/adapt-vqe.png){.no-scaled-link
20792079
style="width: 800px;"}
20802080

20812081
</div>

pr-4395/applications/python/deutsch_algorithm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
12321232
</section>
12331233
<section id="Quantum-oracles">
12341234
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
1235-
<p><img alt="0b3ebb6243a54cb5b60abc26865b80e0" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
1235+
<p><img alt="ba1fdb4126904838a74739478b76ee64" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
12361236
<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>
12371237
<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>
12381238
<div class="math notranslate nohighlight">
@@ -1280,7 +1280,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
12801280
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
12811281
<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>
12821282
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
1283-
<p><img alt="625ac9c5235d45a7b4da3d1c8ebc81f2" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
1283+
<p><img alt="0bb6cd3f27c143a1a22e7f0d89c79adf" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
12841284
<div class="math notranslate nohighlight">
12851285
\[\ket{\psi_0} = \ket{01}
12861286
\tag{1}\]</div>

pr-4395/applications/python/deutsch_algorithm.md

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

2159-
![0b3ebb6243a54cb5b60abc26865b80e0](../../_images/oracle.png){.no-scaled-link
2159+
![ba1fdb4126904838a74739478b76ee64](../../_images/oracle.png){.no-scaled-link
21602160
style="width: 300px; height: 150px;"}
21612161

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

2265-
![625ac9c5235d45a7b4da3d1c8ebc81f2](../../_images/deutsch.png){.no-scaled-link
2265+
![0bb6cd3f27c143a1a22e7f0d89c79adf](../../_images/deutsch.png){.no-scaled-link
22662266
style="width: 500px; height: 210px;"}
22672267

22682268
::: {.math .notranslate .nohighlight}

pr-4395/applications/python/edge_detection.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ <h2>Image<a class="headerlink" href="#Image" title="Permalink to this heading">
12121212
<section id="Quantum-Probability-Image-Encoding-(QPIE):">
12131213
<h2>Quantum Probability Image Encoding (QPIE):<a class="headerlink" href="#Quantum-Probability-Image-Encoding-(QPIE):" title="Permalink to this heading"></a></h2>
12141214
<p>Lets take as an example a classical 2x2 image (4 pixels). We can label each pixel with its position</p>
1215-
<div><p><img alt="7e2ed02040de490d8c34df5a5d067198" class="no-scaled-link" src="../../_images/pixels-img.png" style="width: 200px;" /></p>
1215+
<div><p><img alt="f052a9e2db12474e9b4f1b3de04f9320" class="no-scaled-link" src="../../_images/pixels-img.png" style="width: 200px;" /></p>
12161216
</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>
12171217
<div class="math notranslate nohighlight">
12181218
\[c_i = \frac{I_{yx}}{\sqrt(\sum I^2_{yx})}\]</div>

pr-4395/applications/python/edge_detection.md

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

21092109
<div>
21102110

2111-
![7e2ed02040de490d8c34df5a5d067198](../../_images/pixels-img.png){.no-scaled-link
2111+
![f052a9e2db12474e9b4f1b3de04f9320](../../_images/pixels-img.png){.no-scaled-link
21122112
style="width: 200px;"}
21132113

21142114
</div>

0 commit comments

Comments
 (0)