Skip to content

Commit 5dd3dc8

Browse files
Docs preview for PR #2476.
1 parent af9ad01 commit 5dd3dc8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pr-2476/applications/python/deutschs_algorithm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
804804
</section>
805805
<section id="Quantum-oracles">
806806
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
807-
<p><img alt="9bae9ecba74341dda39e019482faf130" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
807+
<p><img alt="7283bdc26c424b5d9faf41c67cd2f8c5" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
808808
<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 logic gates.</p>
809809
<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>
810810
<div class="math notranslate nohighlight">
@@ -852,7 +852,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
852852
<h2>Deutschs’ Algorithm:<a class="headerlink" href="#Deutschs'-Algorithm:" title="Permalink to this heading"></a></h2>
853853
<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>
854854
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
855-
<p><img alt="7656e366065f40c2b1bd77fdb1feb0a7" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
855+
<p><img alt="f4f46927c46e42c9b457ca9bdb59d98d" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
856856
<div class="math notranslate nohighlight">
857857
\[\ket{\psi_0} = \ket{01}
858858
\tag{1}\]</div>

pr-2476/examples/python/performance_optimizations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,9 @@ <h1>Optimizing Performance<a class="headerlink" href="#Optimizing-Performance" t
731731
<section id="Gate-Fusion">
732732
<h2>Gate Fusion<a class="headerlink" href="#Gate-Fusion" title="Permalink to this heading"></a></h2>
733733
<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>
734-
<p><img alt="0bf2db32e8264bf1ad095ffe3e8e280b" src="../../_images/gate-fuse1.png" /></p>
734+
<p><img alt="b055ffbb7b5f4f9b91dfd97e11e39a4c" src="../../_images/gate-fuse1.png" /></p>
735735
<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>
736-
<p><img alt="d3ad3b2f4fce4825b785d3270c504618" src="../../_images/gatefusion.png" /></p>
736+
<p><img alt="7c08280cc1ed47a0a875c83b4ecbf2e4" src="../../_images/gatefusion.png" /></p>
737737
</section>
738738
</section>
739739

pr-2476/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)