MinimumEigenOptimizer.solve

MinimumEigenOptimizer.solve(problem)[source]

Tries to solves the given problem using the optimizer.

Runs the optimizer to try to solve the optimization problem.

Parameters

problem (QuadraticProgram) – The problem to be solved.

Return type

MinimumEigenOptimizerResult

Returns

The result of the optimizer applied to the problem.

Raises

QiskitOptimizationError – If problem not compatible.