Skip to content

Commit

Permalink
documented fermionic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
angelariva committed Apr 28, 2024
1 parent afe10ee commit b82fa2f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,20 @@ end
"""
tightbinding_mpo(N, ϵd, chainparams1, chainparams2)
Generate MPO for a tight-binding chain of N fermionic sites with a single impurity site (fermionic as well)
of energy ϵd at the center. The impurity is coupled to two leads, each described by a set of chain parameters.
The interactions are nearest-neighbour, with the first N/2-1 sites corresponding to the first lead,
the Nth site corresponding to the impurity, and the rest of the sites corresponding to the second
lead.
# Arguments
* `N::Int`: number of sites in the chain
* `ϵd::Real`: energy of the impurity site at the center, as Ed - μ, where μ is the chemical potential
* chainparams1::Array{Real,1}: chain parameters for the first lead
* chainparams2::Array{Real,1}: chain parameters for the second lead
The chain parameters are given in the standard form: `chainparams` ``=[[ϵ_0,ϵ_1,...],[t_0,t_1,...],c_0]``.
"""
Expand Down Expand Up @@ -816,10 +828,19 @@ end
"""
interleaved_tightbinding_mpo(N, ϵd, chainparams1, chainparams2)
Generate MPO for a tight-binding chain of N fermionic sites with a single impurity site (fermionic as well)
of energy ϵd. The impurity is coupled to two leads, each described by a set of chain parameters.
The interactions are next-nearest-neighbour, with the first site corresponding to the impurity, and the
two chains organised in an interleaved fashion.
# Arguments
* `N::Int`: number of sites in the chain
* `ϵd::Real`: energy of the impurity site at the first site, as Ed - μ, where μ is the chemical potential
* chainparams1::Array{Real,1}: chain parameters for the first lead
* chainparams2::Array{Real,1}: chain parameters for the second lead
The chain parameters are given in the standard form: `chainparams` ``=[[ϵ_0,ϵ_1,...],[t_0,t_1,...],c_0]``.
"""

function interleaved_tightbinding_mpo(N, ϵd, chainparams1, chainparams2)
Expand Down

0 comments on commit b82fa2f

Please sign in to comment.