ode-block" id="hamiltonian"><a class="viewcode-back" href="../../../iDEA.html#iDEA.methods.lda.hamiltonian">[docs]</a><span class="k">def</span> <span class="nf">hamiltonian</span><span class="p">(</span>
    <span class="n">s</span><span class="p">:</span> <span class="n">iDEA</span><span class="o">.</span><span class="n">system</span><span class="o">.</span><span class="n">System</span><span class="p">,</span>
    <span class="n">up_n</span><span class="p">:</span> <span class="n">np</span><span class="o"