IsingMatrix¶
- class IsingMatrix¶
ベースクラス:
Matrix
Methods
Attributes
constant property
linear property
quadratic property
variable_array property
- __add__(self, arg: Constraint | ConstraintList, /) Model ¶
__add__
- パラメータ:
arg (Constraint | ConstraintList)
- 戻り値の型:
- __init__(*args, **kwargs)¶
- __init_subclass__()¶
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- __radd__(self, arg: Constraint | ConstraintList, /) Model ¶
__radd__
- パラメータ:
arg (Constraint | ConstraintList)
- 戻り値の型:
- evaluate(self, values: Values) float ¶
- evaluate(self, values: Values, default: float) float
evaluate
Overload 1.
- Args:
values (amplify.Values)
- Returns:
float:
Overload 2.
- Args:
values (amplify.Values)
default (float)
- Returns:
float:
- __deprecated__ = 'IsingMatrix is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Matrix instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'¶
- __dict__ = mappingproxy({'__module__': 'amplify._backward', '__dict__': <attribute '__dict__' of 'IsingMatrix' objects>, '__weakref__': <attribute '__weakref__' of 'IsingMatrix' objects>, '__doc__': None, '__new__': <staticmethod(<function Matrix.__new__>)>, '__init_subclass__': <function IsingMatrix.__init_subclass__>, '__deprecated__': 'IsingMatrix is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Matrix instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html', '__annotations__': {}})¶
- __weakref__¶
list of weak references to the object (if defined)