-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix complex hoppings with translational symmetry
This commit fixes a bug that was showcased by the tests added in the previous commit. The issue was that, before this commit, translational symmetry was only being considered in one direction. It was assumed that the opposite direction was taken care of by adding the both conjugates of the hoppings, however the values were added without actually doing a complex conjugate. The fix in this commit reverses the logic: translational symmetry is considered in all unique directions, even opposite ones, but the only half the hoppings are added (non-conjugate). This works out naturally as the Hermicity of the Hamiltonian matrix will take care of the conjugates later.
- Loading branch information
Showing
8 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+129 Bytes
(110%)
tests/baseline_data/system/expected[graphene-monolayer-4atom-periodic-2d].pbz
Binary file not shown.
Binary file modified
BIN
+123 Bytes
(110%)
tests/baseline_data/system/expected[graphene-monolayer-periodic-1d-alt].pbz
Binary file not shown.
Binary file modified
BIN
+148 Bytes
(120%)
tests/baseline_data/system/expected[graphene-monolayer-periodic-1d].pbz
Binary file not shown.
Binary file modified
BIN
+162 Bytes
(110%)
tests/baseline_data/system/expected[graphene-monolayer-periodic-2d].pbz
Binary file not shown.