pub struct TwoTerminal {
pub slices: Vec<CMat>,
pub couplings: Vec<CMat>,
pub left: Lead,
pub right: Lead,
pub regions: Vec<Region>,
}Expand description
A device of N slices between a left lead (towards −∞) and a right lead (towards +∞).
couplings[n] = ⟨n| H |n+1⟩. The left lead couples to slice 0 through left.h01
(⟨lead| H |0⟩) and the right lead to slice N−1 through right.h01 (⟨N−1| H |lead⟩):
leads and device share the cross-section at the interfaces.
Fields§
§slices: Vec<CMat>Hamiltonian ⟨n| H |n⟩ of each slice, n = 0..N.
couplings: Vec<CMat>Couplings ⟨n| H |n+1⟩ between consecutive slices (N − 1 of them).
left: LeadLead towards −∞, coupled to slice 0 through left.h01.
right: LeadLead towards +∞, coupled to slice N−1 through right.h01.
regions: Vec<Region>Sites of each slice (orbital layout of slices[n]), when built from a model; empty for
systems assembled by hand.
Implementations§
Source§impl TwoTerminal
impl TwoTerminal
Sourcepub fn from_model(
device: &Model,
lead: &Model,
region: &Region,
axis: usize,
) -> Self
pub fn from_model( device: &Model, lead: &Model, region: &Region, axis: usize, ) -> Self
Two-terminal system built from a model on a region cut along primitive vector axis;
both leads continue the first and last slices of the region with the clean lead
model (the region’s own model may carry disorder).
Sourcepub fn with_lead_potentials(self, left: f64, right: f64) -> Self
pub fn with_lead_potentials(self, left: f64, right: f64) -> Self
Shifts the electrostatic potential of the left and right leads (bias): adds v·1 to
their cell Hamiltonians.
Sourcepub fn transmissions(
&self,
energies: &[f64],
method: SelfEnergyMethod,
) -> Vec<Result<f64, GreenError>>
pub fn transmissions( &self, energies: &[f64], method: SelfEnergyMethod, ) -> Vec<Result<f64, GreenError>>
Transmissions at many energies, in parallel, by independent blocks.
Sourcepub fn sweeps(
&self,
energy: f64,
method: SelfEnergyMethod,
) -> Result<Sweeps, GreenError>
pub fn sweeps( &self, energy: f64, method: SelfEnergyMethod, ) -> Result<Sweeps, GreenError>
Recursive sweeps from both ends at one energy (see Sweeps).
Sourcepub fn self_energies(
&self,
energy: f64,
method: SelfEnergyMethod,
) -> Result<(CMat, CMat), GreenError>
pub fn self_energies( &self, energy: f64, method: SelfEnergyMethod, ) -> Result<(CMat, CMat), GreenError>
Lead self-energies (Σ_L, Σ_R) on the first and last slices.
Sourcepub fn transmission(&self, energy: f64) -> Result<f64, GreenError>
pub fn transmission(&self, energy: f64) -> Result<f64, GreenError>
Transmission T(E) = Tr[Γ_L G_1N Γ_R G_1N†] with mode-matching self-energies.
Sourcepub fn transmission_with(
&self,
energy: f64,
method: SelfEnergyMethod,
) -> Result<f64, GreenError>
pub fn transmission_with( &self, energy: f64, method: SelfEnergyMethod, ) -> Result<f64, GreenError>
Transmission with a chosen self-energy method.
Sourcepub fn blocks(&self) -> Vec<Vec<usize>>
pub fn blocks(&self) -> Vec<Vec<usize>>
Orbitals of the cross-section that no slice, coupling or lead matrix connects, as independent sets (e.g. the two spin blocks of BHZ with spin-conserving disorder). One set if the slices differ in size.
Sourcepub fn restricted(&self, orbitals: &[usize]) -> Self
pub fn restricted(&self, orbitals: &[usize]) -> Self
The system restricted to orbitals of every slice (one of Self::blocks).
Sourcepub fn transmission_by_blocks(
&self,
energy: f64,
method: SelfEnergyMethod,
) -> Result<f64, GreenError>
pub fn transmission_by_blocks( &self, energy: f64, method: SelfEnergyMethod, ) -> Result<f64, GreenError>
Transmission summed over the independent Self::blocks, each solved on its own: for
b equal blocks the recursion costs b² times less.
Sourcepub fn solve(
&self,
energy: f64,
method: SelfEnergyMethod,
) -> Result<EndToEnd, GreenError>
pub fn solve( &self, energy: f64, method: SelfEnergyMethod, ) -> Result<EndToEnd, GreenError>
Lead self-energies and the Green’s function G_1N between the first and last slices.
Trait Implementations§
Source§impl Clone for TwoTerminal
impl Clone for TwoTerminal
Source§fn clone(&self) -> TwoTerminal
fn clone(&self) -> TwoTerminal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TwoTerminal
impl RefUnwindSafe for TwoTerminal
impl Send for TwoTerminal
impl Sync for TwoTerminal
impl Unpin for TwoTerminal
impl UnsafeUnpin for TwoTerminal
impl UnwindSafe for TwoTerminal
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