qiskit.optimization.problems.QuadraticProgramElement¶
-
class
QuadraticProgramElement
(quadratic_program)[Quellcode]¶ Interface class for all objects that have a parent QuadraticProgram.
Initialize object with parent QuadraticProgram.
- Parameter
quadratic_program (
Any
) – The parent QuadraticProgram.- Verursacht
TypeError – QuadraticProgram instance expected.
-
__init__
(quadratic_program)[Quellcode]¶ Initialize object with parent QuadraticProgram.
- Parameter
quadratic_program (
Any
) – The parent QuadraticProgram.- Verursacht
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.
- Rückgabetyp
Any
- Rückgabe
The parent QuadraticProgram.