kwant.builder._VectorizedFinalizedBuilderMixin

class kwant.builder._VectorizedFinalizedBuilderMixin[source]

Bases: kwant.builder._FinalizedBuilderMixin

Common functionality for all vectorized finalized builders

_term_values[source]

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).

Type

sequence

_onsite_term_by_site_id[source]

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

Type

sequence of int

_hopping_term_by_edge_id[source]

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’.

Type

sequence of int

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