Skip to content

Commit ea3f624

Browse files
Docs preview for PR #2696.
1 parent 50e51ea commit ea3f624

6 files changed

+19
-18
lines changed

pr-2696/applications/python/adapt_qaoa.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ <h1>ADAPT-QAOA algorithm<a class="headerlink" href="#ADAPT-QAOA-algorithm" title
783783
parameter</p>
784784
<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>
785785
<p>Below is a schematic representation of the ADAPT-QAOA algorithm explained above.</p>
786-
<div><p><img alt="d9e098117a62433f9468a39a27ec09af" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 600px;" /></p>
786+
<div><p><img alt="601490213c3644a8bba7f0d7d0aef9fb" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 600px;" /></p>
787787
</div><div class="nbinput nblast docutils container">
788788
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[ ]:
789789
</pre></div>

pr-2696/applications/python/deutschs_algorithm.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
840840
</section>
841841
<section id="Quantum-oracles">
842842
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
843-
<p><img alt="be487ab38e4041d58c41060f3a195fbb" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
843+
<p><img alt="fb50401d8ef94028bd914d92482a4411" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
844844
<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>
845845
<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>
846846
<div class="math notranslate nohighlight">
@@ -888,7 +888,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
888888
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
889889
<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>
890890
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
891-
<p><img alt="4f1534a377ce4543b53e46b41db37785" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
891+
<p><img alt="db3dfe731d1b4d5e9f7fd3cda0f0ac2b" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
892892
<div class="math notranslate nohighlight">
893893
\[\ket{\psi_0} = \ket{01}
894894
\tag{1}\]</div>

pr-2696/applications/python/quantum_transformer.html

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

pr-2696/examples/python/performance_optimizations.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -768,9 +768,9 @@ <h1>Optimizing Performance<a class="headerlink" href="#Optimizing-Performance" t
768768
<section id="Gate-Fusion">
769769
<h2>Gate Fusion<a class="headerlink" href="#Gate-Fusion" title="Permalink to this heading"></a></h2>
770770
<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>
771-
<p><img alt="d0958122f34f4a799cbc792edaf7c743" src="../../_images/gate-fuse.png" /></p>
771+
<p><img alt="053ae4633c2041e6ab7a2f0e95ea1d6a" src="../../_images/gate-fuse.png" /></p>
772772
<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>
773-
<p><img alt="790f18b2efb64e71a16a0587becebd8c" src="../../_images/gatefusion.png" /></p>
773+
<p><img alt="d4cd70572555472abac4f276cd35d2f1" src="../../_images/gatefusion.png" /></p>
774774
</section>
775775
</section>
776776

pr-2696/notebook_validation.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -103,21 +103,22 @@ def print_results(success, failed, skipped=[]):
103103
notebooks_success, notebooks_skipped, notebooks_failed = (
104104
[] for i in range(3))
105105

106-
## afqmc.ipynb:
106+
## `afqmc`:
107107
## See: https://github.com/NVIDIA/cuda-quantum/issues/2577
108-
## quantum_transformer.ipynb:
108+
## `quantum_transformer`:
109109
## See: https://github.com/NVIDIA/cuda-quantum/issues/2689
110-
notebooks_to_skip = {"afqmc.ipynb", "quantum_transformer.ipynb"}
110+
notebooks_skipped = ['afqmc.ipynb', 'quantum_transformer.ipynb']
111111

112112
for notebook_filename in notebook_filenames:
113-
if os.path.basename(notebook_filename) in notebooks_to_skip:
114-
notebooks_skipped.append(notebook_filename)
115-
elif validate(notebook_filename, available_backends):
113+
base_name = os.path.basename(notebook_filename)
114+
if base_name in notebooks_skipped:
115+
continue # Already skipped, no need to re-check
116+
if validate(notebook_filename, available_backends):
116117
if execute(notebook_filename):
117118
notebooks_success.append(notebook_filename)
118119
else:
119120
notebooks_failed.append(notebook_filename)
120121
else:
121-
notebooks_skipped.append(notebook_filename)
122+
notebooks_skipped.append(base_name)
122123

123124
print_results(notebooks_success, notebooks_failed, notebooks_skipped)

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