39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
---
|
||
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.45/qiskit/algorithms/optimizers/optimizer.py" signature="qiskit.algorithms.optimizers.Minimizer(*args, **kwargs)" modifiers="class">
|
||
Bases: [`Protocol`](https://docs.python.org/3/library/typing.html#typing.Protocol "(in Python v3.12)")
|
||
|
||
Callable Protocol for minimizer.
|
||
|
||
This interface is based on [SciPy’s 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 SciPy’s or Qiskit’s).
|
||
</Class>
|
||
|