Class model::IsingState
Ising state representation.
We represent an ising state as both the boolean value of each spin and the product of the spins in each term.
Constructors
IsingState()
Declaration
model::IsingState::IsingState()
IsingState()
Create an Ising state with N spins and M terms.
All spins are initialized to 0 ("up" or "+1"). A true value represents "down" or "-1". As such, the boolean value can be considered as representing the sign.
Declaration
model::IsingState::IsingState(size_t N, size_t)
Methods
render()
Render the spins of the state.
Declaration
utils::Structure model::IsingState::render() const override
render()
Declaration
utils::Structure model::IsingState::render(const std::map<int, int>&) const
copy_state_only()
Declaration
void model::IsingState::copy_state_only(const IsingState&other)
memory_estimate()
Declaration
static size_t model::IsingState::memory_estimate(size_t N, size_t)
state_only_memory_estimate()
Declaration
static size_t model::IsingState::state_only_memory_estimate(size_t N)