qemcmc.model.model_maker

Classes

ModelMaker

Utility class for constructing standard Ising energy models used in simulations and experiments.

Module Contents

class qemcmc.model.model_maker.ModelMaker(n_spins: int, model_type: str, name: str, cost_function_signs: list = [-1, -1])[source]

Utility class for constructing standard Ising energy models used in simulations and experiments.

This class constructs predefined random energy models used for testing and experimentation. Depending on the chosen model_type, it generates coupling tensors and initialises an EnergyModel instance.

name[source]
n_spins[source]
cost_function_signs[source]
make_fully_connected_ising()[source]
make_fully_connected_binary()[source]

Transforms the existing Ising couplings into an mathematically equivalent QUBO model via s = 2x - 1.