QUBOConvertibleBase¶
- class QUBOConvertibleBase¶
- Bases: - ABC- Base class for surrogate/acquisition function model class. - A surrogate model class to be used with a QA-based black-box function solver must inherit this class. - Methods - __init__- Convert the trained surrogate/acquisition function model to an Amplify SDK-compatible (QUBO) model. - abstract to_qubo(x: PolyArray) Poly¶
- Convert the trained surrogate/acquisition function model to an Amplify SDK-compatible (QUBO) model. - Parameters:
- x (amplify.PolyArray) – The Amplify SDK’s decision variables corresponding to the original variables for the black-box objective function that the surrogate/acquisition model tries to predict. 
- Returns:
- The Amplify SDK-compatible model. 
- Return type:
- amplify.Poly 
 
 - __abstractmethods__ = frozenset({'to_qubo'})¶
 - __dict__ = mappingproxy({'__module__': 'amplify_bbopt.model', '__doc__': 'Base class for surrogate/acquisition function model class.\n\n A surrogate model class to be used with a QA-based black-box function solver must inherit this class.\n ', 'to_qubo': <function QUBOConvertibleBase.to_qubo>, '__dict__': <attribute '__dict__' of 'QUBOConvertibleBase' objects>, '__weakref__': <attribute '__weakref__' of 'QUBOConvertibleBase' objects>, '__abstractmethods__': frozenset({'to_qubo'}), '_abc_impl': <_abc._abc_data object>, '__annotations__': {}})¶
 - __slots__ = ()¶
 - __weakref__¶
- list of weak references to the object (if defined)