pub struct FockBlockCache {
pub amplitudes_before: Vec<Vec<Complex>>,
pub amplitudes_after: Vec<Vec<Complex>>,
pub eigenvectors: Vec<f32>,
pub eigenvalues: Vec<f32>,
pub phases: Vec<Complex>,
pub populations: Vec<Vec<f32>>,
pub values_in: Vec<Vec<f32>>,
}Expand description
Cached data for one block’s forward pass.
Fields§
§amplitudes_before: Vec<Vec<Complex>>Amplitude vectors before evolution [T × dim].
amplitudes_after: Vec<Vec<Complex>>Amplitude vectors after evolution [T × dim].
eigenvectors: Vec<f32>Eigenvectors V for this block’s Hamiltonian [dim × dim, row-major].
eigenvalues: Vec<f32>Eigenvalues E for this block’s Hamiltonian [dim].
phases: Vec<Complex>Phase factors exp(-iE_k·dt) [dim Complex].
populations: Vec<Vec<f32>>Population vectors [T × dim].
values_in: Vec<Vec<f32>>Value vectors entering this block [T × dim].
Auto Trait Implementations§
impl Freeze for FockBlockCache
impl RefUnwindSafe for FockBlockCache
impl Send for FockBlockCache
impl Sync for FockBlockCache
impl Unpin for FockBlockCache
impl UnsafeUnpin for FockBlockCache
impl UnwindSafe for FockBlockCache
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
Mutably borrows from an owned value. Read more
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