Skip to content

Commit 93dcab4

Browse files
Docs preview for PR #3298.
1 parent 1bdd4bb commit 93dcab4

File tree

120 files changed

+1035
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1035
-334
lines changed

pr-3298/_sources/applications/python/generate_fermionic_ham.ipynb.txt

Lines changed: 102 additions & 16 deletions
Large diffs are not rendered by default.

pr-3298/_sources/applications/python/krylov.ipynb.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
},
6161
{
6262
"cell_type": "code",
63-
"execution_count": 1,
63+
"execution_count": null,
6464
"id": "ba61665c-dc3b-4e43-b1cf-340855ea68fb",
6565
"metadata": {},
6666
"outputs": [],
6767
"source": [
68-
"%pip install cppe pyscf\n",
68+
"%pip install pyscf\n",
6969
"import cudaq\n",
7070
"import numpy as np\n",
7171
"import scipy\n",
@@ -96,7 +96,7 @@
9696
"[pyscf] Total number of orbitals = 2\n",
9797
"[pyscf] Total number of electrons = 2\n",
9898
"[pyscf] HF energy = -1.116325564486115\n",
99-
"[pyscf] Total R-CCSD energy = -1.1371758844013329\n",
99+
"[pyscf] Total R-CCSD energy = -1.1371758844013342\n",
100100
"Ground state energy (classical simulation)= (-1.1371757102406845+0j) , index= 3\n"
101101
]
102102
}
@@ -163,7 +163,7 @@
163163
"name": "stdout",
164164
"output_type": "stream",
165165
"text": [
166-
"[(-0.10647701149300504+0j), (0.17028010135220506+0j), (0.17028010135220503+0j), (-0.2200413002242175+0j), (-0.2200413002242175+0j), (0.1683359862516207+0j), (0.12020049071260122+0j), (0.1656068235817425+0j), (0.1656068235817425+0j), (0.12020049071260122+0j), (0.17407289249680213+0j), (-0.04540633286914128+0j), (0.04540633286914128+0j), (0.04540633286914128+0j), (-0.04540633286914128+0j)]\n",
166+
"[(-0.10647701149300526+0j), (0.17028010135220517+0j), (0.17028010135220514+0j), (-0.22004130022421745+0j), (-0.22004130022421745+0j), (0.1683359862516207+0j), (0.12020049071260122+0j), (0.1656068235817425+0j), (0.1656068235817425+0j), (0.12020049071260122+0j), (0.17407289249680213+0j), (-0.04540633286914128+0j), (0.04540633286914128+0j), (0.04540633286914128+0j), (-0.04540633286914128+0j)]\n",
167167
"['IIII', 'ZIII', 'IZII', 'IIZI', 'IIIZ', 'ZZII', 'ZIZI', 'ZIIZ', 'IZZI', 'IZIZ', 'IIZZ', 'XXYY', 'XYYX', 'YXXY', 'YYXX']\n"
168168
]
169169
}
@@ -522,7 +522,7 @@
522522
],
523523
"metadata": {
524524
"kernelspec": {
525-
"display_name": "Python 3",
525+
"display_name": "Python 3 (ipykernel)",
526526
"language": "python",
527527
"name": "python3"
528528
},

pr-3298/_sources/releases.rst.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,25 @@ and is also available as a Docker image. More information about installing the n
1212
- `Documentation <https://nvidia.github.io/cuda-quantum/latest>`__
1313
- `Examples <https://github.com/NVIDIA/cuda-quantum/tree/main/docs/sphinx/examples>`__
1414

15+
**0.12.0**
16+
17+
This release contains a range of new features and performance improvements for
18+
the dynamics simulation and adds more tools for error correction applications.
19+
It introduces new CUDA-Q API for kernels that return values (`run`), and adds
20+
support for connecting to Quantum Machines backends. This release also contains
21+
contributions from unitaryHACK. With this release, we now include support for
22+
Python 3.13.
23+
24+
*Note*: Support for Python 3.10 will be removed in future releases.
25+
26+
- `Docker image <https://catalog.ngc.nvidia.com/orgs/nvidia/teams/quantum/containers/cuda-quantum>`__
27+
- `Python wheel <https://pypi.org/project/cudaq/0.12.0>`__
28+
- `C++ installer <https://github.com/NVIDIA/cuda-quantum/releases/0.12.0>`__
29+
- `Documentation <https://nvidia.github.io/cuda-quantum/0.12.0>`__
30+
- `Examples <https://github.com/NVIDIA/cuda-quantum/tree/releases/v0.12.0/docs/sphinx/examples>`__
31+
32+
The full change log can be found `here <https://github.com/NVIDIA/cuda-quantum/releases/0.12.0>`__.
33+
1534
**0.11.0**
1635

1736
This release contains a range of ergonomic improvements and documentation updates.
@@ -21,7 +40,7 @@ addresses some performance issues with the initial introduction of a general ope
2140
in CUDA-Q. This required some breaking changes. We refer to the
2241
`release notes <https://github.com/NVIDIA/cuda-quantum/releases/0.11.0>`__ for further details.
2342

24-
- `Docker image <https://catalog.ngc.nvidia.com/orgs/nvidia/teams/quantum/containers/cuda-quantum>`__
43+
- `Docker image <https://catalog.ngc.nvidia.com/orgs/nvidia/teams/quantum/containers/cuda-quantum/tags>`__
2544
- `Python wheel <https://pypi.org/project/cudaq/0.11.0>`__
2645
- `C++ installer <https://github.com/NVIDIA/cuda-quantum/releases/0.11.0>`__
2746
- `Documentation <https://nvidia.github.io/cuda-quantum/0.11.0>`__

pr-3298/_tags/tagsindex.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,10 @@
435435
</li>
436436
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(b)-Generate-the-active-space-hamiltonian-using-HF-molecular-orbitals.">(b) Generate the active space hamiltonian using HF molecular orbitals.</a></li>
437437
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(c)-Generate-the-active-space-Hamiltonian-using-the-natural-orbitals-computed-from-MP2-simulation">(c) Generate the active space Hamiltonian using the natural orbitals computed from MP2 simulation</a></li>
438-
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a></li>
438+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a><ul>
439+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#Generate-the-electronic-Hamiltonian-using-ROHF">Generate the electronic Hamiltonian using ROHF</a></li>
440+
</ul>
441+
</li>
439442
</ul>
440443
</li>
441444
<li class="toctree-l2"><a class="reference internal" href="../applications/python/grovers.html">Grover’s Algorithm</a><ul>

pr-3298/api/api.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@
437437
</li>
438438
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(b)-Generate-the-active-space-hamiltonian-using-HF-molecular-orbitals.">(b) Generate the active space hamiltonian using HF molecular orbitals.</a></li>
439439
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(c)-Generate-the-active-space-Hamiltonian-using-the-natural-orbitals-computed-from-MP2-simulation">(c) Generate the active space Hamiltonian using the natural orbitals computed from MP2 simulation</a></li>
440-
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a></li>
440+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a><ul>
441+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#Generate-the-electronic-Hamiltonian-using-ROHF">Generate the electronic Hamiltonian using ROHF</a></li>
442+
</ul>
443+
</li>
441444
</ul>
442445
</li>
443446
<li class="toctree-l2"><a class="reference internal" href="../applications/python/grovers.html">Grover’s Algorithm</a><ul>

pr-3298/api/default_ops.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,10 @@
439439
</li>
440440
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(b)-Generate-the-active-space-hamiltonian-using-HF-molecular-orbitals.">(b) Generate the active space hamiltonian using HF molecular orbitals.</a></li>
441441
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(c)-Generate-the-active-space-Hamiltonian-using-the-natural-orbitals-computed-from-MP2-simulation">(c) Generate the active space Hamiltonian using the natural orbitals computed from MP2 simulation</a></li>
442-
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a></li>
442+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a><ul>
443+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/generate_fermionic_ham.html#Generate-the-electronic-Hamiltonian-using-ROHF">Generate the electronic Hamiltonian using ROHF</a></li>
444+
</ul>
445+
</li>
443446
</ul>
444447
</li>
445448
<li class="toctree-l2"><a class="reference internal" href="../applications/python/grovers.html">Grover’s Algorithm</a><ul>

pr-3298/api/languages/cpp_api.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@
437437
</li>
438438
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(b)-Generate-the-active-space-hamiltonian-using-HF-molecular-orbitals.">(b) Generate the active space hamiltonian using HF molecular orbitals.</a></li>
439439
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(c)-Generate-the-active-space-Hamiltonian-using-the-natural-orbitals-computed-from-MP2-simulation">(c) Generate the active space Hamiltonian using the natural orbitals computed from MP2 simulation</a></li>
440-
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a></li>
440+
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a><ul>
441+
<li class="toctree-l4"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#Generate-the-electronic-Hamiltonian-using-ROHF">Generate the electronic Hamiltonian using ROHF</a></li>
442+
</ul>
443+
</li>
441444
</ul>
442445
</li>
443446
<li class="toctree-l2"><a class="reference internal" href="../../applications/python/grovers.html">Grover’s Algorithm</a><ul>

pr-3298/api/languages/python_api.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@
437437
</li>
438438
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(b)-Generate-the-active-space-hamiltonian-using-HF-molecular-orbitals.">(b) Generate the active space hamiltonian using HF molecular orbitals.</a></li>
439439
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(c)-Generate-the-active-space-Hamiltonian-using-the-natural-orbitals-computed-from-MP2-simulation">(c) Generate the active space Hamiltonian using the natural orbitals computed from MP2 simulation</a></li>
440-
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a></li>
440+
<li class="toctree-l3"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a><ul>
441+
<li class="toctree-l4"><a class="reference internal" href="../../applications/python/generate_fermionic_ham.html#Generate-the-electronic-Hamiltonian-using-ROHF">Generate the electronic Hamiltonian using ROHF</a></li>
442+
</ul>
443+
</li>
441444
</ul>
442445
</li>
443446
<li class="toctree-l2"><a class="reference internal" href="../../applications/python/grovers.html">Grover’s Algorithm</a><ul>
@@ -2317,7 +2320,7 @@ <h3>Spin Operators<a class="headerlink" href="#spin-operators" title="Permalink
23172320
<em class="property"><span class="pre">static</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">random</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#cudaq.operators.spin.SpinOperator.random" title="Permalink to this definition">¶</a></dt>
23182321
<dd><dl class="py function">
23192322
<dt class="sig sig-object py">
2320-
<span class="sig-name descname"><span class="pre">random</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">qubit_count</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.13)"><span class="pre">int</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">term_count</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.13)"><span class="pre">int</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">seed</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.13)"><span class="pre">int</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">625492563</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#cudaq.operators.spin.SpinOperator" title="cudaq.operators.spin.SpinOperator"><span class="pre">SpinOperator</span></a></span></span></dt>
2323+
<span class="sig-name descname"><span class="pre">random</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">qubit_count</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.13)"><span class="pre">int</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">term_count</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.13)"><span class="pre">int</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">seed</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.13)"><span class="pre">int</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">1582974397</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="#cudaq.operators.spin.SpinOperator" title="cudaq.operators.spin.SpinOperator"><span class="pre">SpinOperator</span></a></span></span></dt>
23212324
<dd></dd></dl>
23222325

23232326
<p>Return a random spin operator with the given number of terms (<code class="code docutils literal notranslate"><span class="pre">term_count</span></code>) where each term acts on all targets in the open range [0, qubit_count). An optional seed value may also be provided.</p>

pr-3298/applications/python/adapt_qaoa.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,10 @@
440440
</li>
441441
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(b)-Generate-the-active-space-hamiltonian-using-HF-molecular-orbitals.">(b) Generate the active space hamiltonian using HF molecular orbitals.</a></li>
442442
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(c)-Generate-the-active-space-Hamiltonian-using-the-natural-orbitals-computed-from-MP2-simulation">(c) Generate the active space Hamiltonian using the natural orbitals computed from MP2 simulation</a></li>
443-
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a></li>
443+
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a><ul>
444+
<li class="toctree-l4"><a class="reference internal" href="generate_fermionic_ham.html#Generate-the-electronic-Hamiltonian-using-ROHF">Generate the electronic Hamiltonian using ROHF</a></li>
445+
</ul>
446+
</li>
444447
</ul>
445448
</li>
446449
<li class="toctree-l2"><a class="reference internal" href="grovers.html">Grover’s Algorithm</a><ul>
@@ -939,7 +942,7 @@ <h1>ADAPT-QAOA algorithm<a class="headerlink" href="#ADAPT-QAOA-algorithm" title
939942
parameter</p>
940943
<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>
941944
<p>Below is a schematic representation of the ADAPT-QAOA algorithm explained above.</p>
942-
<div><p><img alt="eb427423c9514dd7989399e8c6802103" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
945+
<div><p><img alt="2264845470864ca88f99d1b9d33fea8b" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
943946
</div><div class="nbinput nblast docutils container">
944947
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[15]:
945948
</pre></div>

pr-3298/applications/python/adapt_vqe.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,10 @@
440440
</li>
441441
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(b)-Generate-the-active-space-hamiltonian-using-HF-molecular-orbitals.">(b) Generate the active space hamiltonian using HF molecular orbitals.</a></li>
442442
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(c)-Generate-the-active-space-Hamiltonian-using-the-natural-orbitals-computed-from-MP2-simulation">(c) Generate the active space Hamiltonian using the natural orbitals computed from MP2 simulation</a></li>
443-
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a></li>
443+
<li class="toctree-l3"><a class="reference internal" href="generate_fermionic_ham.html#(d)-Generate-the-active-space-Hamiltonian-computed-from-the-CASSCF-molecular-orbitals">(d) Generate the active space Hamiltonian computed from the CASSCF molecular orbitals</a><ul>
444+
<li class="toctree-l4"><a class="reference internal" href="generate_fermionic_ham.html#Generate-the-electronic-Hamiltonian-using-ROHF">Generate the electronic Hamiltonian using ROHF</a></li>
445+
</ul>
446+
</li>
444447
</ul>
445448
</li>
446449
<li class="toctree-l2"><a class="reference internal" href="grovers.html">Grover’s Algorithm</a><ul>
@@ -936,7 +939,7 @@ <h1>ADAPT-VQE algorithm<a class="headerlink" href="#ADAPT-VQE-algorithm" title="
936939
<p>7- Perform a VQE experiment to re-optimize all parameters in the ansatz.</p>
937940
<p>8- go to step 4</p>
938941
<p>Below is a Schematic depiction of the ADAPT-VQE algorithm</p>
939-
<div><p><img alt="43d4ac8d870a42c3a6ade2a4182a9c03" class="no-scaled-link" src="../../_images/adapt-vqe.png" style="width: 800px;" /></p>
942+
<div><p><img alt="2457a762c1a6426181be8a5ff1e591b9" class="no-scaled-link" src="../../_images/adapt-vqe.png" style="width: 800px;" /></p>
940943
</div><div class="nbinput docutils container">
941944
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[1]:
942945
</pre></div>

0 commit comments

Comments
 (0)