pub struct Torus { /* private fields */ }Expand description
A periodic 2D model on an n × n torus of unit cells.
Implementations§
Source§impl Torus
impl Torus
Sourcepub fn new(model: &Model, n: usize) -> Self
pub fn new(model: &Model, n: usize) -> Self
The model on an n × n torus, without field. Its hoppings must be the same in every cell
(no hopping term, no Peierls phase: use crate::Driven otherwise); its site-dependent
on-site terms are read on every site of the torus.
Sourcepub fn with_force(self, force: Vec3) -> Self
pub fn with_force(self, force: Vec3) -> Self
A constant force F from t = 0: A(t) = −F t, the crystal momentum moves as k + F t.
Sourcepub fn with_vector_potential(self, potential: VectorPotential) -> Self
pub fn with_vector_potential(self, potential: VectorPotential) -> Self
Any uniform vector potential A(t).
Sourcepub fn with_sector(self, orbitals: &[usize]) -> Self
pub fn with_sector(self, orbitals: &[usize]) -> Self
Restricts Self::filled and the excited-carrier count to the band states on orbitals
(of the unit cell), a union of groups of orbitals that M(k) does not couple to the
others: one spin of a model whose hoppings conserve the spin, say. The evolution itself is
unchanged (the disorder may carry the states out of the sector), and so is
Self::fermi_sea.
Sourcepub fn groups(&self) -> &[Vec<usize>]
pub fn groups(&self) -> &[Vec<usize>]
The groups of orbitals of the cell that M(k) does not couple to one another (the
blocks of a sector, see Self::with_sector).
Sourcepub fn components(&self) -> usize
pub fn components(&self) -> usize
Orbitals per unit cell.
Sourcepub fn kinetic(&self, k: usize, a: Vec3) -> CMat
pub fn kinetic(&self, k: usize, a: Vec3) -> CMat
M(k, A) at the k point of FFT index k (kx + n·ky).
Sourcepub fn velocity(&self, k: usize, a: Vec3, direction: Vec3) -> CMat
pub fn velocity(&self, k: usize, a: Vec3, direction: Vec3) -> CMat
The velocity ∂M/∂k along direction at k index k: Σ i (d·direction) t e^{i(k·n − A·d)}.
Sourcepub fn to_x(&self, psi: &mut [c64])
pub fn to_x(&self, psi: &mut [c64])
Backward FFT of every component divided by n² (inverse of Self::to_k).
Sourcepub fn filled(&self, fermi: f64, vectors: usize, seed: u64) -> Vec<Vec<c64>>
pub fn filled(&self, fermi: f64, vectors: usize, seed: u64) -> Vec<Vec<c64>>
The Fermi sea below fermi of the clean bands at t = 0, as vectors random-phase
superpositions of the occupied band states (k space): for each of them ⟨ψ|O|ψ⟩
estimates Tr[P O], P the projector on the occupied states, and ⟨ψ|ψ⟩ is their number.
Only the band states of the sector, if one is set (Self::with_sector).
Sourcepub fn fermi_sea(
&self,
fermi: f64,
vectors: usize,
seed: u64,
moments: usize,
) -> Vec<Vec<c64>>
pub fn fermi_sea( &self, fermi: f64, vectors: usize, seed: u64, moments: usize, ) -> Vec<Vec<c64>>
The Fermi sea below fermi of the whole Hamiltonian at t = 0, site-dependent terms
included: vectors random-phase vectors (in real space) projected by a Chebyshev
expansion of θ(fermi − H) with moments terms and the Jackson kernel (k space, as
Self::filled). The step is smeared over about π·ΔE/moments, ΔE the half-width of
the spectrum. Without disorder it is Self::filled up to that smearing; with disorder it
is the ground state, where Self::filled is the clean one, which the disorder sets in
motion.
Sourcepub fn localized(
&self,
cell: [usize; 2],
orbital: usize,
window: Option<(f64, f64)>,
) -> Vec<c64> ⓘ
pub fn localized( &self, cell: [usize; 2], orbital: usize, window: Option<(f64, f64)>, ) -> Vec<c64> ⓘ
The orbital orbital of cell cell (k space, unit norm), projected on the clean band
states at t = 0 whose energy lies in window if one is given.
Sourcepub fn evolve(&self, starts: &[Vec<c64>], ev: &Evolution) -> Record
pub fn evolve(&self, starts: &[Vec<c64>], ev: &Evolution) -> Record
Evolves each start state (k space, e.g. from Self::filled or Self::localized) from
t = 0 and records the observables, averaged over the start states.
Auto Trait Implementations§
impl !RefUnwindSafe for Torus
impl !UnwindSafe for Torus
impl Freeze for Torus
impl Send for Torus
impl Sync for Torus
impl Unpin for Torus
impl UnsafeUnpin for Torus
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
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