Skip to content

Commit

Permalink
deploy: 5c1cce0
Browse files Browse the repository at this point in the history
  • Loading branch information
speller26 committed Feb 5, 2024
1 parent 32c0375 commit a910cd7
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: ef4bfbc902a8f91a80ea613f548a0a1b
config: 352f261d916ad48207787af15aa40809
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified .doctrees/environment.pickle
Binary file not shown.
6 changes: 3 additions & 3 deletions _modules/qiskit_braket_provider/providers/braket_backend.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ <h1>Source code for qiskit_braket_provider.providers.braket_backend</h1><div cla
<span class="kn">from</span> <span class="nn">.adapter</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">aws_device_to_target</span><span class="p">,</span>
<span class="n">local_simulator_to_target</span><span class="p">,</span>
<span class="n">convert_qiskit_to_braket_circuits</span><span class="p">,</span>
<span class="n">to_braket</span><span class="p">,</span>
<span class="n">wrap_circuits_in_verbatim_box</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">.braket_job</span> <span class="kn">import</span> <span class="n">AmazonBraketTask</span>
Expand Down Expand Up @@ -360,7 +360,7 @@ <h1>Source code for qiskit_braket_provider.providers.braket_backend</h1><div cla
<span class="n">convert_input</span> <span class="o">=</span> <span class="p">(</span>
<span class="p">[</span><span class="n">run_input</span><span class="p">]</span> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">run_input</span><span class="p">,</span> <span class="n">QuantumCircuit</span><span class="p">)</span> <span class="k">else</span> <span class="nb">list</span><span class="p">(</span><span class="n">run_input</span><span class="p">)</span>
<span class="p">)</span>
<span class="n">circuits</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">Circuit</span><span class="p">]</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">convert_qiskit_to_braket_circuits</span><span class="p">(</span><span class="n">convert_input</span><span class="p">))</span>
<span class="n">circuits</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">Circuit</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="n">to_braket</span><span class="p">(</span><span class="nb">input</span><span class="p">)</span> <span class="k">for</span> <span class="nb">input</span> <span class="ow">in</span> <span class="n">convert_input</span><span class="p">]</span>
<span class="n">shots</span> <span class="o">=</span> <span class="n">options</span><span class="p">[</span><span class="s2">&quot;shots&quot;</span><span class="p">]</span> <span class="k">if</span> <span class="s2">&quot;shots&quot;</span> <span class="ow">in</span> <span class="n">options</span> <span class="k">else</span> <span class="mi">1024</span>
<span class="k">if</span> <span class="n">shots</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">circuits</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">map</span><span class="p">(</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">x</span><span class="o">.</span><span class="n">state_vector</span><span class="p">(),</span> <span class="n">circuits</span><span class="p">))</span>
Expand Down Expand Up @@ -546,7 +546,7 @@ <h1>Source code for qiskit_braket_provider.providers.braket_backend</h1><div cla
<span class="bp">self</span><span class="o">.</span><span class="n">_validate_meas_level</span><span class="p">(</span><span class="n">options</span><span class="p">[</span><span class="s2">&quot;meas_level&quot;</span><span class="p">])</span>
<span class="k">del</span> <span class="n">options</span><span class="p">[</span><span class="s2">&quot;meas_level&quot;</span><span class="p">]</span>

<span class="n">braket_circuits</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">convert_qiskit_to_braket_circuits</span><span class="p">(</span><span class="n">circuits</span><span class="p">))</span>
<span class="n">braket_circuits</span> <span class="o">=</span> <span class="p">[</span><span class="n">to_braket</span><span class="p">(</span><span class="n">circuit</span><span class="p">)</span> <span class="k">for</span> <span class="n">circuit</span> <span class="ow">in</span> <span class="n">circuits</span><span class="p">]</span>

<span class="k">if</span> <span class="n">options</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">&quot;verbatim&quot;</span><span class="p">,</span> <span class="kc">False</span><span class="p">):</span>
<span class="n">braket_circuits</span> <span class="o">=</span> <span class="n">wrap_circuits_in_verbatim_box</span><span class="p">(</span><span class="n">braket_circuits</span><span class="p">)</span>
Expand Down

0 comments on commit a910cd7

Please sign in to comment.