QuadraticModel¶

class QuadraticModel¶

ベースクラス: ABC

Methods

Attributes

__add__(arg: Constraint | ConstraintList)¶
__iadd__(arg: Constraint | ConstraintList)¶
__init__(
arg0: Poly,
arg1: Constraint | ConstraintList | None = None,
*,
method: QuadratizationMethod = QuadratizationMethod.IshikawaKZFD,
)¶
__init__(
arg0: Matrix,
arg1: Constraint | ConstraintList | None = None,
*,
method: QuadratizationMethod = QuadratizationMethod.IshikawaKZFD,
)
__init__(arg0: Model, arg1=None, *, method: QuadratizationMethod = QuadratizationMethod.IshikawaKZFD)
__init__(
arg0: Constraint | ConstraintList,
arg1=None,
*,
method: QuadratizationMethod = QuadratizationMethod.IshikawaKZFD,
)
__radd__(arg: Constraint | ConstraintList)¶
check_constraints(values: Values) list[tuple[Constraint, bool]]¶
__abstractmethods__ = frozenset({'_intermediate_degrees'})¶
__dict__ = mappingproxy({'__module__': 'amplify._backward', '__init__': <function QuadraticModel.__init__>, '__add__': <function QuadraticModel.__add__>, '__iadd__': <function QuadraticModel.__iadd__>, '__radd__': <function QuadraticModel.__radd__>, 'substitution_multiplier': <property object>, 'input_constraints': <property object>, 'input_matrix': <property object>, 'input_poly': <property object>, '_intermediate_degrees': <classmethod(<function QuadraticModel._intermediate_degrees>)>, '_intermediate_model': <function QuadraticModel._intermediate_model>, 'logical_mapping': <property object>, 'logical_matrix': <property object>, 'logical_model_matrix': <property object>, 'logical_model_poly': <property object>, 'logical_poly': <property object>, 'num_input_vars': <property object>, 'num_logical_vars': <property object>, 'check_constraints': <function QuadraticModel.check_constraints>, '__dict__': <attribute '__dict__' of 'QuadraticModel' objects>, '__weakref__': <attribute '__weakref__' of 'QuadraticModel' objects>, '__doc__': None, '__abstractmethods__': frozenset({'_intermediate_degrees'}), '_abc_impl': <_abc._abc_data object>, '__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¶