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.

Get the spin state.

Clone the spin state.

Get a ref of the spin state.

Overwrite the spin state.

Get the energy of the system.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.