Tight-Binding Models
On this page
A model is the Hamiltonian of a crystal written once for every cell: an on-site matrix for each sublattice, a list of hoppings, and the terms that make it depend on the site (disorder, potentials, strain, a magnetic field). It holds no sample. On a region it builds the matrices every method needs: the dense Hamiltonian of a finite sample, its sparse form for the large ones, the Bloch Hamiltonian of a periodic supercell, the slice blocks of transport and the velocity operator. This page describes the model of the crate caroli-model, the ready-made models (BHZ, graphene, the hypercubic lattices, Qi–Wu–Zhang) and the continuum k·p Hamiltonians that it discretises.
The model
A model on a lattice holds:
| Part | What it is |
|---|---|
| On-site matrices | \(\varepsilon_\alpha\), \(n_\alpha \times n_\alpha\), one per sublattice (zero until set) |
| Hoppings | \(t = \langle (\mathbf R, \alpha) \rvert H \lvert (\mathbf R + \mathbf n, \beta) \rangle\), \(n_\alpha \times n_\beta\), the same in every cell \(\mathbf R\): the rows are the orbitals of \(\alpha\), the columns those of \(\beta\). The reverse hop is \(t^{\dagger}\), implied |
| Site-dependent on-site terms | OnSite: a matrix \(V_k(i)\), or nothing, for each site \(i\) |
| Site-dependent hopping terms | HoppingTerm: a new block \(F_k(i, j, t)\), or nothing, for a hopping between two given sites |
| A Peierls phase | \(\phi(\mathbf r_i, \mathbf r_j)\), set by with_peierls or by with_field for a uniform field (Magnetic Fields) |
On any set of sites, the blocks of the Hamiltonian are
$$ H_{ii} = \varepsilon_{\alpha_i} + \sum_k V_k(i) , $$
$$ H_{ij} = e^{i \phi(\mathbf r_i, \mathbf r_j)}\, F_K\big(i, j, \dots F_2(i, j, F_1(i, j, t))\big) , \qquad H_{ji} = H_{ij}^{\dagger} , $$
for every hopping \(t\) from \(i = (\mathbf R, \alpha)\) to \(j = (\mathbf R + \mathbf n, \beta)\). The hopping terms apply in the order they were added, each to the result of the previous ones; a term that returns nothing leaves its argument as it is. The blocks of several hoppings between the same two sites add up.
Each bond is listed once: its conjugate is added by the model, and a hopping given in both directions counts twice. A hopping with \(\mathbf n = 0\) between two sublattices of a cell is allowed (graphene's A–B bond inside the cell); with \(\mathbf n = 0\) and \(\alpha = \beta\) it would be an on-site term, and the model refuses it. The sizes of every matrix are checked against the numbers of orbitals. A site of one orbital takes a number instead of a \(1 \times 1\) matrix.
Site-dependent terms
An on-site term is any function of the site that returns a matrix or nothing; the terms of a site add up. Disorder (Disorder), an electrostatic potential, a Zeeman field or a local exchange enter this way. onsite_matrix(site) gives the whole on-site block, sublattice_onsite(α) the uniform part and onsite_terms(site) the site-dependent part alone.
A hopping term is Kwant's value function for hoppings: it receives the two sites and the current block \(t\), and returns the block to use. It is always called with the two sites in the orientation of the stored hopping, the site of sublattice \(\alpha\) in cell \(\mathbf R\) first and that of \(\beta\) in cell \(\mathbf R + \mathbf n\) second, whichever end of the bond the builder starts from. The reverse block is its conjugate, so the Hamiltonian stays Hermitian whatever the term returns. Bond disorder, strain, spatially varying parameters and Peierls phases written by hand are hopping terms. A model without hopping terms nor Peierls phase has uniform hoppings (has_uniform_hoppings), as the tori of Periodic Supercells require.
The Peierls phase multiplies each block after the hopping terms; the Bloch phase of a periodic supercell multiplies it last.
The Hamiltonians
Dense
hamiltonian(region) is the \(N \times N\) matrix of a finite region with open boundaries, in the orbital layout of the region. It writes the on-site blocks, then, for every site and every hopping, looks up the partner of the site at either end of the hopping in the region's hash table. Each bond is met once from each end, which writes \(H_{ij}\) and \(H_{ji} = H_{ij}^{\dagger}\). The cost is \(O(N_s N_t n^2)\) for \(N_s\) sites, \(N_t\) hoppings and blocks of size \(n\), and the memory \(16 N^2\) bytes. coupling(a, b) gives \(\langle a \rvert H \lvert b \rangle\) between two disjoint regions, the rows on \(a\) and the columns on \(b\).
Sparse
sparse_hamiltonian(region) builds the same matrix in compressed sparse row (CSR) form: the non-zero entries are collected as triplets (the entries that are exactly zero in the model's matrices are skipped), sorted by row and column, and the duplicates summed. The column indices are 32-bit integers, as the GPU kernels read them, so the dimension is at most \(2^{32} - 1\). A matrix of \(\mathrm{nnz}\) entries takes \(20\, \mathrm{nnz} + 8 (N + 1)\) bytes.
| Method | What it does |
|---|---|
apply(x, y) | \(y = H x\), the rows in parallel above \(2^{14}\) rows |
apply_block(x, y, m) | \(Y = H X\) for \(m\) vectors stored interleaved, \(x[\mathrm{row} \cdot m + v]\): the matrix is read once for the whole block |
spectral_bounds() | Gershgorin's bounds, \(\big[\min_r (\mathrm{Re}\, H_{rr} - R_r), \max_r (\mathrm{Re}\, H_{rr} + R_r)\big]\) with \(R_r = \sum_{c \ne r} \lvert H_{rc} \rvert\) |
rescaled(e0, ΔE) | \(\tilde H = (H - e_0)/\Delta E\), the operator of the Chebyshev expansions (conventions) |
to_dense() | The dense matrix |
The kernel polynomial method, the Chebyshev propagation, the nested dissection and the GPU kernels work on this form.
Bloch
bloch_hamiltonian(region, periods, phases) and sparse_bloch_hamiltonian repeat the region along integer periods \(\mathbf T_l\) with the Bloch phases \(\theta_l = \mathbf k \cdot \mathbf T_l\): a hopping that leaves the region by \(n_l\) periods picks up \(e^{i \sum_l n_l \theta_l}\) (Periodic supercells describes how the images are found). For a region of one cell repeated along the primitive vectors this is
$$ H(\mathbf k) = \sum_{\mathbf n} H_{0 \mathbf n}\, e^{i \mathbf k \cdot \mathbf n} , $$
with \(\mathbf k \cdot \mathbf n = \sum_i n_i \theta_i\). The phase uses the cell offset \(\mathbf n\) of the hopping and leaves out the positions of the sites in the cell: \(H(\mathbf k)\) is \(2\pi\)-periodic in each \(\theta_i\). The eigenvalues do not depend on that choice; the eigenvectors differ by \(e^{i \mathbf k \cdot \boldsymbol\tau_\alpha}\) on sublattice \(\alpha\) from those of the convention that puts the positions in the phase.
Slice blocks
slice_blocks(region, axis) cuts the region into slices along a primitive vector and returns the slices, their Hamiltonians \(H_{nn}\) and their couplings \(V_n = \langle n \rvert H \lvert n + 1 \rangle\), as described in Slices along an axis. It panics when a hopping reaches beyond the next slice. The transport constructors (TwoTerminal::from_model, NestedTwoTerminal::from_model) start from these blocks, or from the sparse Hamiltonian of the region, and build the leads from the clean model (Lead Modes and Self-Energies).
Bonds
bonds(region, periods) lists every hopping block of a region, open or repeated along periods, in both directions: the block \(\langle i \rvert H \lvert j' \rangle\) with its hopping terms and Peierls phase but without the Bloch phase, the index of the site \(j\) of which \(j'\) is an image, the numbers of periods between them, and the displacement \(\mathbf d = \mathbf r_{j'} - \mathbf r_i\). With them, a uniform vector potential \(\mathbf A\) multiplies each block by \(e^{-i \mathbf A \cdot \mathbf d}\) (conventions), which is how the time evolution under an electric field builds its Hamiltonians (Time Evolution).
Velocity
sparse_velocity(region, periods, phases, direction) is the velocity operator along a unit vector \(\hat{\mathbf u}\), the commutator of the Hamiltonian with the position (\(\hbar = 1\)):
$$ v = i\,[H, \mathbf r \cdot \hat{\mathbf u}] , \qquad v_{ij} = i\, H_{ij}\, (\mathbf r_j - \mathbf r_i) \cdot \hat{\mathbf u} . $$
The displacement is that of the hopping itself, \(\mathbf r_j\) being the image across the periods, so the operator is also the velocity of a torus. On-site terms do not contribute: the orbitals of a site share its position. The Kubo–Bastin conductivities of the kernel polynomial method use it.
Spin and orbital matrices
pauli::{s0, sx, sy, sz} are the identity and the Pauli matrices,
$$ \sigma_x = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \qquad \sigma_y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \qquad \sigma_z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, $$
and kron(a, b) is the Kronecker product \(a \otimes b\) with the index of \(b\) fastest, \((a \otimes b)_{(i p + k)(j q + l)} = a_{ij}\, b_{kl}\) for a \(b\) of size \(p \times q\). combine(&[(c1, &M1), (c2, &M2), ...]) is \(\sum_k c_k M_k\), with real or complex coefficients. A Rashba wire, for instance, has the on-site block \(4t\, s_0 + E_Z s_z\) and the hoppings \(-t\, s_0 + i (\alpha/2) s_y\) along \(x\) and \(-t\, s_0 - i(\alpha/2) s_x\) along \(y\).
The BHZ model of HgTe quantum wells
The model of Bernevig, Hughes and Zhang describes the lowest subbands of a HgTe/CdTe quantum well near \(\Gamma\): the electron-like \(E_1\) and the heavy-hole \(H_1\), each with its two Kramers partners, written \(\uparrow\) and \(\downarrow\) (\(m_J = \pm 1/2\) for \(E_1\), \(\pm 3/2\) for \(H_1\)). The basis is \((E_1\uparrow, H_1\uparrow, E_1\downarrow, H_1\downarrow)\), as in the thesis codes: with \(s\) the Pauli matrices of the spin and \(\tau\) those of the orbital \((E_1, H_1)\), a matrix of the basis is \(s \otimes \tau\). The continuum Hamiltonian is, in caroli's convention,
$$ H(\mathbf k) = C - D k^2 + (M - B k^2)\, \tau_z + A\, (k_x\, s_z \tau_x - k_y\, \tau_y) + \lambda\, (k_x\, s_y + k_y\, s_x \tau_z) . $$
For \(\lambda = 0\) it splits into two blocks \(h_\uparrow(\mathbf k) = \varepsilon(\mathbf k) + \mathbf d(\mathbf k) \cdot \boldsymbol\tau\) with \(\mathbf d = (A k_x, -A k_y, M - B k^2)\), and \(h_\downarrow(\mathbf k) = h_\uparrow^{\ast}(-\mathbf k)\), its time-reversed partner. The term in \(\lambda\) couples the two blocks, so that \(s_z\) is no longer conserved; it is odd under the inversion \(\tau_z H(-\mathbf k) \tau_z\), which leaves the other terms unchanged.
On the square lattice
presets::bhz discretises it on a square lattice of constant 1, one site of 4 orbitals per cell, with the Dirac matrices of the thesis codes:
$$ \varepsilon_0 = (C - 4D)\, \Gamma_0 + (M - 4B)\, \Gamma_{55} , $$
$$ t_x = D\, \Gamma_0 + B\, \Gamma_{55} - \tfrac{i}{2} (A\, \Gamma_{33} - \lambda\, \Gamma_{13}) , \qquad t_y = D\, \Gamma_0 + B\, \Gamma_{55} + \tfrac{i}{2} (A\, \Gamma_{44} - \lambda\, \Gamma_{14}) , $$
the hoppings \(t_x\) and \(t_y\) going to the cells \(+\mathbf a_1\) and \(+\mathbf a_2\). Its Bloch Hamiltonian is
$$ H(\mathbf k) = \varepsilon(\mathbf k) + M(\mathbf k)\, \tau_z + A \sin k_x\, s_z \tau_x - A \sin k_y\, \tau_y + \lambda\, (\sin k_x\, s_y + \sin k_y\, s_x \tau_z) , $$
$$ \varepsilon(\mathbf k) = C - 2D\, (2 - \cos k_x - \cos k_y) , \qquad M(\mathbf k) = M - 2B\, (2 - \cos k_x - \cos k_y) , $$
which is the continuum Hamiltonian near \(\Gamma\). It is exactly the central-difference discretisation of the continuum form with \(a = 1\). The mass \(M(\mathbf k)\) is negative at \(\Gamma\) only, with the default parameters: \(M = -0.137\) at \(\Gamma\), \(M - 4B = 1.369\) at X and \(M - 8B = 2.874\) at the corner of the zone. The bands are inverted at \(\Gamma\) alone: the quantum spin Hall phase, whose ribbons carry two helical edge channels in the gap. The bulk gap is \(2\lvert M \rvert = 0.274\) (20 meV), between the band edges \(\pm 0.137\) at \(\Gamma\).
| Matrix | Kronecker form | Term |
|---|---|---|
| \(\Gamma_0\) | \(s_0 \tau_0\) | \(C\), \(D\) |
| \(\Gamma_{55}\) | \(s_0 \tau_z\) | \(M\), \(B\) |
| \(\Gamma_{33}\) | \(s_z \tau_x\) | \(A \sin k_x\) |
| \(\Gamma_{44}\) | \(s_0 \tau_y\) | \(A \sin k_y\) |
| \(\Gamma_{13}\) | \(-s_y \tau_0\) | \(\lambda\) along \(x\) |
| \(\Gamma_{14}\) | \(s_x \tau_z\) | \(\lambda\) along \(y\) |
| \(\Gamma_{23}\), \(\Gamma_{31}\), \(\Gamma_{12}\) | \(s_x\), \(s_y\), \(s_z\) (times \(\tau_0\)) | Exchange, same-g |
| \(\Gamma'_{23}\), \(\Gamma'_{31}\), \(\Gamma'_{12}\) | \(s_x \tau_z\), \(s_y \tau_z\), \(s_z \tau_z\) | Exchange, opposite-g |
The primed matrices are gamma23p, gamma31p and gamma12p in the code (\(\Gamma'_{23}\) is the same matrix as \(\Gamma_{14}\)). Every one of them is Hermitian and squares to the identity.
Parameters and units
Energies are in units of \(A/a\) and lengths in units of the lattice constant \(a\), so \(A = 1\). The defaults are the HgTe/CdTe values of the thesis, \(A = 364.5\) meV·nm, \(B = -686\) meV·nm², \(D = -512\) meV·nm², \(M = -10\) meV, with \(a = 5\) nm, so that \(A/a = 72.9\) meV:
Field of BhzParams | Symbol | Default | Physical value |
|---|---|---|---|
a | \(A\) | 1 | 364.5 meV·nm |
b | \(B\) | −0.376406 | \(B/(A a)\) with \(B = -686\) meV·nm² |
c | \(C\) | 0 | A uniform shift |
d | \(D\) | −0.280933 | \(D/(A a)\) with \(D = -512\) meV·nm² |
mass | \(M\) | −0.137 | −10 meV |
lambda | \(\lambda\) | 0 | Coupling of the spin blocks |
In the continuum model the bands are inverted when \(M/B \gt 0\), as with the defaults (\(M/B = 0.364\)), and \(M/B \lt 0\) is a normal insulator. On the lattice, the mass of a spin block is \(M(\mathbf k) = (M - 4B) + 2B (\cos k_x + \cos k_y)\), and the block carries a Chern number \(\pm 1\) for \(0 \lt M/B \lt 8\) (inverted at \(\Gamma\) alone for \(M/B \lt 4\)), none for \(M/B \lt 0\) or \(M/B \gt 8\), as long as \(\lvert D \rvert \lt \lvert B \rvert\) keeps a gap.
Spin blocks
presets::bhz_block(params, Spin::Up) (or Spin::Down) is one block of the BHZ model without \(\lambda\), a square lattice of two orbitals \((E_1, H_1)\):
$$ \varepsilon_0 = (C - 4D) + (M - 4B)\, \tau_z , \qquad t_x = D + B\, \tau_z \mp \tfrac{i}{2} A\, \tau_x , \qquad t_y = D + B\, \tau_z + \tfrac{i}{2} A\, \tau_y , $$
the upper sign for spin up. The spectrum of the full model with \(\lambda = 0\) is the union of those of its two blocks. The four-terminal code of the thesis worked with the spin-up block; with moments along \(z\), the exchange keeps the blocks apart, and each spin can be solved as a model of two orbitals.
Exchange with classical moments
A classical unit moment \(\mathbf n\) on a site couples to the electrons through \(J\, \mathbf n \cdot \mathbf S\), with \(\mathbf S\) the spin matrices of presets::bhz_spin(coupling):
GFactors | \(g\)-factors | \(\mathbf S\) | A moment along \(z\) |
|---|---|---|---|
Same (same-g) | \(g_E = g_H\) | \((s_x, s_y, s_z)\) | \(J n_z s_z\) shifts the two spin blocks by \(\pm J n_z\) in energy |
Opposite (opposite-g) | \(g_E = -g_H\) | \((s_x \tau_z, s_y \tau_z, s_z \tau_z)\) | \(J n_z s_z \tau_z\) shifts the masses of the two blocks, \(M \to M \pm J n_z\) |
presets::bhz_exchange(coupling, J, n) is the matrix \(J\, (n_x S_x + n_y S_y + n_z S_z)\). The names describe the \(g\)-factors of the two subbands; they have nothing to do with a magnetic order. Impurities with random moments are described in Disorder, their mean field in the Born approximation.
Graphene, the hypercubic lattices and the Qi–Wu–Zhang model
The caroli command builds five more models, each in a few lines of the library; the energy unit is their hopping.
Graphene (preset = "graphene"): the honeycomb lattice of nearest-neighbour distance spacing, with the hopping \(-t\) from each A site to the B sites of the cells \(\mathbf R\), \(\mathbf R - \mathbf a_2\) and \(\mathbf R + \mathbf a_1 - \mathbf a_2\). Its Bloch Hamiltonian is
$$ H(\mathbf k) = \begin{pmatrix} 0 & f(\mathbf k) \\ f^{\ast}(\mathbf k) & 0 \end{pmatrix}, \qquad f(\mathbf k) = -t\, \big(1 + e^{-i \theta_2} + e^{i(\theta_1 - \theta_2)}\big) , $$
with \(\theta_i = \mathbf k \cdot \mathbf a_i\) and the bands \(\pm \lvert f \rvert\), which touch at the Dirac points, for instance \((\theta_1, \theta_2) = (4\pi/3, 2\pi/3)\).
Chain, square, cubic (preset = "chain", "square", "cubic"): one site per cell and the hopping \(-t\) along each primitive vector, \(E(\mathbf k) = -2t \sum_i \cos \theta_i\), a band from \(-2dt\) to \(2dt\) in \(d\) dimensions.
With spin = true, graphene and the hypercubic lattices get two orbitals per site, the spin fastest, and every matrix \(x\) becomes \(x \otimes s_0\).
Qi–Wu–Zhang (preset = "qwz"): a Chern insulator on the square lattice with two orbitals per site, the on-site block \(m\, \sigma_z\) and the hoppings \((\sigma_z - i \sigma_x)/2\) along \(x\) and \((\sigma_z - i \sigma_y)/2\) along \(y\):
$$ H(\mathbf k) = \sin k_x\, \sigma_x + \sin k_y\, \sigma_y + (m + \cos k_x + \cos k_y)\, \sigma_z . $$
The gap closes at \(m = 0\) and \(m = \pm 2\); for \(0 \lt \lvert m \rvert \lt 2\) the bands carry a Chern number \(\pm 1\). On a 32 × 32 torus, the Kubo–Bastin conductivity of the kernel polynomial method gives \(\sigma_{xy} = -e^2/h\) for \(m = 1\) and \(+e^2/h\) for \(m = -1\), within 0.03, and \(\sigma_{xx} = 0\) within 0.01, in the gap.
Continuum k·p models
Continuum::parse reads a k·p Hamiltonian, a polynomial in \(\mathbf k\) with matrix coefficients, and discretize(a) turns it into a tight-binding model on a lattice of constant \(a\), as Kwant's continuum.discretize does.
The parser
An expression is made of numbers, named parameters, k_x k_y k_z (or kx ky kz), the Pauli matrices s0 sx sy sz (or sigma_0, ...), the imaginary unit i, kron(a, b) (the index of b fastest), + − * /, integer powers ^ or **, parentheses, pi and the functions of one real number sqrt exp ln sin cos tan abs. The grammar is the usual one:
| Rule | Form |
|---|---|
| expression | term, then any number of + term or − term |
| term | factor, then any number of * factor or / factor |
| factor | − factor, + factor, or an atom with an optional ^ n |
| atom | a number, a name, kron(e, e), a function f(e), or (e) |
A power binds tighter than a sign: -k_x^2 is \(-(k_x^2)\). The exponent is a non-negative integer written as a number. A division is by a number only; kron takes constant matrices and the functions constant real numbers. A number stands for that multiple of the identity, and all the matrices of an expression must have the same size, which is the number of orbitals of the model (one when no matrix appears). The built-in names come first: a parameter cannot be called i, sx or k_x, but one called pi replaces the constant. Errors name the faulty token and its position, an unknown name, or two sizes that do not match.
The result is
$$ H(\mathbf k) = \sum_{\mathbf p} C_{\mathbf p}\, k_x^{p_x} k_y^{p_y} k_z^{p_z} , $$
with constant \(n \times n\) matrices \(C_{\mathbf p}\). The coefficients commute with \(\mathbf k\), so no ordering of the operators has to be chosen. continuum::evaluate and continuum::number give the value of an expression without \(\mathbf k\), a matrix or a real number: every number and matrix of the caroli command's input goes through them.
The discretisation
Each \(k_\mu\) becomes \(-i \partial_\mu\), and the derivatives become central differences on the hypercubic lattice of constant \(a\):
$$ \partial_\mu \psi(\mathbf x) \to \frac{\psi(\mathbf x + a \hat{\mathbf e}_\mu) - \psi(\mathbf x - a \hat{\mathbf e}_\mu)}{2a} , \qquad \partial_\mu^2 \psi(\mathbf x) \to \frac{\psi(\mathbf x + a \hat{\mathbf e}_\mu) - 2\psi(\mathbf x) + \psi(\mathbf x - a \hat{\mathbf e}_\mu)}{a^2} . $$
A higher power is a product of these: \(\partial^p = D_1 D_2^{(p-1)/2}\) for an odd \(p\) and \(D_2^{p/2}\) for an even one, \(D_1\) and \(D_2\) being the two stencils above, multiplied as convolutions of their weights. A mixed monomial is the product of the stencils of its directions. The block of the hopping to the cell \(\mathbf o\) is then
$$ t_{\mathbf o} = \sum_{\mathbf p} C_{\mathbf p}\, (-i)^{p_x + p_y + p_z} \prod_\mu w_{p_\mu}(o_\mu) , $$
with \(w_p(o)\) the weight of the stencil of \(\partial^p\) at the offset \(o\); \(t_{\mathbf 0}\) is the on-site block. In \(\mathbf k\) space, each monomial of the continuum Hamiltonian becomes a product of functions of one component,
$$ k^p \to f_1(k)^{p \bmod 2}\, f_2(k)^{\lfloor p/2 \rfloor} , \qquad f_1(k) = \frac{\sin k a}{a} = k - \frac{k^3 a^2}{6} + \dots , \qquad f_2(k) = \frac{2 - 2\cos k a}{a^2} = k^2 - \frac{k^4 a^2}{12} + \dots , $$
so the lattice model agrees with the continuum one to a relative error \(O(k^2 a^2)\). A power \(p\) reaches \(\lceil p/2 \rceil\) cells: \(k_x^3\) gives hoppings to the second neighbours along \(x\), \(k_x k_y\) diagonal hoppings to \((\pm 1, \pm 1)\), and \(k^2\) the on-site \(2d/a^2\) with the hoppings \(-1/a^2\) to the \(2d\) neighbours.
The lattice is a chain, a square or a cubic lattice of constant \(a\), with one sublattice of \(n\) orbitals, of as many dimensions as \(\mathbf k\) has components (dim(): a polynomial in \(k_y\) alone is two-dimensional); discretize_in(a, d) takes more. The model stores the on-site block and the hoppings whose first non-zero offset is positive; their opposites must be their conjugates, and the on-site block must be Hermitian, within \(10^{-12}\) of the largest block, or the discretisation panics (i*k_x^2, for instance, is not Hermitian). Blocks that vanish are dropped.
The coefficients are constant. A potential or a parameter that varies in space is added to the discretised model with with_onsite_term or with_hopping_term. The parameters must be given in units consistent with \(a\): with \(a = 1\) and \(A = 1\), as for BHZ, the energy unit is \(A/a\). The continuum BHZ Hamiltonian,
C - D*(k_x^2 + k_y^2) + (M - B*(k_x**2 + k_y**2))*kron(s0, sz) + A*(k_x*kron(sz, sx) - k_y*kron(s0, sy))
discretised with \(a = 1\), gives the preset bhz to \(10^{-14}\).
Accuracy and tests
| Test | What it checks |
|---|---|
hermitian_and_involutive, spin_algebra (gamma) | Every Dirac matrix is Hermitian and squares to the identity; \(S_x S_y = i S_z\) for both couplings; \(\Gamma_{13} = -\Gamma_{31}\); to \(10^{-15}\) |
blocks_make_up_the_full_model (presets) | The spectrum of a 4 × 3 BHZ flake is the union of those of its two spin blocks, to \(10^{-12}\) |
bhz_from_its_continuum_form (continuum) | The discretised continuum BHZ Hamiltonian equals the preset on a 4 × 3 flake, to \(10^{-14}\) |
free_particle_and_errors (continuum) | \(k_x^2 + k_y^2\) at \(a = 0.5\): on-site \(4/a^2\), two hoppings \(-1/a^2\); third powers, mixed terms and a 3D lattice; unknown names, mismatched sizes, unbalanced parentheses |
constant_expressions, non_hermitian_terms (continuum) | Numbers and matrices without \(\mathbf k\), pi and the functions; the refusal of a non-Hermitian polynomial |
bond_disorder (tests/hopping_terms.rs) | A random factor per bond keeps the Hamiltonian Hermitian to \(10^{-15}\), the dense and sparse forms equal |
peierls_as_a_hopping_term (tests/hopping_terms.rs) | A hopping term that multiplies by the Peierls phase gives the Hamiltonian of with_peierls, to \(10^{-14}\) |
bonds_rebuild_the_hamiltonian, displacements_give_the_peierls_phases (tests/bonds.rs) | The bonds rebuild the open and periodic Hamiltonians (BHZ in a field, graphene with a local term) to \(10^{-14}\); \(e^{-i \mathbf A \cdot \mathbf d}\) on the bonds equals a uniform \(\mathbf A\) as a Peierls phase |
sparse_matches_dense (sparse) | Sparse and dense Hamiltonians, open and periodic, to \(10^{-15}\); the products \(Hx\) and \(HX\); Gershgorin's bounds hold the spectrum |
continuum_bhz_ribbon (caroli/tests/tutorials.rs) | The discretised continuum BHZ model on a 20 × 30 ribbon transmits \(T = 2\) within \(10^{-6}\) in the gap |
The BHZ preset reproduces the flake spectrum and the ribbon bands of the thesis codes to \(10^{-10}\) (the golden cases ti-diag and ti-ribbon-bands, Spectra and Bands), which pins down its Dirac matrices, hoppings and on-site terms.
In the code
Crate caroli-model (re-exported as caroli::model; the common items are in caroli::prelude):
| Item | Role |
|---|---|
Model | new, onsite, hopping, with_onsite_term, with_hopping_term, with_peierls, with_field, hamiltonian, sparse_hamiltonian, bloch_hamiltonian, sparse_bloch_hamiltonian, coupling, slice_blocks, bonds, sparse_velocity |
Hopping, Bond | A stored hopping; a hopping block of a region with its displacement |
OnSite, HoppingTerm, Peierls | Site-dependent terms and phases (closures implement them) |
IntoMatrix, CMat, c64 | Matrix arguments (a CMat or a number) |
SparseMatrix | CSR matrices: apply, apply_block, spectral_bounds, rescaled |
pauli, combine | Pauli matrices, Kronecker products, linear combinations |
gamma | The Dirac matrices of the BHZ basis |
presets | bhz, BhzParams, bhz_block, Spin, GFactors, bhz_spin, bhz_exchange |
continuum | Continuum (parse, discretize, discretize_in, dim), evaluate, number, ContinuumError |
The presets graphene, chain, square, cubic and qwz are built by the caroli command (crates/caroli-cli/src/build.rs, The caroli Command).
References
- B. A. Bernevig, T. L. Hughes and S.-C. Zhang, Quantum spin Hall effect and topological phase transition in HgTe quantum wells, Science 314, 1757 (2006).
- M. König, H. Buhmann, L. W. Molenkamp, T. Hughes, C.-X. Liu, X.-L. Qi and S.-C. Zhang, The quantum spin Hall effect: theory and experiment, J. Phys. Soc. Jpn. 77, 031007 (2008): the parameters of HgTe quantum wells.
- X.-L. Qi, Y.-S. Wu and S.-C. Zhang, Topological quantization of the spin Hall effect in two-dimensional paramagnetic semiconductors, Phys. Rev. B 74, 085308 (2006).
- A. H. Castro Neto, F. Guinea, N. M. R. Peres, K. S. Novoselov and A. K. Geim, The electronic properties of graphene, Rev. Mod. Phys. 81, 109 (2009).
- C. W. Groth, M. Wimmer, A. R. Akhmerov and X. Waintal, Kwant: a software package for quantum transport, New J. Phys. 16, 063065 (2014): value functions, and the discretisation of continuum models.
- L. Raymond, A. D. Verga and A. Demion, Anomalous quantum Hall effect induced by disorder in topological insulators, arXiv:1505.07145 (2015): the same-g and opposite-g exchange couplings in the BHZ model.
- A. Demion, Transport électronique dans le graphène et les isolants topologiques 2D en présence de désordre magnétique, PhD thesis, Aix-Marseille Université (2015).