Closed tfrederiksen closed 2 years ago
Actually I thought this was a problem in sisl? I thought about having a method zak:fix
which uses the fixed coordinates, and by default it shifts the structure when calculating the phases? What do you think?
You are right, it is better to enable this directly in sisl!
Ok, I'll add a PR
We can skip this PR, with https://github.com/zerothi/sisl/pull/411 the intercell Zak phase is now the default in sisl.
Maybe it would be nice to be able to choose between "zak"
and "zak:origin"
directly from the hubbard method somehow?
Good point @pfebrer. I've now enabled this option.
Thank you for the PR :-) Looks good to me!
Following the discussion on discord with @pfebrer and @zerothi, this branch enables the possibility of a coordinate shift to bring the origin of the cell to the (possible) mirror/inversion symmetric point of the geometry. In this way the computed Zak phase corresponds to the (origin-independent) intercell part.
Note that I also propose
intercell=True
to be the default.