Skip to main content

Module continuum

Module continuum 

Source
Expand description

Continuum (k·p) Hamiltonians and their discretisation on a lattice, as Kwant’s continuum.discretize.

An expression such as "C - D*(k_x^2 + k_y^2) + (M - B*(k_x^2 + k_y^2))*kron(s0, sz)" is a polynomial in (k_x, k_y, k_z) with matrix coefficients. On a square (cubic) lattice of constant a, k → −i∂ and the derivatives become central finite differences: ∂ → (T − T†)/2a, ∂² → (T − 2 + T†)/a², higher powers by products of these, and mixed terms by products over the directions.

Syntax: numbers, the 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) (index of b fastest), + − * / (division by numbers), integer powers ^ or **, parentheses, pi and the functions of a real number sqrt exp ln sin cos tan abs. A number stands for that multiple of the identity. evaluate and number give the value of an expression without k.

Structs§

Continuum
A continuum (k·p) Hamiltonian: a polynomial in (k_x, k_y, k_z) with matrix coefficients.

Enums§

ContinuumError
Errors of Continuum::parse.

Functions§

evaluate
Value of an expression without k (the syntax of Continuum::parse): a matrix, or a number (a 1 × 1 matrix) when no Pauli matrix appears.
number
Value of a real number expression (parameters, pi, the functions of evaluate’s syntax).