javinoram / SpinSim.py

Python package to simulate and study spin models
https://javinoram.github.io/SpinSim.py/
MIT License
0 stars 0 forks source link

Pauli matrices construction #1

Closed javinoram closed 5 months ago

javinoram commented 5 months ago

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.

javinoram commented 5 months ago

The sparse representation isn't necessary any more

javinoram commented 5 months ago

Also, add the possibility of construct "stardard" parts of the hamiltonian.

  1. Magnetic field in X, Y or Z
  2. 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.