Skip to content

Commit

Permalink
Follow-up on Qiskit#8434 (Fix code-blocks::python) (Qiskit#8442)
Browse files Browse the repository at this point in the history
* Fix code-block:: python

* Follow-up on code-blocks:: python

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
Cryoris and mergify[bot] authored Aug 4, 2022
1 parent 1abec69 commit 1770f88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions qiskit/algorithms/minimum_eigen_solvers/vqe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -111,7 +111,7 @@ def my_minimizer(fun, x0, jac=None, bounds=None) -> OptimizerResult:
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
Expand Down
4 changes: 2 additions & 2 deletions qiskit/algorithms/optimizers/gradient_descent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -70,7 +70,7 @@ def f(x):
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
Expand Down

0 comments on commit 1770f88

Please sign in to comment.