Skip to content

Commit d9e964f

Browse files
Eric-Arellanojakelishman
authored andcommitted
Improve header hierarchy for utils documentation (Qiskit#11923)
* Improve header hierarchy for utils documentation * Fix pylint * Review feedback Co-authored-by: Jake Lishman <jake.lishman@ibm.com> * Use mod cross-reference to self --------- Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
1 parent 3abd006 commit d9e964f

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

qiskit/utils/__init__.py

+18-6
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,39 @@
1818
1919
.. currentmodule:: qiskit.utils
2020
21+
Deprecations
22+
============
23+
2124
.. autofunction:: add_deprecation_to_docstring
2225
.. autofunction:: deprecate_arg
2326
.. autofunction:: deprecate_arguments
2427
.. autofunction:: deprecate_func
2528
.. autofunction:: deprecate_function
26-
.. autofunction:: local_hardware_info
27-
.. autofunction:: is_main_process
29+
30+
SI unit conversion
31+
==================
32+
2833
.. autofunction:: apply_prefix
2934
.. autofunction:: detach_prefix
35+
36+
Class tools
37+
===========
38+
3039
.. autofunction:: wrap_method
3140
41+
Multiprocessing
42+
===============
43+
44+
.. autofunction:: local_hardware_info
45+
.. autofunction:: is_main_process
3246
33-
Parallel Routines
34-
-----------------
3547
A helper function for calling a custom function with python
3648
:class:`~concurrent.futures.ProcessPoolExecutor`. Tasks can be executed in parallel using this function.
3749
3850
.. autofunction:: parallel_map
3951
40-
Optional Dependency Checkers (:mod:`qiskit.utils.optionals`)
41-
============================================================
52+
Optional Dependency Checkers
53+
============================
4254
4355
.. automodule:: qiskit.utils.optionals
4456
"""

qiskit/utils/optionals.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"""
1414
.. currentmodule:: qiskit.utils.optionals
1515
16-
Qiskit has several features that are enabled only
17-
if certain *optional* dependencies are satisfied. This module is a collection of objects that can
16+
Qiskit has several features that are enabled only if certain *optional* dependencies
17+
are satisfied. This module, :mod:`qiskit.utils.optionals`, has a collection of objects that can
1818
be used to test if certain functionality is available, and optionally raise
1919
:class:`.MissingOptionalLibraryError` if the functionality is not available.
2020
@@ -52,7 +52,7 @@
5252
:widths: 25 75
5353
5454
* - .. py:data:: HAS_CONSTRAINT
55-
- `python-constraint <https://github.com/python-constraint/python-constraint>__ is a
55+
- `python-constraint <https://github.com/python-constraint/python-constraint>`__ is a
5656
constraint satisfaction problem solver, used in the :class:`~.CSPLayout` transpiler pass.
5757
5858
* - .. py:data:: HAS_CPLEX

0 commit comments

Comments
 (0)