ADMMOptimizer#

class ADMMOptimizer(qubo_optimizer=None, continuous_optimizer=None, params=None)[source]#

Bases: OptimizationAlgorithm

An implementation of the ADMM-based heuristic.

This algorithm is introduced in [1].

References:

[1] Gambella, C., & Simonetto, A. (2020). Multi-block ADMM Heuristics for Mixed-Binary

Optimization on Classical and Quantum Computers. arXiv preprint arXiv:2001.02069.

Parameters:
  • qubo_optimizer (OptimizationAlgorithm | None) – An instance of OptimizationAlgorithm that can effectively solve QUBO problems. If not specified then MinimumEigenOptimizer initialized with an instance of NumPyMinimumEigensolver will be used.

  • continuous_optimizer (OptimizationAlgorithm | None) – An instance of OptimizationAlgorithm that can solve continuous problems. If not specified then SlsqpOptimizer will be used.

  • params (ADMMParameters | None) – An instance of ADMMParameters.

Attributes

parameters#

Returns current parameters of the optimizer.

Returns:

The parameters.

Methods

get_compatibility_msg(problem)[source]#

Checks whether a given problem can be solved with the optimizer implementing this method.

Parameters:

problem (QuadraticProgram) – The optimization problem to check compatibility.

Returns:

Returns the incompatibility message. If the message is empty no issues were found.

Return type:

str

is_compatible(problem)#

Checks whether a given problem can be solved with the optimizer implementing this method.

Parameters:

problem (QuadraticProgram) – The optimization problem to check compatibility.

Returns:

Returns True if the problem is compatible, False otherwise.

Return type:

bool

solve(problem)[source]#

Tries to solves the given problem using ADMM algorithm.

Parameters:

problem (QuadraticProgram) – The problem to be solved.

Returns:

The result of the optimizer applied to the problem.

Raises:

QiskitOptimizationError – If the problem is not compatible with the ADMM optimizer.

Return type:

ADMMOptimizationResult