Skip to main content

Peierls

Trait Peierls 

Source
pub trait Peierls: Send + Sync {
    // Required method
    fn phase(&self, to: Vec3, from: Vec3) -> f64;
}
Expand description

Peierls phase of the hopping ⟨i| H |j⟩: φ(r_i, r_j) = ∫ A · dl from r_j to r_i, in radians (charge and ħ absorbed in A). It must be antisymmetric: φ(a, b) = −φ(b, a).

Required Methods§

Source

fn phase(&self, to: Vec3, from: Vec3) -> f64

The phase φ(r_i, r_j) (radians) of the block ⟨i| H |j⟩, with to = r_i and from = r_j (Cartesian positions).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F: Fn(Vec3, Vec3) -> f64 + Send + Sync> Peierls for F