The whole pipeline in one breath
Every time you flip a single spin in the simulator, the following chain of events fires off in the backend:
Block by block
- Spin array. The 0/1 list of arrows you sketched in the editor (page).
- Phase rule. A 3-cell sliding window classifies each layer as AFM, Mixed or FM (page).
- ε(E) map. Each phase comes with its own Lorentz oscillator parameters; we build a per-layer dielectric function and from it the per-layer refractive index.
- TMM. The whole stack (Au, CrSBr, DBR, substrate) is fed into the transfer-matrix method at every photon energy in the chosen window.
- R(E). Out comes the reflectance spectrum — the dip moves, the polariton appears, and you start over.
Key takeaways
- Five steps from a flipped arrow to a moved dip.
- The bottleneck is TMM at hundreds of energies; everything else is cheap.