|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
SU(2) spin-1/2 representation of a real-space symmetry operation. More...
Typedefs | |
| using | cd = std::complex<double> |
| using | Su2 = std::array<std::complex<double>, 4> |
| A 2x2 complex matrix stored row-major: {m00, m01, m10, m11}. | |
Functions | |
| Su2 | so3_to_su2 (const ModuleBase::Matrix3 &gmatc, const double eps=1e-6) |
| Build the SU(2) spin-1/2 matrix U corresponding to a cartesian symmetry operation gmatc (row-vector convention, det = +-1). | |
| ModuleBase::Matrix3 | spin_so3 (const ModuleBase::Matrix3 &gmatc) |
| The proper rotation acting on the spin-density 3-vector (Pauli x,y,z components), i.e. the W matrix with rho'^i = sum_j W_ij rho^j. Computed directly from gmatc as W = R_proper^T (R_proper = proper part). | |
| ModuleBase::Matrix3 | pauli_rotation_matrix (const Su2 &U) |
| The same W matrix computed independently from a given SU(2) matrix U via W_ij = (1/2) Tr(sigma_i U sigma_j U^dagger). Used for verification. | |
| Su2 | dagger (const Su2 &U) |
| Hermitian conjugate of a 2x2 SU(2) matrix. | |
| Su2 | mat2_mul (const Su2 &A, const Su2 &B) |
| 2x2 complex matrix product A * B (both row-major). | |
| Su2 | rotate_spin_block (const Su2 &block, const Su2 &U) |
| Rotate the 2x2 spin block of a spinor matrix element in place: m_block' = U * m_block * U^dagger. block is the 2x2 spin sub-matrix {uu, ud, du, dd} of a fixed orbital pair. | |
| void | rotate_pauli_components (const ModuleBase::Matrix3 &gmatc, const double in[4], double out[4]) |
| Rotate the four Pauli components (rho^0, rho^x, rho^y, rho^z) of a single real-space density point: rho^0 is unchanged, (rho^x, rho^y, rho^z) are mixed by W = spin_so3(gmatc). The input/output are component values at one grid point. | |
SU(2) spin-1/2 representation of a real-space symmetry operation.
These utilities provide the spin (SU(2)) part of the symmetry operation needed for nspin=4 (non-collinear / SOC) symmetrization. The orbital (real-spherical-harmonics) part is handled separately by the existing Wigner-D / T(V) machinery; the full representation of a symmetry operation on a spinor orbital is the tensor product T(V) (x) U(V).
Convention notes:
| using ModuleSymmetry::SpinRotation::cd = std::complex<double> |
| using ModuleSymmetry::SpinRotation::Su2 = std::array<std::complex<double>, 4> |
A 2x2 complex matrix stored row-major: {m00, m01, m10, m11}.
Hermitian conjugate of a 2x2 SU(2) matrix.
2x2 complex matrix product A * B (both row-major).
| ModuleBase::Matrix3 ModuleSymmetry::SpinRotation::pauli_rotation_matrix | ( | const Su2 & | U | ) |
The same W matrix computed independently from a given SU(2) matrix U via W_ij = (1/2) Tr(sigma_i U sigma_j U^dagger). Used for verification.
| void ModuleSymmetry::SpinRotation::rotate_pauli_components | ( | const ModuleBase::Matrix3 & | gmatc, |
| const double | in[4], | ||
| double | out[4] ) |
Rotate the four Pauli components (rho^0, rho^x, rho^y, rho^z) of a single real-space density point: rho^0 is unchanged, (rho^x, rho^y, rho^z) are mixed by W = spin_so3(gmatc). The input/output are component values at one grid point.
Rotate the 2x2 spin block of a spinor matrix element in place: m_block' = U * m_block * U^dagger. block is the 2x2 spin sub-matrix {uu, ud, du, dd} of a fixed orbital pair.
| Su2 ModuleSymmetry::SpinRotation::so3_to_su2 | ( | const ModuleBase::Matrix3 & | gmatc, |
| const double | eps = 1e-6 ) |
Build the SU(2) spin-1/2 matrix U corresponding to a cartesian symmetry operation gmatc (row-vector convention, det = +-1).
Handles the special cases theta = 0 (U = I) and theta = pi (axis from the symmetric part of the rotation, where the standard axis-angle formula is singular). For an improper operation the proper part R_proper = -gmatc is used.
The returned U is defined up to the double-group sign (+-U); both signs give the same similarity transform U D U^dagger, so this ambiguity is harmless for symmetrization.
| ModuleBase::Matrix3 ModuleSymmetry::SpinRotation::spin_so3 | ( | const ModuleBase::Matrix3 & | gmatc | ) |
The proper rotation acting on the spin-density 3-vector (Pauli x,y,z components), i.e. the W matrix with rho'^i = sum_j W_ij rho^j. Computed directly from gmatc as W = R_proper^T (R_proper = proper part).