Class model::PolyState
besides storing the Ising spins, PolyState is also initialized by the model to store intermediate results of the cost function evaluations for each term. This allows efficient evaluation and application of the cost difference a specific update would cause.
Methods
render()
Render the current state of the spins in the model output format: {"0": +1, "1": -1, ...}.
Declaration
utils::Structure model::PolyState::render() const
copy_state_only()
Declaration
void model::PolyState::copy_state_only(const PolyState&other)
memory_estimate()
Declaration
static size_t model::PolyState::memory_estimate(size_t n_spins, size_t n_terms, size_t n_parameters)
state_only_memory_estimate()
Declaration
static size_t model::PolyState::state_only_memory_estimate(size_t n_spins)