pub fn lead_voltages(
t: &[Vec<f64>],
currents: &[f64],
ground: usize,
) -> Vec<f64>Expand description
Lead voltages of a multi-terminal device in linear response (Landauer–Büttiker): from the
transmissions t[p][q] (from lead q into lead p) and the currents currents[p] that flow
into the device from each lead, with lead ground at zero. Currents in units of
(e²/h) × voltage (spin included in the transmissions); they must add up to zero.
I_p = Σ_q (T_qp V_p − T_pq V_q). With a unit current from a source to a drain, the voltage
differences are resistances in units of h/e² (e.g. the Hall resistance of a Hall bar).