Skip to content

Commit

Permalink
Deploying to gh-pages from @ 78516d8 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
liwt31 committed Aug 24, 2024
1 parent 3e16634 commit 854de89
Show file tree
Hide file tree
Showing 20 changed files with 2,172 additions and 2,022 deletions.
4 changes: 2 additions & 2 deletions _modules/renormalizer/mps/mpo.html
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,12 @@ <h1>Source code for renormalizer.mps.mpo</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">terms</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;Terms all have factor 0.&quot;</span><span class="p">)</span>

<span class="n">table</span><span class="p">,</span> <span class="n">factor</span> <span class="o">=</span> <span class="n">_terms_to_table</span><span class="p">(</span><span class="n">model</span><span class="p">,</span> <span class="n">terms</span><span class="p">,</span> <span class="o">-</span><span class="bp">self</span><span class="o">.</span><span class="n">offset</span><span class="p">)</span>
<span class="n">table</span><span class="p">,</span> <span class="n">primary_ops</span><span class="p">,</span> <span class="n">factor</span> <span class="o">=</span> <span class="n">_terms_to_table</span><span class="p">(</span><span class="n">model</span><span class="p">,</span> <span class="n">terms</span><span class="p">,</span> <span class="o">-</span><span class="bp">self</span><span class="o">.</span><span class="n">offset</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">dtype</span> <span class="o">=</span> <span class="n">factor</span><span class="o">.</span><span class="n">dtype</span>

<span class="bp">self</span><span class="o">.</span><span class="n">symbolic_mpo</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">qn</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">qntot</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">qnidx</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">symbolic_out_ops_list</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">primary_ops</span> \
<span class="o">=</span> <span class="n">construct_symbolic_mpo</span><span class="p">(</span><span class="n">table</span><span class="p">,</span> <span class="n">factor</span><span class="p">,</span> <span class="n">algo</span><span class="o">=</span><span class="n">algo</span><span class="p">)</span>
<span class="o">=</span> <span class="n">construct_symbolic_mpo</span><span class="p">(</span><span class="n">table</span><span class="p">,</span> <span class="n">primary_ops</span><span class="p">,</span> <span class="n">factor</span><span class="p">,</span> <span class="n">algo</span><span class="o">=</span><span class="n">algo</span><span class="p">)</span>
<span class="c1"># from renormalizer.mps.symbolic_mpo import _format_symbolic_mpo</span>
<span class="c1"># print(_format_symbolic_mpo(mpo_symbol))</span>
<span class="bp">self</span><span class="o">.</span><span class="n">model</span> <span class="o">=</span> <span class="n">model</span>
Expand Down
Loading

0 comments on commit 854de89

Please sign in to comment.