Spin Operators
Single-site spin matrices and SU(2) generator block constructions used across the operator factories.
Spin and SU(2)-generator matrix constructors.
- edlgt.operators.spin_operators.spin_space(spin)[source]
Return the Hilbert-space dimension of a spin irrep.
- edlgt.operators.spin_operators.m_values(spin)[source]
Return the allowed
mquantum numbers for a spin irrep (descending).
- edlgt.operators.spin_operators.get_spin_operators(spin)[source]
Construct sparse spin matrices for an arbitrary spin representation.
- Parameters:
spin (
scalar) – Spin value (integer or half-integer).- Returns:
Sparse matrices
Sz,Sp,Sm,Sx,Sy, andS2.- Return type:
- edlgt.operators.spin_operators.get_pauli_operators()[source]
Return Pauli-operator matrices in the package normalization.
- edlgt.operators.spin_operators.su2_generators(spin, matter=False)[source]
Construct SU(2) generators for rishon or matter sectors.
- Parameters:
spin (
scalar) – Maximum spin irrep used in the block-diagonal construction.matter (
bool, optional) – IfTrue, build the generators acting on the matter sector; otherwise build the rishon-sector generators.
- Returns:
Dictionary of sparse SU(2) generators and related composites.
- Return type:
- edlgt.operators.spin_operators.get_Pauli_operators()
Return Pauli-operator matrices in the package normalization.
- edlgt.operators.spin_operators.SU2_generators(spin, matter=False)
Construct SU(2) generators for rishon or matter sectors.
- Parameters:
spin (
scalar) – Maximum spin irrep used in the block-diagonal construction.matter (
bool, optional) – IfTrue, build the generators acting on the matter sector; otherwise build the rishon-sector generators.
- Returns:
Dictionary of sparse SU(2) generators and related composites.
- Return type: