Skip to content

Commit 579c0fe

Browse files
Docs preview for PR #2443.
1 parent 9313d9f commit 579c0fe

5 files changed

+21
-21
lines changed

pr-2443/applications/python/deutschs_algorithm.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
822822
</section>
823823
<section id="Quantum-oracles">
824824
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
825-
<p><img alt="769ac6a3512942a0893b1868c68bb471" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
825+
<p><img alt="4c006c3cf9df455ab1ce9fd29bba3e45" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
826826
<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>
827827
<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>
828828
<div class="math notranslate nohighlight">
@@ -870,7 +870,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
870870
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
871871
<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>
872872
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
873-
<p><img alt="16e90dc947414d32aebeb7b73d7ae776" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
873+
<p><img alt="f3d2ea121f2f4415a02ecca2672341e0" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
874874
<div class="math notranslate nohighlight">
875875
\[\ket{\psi_0} = \ket{01}
876876
\tag{1}\]</div>

pr-2443/examples/python/executing_photonic_kernels.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ <h2>Sample<a class="headerlink" href="#Sample" title="Permalink to this heading"
806806
</div>
807807
<div class="output_area docutils container">
808808
<div class="highlight"><pre>
809-
{ 02:371 11:274 20:355 }
809+
{ 02:360 11:255 20:385 }
810810

811811
</pre></div></div>
812812
</div>
@@ -894,7 +894,7 @@ <h2>Parallelization Techniques<a class="headerlink" href="#Parallelization-Techn
894894
</div>
895895
<div class="output_area docutils container">
896896
<div class="highlight"><pre>
897-
CUDA-Q Version (https://github.com/NVIDIA/cuda-quantum c30f5088058f4a5ab100f36973ec7f27ff73ec63)
897+
CUDA-Q Version (https://github.com/NVIDIA/cuda-quantum 99ad7a6a491b74ce88d4a2b696ca0498501abb6e)
898898
</pre></div></div>
899899
</div>
900900
</section>

pr-2443/examples/python/executing_photonic_kernels.ipynb

+14-14
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"execution_count": 1,
2424
"metadata": {
2525
"execution": {
26-
"iopub.execute_input": "2025-02-03T17:19:12.306515Z",
27-
"iopub.status.busy": "2025-02-03T17:19:12.306373Z",
28-
"iopub.status.idle": "2025-02-03T17:19:15.039116Z",
29-
"shell.execute_reply": "2025-02-03T17:19:15.038059Z"
26+
"iopub.execute_input": "2025-02-03T18:06:09.938551Z",
27+
"iopub.status.busy": "2025-02-03T18:06:09.938244Z",
28+
"iopub.status.idle": "2025-02-03T18:06:12.982688Z",
29+
"shell.execute_reply": "2025-02-03T18:06:12.981822Z"
3030
}
3131
},
3232
"outputs": [
@@ -42,7 +42,7 @@
4242
"name": "stdout",
4343
"output_type": "stream",
4444
"text": [
45-
"{ 02:371 11:274 20:355 }\n",
45+
"{ 02:360 11:255 20:385 }\n",
4646
"\n"
4747
]
4848
}
@@ -95,10 +95,10 @@
9595
"execution_count": 2,
9696
"metadata": {
9797
"execution": {
98-
"iopub.execute_input": "2025-02-03T17:19:15.041186Z",
99-
"iopub.status.busy": "2025-02-03T17:19:15.040887Z",
100-
"iopub.status.idle": "2025-02-03T17:19:15.087015Z",
101-
"shell.execute_reply": "2025-02-03T17:19:15.086128Z"
98+
"iopub.execute_input": "2025-02-03T18:06:12.984985Z",
99+
"iopub.status.busy": "2025-02-03T18:06:12.984570Z",
100+
"iopub.status.idle": "2025-02-03T18:06:13.029343Z",
101+
"shell.execute_reply": "2025-02-03T18:06:13.028914Z"
102102
}
103103
},
104104
"outputs": [
@@ -183,18 +183,18 @@
183183
"execution_count": 3,
184184
"metadata": {
185185
"execution": {
186-
"iopub.execute_input": "2025-02-03T17:19:15.089241Z",
187-
"iopub.status.busy": "2025-02-03T17:19:15.089074Z",
188-
"iopub.status.idle": "2025-02-03T17:19:15.092655Z",
189-
"shell.execute_reply": "2025-02-03T17:19:15.091739Z"
186+
"iopub.execute_input": "2025-02-03T18:06:13.035250Z",
187+
"iopub.status.busy": "2025-02-03T18:06:13.034559Z",
188+
"iopub.status.idle": "2025-02-03T18:06:13.037964Z",
189+
"shell.execute_reply": "2025-02-03T18:06:13.037419Z"
190190
}
191191
},
192192
"outputs": [
193193
{
194194
"name": "stdout",
195195
"output_type": "stream",
196196
"text": [
197-
"CUDA-Q Version (https://github.com/NVIDIA/cuda-quantum c30f5088058f4a5ab100f36973ec7f27ff73ec63)\n"
197+
"CUDA-Q Version (https://github.com/NVIDIA/cuda-quantum 99ad7a6a491b74ce88d4a2b696ca0498501abb6e)\n"
198198
]
199199
}
200200
],

pr-2443/examples/python/performance_optimizations.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,9 @@ <h1>Optimizing Performance<a class="headerlink" href="#Optimizing-Performance" t
750750
<section id="Gate-Fusion">
751751
<h2>Gate Fusion<a class="headerlink" href="#Gate-Fusion" title="Permalink to this heading"></a></h2>
752752
<p>Gate fusion is an optimization technique where consecutive gates are combined into a single gate operation to improve the efficiency of the simulation (See figure below). By targeting the <code class="docutils literal notranslate"><span class="pre">nvidia-mgpu</span></code> backend and setting the <code class="docutils literal notranslate"><span class="pre">CUDAQ_MGPU_FUSE</span></code> environment variable, you can select the degree of fusion that takes place. A full command line example would look like <code class="docutils literal notranslate"><span class="pre">CUDAQ_MGPU_FUSE=4</span> <span class="pre">python</span> <span class="pre">c2h2VQE.py</span> <span class="pre">--target</span> <span class="pre">nvidia</span> <span class="pre">--target-option</span> <span class="pre">fp64,mgpu</span></code></p>
753-
<p><img alt="7287e48c98b4440e863aabacf44dc75b" src="../../_images/gate-fuse.png" /></p>
753+
<p><img alt="85053b39e82445a38ccdd050e5cab5fb" src="../../_images/gate-fuse.png" /></p>
754754
<p>The importance of gate fusion is system dependent, but can have a large influence on the performance of the simulation. See the example below for a 24 qubit VQE experiment where changing the fusion level resulted in significant performance boosts.</p>
755-
<p><img alt="c4ebc5dfd44f45829a10f693cc72e455" src="../../_images/gatefusion.png" /></p>
755+
<p><img alt="d6b7b26781b94f7389eb92b760707b47" src="../../_images/gatefusion.png" /></p>
756756
</section>
757757
</section>
758758

pr-2443/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)