openjij.model.chimera_model#
Functions#
|
Generate ChimeraModel object |
|
ChimeraModel factory. |
Make ChimeraModel from JSON. |
Module Contents#
- openjij.model.chimera_model.ChimeraModel(linear: dict = {}, quadratic: dict = {}, offset: float = 0.0, vartype=SPIN, unit_num_L: int = 2, model=None)[source]#
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.
- Parameters:
- 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()