Skip to content

Commit

Permalink
Deploying to gh-pages from @ 00ff2a4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Oct 16, 2024
1 parent 5fbe3e4 commit 71e2dda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: d3e533805399032927c6517109c3f423
config: b4ab300c5fa5c447570760d97be02930
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified .doctrees/environment.pickle
Binary file not shown.
6 changes: 3 additions & 3 deletions _modules/qiskit_neko/aer_plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ <h1>Source code for qiskit_neko.aer_plugin</h1><div class="highlight"><pre>
<span class="sd">&quot;&quot;&quot;Qiskit Aer default backend plugin.&quot;&quot;&quot;</span>

<span class="kn">import</span> <span class="nn">qiskit_aer</span> <span class="k">as</span> <span class="nn">aer</span>
<span class="kn">from</span> <span class="nn">qiskit_ibm_runtime</span> <span class="kn">import</span> <span class="n">fake_provider</span>
<span class="kn">from</span> <span class="nn">qiskit_ibm_runtime.fake_provider</span> <span class="kn">import</span> <span class="n">FakeProviderForBackendV2</span>

<span class="kn">from</span> <span class="nn">qiskit_neko</span> <span class="kn">import</span> <span class="n">backend_plugin</span>

Expand All @@ -257,7 +257,7 @@ <h1>Source code for qiskit_neko.aer_plugin</h1><div class="highlight"><pre>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">mock_provider</span> <span class="o">=</span> <span class="n">fake_provider</span><span class="o">.</span><span class="n">FakeProvider</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">mock_provider</span> <span class="o">=</span> <span class="n">FakeProviderForBackendV2</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">mock_provider_backend_names</span> <span class="o">=</span> <span class="nb">set</span><span class="p">()</span>
<span class="k">for</span> <span class="n">backend</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">mock_provider</span><span class="o">.</span><span class="n">backends</span><span class="p">():</span>
<span class="k">if</span> <span class="n">backend</span><span class="o">.</span><span class="n">version</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
Expand Down Expand Up @@ -286,7 +286,7 @@ <h1>Source code for qiskit_neko.aer_plugin</h1><div class="highlight"><pre>
<span class="n">method</span> <span class="o">=</span> <span class="n">backend_selection</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s2">&quot;=&quot;</span><span class="p">)[</span><span class="mi">1</span><span class="p">]</span>
<span class="k">return</span> <span class="n">aer</span><span class="o">.</span><span class="n">AerSimulator</span><span class="p">(</span><span class="n">method</span><span class="o">=</span><span class="n">method</span><span class="p">)</span>
<span class="k">if</span> <span class="n">backend_selection</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">mock_provider_backend_names</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">mock_provider</span><span class="o">.</span><span class="n">get_backend</span><span class="p">(</span><span class="n">backend_selection</span><span class="p">)</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">mock_provider</span><span class="o">.</span><span class="n">backend</span><span class="p">(</span><span class="n">backend_selection</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Invalid selection string </span><span class="si">{</span><span class="n">backend_selection</span><span class="si">}</span><span class="s2">.&quot;</span><span class="p">)</span></div></div>
</pre></div>
</article>
Expand Down

0 comments on commit 71e2dda

Please sign in to comment.