Skip to content
Snippets Groups Projects
Commit 25a30ca7 authored by Kostas Vilkelis's avatar Kostas Vilkelis :flamingo:
Browse files

rm commented out old code

parent da9922cc
No related branches found
No related tags found
1 merge request!4Interface refactoring
Pipeline #178330 passed
# %%
from codes.tb.tb import add_tb
from codes.mf import (
density_matrix,
......@@ -35,18 +34,4 @@ class Model:
return add_tb(
meanfield(rho, self.h_int),
{self._local_key: -fermi_energy * np.eye(self._size)},
)
# def rho(h, filling, nk):
# ndim = len(list(h)[0])
# if ndim > 0:
# kham = tb_to_khamvector(h, nk=nk)
# fermi = fermi_on_grid(kham, filling)
# return (
# ifftn_to_tb(ifftn(density_matrix(kham, fermi), axes=np.arange(ndim))),
# fermi,
# )
# else:
# fermi = fermi_on_grid(h[()], filling)
# return {(): density_matrix(h[()], fermi)}
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment