Skip to content

Commit 4874e2e

Browse files
Docs preview for PR #2706.
1 parent 1404c0d commit 4874e2e

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

pr-2706/applications/python/adapt_qaoa.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ <h1>ADAPT-QAOA algorithm<a class="headerlink" href="#ADAPT-QAOA-algorithm" title
774774
parameter</p>
775775
<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>
776776
<p>Below is a schematic representation of the ADAPT-QAOA algorithm explained above.</p>
777-
<div><p><img alt="bfa503722fae49f884387dc5141fbc22" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 600px;" /></p>
777+
<div><p><img alt="972b1c773b2f446ab65856769258e572" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 600px;" /></p>
778778
</div><div class="nbinput nblast docutils container">
779779
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
780780
</pre></div>

pr-2706/applications/python/deutschs_algorithm.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
831831
</section>
832832
<section id="Quantum-oracles">
833833
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
834-
<p><img alt="11659d5529e64fe4b50276f486e912a1" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
834+
<p><img alt="63004a31965941878be49526e6d79d80" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
835835
<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>
836836
<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>
837837
<div class="math notranslate nohighlight">
@@ -879,7 +879,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
879879
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
880880
<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>
881881
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
882-
<p><img alt="64697de3aa1d4e61b765e359fb890ae2" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
882+
<p><img alt="33009fa9075846b1aef0cd9baaa3c8c7" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
883883
<div class="math notranslate nohighlight">
884884
\[\ket{\psi_0} = \ket{01}
885885
\tag{1}\]</div>

pr-2706/applications/python/quantum_transformer.html

+5-5
Large diffs are not rendered by default.

pr-2706/examples/python/performance_optimizations.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,9 @@ <h1>Optimizing Performance<a class="headerlink" href="#Optimizing-Performance" t
759759
<section id="Gate-Fusion">
760760
<h2>Gate Fusion<a class="headerlink" href="#Gate-Fusion" title="Permalink to this heading"></a></h2>
761761
<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>
762-
<p><img alt="c8bb6ed12ff34e71a24b0d37caf32cb9" src="../../_images/gate-fuse.png" /></p>
762+
<p><img alt="53ebaea2e68e4f54a9937cb4379a1d2f" src="../../_images/gate-fuse.png" /></p>
763763
<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>
764-
<p><img alt="ff73e1bdc12c4498bf2f33e3c8752029" src="../../_images/gatefusion.png" /></p>
764+
<p><img alt="4915511e34094192a26a100e1b2a1cf7" src="../../_images/gatefusion.png" /></p>
765765
</section>
766766
</section>
767767

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