MeanFieldToolkit.InteractionConvert

MeanFieldToolkit.InteractionConvert.SpinToPartonCouplingMethod
SpinToPartonCoupling(J::Matrix{Float64}, spin::Rational) --> Array{ComplexF64, 4}
SpinToPartonCoupling(J::Matrix{Float64}, SpinVec_A::Vector{Matrix{ComplexF64}}, SpinVec_B::Vector{Matrix{ComplexF64}}) --> Array{ComplexF64, 4}

Converts the exchange matrix J into a parton coupling array U using the spin matrices SpinVec_A and SpinVec_B. If spin is passed, then the spin matrices are generated using the SpinMats function.

source