Use general formula indicated here Spin.
Given a spin value, return the pauli matrices in sparse format.
Create a function that take the description of one term of the system and return the sparse representation of it
Create a function that a given model representation return the sparse matrix associated to the model.
Also, add the possibility of construct "stardard" parts of the hamiltonian.
Magnetic field in X, Y or Z
Dzylozinskii morilla interaction
An important detail, when I say construct is in the string's operator representation not the matrix, for the matrix use the already created.
Use general formula indicated here Spin. Given a spin value, return the pauli matrices in sparse format. Create a function that take the description of one term of the system and return the sparse representation of it Create a function that a given model representation return the sparse matrix associated to the model.