pub struct NestedMultiTerminal { /* private fields */ }Expand description
A device with any number of attached leads, solved by nested dissection (see the module documentation).
Implementations§
Source§impl NestedMultiTerminal
impl NestedMultiTerminal
Sourcepub fn from_model(
device: &Model,
lead: &Model,
region: &Region,
interfaces: &[Interface],
) -> Self
pub fn from_model( device: &Model, lead: &Model, region: &Region, interfaces: &[Interface], ) -> Self
Device from device on region, with leads of the clean lead model continuing each
interface outward, as crate::MultiTerminal::from_model.
Sourcepub fn lead_count(&self) -> usize
pub fn lead_count(&self) -> usize
Number of leads.
Sourcepub fn block_count(&self) -> usize
pub fn block_count(&self) -> usize
Number of independent blocks solved separately.
Sourcepub fn transmissions(&self, energy: f64) -> Result<Vec<Vec<f64>>, GreenError>
pub fn transmissions(&self, energy: f64) -> Result<Vec<Vec<f64>>, GreenError>
Transmissions T[p][q] = Tr[Γ_p G_pq Γ_q G_pq†] from lead q into lead p at energy,
with mode-matching self-energies, as crate::MultiSolution::transmission.
Sourcepub fn transmissions_with_precision(
&self,
energy: f64,
precision: Precision,
) -> Result<Vec<Vec<f64>>, GreenError>
pub fn transmissions_with_precision( &self, energy: f64, precision: Precision, ) -> Result<Vec<Vec<f64>>, GreenError>
Self::transmissions with the fronts in precision (see Precision), unchecked:
crate::checked measures the error on a batch of points.
Sourcepub fn sector_transmissions(
&self,
energy: f64,
sectors: &[Option<Vec<usize>>],
) -> Result<SectorTransmissions, GreenError>
pub fn sector_transmissions( &self, energy: f64, sectors: &[Option<Vec<usize>>], ) -> Result<SectorTransmissions, GreenError>
Transmissions between sectors of the leads (spin, electrons and holes…).
sectors[p] labels the orbitals of each site of lead p (e.g. [0, 1] for electrons and
holes, [0, 0, 1, 1] with spin), or is None to take the lead as a whole; the lead
Hamiltonian must not couple different sectors.
t[k][l] = Tr[Γ_k G Γ_l G†] from labels[l] into labels[k], with Γ_k the broadening
of the lead projected on the sector. Between two sectors of the same lead it is a
reflection probability (Andreev reflection for electrons and holes); the diagonal is not a
reflection (use unitarity).
Sourcepub fn scattering_states(
&self,
energy: f64,
) -> Result<ScatteringStates, GreenError>
pub fn scattering_states( &self, energy: f64, ) -> Result<ScatteringStates, GreenError>
Scattering states at energy: ψ_p = G W_p on every device orbital for each lead p
(W_p W_p† = Γ_p, one column per channel), as
crate::NestedTwoTerminal::scattering_states.
Sourcepub fn smatrix(&self, energy: f64) -> Result<SMatrix, GreenError>
pub fn smatrix(&self, energy: f64) -> Result<SMatrix, GreenError>
Scattering matrix at energy in the basis of the propagating lead modes, as
kwant.smatrix (see SMatrix).
Sourcepub fn bond_currents(
&self,
states: &ScatteringStates,
f: &[f64],
) -> Vec<BondCurrent>
pub fn bond_currents( &self, states: &ScatteringStates, f: &[f64], ) -> Vec<BondCurrent>
Spectral bond currents 2 Re Tr[H_ij G^<_ji] between every pair of coupled sites, from
the scattering states and the lead occupations f (one per lead).
Sourcepub fn operator_currents(
&self,
states: &ScatteringStates,
f: &[f64],
op: &CMat,
) -> Vec<BondCurrent>
pub fn operator_currents( &self, states: &ScatteringStates, f: &[f64], op: &CMat, ) -> Vec<BondCurrent>
Bond currents of an on-site operator O (see
crate::NestedTwoTerminal::operator_currents).
Sourcepub fn site_densities(
&self,
states: &ScatteringStates,
f: &[f64],
op: Option<&CMat>,
) -> Vec<f64>
pub fn site_densities( &self, states: &ScatteringStates, f: &[f64], op: Option<&CMat>, ) -> Vec<f64>
Spectral density Σ_p f_p ψ_p† O ψ_p / 2π of every site (O = 1 for None).
Trait Implementations§
Source§impl Clone for NestedMultiTerminal
impl Clone for NestedMultiTerminal
Source§fn clone(&self) -> NestedMultiTerminal
fn clone(&self) -> NestedMultiTerminal
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 NestedMultiTerminal
impl RefUnwindSafe for NestedMultiTerminal
impl Send for NestedMultiTerminal
impl Sync for NestedMultiTerminal
impl Unpin for NestedMultiTerminal
impl UnsafeUnpin for NestedMultiTerminal
impl UnwindSafe for NestedMultiTerminal
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