Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh: enabled zak phase calculations to automatically shift for mirror… #411

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

zerothi
Copy link
Owner

@zerothi zerothi commented Dec 9, 2021

… sym

When the geometry is not created with mirror symmetry the Zak-phase
is not correct. The coordinates must be located in origin around the
mirror symmetric point which is not natural for end-users.

@tfrederiksen please have a look here, comments and suggestions are most welcome.

I don't know if it should rather be an offset that is defaulting to the average position, or? Ideas?

@zerothi
Copy link
Owner Author

zerothi commented Dec 9, 2021

@pfebrer comments would be very welcome!

@pfebrer
Copy link
Contributor

pfebrer commented Dec 9, 2021

Perhaps making sure all the atoms coordinates fall inside the unit cell would be appropriate? Otherwise you can get nonsense results, right?

@zerothi
Copy link
Owner Author

zerothi commented Dec 9, 2021

Perhaps making sure all the atoms coordinates fall inside the unit cell would be appropriate? Otherwise you can get nonsense results, right?

yeah, there are only so many checks we can do, I believe there are other places where this is also important.. But assuming that all coordinates are within 1 unit-cell is sufficient and then this would work.

Copy link
Contributor

@tfrederiksen tfrederiksen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

sisl/physics/electron.py Outdated Show resolved Hide resolved
sisl/physics/tests/test_hamiltonian.py Show resolved Hide resolved
sisl/physics/electron.py Outdated Show resolved Hide resolved
… sym

When the geometry is not created with mirror symmetry the Zak-phase
is not correct. The coordinates must be located in origin around the
mirror symmetric point which is not natural for end-users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic zak-phase correction for non-mirror symmetric geometry
3 participants