pub struct IsingClaim {
pub j: Vec<Vec<Rational>>,
pub h: Vec<Rational>,
pub spins: Vec<i8>,
pub energy: Rational,
pub flip_stable: bool,
}Expand description
The Ising candidate’s neutral claim: the instance, the returned spins, the claimed exact energy, and the claimed 1-flip stability verdict. BY DESIGN there is no optimality field — a soft-spin settle returns an attractor, and this type cannot express more.
Fields§
§j: Vec<Vec<Rational>>Symmetric coupling matrix with zero diagonal.
h: Vec<Rational>External fields.
spins: Vec<i8>The candidate spins, each exactly ±1.
energy: RationalClaimed H(s) = −Σ_{i<j} J_ij·s_i·s_j − Σ h_i·s_i, exact.
flip_stable: boolClaimed: no single spin flip lowers H.
Trait Implementations§
Source§impl Clone for IsingClaim
impl Clone for IsingClaim
Source§fn clone(&self) -> IsingClaim
fn clone(&self) -> IsingClaim
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 IsingClaim
impl Debug for IsingClaim
Source§impl PartialEq for IsingClaim
impl PartialEq for IsingClaim
impl StructuralPartialEq for IsingClaim
Auto Trait Implementations§
impl Freeze for IsingClaim
impl RefUnwindSafe for IsingClaim
impl Send for IsingClaim
impl Sync for IsingClaim
impl Unpin for IsingClaim
impl UnsafeUnpin for IsingClaim
impl UnwindSafe for IsingClaim
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