Skip to content

Commit cb825f1

Browse files
Docs preview for PR #3514.
1 parent 9f4dcd2 commit cb825f1

27 files changed

+77
-77
lines changed

pr-3514/_sources/using/backends/hardware/iontrap.rst.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ Create a project in the Nexus portal. You can find the project ID in the URL of
152152

153153
.. code:: python
154154
155-
cudaq.set_target('quantinuum', machine='H1-2')
155+
cudaq.set_target('quantinuum', machine='H2-2')
156156
157-
where ``H1-2`` is an example of a physical QPU. Hardware specific
158-
emulators may be accessed by appending an ``E`` to the end (e.g, ``H1-2E``). For
157+
where ``H2-2`` is an example of a physical QPU. Hardware specific
158+
emulators may be accessed by appending an ``E`` to the end (e.g, ``H2-2E``). For
159159
access to the syntax checker for the provided machine, you may append an ``SC``
160-
to the end (e.g, ``H1-1SC``).
160+
to the end (e.g, ``H2-1SC``).
161161

162162
For a comprehensive list of available machines, login to your `Quantinuum Nexus user account <https://nexus.quantinuum.com/>`__
163163
and navigate to the "Profile" tab, where you should find a table titled "Quantinuum Systems Access".
@@ -199,12 +199,12 @@ Create a project in the Nexus portal. You can find the project ID in the URL of
199199

200200
.. code:: bash
201201
202-
nvq++ --target quantinuum --quantinuum-machine H1-2 src.cpp ...
202+
nvq++ --target quantinuum --quantinuum-machine H2-2 src.cpp ...
203203
204-
where ``H1-2`` is an example of a physical QPU. Hardware specific
205-
emulators may be accessed by appending an ``E`` to the end (e.g, ``H1-2E``). For
204+
where ``H2-2`` is an example of a physical QPU. Hardware specific
205+
emulators may be accessed by appending an ``E`` to the end (e.g, ``H2-2E``). For
206206
access to the syntax checker for the provided machine, you may append an ``SC``
207-
to the end (e.g, ``H1-1SC``).
207+
to the end (e.g, ``H2-1SC``).
208208

209209
For a comprehensive list of available machines, login to your `Quantinuum Nexus user account <https://nexus.quantinuum.com/>`__
210210
and navigate to the "Profile" tab, where you should find a table titled "Quantinuum Systems Access".
@@ -221,7 +221,7 @@ Create a project in the Nexus portal. You can find the project ID in the URL of
221221
.. note::
222222

223223
Quantinuum's syntax checker for Helios (e.g., ``Helios-1SC``) only performs QIR code validation and does not return any results.
224-
Thus, it always returns an empty result set. This is different from other Quantinuum backends (e.g., ``H1-1SC``) where the syntax checker returns dummy results.
224+
Thus, it always returns an empty result set. This is different from other Quantinuum backends (e.g., ``H2-1SC``) where the syntax checker returns dummy results.
225225
As a result, when using the Helios syntax checker, we may receive this warning message:
226226

227227
.. code:: text

pr-3514/api/languages/python_api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,7 @@ <h3>Spin Operators<a class="headerlink" href="#spin-operators" title="Permalink
24462446
<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>
24472447
<dd><dl class="py function">
24482448
<dt class="sig sig-object py">
2449-
<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.14)"><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.14)"><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.14)"><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">3063169483</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>
2449+
<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.14)"><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.14)"><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.14)"><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">3918923113</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>
24502450
<dd></dd></dl>
24512451

