dipc-cc / hubbard

Python tools for mean-field Hubbard models
https://dipc-cc.github.io/hubbard/
GNU Lesser General Public License v3.0
21 stars 8 forks source link

minor: update charge when reading density from file #137

Closed sofiasanz closed 1 year ago

sofiasanz commented 1 year ago

In this PR the code updates the charge of the HubbardHamiltonian object (q) when reading the densities from file. Previously the charge was not updated, which led to problems when performing calculations for a charged system.