Skip to content

Commit e7ba4a8

Browse files
Docs preview for PR #2607.
1 parent 9d551ba commit e7ba4a8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pr-2607/applications/python/deutschs_algorithm.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
815815
</section>
816816
<section id="Quantum-oracles">
817817
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
818-
<p><img alt="80c1def25ef7439cbfc39e182a6f7c07" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
818+
<p><img alt="13499ac1bf3044dcbd982c00fdf30f18" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
819819
<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>
820820
<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>
821821
<div class="math notranslate nohighlight">
@@ -863,7 +863,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
863863
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
864864
<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>
865865
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
866-
<p><img alt="f3be0e25bc8e4488a86020b80420fb39" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
866+
<p><img alt="e39f643171fe42b6bfcab7b944d49425" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
867867
<div class="math notranslate nohighlight">
868868
\[\ket{\psi_0} = \ket{01}
869869
\tag{1}\]</div>

pr-2607/examples/python/performance_optimizations.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -743,9 +743,9 @@ <h1>Optimizing Performance<a class="headerlink" href="#Optimizing-Performance" t
743743
<section id="Gate-Fusion">
744744
<h2>Gate Fusion<a class="headerlink" href="#Gate-Fusion" title="Permalink to this heading"></a></h2>
745745
<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>
746-
<p><img alt="12d244f86032418baae084c1499f3a5d" src="../../_images/gate-fuse.png" /></p>
746+
<p><img alt="25bf9e6e3aa14a89b5e6e68aa9081c59" src="../../_images/gate-fuse.png" /></p>
747747
<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>
748-
<p><img alt="3185b8ff01364394b3faf1f705102304" src="../../_images/gatefusion.png" /></p>
748+
<p><img alt="74ece17fa8674b77adc8dc1a984d6021" src="../../_images/gatefusion.png" /></p>
749749
</section>
750750
</section>
751751

pr-2607/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)