Follow-up on #8434 (Fix ``code-blocks::python``) (#8442)

* 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:
Julien Gacon 2022-08-04 21:57:01 +02:00 committed by GitHub
parent beea6f0f2d
commit 6a1a10287e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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