The Su-Schrieffer-Heeger (SSH) model
Here's a simple example of the SSH Hamiltonian:
julia> using TopologicalNumbers
julia> function H₀(k, p)
t₁ = 1
t₂ = p
[
0 t₁+t₂*exp(-im * k)
t₁+t₂*exp(im * k) 0
]
endYou can also use our preset Hamiltonian function SSH to define the same Hamiltonian matrix as follows:
julia> H₀ = SSHThe band structure is computed as follows:
julia> H(k) = H₀(k, 1.1)
julia> showBand(H; value=false, disp=true)Next, we can calculate the winding numbers using BPProblem:
julia> prob = BPProblem(H);
julia> sol = solve(prob)The output is:
BPSolution{Vector{Int64}, Int64}([1, 1], 0)The first argument TopologicalNumber in the named tuple is a vector that stores the winding number for each band. The vector is arranged in order of bands, starting from the one with the lowest energy. The second argument Total stores the total of the winding numbers for each band (mod 2). Total is a quantity that should always return zero.
You can access these values as follows:
julia> sol.TopologicalNumber
2-element Vector{Int64}:
1
1
julia> sol.Total
0A one-dimensional phase diagram is given by:
julia> param = range(-2.0, 2.0, length=1001)
julia> prob = BPProblem(H₀);
julia> sol = calcPhaseDiagram(prob, param; plot=true)
(param = -2.0:0.004:2.0, nums = [1 1; 1 1; … ; 1 1; 1 1])