Skip to main content

HoppingTerm

Trait HoppingTerm 

Source
pub trait HoppingTerm: Send + Sync {
    // Required method
    fn matrix(&self, from: &Site, to: &Site, t: &CMat) -> Option<CMat>;
}
Expand description

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.

Required Methods§

Source

fn matrix(&self, from: &Site, to: &Site, t: &CMat) -> Option<CMat>

The block ⟨from| H |to⟩ between the two sites of a Hopping (on its from and to sublattices), given its matrix t after the earlier terms; None keeps t.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Fn(&Site, &Site, &CMat) -> Option<CMat> + Send + Sync> HoppingTerm for F