pub struct ThermalProjection {
pub spin: f32,
pub bias: f32,
pub temperature: f32,
pub energy: f32,
pub magnetization: f32,
}Expand description
Ising-model thermal projection for a single ComputeAtom.
Fields§
§spin: f32Spin state: +1.0 or -1.0.
bias: f32Local field bias b_i.
temperature: f32Inverse temperature beta (higher = more ordered).
energy: f32Local energy contribution.
magnetization: f32Running magnetization average.
Trait Implementations§
Source§impl Clone for ThermalProjection
impl Clone for ThermalProjection
Source§fn clone(&self) -> ThermalProjection
fn clone(&self) -> ThermalProjection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThermalProjection
impl Debug for ThermalProjection
Source§impl Default for ThermalProjection
impl Default for ThermalProjection
Source§impl Projection for ThermalProjection
impl Projection for ThermalProjection
Source§fn id() -> ProjectionId
fn id() -> ProjectionId
Projection type identifier.
Source§fn read(buf: &[u8]) -> Self
fn read(buf: &[u8]) -> Self
Read projection state from a byte slice.
Panics if
buf.len() < Self::byte_size().Source§fn write(&self, buf: &mut [u8])
fn write(&self, buf: &mut [u8])
Write projection state into a byte slice.
Panics if
buf.len() < Self::byte_size().Source§fn shape_hash_contribution(&self) -> u32
fn shape_hash_contribution(&self) -> u32
Contribution to the atom’s shape hash (FNV-1a input).
impl Copy for ThermalProjection
Auto Trait Implementations§
impl Freeze for ThermalProjection
impl RefUnwindSafe for ThermalProjection
impl Send for ThermalProjection
impl Sync for ThermalProjection
impl Unpin for ThermalProjection
impl UnsafeUnpin for ThermalProjection
impl UnwindSafe for ThermalProjection
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