Repository navigation
FermiWick 0.2.0
Fermion ladder operators in the Wolfram Language, as symbols and as matrices: normal ordering with compact local operators, Wick's theorem in Gaussian states declared by their symmetries, mean field of any order, Gutzwiller projectors, and exact diagonalisation on symmetry sectors.
Install it with
PacletInstall["https://github.com/n4sd4q/FermiWick/releases/download/v0.2.0/FermiWick-0.2.0.paclet"]
Needs["FermiWick`"]Website: https://n4sd4q.github.io/FermiWick/ · the showcase and the manual are attached as PDFs.
What is in 0.2.0
FermiWick`Fock`: the operators of FermiWick as matrices, and exact diagonalisation.
FockSpace(modesc[i, s],c[i, o, s]with"Orbitals", spinlessc[i]with"Spins" -> None),FockSector(fixed
"N","Sz","Counts"),ModeIndex;FockMatrix[expr, target]reads any expression of the package, products in the
order written, symbolic coefficients, with no normal ordering;FockExpectation,OccupationBasis,BasisState,
StateToKet;LowestStates(dense or Arnoldi, complete degenerate multiplets),LehmannGreen,GreenMatrix;
SpinSquared,ParticleHoleOperator,TimeReversal,SectorBlock;ClearFockCache,$FockFullLimit,
$FockDenseLimit.- Operators are built directly in a sector, which is indexed through the combinatorial number system, read 12 bits at a
time from tables; diagonal strings need no look-up of their images. A Hubbard ring of twelve sites at half filling (a
sector of 853 776 states) is written as a matrix in 3.8 s. - Fixed: a product with a vanishing local factor (
c[2, "↑"] ** c[2, "↑"]inside it) gave2*0**0instead of0in
ToSpinChargeBasiswhen its coefficient was not 1 (found by comparing the matrices of expressions with those of their
spin–charge forms). - Tests:
Tests/Fock.wlt(30 tests, 85 in all): the Jordan–Wigner matrices; the matrix of an expression equals that of its
normal order and of its spin–charge form; Wick's theorem exact in a free ground state; sectors; the
Hubbard dimer, a magnetic plaquette, Hubbard rings with Arnoldi. The exact checks ofWickVEVandMeanFielduse
FockMatrixinstead of matrices written by hand. - Documents: a section on matrices and exact diagonalisation in the showcase and in the manual, part 7 of the guided tour,
the README.