24522452
<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-3514/api/languages/python_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3624,7 +3624,7 @@ aria-hidden="true"}](../default_ops.html "Quantum Operations"){.btn
36243624

36253625
:
36263626

3627-
[[random]{.pre}]{.sig-name .descname}[(]{.sig-paren}*[[qubit_count]{.pre}]{.n}[[:]{.pre}]{.p}[ ]{.w}[[[int]{.pre}](https://docs.python.org/3/library/functions.html#int "(in Python v3.14)"){.reference .external}]{.n}*, *[[term_count]{.pre}]{.n}[[:]{.pre}]{.p}[ ]{.w}[[[int]{.pre}](https://docs.python.org/3/library/functions.html#int "(in Python v3.14)"){.reference .external}]{.n}*, *[[seed]{.pre}]{.n}[[:]{.pre}]{.p}[ ]{.w}[[[int]{.pre}](https://docs.python.org/3/library/functions.html#int "(in Python v3.14)"){.reference .external}]{.n}[ ]{.w}[[=]{.pre}]{.o}[ ]{.w}[[3063169483]{.pre}]{.default_value}*[)]{.sig-paren} [[→]{.sig-return-icon} [[[SpinOperator]{.pre}](#cudaq.operators.spin.SpinOperator "cudaq.operators.spin.SpinOperator"){.reference .internal}]{.sig-return-typehint}]{.sig-return}
3627+
[[random]{.pre}]{.sig-name .descname}[(]{.sig-paren}*[[qubit_count]{.pre}]{.n}[[:]{.pre}]{.p}[ ]{.w}[[[int]{.pre}](https://docs.python.org/3/library/functions.html#int "(in Python v3.14)"){.reference .external}]{.n}*, *[[term_count]{.pre}]{.n}[[:]{.pre}]{.p}[ ]{.w}[[[int]{.pre}](https://docs.python.org/3/library/functions.html#int "(in Python v3.14)"){.reference .external}]{.n}*, *[[seed]{.pre}]{.n}[[:]{.pre}]{.p}[ ]{.w}[[[int]{.pre}](https://docs.python.org/3/library/functions.html#int "(in Python v3.14)"){.reference .external}]{.n}[ ]{.w}[[=]{.pre}]{.o}[ ]{.w}[[3918923113]{.pre}]{.default_value}*[)]{.sig-paren} [[→]{.sig-return-icon} [[[SpinOperator]{.pre}](#cudaq.operators.spin.SpinOperator "cudaq.operators.spin.SpinOperator"){.reference .internal}]{.sig-return-typehint}]{.sig-return}
36283628

36293629
:
36303630

pr-3514/applications/python/adapt_qaoa.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ <h1>ADAPT-QAOA algorithm<a class="headerlink" href="#ADAPT-QAOA-algorithm" title
10121012
parameter</p>
10131013
<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>
10141014
<p>Below is a schematic representation of the ADAPT-QAOA algorithm explained above.</p>
1015-
<div><p><img alt="9a0350baa470402b8dd0768c187da5d0" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
1015+
<div><p><img alt="7789c2354152458e85b36288c62a15b3" class="no-scaled-link" src="../../_images/adapt-qaoa.png" style="width: 1000px;" /></p>
10161016
</div><div class="nbinput nblast docutils container">
10171017
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[15]:
10181018
</pre></div>

pr-3514/applications/python/adapt_qaoa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1777,7 +1777,7 @@ explained above.
17771777

17781778
<div>
17791779

1780-
![9a0350baa470402b8dd0768c187da5d0](../../_images/adapt-qaoa.png){.no-scaled-link
1780+
![7789c2354152458e85b36288c62a15b3](../../_images/adapt-qaoa.png){.no-scaled-link
17811781
style="width: 1000px;"}
17821782

17831783
</div>

pr-3514/applications/python/adapt_vqe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ <h1>ADAPT-VQE algorithm<a class="headerlink" href="#ADAPT-VQE-algorithm" title="
10091009
<p>7- Perform a VQE experiment to re-optimize all parameters in the ansatz.</p>
10101010
<p>8- go to step 4</p>
10111011
<p>Below is a Schematic depiction of the ADAPT-VQE algorithm</p>
1012-
<div><p><img alt="5a4ca4796c2b4f22a9b71af749905e9d" class="no-scaled-link" src="../../_images/adapt-vqe.png" style="width: 800px;" /></p>
1012+
<div><p><img alt="a728ff4e3e9842c18d7ca3000738ca9f" class="no-scaled-link" src="../../_images/adapt-vqe.png" style="width: 800px;" /></p>
10131013
</div><div class="nbinput docutils container">
10141014
<div class="prompt highlight-none notranslate"><div class="highlight"><pre><span></span>[1]:
10151015
</pre></div>

pr-3514/applications/python/adapt_vqe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ Below is a Schematic depiction of the ADAPT-VQE algorithm
17451745

17461746
<div>
17471747

1748-
![5a4ca4796c2b4f22a9b71af749905e9d](../../_images/adapt-vqe.png){.no-scaled-link
1748+
![a728ff4e3e9842c18d7ca3000738ca9f](../../_images/adapt-vqe.png){.no-scaled-link
17491749
style="width: 800px;"}
17501750

17511751
</div>

pr-3514/applications/python/deutsch_algorithm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ <h2>XOR <span class="math notranslate nohighlight">\(\oplus\)</span><a class="he
10691069
</section>
10701070
<section id="Quantum-oracles">
10711071
<h2>Quantum oracles<a class="headerlink" href="#Quantum-oracles" title="Permalink to this heading"></a></h2>
1072-
<p><img alt="8eb20595f26f4258b09e5ed83bbcde84" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
1072+
<p><img alt="424da7ae53e145e7ae7eb6f9d642dd26" class="no-scaled-link" src="../../_images/oracle.png" style="width: 300px; height: 150px;" /></p>
10731073
<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>
10741074
<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>
10751075
<div class="math notranslate nohighlight">
@@ -1117,7 +1117,7 @@ <h2>Quantum parallelism<a class="headerlink" href="#Quantum-parallelism" title="
11171117
<h2>Deutsch’s Algorithm:<a class="headerlink" href="#Deutsch's-Algorithm:" title="Permalink to this heading"></a></h2>
11181118
<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>
11191119
<p>We step through the circuit diagram below and follow the math after the application of each gate.</p>
1120-
<p><img alt="be1bd3ff1c504e84b34215d666e91496" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
1120+
<p><img alt="8814aa6a6def4e2bb6dce89ef18691f8" class="no-scaled-link" src="../../_images/deutsch.png" style="width: 500px; height: 210px;" /></p>
11211121
<div class="math notranslate nohighlight">
11221122
\[\ket{\psi_0} = \ket{01}
11231123
\tag{1}\]</div>

pr-3514/applications/python/deutsch_algorithm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,7 +1826,7 @@ number, the result is 0 otherwise 1.
18261826
::: {#Quantum-oracles .section}
18271827
## Quantum oracles[](#Quantum-oracles "Permalink to this heading"){.headerlink}
18281828

1829-
![8eb20595f26f4258b09e5ed83bbcde84](../../_images/oracle.png){.no-scaled-link
1829+
![424da7ae53e145e7ae7eb6f9d642dd26](../../_images/oracle.png){.no-scaled-link
18301830
style="width: 300px; height: 150px;"}
18311831

18321832
Suppose we have [\\(f(x): \\{0,1\\} \\longrightarrow \\{0,1\\}\\)]{.math
@@ -1932,7 +1932,7 @@ balanced function? If constant, [\\(f(0) = f(1)\\)]{.math .notranslate
19321932
We step through the circuit diagram below and follow the math after the
19331933
application of each gate.
19341934

1935-
![be1bd3ff1c504e84b34215d666e91496](../../_images/deutsch.png){.no-scaled-link
1935+
![8814aa6a6def4e2bb6dce89ef18691f8](../../_images/deutsch.png){.no-scaled-link
19361936
style="width: 500px; height: 210px;"}
19371937

19381938
::: {.math .notranslate .nohighlight}

pr-3514/applications/python/edge_detection.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ <h2>Image<a class="headerlink" href="#Image" title="Permalink to this heading">
10491049
<section id="Quantum-Probability-Image-Encoding-(QPIE):">
10501050
<h2>Quantum Probability Image Encoding (QPIE):<a class="headerlink" href="#Quantum-Probability-Image-Encoding-(QPIE):" title="Permalink to this heading"></a></h2>
10511051
<p>Lets take as an example a classical 2x2 image (4 pixels). We can label each pixel with its position</p>
1052-
<div><p><img alt="631d4529fc2e4b6994b72df53f30394a" class="no-scaled-link" src="../../_images/pixels-img.png" style="width: 200px;" /></p>
1052+
<div><p><img alt="546830c515fa496f858ee4c623ff4e52" class="no-scaled-link" src="../../_images/pixels-img.png" style="width: 200px;" /></p>
10531053
</div><p>Each pixel will have its own color intensity represented along with its position label as an 8-bit black and white color. To convert the pixel intensity to probability amplitudes of a quantum state</p>
10541054
<div class="math notranslate nohighlight">
10551055
\[c_i = \frac{I_{yx}}{\sqrt(\sum I^2_{yx})}\]</div>

0 commit comments

Comments
 (0)