#include "source_base/matrix3.h"
#include <array>
#include <complex>
#include <vector>
Go to the source code of this file.
|
| 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).
|
| 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).
|
| 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.
|
| Su2 | ModuleSymmetry::SpinRotation::dagger (const Su2 &U) |
| | Hermitian conjugate of a 2x2 SU(2) matrix.
|
| Su2 | ModuleSymmetry::SpinRotation::mat2_mul (const Su2 &A, const Su2 &B) |
| | 2x2 complex matrix product A * B (both row-major).
|
| Su2 | ModuleSymmetry::SpinRotation::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 | 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.
|