Skip to content
Snippets Groups Projects
Commit 642416c0 authored by Antonio Manesco's avatar Antonio Manesco
Browse files

make kwant model hermitian

parent fe73a095
No related branches found
No related tags found
1 merge request!3create solvers and interface modules
......@@ -113,6 +113,11 @@ def builder2tb_model(builder, params={}, return_data=False):
.toarray()
.T.conj()
)
else:
# Hopping vector in the opposite direction
tb_model[tuple(-b_dom)] += coo_array(
(data, (row, col)), shape=(norbs_tot, norbs_tot)
).toarray().T.conj()
else:
tb_model[tuple(b_dom)] = coo_array(
(data, (row, col)), shape=(norbs_tot, norbs_tot)
......@@ -123,6 +128,10 @@ def builder2tb_model(builder, params={}, return_data=False):
.toarray()
.T.conj()
)
else:
tb_model[tuple(-b_dom)] = coo_array(
(data, (row, col)), shape=(norbs_tot, norbs_tot)
).toarray().T.conj()
if return_data:
data = {}
......
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