Commit 6af97d7
dyzheng
Fix(xc): align PW DeltaSpin sigma_y sign with LCAO path
PW basis had incorrect sign for the off-diagonal (sigma_y) coefficients
in the DeltaSpin Hamiltonian contribution:
PW (before): [1]=(+λ_y) [2]=(-λ_y) ← WRONG
LCAO (fixed): [1]=(-λ_y) [2]=(+λ_y) ← CORRECT
For σ_y = [[0,-i],[i,0]]:
H_{up,dn} = λ_x·σ_x + λ_y·σ_y = λ_x - i·λ_y → coeff imag = -λ_y
H_{dn,up} = λ_x·σ_x + λ_y·σ_y = λ_x + i·λ_y → coeff imag = +λ_y
Files fixed:
- op_pw_proj.cpp: onsite projection DeltaSpin coefficient
- force_op.cpp: DeltaSpin force kernel coefficient
- stress_op.cpp: DeltaSpin stress kernel coefficient1 parent 08bd7fa commit 6af97d7
3 files changed
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
0 commit comments