Skip to main content

NestedMultiTerminal

Struct NestedMultiTerminal 

Source
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

Source

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.

Source

pub fn lead_count(&self) -> usize

Number of leads.

Source

pub fn block_count(&self) -> usize

Number of independent blocks solved separately.

Source

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.

Source

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.

Source

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).

Source

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.

Source

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).

Source

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).

Source

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).

Source

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).

Source

pub fn region(&self) -> &Region

The device region (orbital layout of the scattering states).

Trait Implementations§

Source§

impl Clone for NestedMultiTerminal

Source§

fn clone(&self) -> NestedMultiTerminal

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NestedMultiTerminal

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> ByRef<T> for T

§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.