Skip to main content

Crate caroli_model

Crate caroli_model 

Source
Expand description

Tight-binding models on a Lattice and the matrices they produce on a Region.

A Model holds an on-site matrix per sublattice and a list of Hoppings ⟨(R, from)| H |(R + offset, to)⟩. Extra on-site terms that depend on the site (disorder, potentials) are added through OnSite, and a magnetic field through Peierls phases (see gauge). The model builds dense Hamiltonians of finite regions, Bloch Hamiltonians of partially periodic systems and the blocks used by transport.

Re-exports§

pub use sparse::SparseMatrix;

Modules§

continuum
Continuum (k·p) Hamiltonians and their discretisation on a lattice, as Kwant’s continuum.discretize.
gamma
4×4 matrices of the BHZ basis (E1↑, H1↑, E1↓, H1↓), named as in the thesis codes (numbers.f90, 2014 and later). With s the spin and τ the E/H orbital Pauli matrices:
gauge
Uniform magnetic fields B ẑ as Peierls phases, for Model::with_peierls.
pauli
Pauli matrices and Kronecker products, for spin and orbital degrees of freedom.
presets
Ready-made models.
sparse
Compressed sparse row (CSR) matrices for Hamiltonians of large regions: the operator of the kernel polynomial method and of Chebyshev time evolution on any geometry, and the format the GPU backends upload.

Structs§

Bond
A hopping block ⟨from| H |to'⟩ of a region repeated periodically (Model::bonds): to' is the image of site to of the region that lies images periods away (one count per period), at displacement = r_to' − r_from. Hopping terms and Peierls phases are included.
Hopping
A hopping term: ⟨(R, from)| H |(R + offset, to)⟩ = matrix. Its Hermitian conjugate (the reverse hop) is added automatically.
Model
Tight-binding model on a lattice.

Traits§

HoppingTerm
Site-dependent hopping term (Kwant’s value functions for hoppings): the matrix ⟨(R, from)| H |(R + offset, to)⟩ of a hopping between two given sites, from the model’s matrix t; None keeps t. The reverse hop is its conjugate, so the Hamiltonian stays Hermitian. Bond disorder, strain, spatially varying parameters.
IntoMatrix
A matrix argument of Model: a CMat, or a number for a single orbital.
OnSite
Site-dependent on-site term, added to the sublattice on-site matrix.
Peierls
Peierls phase of the hopping ⟨i| H |j⟩: φ(r_i, r_j) = ∫ A · dl from r_j to r_i, in radians (charge and ħ absorbed in A). It must be antisymmetric: φ(a, b) = −φ(b, a).

Functions§

combine
Σ_i c_i M_i for small matrices of the same shape, with real or complex coefficients: combine(&[(4.0 * t, &s0()), (e_z, &sz())]).

Type Aliases§

CMat
Complex dense matrix (orbital blocks and Hamiltonians).
c64
Complex<f64>