kwant.builder._VectorizedFinalizedBuilderMixin

class kwant.builder._VectorizedFinalizedBuilderMixin[source]

Bases: kwant.builder._FinalizedBuilderMixin

Common functionality for all vectorized finalized builders

Attributes
_term_valuessequence

Each item is either an array of values (if ‘param_names is None’) or a vectorized value function (in which case ‘param_names’ is a sequence of strings: the extra parameters to the value function).

_onsite_term_by_site_idsequence of int

Maps site (integer) to the term that evaluates the associated onsite matrix element.

_hopping_term_by_edge_idsequence of int

Maps edge id in the graph to the term that evaluates the associated hopping matrix element. If negative, then the associated hopping is the Hermitian conjugate of another hopping; if the number stored is ‘t’ (< 0) then the associated hopping is stored in term ‘-t - 1’.

Methods

discrete_symmetry(args=(), *, params=None)[source]
hamiltonian(i, j, *args, params=None)[source]
hamiltonian_term(index, selector=slice(None, None, None), args=(), params=None)[source]
pos(i)[source]

Previous topic

kwant.builder._FinalizedBuilderMixin

Next topic

3.3. kwant.lattice – Bravais lattices

This Page