Difference between revisions of "ALPS 2 Tutorials:ED-04 Criticality"
(→Python version) |
|||
Line 1: | Line 1: | ||
+ | {{Languages|ALPS_2_Tutorials:ED-04_Criticality}} | ||
+ | |||
+ | |||
In this tutorial, we will look at critical spin chains and make a connection to their description in terms of conformal field theory. | In this tutorial, we will look at critical spin chains and make a connection to their description in terms of conformal field theory. | ||
Revision as of 05:30, 12 March 2012
Languages: |
English • 日本語 (ja) • 繁體中文 (zh-tw) • 简体中文 (zh) |
In this tutorial, we will look at critical spin chains and make a connection to their description in terms of conformal field theory.
Contents
Ising chain
The first model we will consider is the critical Ising chain, given by the Hamiltonian
Here, the first sum runs over pairs of nearest neighbours. is referred to as transverse field; the system becomes critical for . For , the ground state is antiferromagnetic for and ferromagnetic for . The system is exactly solvable (P. Pfeuty, Annals of Physics: 57, 79-90 (1970)).
At criticality, this system is described by a conformal field theory (for an introduction, consider e.g. this review by John Cardy). In that case, the low-lying states can be identified with fields of the CFT and their energies are related to the so-called scaling dimensions of these operators. A physical implication of the scaling dimensions is that they describe the behaviour of certain correlation functions of a conformal field theory. For example, for certain fields (quasi-primary fields) the two-point correlation will behave as
In the above equation, refers to the scaling dimension of that field. The scaling fields occur in groups: the lowest one, referred to as primary field, comes with an infinite number of descendants with scaling dimension .
In the exact solution of the Ising model (Eq. (3.7) in the paper above), the long-rangle correlations are found to decay as:
Additionally, we expect the scaling dimension of the identity operator to be 0.
We therefore expect scaling dimensions of to appear in the CFT of the Ising model. To see this, we will rescale all energies of the spectrum according to . This will force the two lowest states to occur where we expect the scaling dimensions; we can then check whether the rest of the spectrum is consistent with this.
Python version
Let us first go through the Python version of this tutorial. It can be found in [1]. We will first import some modules:
import pyalps import pyalps.pyplot import numpy as np import matplotlib.pyplot as plt import copy import math
Then, let us set up the parameters for two system sizes. Be careful to use the transverse field Gamma, not the longitudinal field h.
data = [] for L in [10,12]: parms.append({ 'LATTICE' : "chain lattice", 'MODEL' : "spin", 'local_S' : 0.5, 'Jxy' : 0, 'Jz' : -1, 'Gamma' : 0.5, 'NUMBER_EIGENVALUES' : 5, 'L' : L })
As you can see, we will simulate two system sizes. Now let's set up the input files and run the simulation:
prefix = 'ising' input_file = pyalps.writeInputFiles(prefix,parms) res = pyalps.runApplication('sparsediag', input_file) # res = pyalps.runApplication('sparsediag', input_file, MPI=2, mpirun='mpirun') data = pyalps.loadEigenstateMeasurements(pyalps.getResultFiles(prefix=prefix))
By uncommenting the second-last line and adapting the number of jobs and the name of your mpirun executable (which will default to mpirun), you could have ALPS use several CPUs simultaneously.
First, we will extract the lowest and first excited for each value of L and collect this into a dictionary:
E0 = {} E1 = {} for Lsets in data: L = pyalps.flatten(Lsets)[0].props['L'] allE = [] for q in pyalps.flatten(Lsets): allE += list(q.y) allE = np.sort(allE) E0[L] = allE[0] E1[L] = allE[1]
The above code works since we know that ALPS will load the energies in lists grouped by the simulation - data is therefore a list of lists where we have different simulations at the top level and different momenta below. Now we rescale the energies according to the equation given above and collect the data as a function of momenta:
for q in pyalps.flatten(data): L = q.props['L'] q.y = (q.y-E0[L])/(E1[L]-E0[L]) * (1./8.) spectrum = pyalps.collectXY(data, 'TOTAL_MOMENTUM', 'Energy', foreach=['L'])
For comparison, let us also show the primary fields and their first few descendants:
for SD in [0.125, 1, 1+0.125, 2]: d = pyalps.DataSet() d.x = np.array([0,4]) d.y = SD+0*d.x spectrum += [d]
Finally we create the plot:
pyalps.pyplot.plot(spectrum) plt.legend(prop={'size':8}) plt.xlabel("$k$") plt.ylabel("E_0") plt.xlim(-0.02, math.pi+0.02) plt.show()
Vistrails
The Vistrails version of this tutorial is part of the file [2].
Command line
The parameter file for the Ising simulation can be found here.
Heisenberg chain
Now let us consider a more complicated example: the antiferromagnetic Heisenberg chain for spin-1/2 degrees of freedom, described by
The critical theory for this model has a central charge c=1 with primary fields 0, 0.5 and 1. As opposed to the Ising model, finite-size corrections vanish only logarithmically and are therefore quite pronounced at the system sizes we reach. The Python file is analogous to the above description and will therefore not be described here in detail. The primary difference is that we can make use of the symmetry of the system; we also run the simulations only for the sector, since this contains all the relevant states.
Looking at the spectrum, try to identify the different scaling fields and how they approach the correct values as the system size is increased. You will notice that this is quite difficult. For a detailed discussion of the system, refer to I Affleck et al 1989 J. Phys. A: Math. Gen. 22 511 and the next tutorial.
Command line
The parameter file can be found here.