mirror of https://github.com/Qiskit/qiskit.git
* Fix code-block:: python * Follow-up on code-blocks:: python Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
beea6f0f2d
commit
6a1a10287e
|
@ -92,7 +92,7 @@ class VQE(VariationalAlgorithm, MinimumEigensolver):
|
|||
The callable _must_ have the argument names ``fun, x0, jac, bounds`` as indicated
|
||||
in the following code block.
|
||||
|
||||
.. code-block::python
|
||||
.. code-block:: python
|
||||
|
||||
from qiskit.algorithms.optimizers import OptimizerResult
|
||||
|
||||
|
@ -111,7 +111,7 @@ class VQE(VariationalAlgorithm, MinimumEigensolver):
|
|||
|
||||
The above signature also allows to directly pass any SciPy minimizer, for instance as
|
||||
|
||||
.. code-block::python
|
||||
.. code-block:: python
|
||||
|
||||
from functools import partial
|
||||
from scipy.optimize import minimize
|
||||
|
|
|
@ -50,7 +50,7 @@ class GradientDescent(Optimizer):
|
|||
A minimum example that will use finite difference gradients with a default perturbation
|
||||
of 0.01 and a default learning rate of 0.01.
|
||||
|
||||
.. code-block::python
|
||||
.. code-block:: python
|
||||
|
||||
from qiskit.algorithms.optimizers import GradientDescent
|
||||
|
||||
|
@ -70,7 +70,7 @@ class GradientDescent(Optimizer):
|
|||
Note how much faster this convergences (i.e. less ``nfevs``) compared to the previous
|
||||
example.
|
||||
|
||||
.. code-block::python
|
||||
.. code-block:: python
|
||||
|
||||
from qiskit.algorithms.optimizers import GradientDescent
|
||||
|
||||
|
|
Loading…
Reference in New Issue