pub struct Sweeps {
pub z: c64,
pub sigma_l: CMat,
pub sigma_r: CMat,
pub left: Vec<CMat>,
pub right: Vec<CMat>,
}Expand description
Recursive sweeps of a two-terminal device at one energy z:
left[n] is the Green’s function of slices 0..=n with the left lead only, right[n] that
of slices n..N with the right lead only. Everything else follows:
G_nn = [z − H_nn − Σ^<-side_n − Σ^>-side_n]⁻¹, G_n0 = right[n] V_{n−1}† G_{n−1,0} and
G_{n,N−1} = left[n] V_n G_{n+1,N−1}.
Fields§
§z: c64Energy of the device: E, or E + iη with SelfEnergyMethod::Decimation.
sigma_l: CMatSelf-energy Σ_L of the left lead on slice 0.
sigma_r: CMatSelf-energy Σ_R of the right lead on slice N−1.
left: Vec<CMat>left[n]: block (n, n) of the Green’s function of slices 0..=n with the left lead only.
right: Vec<CMat>right[n]: block (n, n) of the Green’s function of slices n..N with the right lead only.
Implementations§
Source§impl Sweeps
impl Sweeps
Sourcepub fn diagonal(&self, sys: &TwoTerminal, n: usize) -> CMat
pub fn diagonal(&self, sys: &TwoTerminal, n: usize) -> CMat
Full diagonal block G_nn.
Sourcepub fn first_column(&self, sys: &TwoTerminal) -> Vec<CMat> ⓘ
pub fn first_column(&self, sys: &TwoTerminal) -> Vec<CMat> ⓘ
Column G_n0 for every slice n (propagation from the left lead).
Sourcepub fn last_column(&self, sys: &TwoTerminal) -> Vec<CMat> ⓘ
pub fn last_column(&self, sys: &TwoTerminal) -> Vec<CMat> ⓘ
Column G_{n,N−1} for every slice n (propagation from the right lead).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sweeps
impl RefUnwindSafe for Sweeps
impl Send for Sweeps
impl Sync for Sweeps
impl Unpin for Sweeps
impl UnsafeUnpin for Sweeps
impl UnwindSafe for Sweeps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more