pub struct SplitOperator {
pub n: usize,
pub comps: usize,
pub half_potential: Vec<(usize, CMat)>,
/* private fields */
}Expand description
Split-operator propagator on an n × n torus with comps orbitals per site.
Fields§
§n: usizeSide of the torus (n × n sites).
comps: usizeOrbitals per site; the wave function is stored orbital by orbital, ψ[site + n²·c].
half_potential: Vec<(usize, CMat)>exp(−i V dt/2) on the sites carrying a potential (identity elsewhere).
Implementations§
Source§impl SplitOperator
impl SplitOperator
Sourcepub fn new(n: usize, comps: usize, v: &[(usize, CMat)], dt: f64) -> Self
pub fn new(n: usize, comps: usize, v: &[(usize, CMat)], dt: f64) -> Self
Propagator with the local potential v (site, Hermitian block) and time step dt.
Blocks listed for the same site are summed before exponentiation.
Trait Implementations§
Source§impl Clone for SplitOperator
impl Clone for SplitOperator
Source§fn clone(&self) -> SplitOperator
fn clone(&self) -> SplitOperator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SplitOperator
impl !UnwindSafe for SplitOperator
impl Freeze for SplitOperator
impl Send for SplitOperator
impl Sync for SplitOperator
impl Unpin for SplitOperator
impl UnsafeUnpin for SplitOperator
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
Mutably borrows from an owned value. Read more
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>
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 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>
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