qiskit.optimization.problems.QuadraticProgramElement¶
-
class
QuadraticProgramElement
(quadratic_program)[source]¶ Interface class for all objects that have a parent QuadraticProgram.
Initialize object with parent QuadraticProgram.
- Paramètres
quadratic_program (
Any
) – The parent QuadraticProgram.- Lève
TypeError – QuadraticProgram instance expected.
-
__init__
(quadratic_program)[source]¶ Initialize object with parent QuadraticProgram.
- Paramètres
quadratic_program (
Any
) – The parent QuadraticProgram.- Lève
TypeError – QuadraticProgram instance expected.
Methods
__init__
(quadratic_program)Initialize object with parent QuadraticProgram.
Attributes
Returns the parent QuadraticProgram.
-
property
quadratic_program
¶ Returns the parent QuadraticProgram.
- Type renvoyé
Any
- Renvoie
The parent QuadraticProgram.