Jian2017/python_package_for_tfim_0.0 — reverse-engineered prompt
Reverse engineered prompt
Build me a small Python research package for simulating the transverse field Ising model and exploring spin correlation functions. I want to be able to create a Hamiltonian by setting the system size, transverse field, nearest neighbor coupling, and next nearest neighbor coupling, then wrap it in a TFIM object and calculate equal time spin spin correlation matrices.
Please include simple example scripts or notebooks that show how to plot the correlation matrix, study spin glass transitions for disordered systems, and calculate dynamical structure factor style results for pure and disordered systems. The code should use the Jordan Wigner transformation idea and Pfaffian based calculations for many spin space time correlations.
Make it usable by someone doing physics research, not a polished app. Add clear function names, comments, basic install or usage instructions, and a few plots like light cone dynamics or single spin dynamics so I can quickly verify it works. Look up current Python scientific package docs online if needed.
Want more depth? Deep Reverse