The transverse-field Ising model
In this example we study the quantum phase transition of the transverse-field Ising model, by scanning the field across it and comparing finite chains of increasing length with a calculation directly in the thermodynamic limit. The Hamiltonian is given by
where
using MPSKit, TensorKit, CairoMakie
using .ExampleModels
using TensorKitTensors.SpinOperators: σᶻ, S_z_S_zFor reproducibility of this page, we fix the seed of the random number generator:
using Random
Random.seed!(1234);We consider open chains of three different lengths, together with the infinite chain, and scan the field from
Ls = [32, 64, 128]
D = 32
g_values = 0.0:0.1:2.00.0:0.1:2.0Finite chains
The Hamiltonian is invariant under the global spin flip
ZZ = 4 * S_z_S_z(ComplexF64, Z2Irrep; spin = 1 // 2)
P = Z2Space(0 => 1, 1 => 1)
V = Z2Space(0 => D ÷ 2, 1 => D ÷ 2)
m_finite = Dict{Int, Vector{Float64}}()
S_finite = Dict{Int, Vector{Float64}}()
ψ_critical = Dict{Int, FiniteMPS}()
for L in Ls
m_finite[L] = Float64[]
S_finite[L] = Float64[]
for g in g_values
H = transverse_field_ising(Z2Irrep; L, g)
ψ, envs, info = find_groundstate(FiniteMPS(L, P, V), H, DMRG(; verbosity = 0))
push!(m_finite[L], sqrt(abs(correlator(ψ, ZZ, L ÷ 4, 3L ÷ 4 + 1))))
push!(S_finite[L], real(entropy(ψ, L ÷ 2)))
g == 1 && (ψ_critical[L] = ψ)
end
endInfinite chain
In the thermodynamic limit we optimize an InfiniteMPS with VUMPS, this time without imposing the symmetry. In the ordered phase the infinite state then spontaneously breaks it, and we can measure
ψs_infinite = map(g_values) do g
ψ, envs, info = find_groundstate(InfiniteMPS(ℂ^2, ℂ^D), transverse_field_ising(; g), VUMPS(; verbosity = 0))
return ψ
end
M_infinite = [abs(expectation_value(ψ, 1 => σᶻ())) for ψ in ψs_infinite]
S_infinite = [real(only(entropy(ψ))) for ψ in ψs_infinite];Order parameter
Comparing the finite chains with the infinite chain, the order parameter vanishes at
fig = Figure()
ax = Axis(fig[1, 1]; xlabel = "g", ylabel = "order parameter")
for L in Ls
scatterlines!(ax, g_values, m_finite[L]; label = "L = $L")
end
scatterlines!(ax, g_values, M_infinite; label = "L = ∞", color = :black)
vlines!(ax, [1.0]; color = :gray, linestyle = :dash)
axislegend(ax; position = :rt)
fig
Entanglement entropy
At a critical point correlations become long-ranged, and the ground state is more entangled than deep in either phase. We compare the entanglement entropy across the middle bond of the finite chains with that of the infinite chain.
fig = Figure()
ax = Axis(fig[1, 1]; xlabel = "g", ylabel = "S")
for L in Ls
scatterlines!(ax, g_values, S_finite[L]; label = "L = $L")
end
scatterlines!(ax, g_values, S_infinite; label = "L = ∞", color = :black)
hlines!(ax, [log(2)]; color = :gray, linestyle = :dot)
vlines!(ax, [1.0]; color = :gray, linestyle = :dash)
axislegend(ax; position = :rt)
fig
In the paramagnetic phase all curves coincide, since the correlation length is much shorter than the chains. In the ordered phase, the symmetric finite-chain ground state carries an additional entropy
Correlation length
The correlation length is extracted from the transfer matrix spectrum of the infinite state. Away from the critical point the ground state has much less entanglement than a bond dimension of changebonds and SvdCut. At
ξ_infinite = map(ψs_infinite[2:end]) do ψ
ψ_trunc = changebonds(ψ, SvdCut(; trunc = trunctol(; atol = 1.0e-10)))
return only(values(correlation_length(ψ_trunc)))
end
fig, ax, _ = scatterlines(g_values[2:end], ξ_infinite; axis = (; xlabel = "g", ylabel = "ξ", yscale = log10))
vlines!(ax, [1.0]; color = :gray, linestyle = :dash)
fig
The correlation length grows towards
Central charge
At the critical point, the transverse-field Ising model is described by a conformal field theory with central charge
Plotting the entropy of every bond against the logarithm on the right-hand side, the data for all system sizes should fall onto a single line with slope
x_values = Float64[]
S_values = Float64[]
fig = Figure()
ax = Axis(fig[1, 1]; xlabel = "log[(2L/π) sin(πl/L)]", ylabel = "S(l)")
for L in Ls
x = [log(2L / π * sin(π * l / L)) for l in 1:(L - 1)]
S = [real(entropy(ψ_critical[L], l)) for l in 1:(L - 1)]
scatter!(ax, x, S; label = "L = $L")
append!(x_values, x)
append!(S_values, S)
end
axislegend(ax; position = :lt)
fig
A linear fit of all data points gives an estimate of the central charge:
slope, offset = [x_values ones(length(x_values))] \ S_values
c = 6 * slope0.5322875803223694This is close to the exact value
This page was generated using Literate.jl.