Struct qmc::classical::graph::GraphState [−][src]
pub struct GraphState<R: Rng> { /* fields omitted */ }
Expand description
A graph definition for use in classical monte carlo.
Implementations
Make a new Graph from a list of edges [((vara, varb), j), ...]
and longitudinal fields.
Make a new graph with an initial state, edges, and longitudinal fields.
Perform a random single spin flip.
Use the weights of edges to decide how frequently to flip them.
Randomly choose if a step should be made based on temperature and energy change.
Perform a monte carlo time step.
Clone the spin state.
Get the energy of the system.
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for GraphState<R> where
R: RefUnwindSafe,
impl<R> Send for GraphState<R> where
R: Send,
impl<R> Sync for GraphState<R> where
R: Sync,
impl<R> Unpin for GraphState<R> where
R: Unpin,
impl<R> UnwindSafe for GraphState<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more