pub struct NestedTwoTerminal { /* private fields */ }Expand description
A two-terminal device solved by nested dissection (see the module documentation).
Implementations§
Source§impl NestedTwoTerminal
impl NestedTwoTerminal
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,
as crate::TwoTerminal::from_model: both leads continue the first and last slices of
the region with the clean lead model.
Sourcepub fn block_count(&self) -> usize
pub fn block_count(&self) -> usize
Number of independent blocks solved separately.
Sourcepub fn transmission(&self, energy: f64) -> Result<f64, GreenError>
pub fn transmission(&self, energy: f64) -> Result<f64, GreenError>
Caroli transmission T(E) = Tr[Γ_L G_LR Γ_R G_LR†], with mode-matching self-energies.
Sourcepub fn transmissions(&self, energies: &[f64]) -> Vec<Result<f64, GreenError>>
pub fn transmissions(&self, energies: &[f64]) -> Vec<Result<f64, GreenError>>
Transmissions at many energies, in parallel.
Sourcepub fn transmissions_checked(
&self,
energies: &[f64],
options: &PrecisionOptions,
) -> (Vec<Result<f64, GreenError>>, PrecisionReport)
pub fn transmissions_checked( &self, energies: &[f64], options: &PrecisionOptions, ) -> (Vec<Result<f64, GreenError>>, PrecisionReport)
Transmissions at many energies in the precision of options, checked against double
precision on a sample of the energies (see crate::checked).
Sourcepub fn self_energies(&self, energy: f64) -> Result<LeadSelfEnergies, GreenError>
pub fn self_energies(&self, energy: f64) -> Result<LeadSelfEnergies, GreenError>
Lead self-energies at energy, for each independent block. They serve every system with
the same leads and blocks: in a disorder average, the leads are solved once per energy
instead of once per configuration.
let sigma = reference.self_energies(e)?;
let mean = configurations.iter().map(|sys| sys.transmission_with(&sigma)).sum::<Result<f64, _>>()?
/ configurations.len() as f64;Sourcepub fn transmission_with(
&self,
sigma: &LeadSelfEnergies,
) -> Result<f64, GreenError>
pub fn transmission_with( &self, sigma: &LeadSelfEnergies, ) -> Result<f64, GreenError>
Transmission at the energy of sigma, with its lead self-energies, computed by
Self::self_energies on this system or on one with the same leads and blocks.
Panics if the leads or the blocks differ.
Sourcepub fn transmission_with_precision(
&self,
sigma: &LeadSelfEnergies,
precision: Precision,
) -> Result<f64, GreenError>
pub fn transmission_with_precision( &self, sigma: &LeadSelfEnergies, precision: Precision, ) -> Result<f64, GreenError>
Self::transmission_with with the fronts in precision (see Precision), unchecked:
Self::transmissions_checked or crate::checked measure the error.
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 (lead 0 on the
left, lead 1 on the right), as kwant.smatrix (see crate::SMatrix).
Sourcepub fn transmission_eigenvalues(
&self,
energy: f64,
) -> Result<Vec<f64>, GreenError>
pub fn transmission_eigenvalues( &self, energy: f64, ) -> Result<Vec<f64>, GreenError>
Transmission eigenvalues τ_n at energy, in decreasing order: the squared singular
values of t = W_L† G_LR W_R (W_p W_p† = Γ_p), the same as those of the transmission
block of the scattering matrix. Their sum is the transmission.
Sourcepub fn fano_factor(&self, energy: f64) -> Result<f64, GreenError>
pub fn fano_factor(&self, energy: f64) -> Result<f64, GreenError>
Fano factor F = Σ τ (1 − τ) / Σ τ at energy: the shot noise over the Poisson value, at
zero temperature and small bias (0 for perfect channels, 1 for a tunnel barrier, 1/3 for
a diffusive wire).
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,
with W_p W_p† = Γ_p (one column per channel). The elimination keeps its factors, and a
back-substitution from the lead slices gives the states everywhere: memory grows with the
factors (O(N log N) for a 2D sample of N orbitals) and with N times the channels.
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 (G^< = i Σ_p f_p ψ_p ψ_p†). Each bond
appears once, from the site of lower index in the region.
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 (a spin current for O = s_z):
Re Tr[(O H_ij + H_ij O) G^<_ji], 2 Re Tr[H_ij G^<_ji] for O = 1.
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): the occupied
density, or a spin density.
Trait Implementations§
Source§impl Clone for NestedTwoTerminal
impl Clone for NestedTwoTerminal
Source§fn clone(&self) -> NestedTwoTerminal
fn clone(&self) -> NestedTwoTerminal
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 NestedTwoTerminal
impl RefUnwindSafe for NestedTwoTerminal
impl Send for NestedTwoTerminal
impl Sync for NestedTwoTerminal
impl Unpin for NestedTwoTerminal
impl UnsafeUnpin for NestedTwoTerminal
impl UnwindSafe for NestedTwoTerminal
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