BinaryQuadraticModel¶

class BinaryQuadraticModel¶

ベースクラス: QuadraticModel

Methods

Attributes

__add__(arg: Constraint | ConstraintList)¶
__iadd__(arg: Constraint | ConstraintList)¶
__init__(arg0, arg1=None, *, method: QuadratizationMethod = QuadratizationMethod.IshikawaKZFD)¶
__init_subclass__()¶

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__radd__(arg: Constraint | ConstraintList)¶
check_constraints(values: Values) list[tuple[Constraint, bool]]¶
__abstractmethods__ = frozenset({})¶
__deprecated__ = 'BinaryQuadraticModel is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Model instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'¶
__dict__ = mappingproxy({'__module__': 'amplify._backward', '_intermediate_degrees': <classmethod(<function BinaryQuadraticModel._intermediate_degrees>)>, '__doc__': None, '__abstractmethods__': frozenset(), '_abc_impl': <_abc._abc_data object>, '__new__': <staticmethod(<function object.__new__>)>, '__init_subclass__': <function BinaryQuadraticModel.__init_subclass__>, '__deprecated__': 'BinaryQuadraticModel is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Model instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html', '__annotations__': {'__intermediate_model': 'Model | None', '_intermediate_poly': 'Poly | None', '_intermediate_mapping': 'Result.ModelConversion.IntermediateMapping | None'}})¶
__slots__ = ()¶
__weakref__¶

list of weak references to the object (if defined)

property input_constraints: ConstraintList¶
property input_matrix: Matrix | None¶
property input_poly: Poly | None¶
property logical_mapping: IntermediateMapping¶
property logical_matrix: Matrix | None¶
property logical_model_matrix¶
property logical_model_poly: Poly¶
property logical_poly: Poly | None¶
property num_input_vars: int¶
property num_logical_vars: int¶
property substitution_multiplier: float¶