openjij
Framework for the Ising model and QUBO.
|
Functions | |
make_ChimeraModel (linear, quadratic) | |
make_ChimeraModel_from_JSON (obj) | |
ChimeraModel (dict linear={}, dict quadratic={}, float offset=0.0, vartype=SPIN, int unit_num_L=2, model=None) | |
Variables | |
from_qubo | |
Q | |
offset | |
from_ising | |
linear | |
quadratic | |
from_serializable | |
unit_num_L | |
coordinate | |
_chimera_index | |
_to_index | |
openjij.model.chimera_model.ChimeraModel | ( | dict | linear = {} , |
dict | quadratic = {} , |
||
float | offset = 0.0 , |
||
vartype = SPIN , |
|||
int | unit_num_L = 2 , |
||
model = None |
|||
) |
Generate ChimeraModel object This model deal with chimera graph. ChimeraModel provide methods to verify whether a given interaction graph matches a Chimera graph and to convert it to cxxjij.graph.Chimera. Args: linear (dict): linear biases quadratic (dict): quadratic biases offset (float): offset vartype: vartype ('SPIN' or 'BINARY') unit_num_L (int): unit_num_L model (BinaryQuadraticModel): if model is not None, the object is initialized by model. Returns: generated ChimeraModel Examples: Example shows how to initialize ChimeraModel.:: # This interactions satisfy chimera topology. >>> Q={(0, 4): -1, (4, 12): -1} >>> chimera_model = ChimeraModel(Q, unit_num_L=2) # make >>> chimera_self.validate_chimera()
References openjij.model.chimera_model.make_ChimeraModel().
openjij.model.chimera_model.make_ChimeraModel | ( | linear, | |
quadratic | |||
) |
ChimeraModel factory. Returns: generated ChimeraModel class
References openjij.model.chimera_model.linear, and openjij.model.chimera_model.quadratic.
Referenced by openjij.model.chimera_model.ChimeraModel(), and openjij.model.chimera_model.make_ChimeraModel_from_JSON().
openjij.model.chimera_model.make_ChimeraModel_from_JSON | ( | obj | ) |
Make ChimeraModel from JSON. Returns: corresponding ChimeraModel type
References openjij.model.chimera_model.make_ChimeraModel().
|
protected |
|
protected |
openjij.model.chimera_model.coordinate |
openjij.model.chimera_model.from_ising |
openjij.model.chimera_model.from_qubo |
openjij.model.chimera_model.from_serializable |
openjij.model.chimera_model.linear |
Referenced by openjij.model.chimera_model.make_ChimeraModel().
openjij.model.chimera_model.offset |
openjij.model.chimera_model.Q |
openjij.model.chimera_model.quadratic |
Referenced by openjij.model.chimera_model.make_ChimeraModel().
openjij.model.chimera_model.unit_num_L |