pub struct WalkTables<'a> {
pub bits: usize,
pub node_rows: &'a [usize],
pub coins: &'a [Vec<c64>],
pub halves: &'a [(usize, usize)],
pub exchange: [c64; 3],
}Expand description
What the kernels need to know about a walk.
Fields§
§bits: usizeNumber of spins (edges): a row has 2^bits entries.
node_rows: &'a [usize]Rows (half-edges) of node x: node_rows[x]..node_rows[x + 1].
coins: &'a [Vec<c64>]Coin of each node, d × d row-major.
halves: &'a [(usize, usize)]The two rows (half-edges) of each edge.
exchange: [c64; 3](p, α, β) of the edge update a0' = p b0, a1' = α b1 + β a0, b0' = β b1 + α a0,
b1' = p a1.
Auto Trait Implementations§
impl<'a> Freeze for WalkTables<'a>
impl<'a> RefUnwindSafe for WalkTables<'a>
impl<'a> Send for WalkTables<'a>
impl<'a> Sync for WalkTables<'a>
impl<'a> Unpin for WalkTables<'a>
impl<'a> UnsafeUnpin for WalkTables<'a>
impl<'a> UnwindSafe for WalkTables<'a>
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
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