Skip to content

Start the four-site spin-response notebook (IPYNB) in a Python 3 Jupyter kernel and run the cells in order. The calculation itself uses the standard library. It places a spin flip on site zero of a periodic ferromagnetic spin-½ ring with J=1J=1, constructs the momentum eigenvectors, and checks each vector in the position basis. The notebook is distributed with empty outputs so every number displayed comes from the current run. Jupyter, code cells, source and outputs

On four sites the momenta 0,π/2,π,3π/20,\pi/2,\pi,3\pi/2 have energies 0,1,2,10,1,2,1. The site-localized state overlaps each normalized plane wave with squared magnitude 1/41/4. Group equal energies to obtain weights 1/4,1/2,1/41/4,1/2,1/4. The zeroth, first and second moments are 1,1,3/21,1,3/2. The cells recompute them as a norm, a Hamiltonian expectation and the squared norm of the vector after one application of the Hamiltonian. This second route uses only position-space hopping.

Change the inputs to five sites and J=2.5J=2.5. Predict the moments before restarting. The first is now 2.52.5 and the second is 9.3759.375. The frequencies and degeneracies change with circumference, whereas these two local moments at fixed JJ agree for every L≥3L\ge3. A uniform one-flip preparation excites just the zero-energy line. Why the probe matters

An extra check distinguishes a circumference effect that these first moments miss. Start at site zero and calculate the third moment in units of J3J^3. In the one-flip sector write H/J=I−A/2H/J=I-A/2, where AA is the adjacency matrix of the ring. At the marked site A00=0A_{00}=0 and (A2)00=2(A^2)_{00}=2. Expanding the cube gives 5/2−(A3)00/85/2-(A^3)_{00}/8. On three sites there are two oriented three-step walks back to the start, so the result is 9/49/4. On four sites there are none and it is 5/25/2. You can check both values by summing the notebook’s line weights times cubed energies. This is a finite-size effect with the same local exchange strength.

The five-site interacting bundle (ZIP) contains its own inputs, saved results and the creation-operator companion. Extract the whole bundle; from its xxx-correlations directory use the environment specified in its README and run:

Terminal window
python3 experiment.py --check

Its initial state has two real rapidities, 1/21/2 and −1/2-1/2. The specified local spin probe selects its own final sector; the integrated local removal weight in the site’s convention is 2/52/5. Inspect the operator definition before carrying a weight between this example and the localized flip. Derive the five-site sum · Karbach and Müller, finite ferromagnetic XXX conventions

  • Michael Karbach and Gerhard Müller (1997). Introduction to the Bethe ansatz I. Computers in Physics 11, pp. 36–43 (1997). Reading copy: arXiv:cond-mat/9809162v1, submitted 1998. Source
  • Project Jupyter (n.d.). The Notebook File Format. nbformat documentation, version 4 format. Source