Examples
While we present core functionality in the User Guide, we here provide several examples along with XDiag to demonstrate how we can build more advanced applications from these basic building blocks. The examples are provided in the directory examples
in the C++ source code directory, and can be compiled using CMake.
The executables are then available in the directory build/examples
. Most examples are also provided as a Julia script, and visualization scripts for the results are available.
Ground states
-
Ground state energy
Computes the ground state energy of a simple Heisenberg spin \(S=1/2\) chain
-
Ground state correlators
Computes ground state correlators of a simple Heisenberg spin \(S=1/2\) chain with the help of symmetries.
-
Entanglement entropy ground state
Computes ground state entanglement entropy of an XXZ spin \(S=1/2\) chain.
-
CDW in attractive Hubbard model
Computes charge correlations in the ground state of the attractive 2D Hubbard model.
-
Kitaev-Heisenberg honeycomb model
Computes the ground state of the Heisenberg-Kitaev model throughout its phase diagram
Full exact diagonalization
-
Specific heat random t-J model
Computes the specific heat of the random t-J model via full ED over multiple disorder realizations.
-
Specific heat triangular t-J model
Computes the specific heat of the triangular t-J model via full ED.
-
Spin chain level statistics
Demonstrates Poissonian and Wigner-Dyson level statistics of integrable and non-integrable spin chains, respectively.
-
Many-body localization
Studies hallmark diagonstics of a many-body localized system.
Tower of States
-
TOS \(\alpha \text{XX}\) chain
Performs a tower of states analysis for the \(\alpha \text{XX}\) chain.
-
Heisenberg chain momentum resolved
Performs a (momentum) tower of states analysis for the antiferromagnetic chain.
-
Square lattice Heisenberg model
Performs a tower of states analysis for the Heisenberg model in the square lattice.
-
\(J_1 - J_2\) model triangular lattice
Performs a tower of states analysis for the \(J_1 - J_2\) model in the triangular lattice.
-
\(J_1 - J_2 - J_3\) Model in the kagome lattice
Performs a tower of states analysis for an extended kagome lattice Heisenberg antiferromagnet.
-
Attractive Hubbard model
Performs a tower of states analysis for the superconducting state in the attractive Hubbard model.
Dynamical spectral functions
Time Evolution
-
Domain wall dynamics
Demonstrates the time evolution of a domain wall in the \(S=1/2\) XXZ chain.
-
Slow quench
Demonstrates the implementation of slow quench in the \(S=1/2\) Ising chain.
-
Hubbard interaction quench
Demonstrates the implementation of an interaction quench in the 2D Hubbard model.
Thermodynamics
-
Specific heat Shastry-Sutherland
Computes the specific heat using the TPQ states (finite temperature Lanczos method) for the Shastry Sutherland model.
-
Wilson ratio \(J_1\)-\(J_2\) square lattice
Computes the Wilson ratio using the TPQ states (finite temperature Lanczos method) for the \(J_1\)-\(J_2\) model on the square lattice