:orphan: .. _example1-label: Adiabatic Control of Parameters in Many-Body Localised Phases ------------------------------------------------------------- This example shows how to code up the time-dependent disordered spin Hamiltonian: .. math:: H(t) &=& \sum_{j=0}^{L-2}\frac{J_{xy}}{2}\left(S^+_{j+1}S^-_{j} + \mathrm{h.c.}\right) + J_{zz}(t)S^z_{j+1}S^z_{j} + \sum_{j=0}^{L-1}h_jS^z_{j},\nonumber\\ J_{zz}(t) &=& (1/2 + vt)J_{zz}(0). Details about the code below can be found in `SciPost Phys. 2, 003 (2017) `_. :red:`UPDATE`: The original version of this example discussed in the paper above has been deprecated as it is not compatible with python 3. Below we have implemented a new version of the example that uses more up-to-date features of QuSpin. We also leave a link down below to download the original script for comparison. Script ------ :download:`download script <../../../examples/scripts/example1.py>` (python 3) :download:`download original script <../../../examples/scripts/example1_original.py>` (python 2, :red:`depricated`) .. literalinclude:: ../../../examples/scripts/example1.py :linenos: :language: python :lines: 1-