Skip to content

Commit 43e4d13

Browse files
Docs preview for PR #4524.
1 parent 2f77a6e commit 43e4d13

22 files changed

Lines changed: 53 additions & 53 deletions

pr-4524/api/languages/python_api.html

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

35933593
<dl class="py attribute">
35943594
<dt class="sig sig-object py" id="cudaq.State.from_data">
3595-
<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>
3595+
<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">0xb0c81b0&gt;</span></em><a class="headerlink" href="#cudaq.State.from_data" title="Permalink to this definition">¶</a></dt>
35963596
<dd></dd></dl>
35973597

35983598
<dl class="py attribute">

pr-4524/api/languages/python_api.md

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

57645764
: Print the state to the console.
57655765

5766-
[[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}
5766+
[[from_data]{.pre}]{.sig-name .descname}*[ ]{.w}[[=]{.pre}]{.p}[ ]{.w}[\<nanobind.nb_func]{.pre} [object]{.pre} [at]{.pre} [0xb0c81b0\>]{.pre}*[¶](#cudaq.State.from_data "Permalink to this definition"){.headerlink}
57675767

57685768
:
57695769

pr-4524/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="e48d429c5e5f4cbb929d2696172da2df" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
1186+
<div><p><img alt="2241146b8a174cf0bef75cdee8ea1455" 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>

pr-4524/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-
![e48d429c5e5f4cbb929d2696172da2df](../../_images/adapt-qaoa.png){.no-scaled-link
2125+
![2241146b8a174cf0bef75cdee8ea1455](../../_images/adapt-qaoa.png){.no-scaled-link
21262126
style="width: 1000px;"}
21272127

21282128
</div>

pr-4524/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="fbcc50c80b9543578bf80ef8c755d580" class="no-scaled-link" src="../../_images/adapt-vqe.png" style="width: 800px;" /></p>
1183+
<div><p><img alt="432a9ea09ba5482786fd738d638f82b0" 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>

pr-4524/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-
![fbcc50c80b9543578bf80ef8c755d580](../../_images/adapt-vqe.png){.no-scaled-link
2093+
![432a9ea09ba5482786fd738d638f82b0](../../_images/adapt-vqe.png){.no-scaled-link
20942094
style="width: 800px;"}
20952095

20962096
</div>

pr-4524/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="89ceb9f1f9b6462b94639cc2629bf03f" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
1243+
<p><img alt="ca0b359fe2b44ea7aae26ffcdd6e2f0d" 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="5223040c947e4fbb8fe6f5648600cfd4" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
1291+
<p><img alt="d38f15b19878493194abdda78a77067f" 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>

pr-4524/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-
![89ceb9f1f9b6462b94639cc2629bf03f](../../_images/oracle.png){.no-scaled-link
2174+
![ca0b359fe2b44ea7aae26ffcdd6e2f0d](../../_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-
![5223040c947e4fbb8fe6f5648600cfd4](../../_images/deutsch.png){.no-scaled-link
2280+
![d38f15b19878493194abdda78a77067f](../../_images/deutsch.png){.no-scaled-link
22812281
style="width: 500px; height: 210px;"}
22822282

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

pr-4524/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="12dac6b70fd641aeb06af81dafe06521" class="no-scaled-link" src="../../_images/pixels-img.png" style="width: 200px;" /></p>
1223+
<div><p><img alt="ec1e73d80d384d44b0f1ad462f1c31f2" 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>

pr-4524/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-
![12dac6b70fd641aeb06af81dafe06521](../../_images/pixels-img.png){.no-scaled-link
2126+
![ec1e73d80d384d44b0f1ad462f1c31f2](../../_images/pixels-img.png){.no-scaled-link
21272127
style="width: 200px;"}
21282128

21292129
</div>

0 commit comments

Comments
 (0)