qiskit-documentation/docs/api/qiskit/0.37/qiskit.algorithms.optimizer...

39 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Minimizer
description: API reference for qiskit.algorithms.optimizers.Minimizer
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.algorithms.optimizers.Minimizer
---
# Minimizer
<Class id="qiskit.algorithms.optimizers.Minimizer" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/algorithms/optimizers/optimizer.py" signature="Minimizer(*args, **kwargs)" modifiers="class">
Bases: `Protocol`
Callable Protocol for minimizer.
This interface is based on [SciPys optimize module](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html).
> This protocol defines a callable taking the following parameters:
>
> > **fun**
> >
> > The objective function to minimize (for example the energy in the case of the VQE).
> >
> > **x0**
> >
> > The initial point for the optimization.
> >
> > **jac**
> >
> > The gradient of the objective function.
> >
> > **bounds**
> >
> > Parameters bounds for the optimization. Note that these might not be supported by all optimizers.
>
> and which returns a minimization result object (either SciPys or Qiskits).
</Class>