Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
Aug 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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