Repository navigation
Exact Diagonalisation
FermiWick`Fock` writes any expression of the package as a sparse matrix, on the Fock space of a few sites or on a
sector with fixed quantum numbers: a model written as on paper is solved exactly, in closed form when it is small, and a
symbolic result can be checked. Every block on this page runs after
Needs["FermiWick`"]; Needs["FermiWick`Fock`"]FockSpace[sites] has the modes c[i, s] of the sites, numbered site by site with the spin fastest;
FockSector[space, "N" -> n, "Sz" -> sz] is the part with n particles and spin sz:
space = FockSpace[Range[4]];
{space["Dimension"], FockSector[space, "N" -> 4, "Sz" -> 0]["Dimension"]}{256, 36}
"Counts" -> {{modes, n}, ...} fixes the number of particles in any set of modes. FockSpace[sites, "Orbitals" -> {...}]
has the modes c[i, o, s], and "Spins" -> None gives spinless modes c[i].
FockMatrix[expr, sector] is the matrix of an expression, symbolic coefficients included. The dimer, with the
interaction in the form symmetric about half filling,
dimer = -t Sum[PlusHC[cDag[1, s] ** c[2, s]], {s, $Spins}] + U/2 Sum[(nTotOp[i] - 1)^2, {i, 2}];
sector = FockSector[FockSpace[{1, 2}], "N" -> 2, "Sz" -> 0];
Eigenvalues[Normal[FockMatrix[dimer, sector]]]The eigenvectors are exact too, and StateToKet writes a state with the occupations of the sites. The ground state is
the lowest of the four energies for every N, only rank them (Ordering
of the exact values would sort them in the canonical order of expressions, not by size):
{vals, vecs} = Eigensystem[Normal[FockMatrix[dimer, sector]]];
ground = Normalize[vecs[[First[Ordering[N[vals /. {t -> 1, U -> 1}], 1]]]]];
FullSimplify[StateToKet[sector, ground], t > 0 && U > 0]A singlet, whose weight on the doubly occupied sites falls as
Everything at a finite temperature follows from the grand-canonical partition function,
PartitionFunction[H, space, T, μ] gives it exactly, as a
sum over the levels of every sector:
space = FockSpace[{1, 2}];
Z = PartitionFunction[dimer, space, T, μ]Its logarithm is the grand potential
Ω = -T Log[Z];
FullSimplify[{-D[Ω, μ], -D[Ω, {μ, 2}]} /. μ -> 0, T > 0]The entropy
S = -D[Ω, T];
{Limit[S /. {μ -> 0, U -> 4 t}, T -> 0, Assumptions -> t > 0], Limit[S /. μ -> 0, T -> Infinity]}With numbers, GrandPotential[H, space, T, μ] is
LehmannGreen[H, space, modes] is the single-particle Green's function as a sum over the same levels, the Lehmann
representation, "ChemicalPotential" -> μ); "Temperature" -> T sets the
temperature. It works in the grand-canonical ensemble on the whole Fock space: no sector is chosen by hand. At zero
temperature only the ground state of "Assumptions" say where
g = LehmannGreen[dimer, space, {c[1, SpinUp], c[2, SpinUp]}, "ChemicalPotential" -> μ,
"Assumptions" -> t > 0 && U > 0 && Abs[μ] < Sqrt[16 t^2 + U^2]/2 - t];
First[g["GroundSectors"]]GreenMatrix[g, z] is the matrix
P = {{1, 1}, {1, -1}}/Sqrt[2];
MatrixForm[Simplify[P . GreenMatrix[g, z] . P, t > 0 && U > 0]]The frequency enters as
gT = LehmannGreen[dimer, space, {c[1, SpinUp], c[2, SpinUp]}, "Temperature" -> T, "ChemicalPotential" -> μ];
bonding = Select[Transpose[{gT["Poles"], Z (P . # . P)[[1, 1]] & /@ gT["Residues"]}], ! PossibleZeroQ[Last[#]] &];
MatrixForm[FullSimplify[bonding, T > 0 && t > 0 && U > 0]]The antibonding orbital has the other four, those of the bonding orbital with
LowestStates[H, k] gives the k lowest energies and states of a matrix with numbers, dense or (on large sectors) by
Arnoldi, and StateToKet writes them:
{energies, states} = LowestStates[FockMatrix[dimer /. {t -> 1, U -> 4}, sector], 1];
Chop[StateToKet[sector, First[states]]]-0.270598 Ket[{{0}, {↑↓}}] + 0.653281 Ket[{{↓}, {↑}}] - 0.653281 Ket[{{↑}, {↓}}] - 0.270598 Ket[{{↑↓}, {0}}]
Ten sites at half filling, a sector of 63 504 states; the spin correlations from site 1 alternate in sign:
ring[L_] := -Sum[PlusHC[cDag[i, s] ** c[Mod[i, L] + 1, s]], {i, L}, {s, $Spins}] + 4 Sum[DOp[i], {i, L}];
ringSector = FockSector[FockSpace[Range[10]], "N" -> 10, "Sz" -> 0];
{energies, states} = LowestStates[FockMatrix[ring[10], ringSector], 1];
Table[FockExpectation[SdotS[1, 1 + d], First[states], ringSector], {d, 5}]{-0.322566, 0.103488, -0.107313, 0.0724331, -0.0859561}
A ring of twelve sites (853 776 states) is written as a matrix in about four seconds; above $FockDenseLimit the
lowest states are found by Arnoldi, with degenerate multiplets complete.
With one fermion on every site ("Counts"), the sector is the space of the spins, and SdotS is the Heisenberg
exchange. The ring of ten spins, whose energy per site tends to
spins = FockSector[FockSpace[Range[10]], "Sz" -> 0, "Counts" -> Table[{{c[i, SpinUp], c[i, SpinDown]}, 1}, {i, 10}]];
{spins["Dimension"], First[First[LowestStates[FockMatrix[Sum[SdotS[i, Mod[i, 10] + 1], {i, 10}], spins], 1]]]}{252, -4.51545}
With numbers the same functions work on larger clusters; at a temperature every sector is diagonalised in full. The
ring of four sites above (256 states) at
g4 = LehmannGreen[ring[4], FockSpace[Range[4]], {c[1, SpinUp]}, "Temperature" -> 1/2, "ChemicalPotential" -> 2];
{g4["GrandPotential"], GrandPotential[ring[4], FockSpace[Range[4]], 1/2, 2], Length[g4["Poles"]]}{-10.8025, -10.8025, 165}
At zero temperature only the ground multiplet has weight, and the poles are the excitation energies:
Sort[LehmannGreen[dimer /. {t -> 1, U -> 4}, FockSpace[{1, 2}], {c[1, SpinUp]}]["Poles"]]{-3.82843, -1.82843, 1.82843, 3.82843}
The ground state of free fermions is Gaussian, so Wick's theorem must be exact there: the hopping amplitude of the free ring of six sites, read from its exact ground state, and the exchange of a bond by Wick's theorem with it, against the exact value.
freeSector = FockSector[FockSpace[Range[6]], "N" -> 6, "Sz" -> 0];
free = First[Last[LowestStates[FockMatrix[ring[6] /. DOp[_] -> 0, freeSector], 1]]];
chi = FockExpectation[cDag[1, SpinUp] ** c[2, SpinUp], free, freeSector];
{WickVEV[SdotS[1, 2], SpinSingletState[]] /. χ[1, 2] -> chi, FockExpectation[SdotS[1, 2], free, freeSector]}{-0.166667, -0.166667}