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

initial commit of nambu code #877

Merged
merged 4 commits into from
Nov 29, 2024
Merged

initial commit of nambu code #877

merged 4 commits into from
Nov 29, 2024

Conversation

zerothi
Copy link
Owner

@zerothi zerothi commented Nov 27, 2024

Added matrix codes to create the Nambu
Hamiltonian.
This required restructuring the diag
fold_csr matrix codes. Now they can be given
a number to determine the number of elements
that are added. It generalizes the code a bit.

Currently the matrix creation does not implement
the no-phase code-path. So Gamma-point is not functional.

Changed some of the cython codes to use preprocessors at the comment level at the top of the file.
It makes it much simpler to debug.

Enabled siesta routines to read the matrices
with Nambu spin configuration.

Added matrix codes to create the Nambu
Hamiltonian.
This required restructuring the diag
fold_csr matrix codes. Now they can be given
a number to determine the number of elements
that are added. It generalizes the code a bit.

Currently the matrix creation does not implement
the no-phase code-path. So Gamma-point is not functional.

Changed some of the cython codes to use preprocessors
at the comment level at the top of the file.
It makes it much simpler to debug.

Enabled siesta routines to read the matrices
with Nambu spin configuration.

Signed-off-by: Nick Papior <nickpapior@gmail.com>
@@ -59,30 +66,42 @@
assert s2 > s1
assert s3 > s2
assert s4 > s3
assert s5 > s4

Check warning

Code scanning / CodeQL

Redundant comparison Warning test

Test is always true, because of
this condition
.

assert s2 >= s1
assert s3 >= s2
assert s4 >= s3
assert s5 >= s4

Check warning

Code scanning / CodeQL

Redundant comparison Warning test

Test is always true, because of
this condition
.
Test is always true, because of
this condition
.
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 63.48684% with 111 lines in your changes missing coverage. Please review.

Project coverage is 86.81%. Comparing base (6dbd9d6) to head (09ab984).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/sisl/physics/electron.py 18.00% 41 Missing ⚠️
src/sisl/io/siesta/_help.py 5.55% 34 Missing ⚠️
src/sisl/physics/sparse.py 80.76% 20 Missing ⚠️
src/sisl/physics/self_energy.py 33.33% 12 Missing ⚠️
src/sisl/io/siesta/stdout.py 50.00% 1 Missing ⚠️
src/sisl/physics/_ufuncs_electron.py 75.00% 1 Missing ⚠️
src/sisl/physics/hamiltonian.py 80.00% 1 Missing ⚠️
src/sisl/physics/spin.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #877      +/-   ##
==========================================
- Coverage   86.95%   86.81%   -0.14%     
==========================================
  Files         405      405              
  Lines       52714    52972     +258     
==========================================
+ Hits        45838    45990     +152     
- Misses       6876     6982     +106     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- nambu PDOS
- nambu transpose
- nambu berry-phase stuff works
- nambu trs is *NOT* implemented.

Added more tests for complex data-types which
has been completed in this branch.

Signed-off-by: Nick Papior <nickpapior@gmail.com>
Signed-off-by: Nick Papior <nickpapior@gmail.com>
@zerothi
Copy link
Owner Author

zerothi commented Nov 29, 2024

I am a little inclined to merge this, it holds many other details that are necessary. For now I'll add a warning when using Nambu spin-configuration, and then users needs to be aware, but I would still like you, the experienced users, to bug-track this!

Signed-off-by: Nick Papior <nickpapior@gmail.com>
@zerothi zerothi merged commit 19423bb into main Nov 29, 2024
15 of 17 checks passed
@zerothi zerothi deleted the 676-spin-nambu branch November 29, 2024 11:19
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.

Nambu spin box
1 participant