Skip to content

Commit

Permalink
Add alt text to images (#2079)
Browse files Browse the repository at this point in the history
* Add alt text to images

* Update __init__.py

* Update dynamical_decoupling.py

* Update __init__.py
  • Loading branch information
beckykd authored and arnaucasau committed Dec 23, 2024
1 parent 53fc2d5 commit f5c1a52
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
9 changes: 7 additions & 2 deletions qiskit_ibm_runtime/fake_provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
Here is an example of using a fake backend for transpilation and simulation.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -53,14 +54,17 @@
circuit.draw('mpl', style="iqp")
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
# Transpile the ideal circuit to a circuit that can be directly executed by the backend
# Transpile the ideal circuit to a circuit that can be
# directly executed by the backend
transpiled_circuit = transpile(circuit, backend)
transpiled_circuit.draw('mpl', style="iqp")
.. plot::
:alt: [Histogram output by the previous code.]
:include-source:
:context: close-figs
Expand Down Expand Up @@ -89,7 +93,8 @@
service = QiskitRuntimeService()
backend = service.backend('ibmq_manila')
# generate a simulator that mimics the real quantum system with the latest calibration results
# generate a simulator that mimics the real quantum
# system with the latest calibration results
backend_sim = AerSimulator.from_backend(backend)
Expand Down
19 changes: 18 additions & 1 deletion qiskit_ibm_runtime/transpiler/passes/scheduling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
of measurement results.
.. warning::
You should not mix these scheduling passes with Qiskit's builtin scheduling
You should not mix these scheduling passes with Qiskit's built in scheduling
passes as they will negatively interact with the scheduling routines for
dynamic circuits. This includes setting ``scheduling_method`` in
:func:`~qiskit.compiler.transpile` or
Expand All @@ -49,6 +49,7 @@
for a dynamic circuit backend's execution model:
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand Down Expand Up @@ -100,6 +101,7 @@
using the :class:`PadDynamicalDecoupling` pass as shown below:
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand Down Expand Up @@ -135,6 +137,7 @@
Scheduling with old format ``c_if`` conditioned gates is not supported.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -150,6 +153,7 @@
We may then schedule the transpiled circuit without further modification.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -174,6 +178,7 @@
prior to your scheduling pass.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand Down Expand Up @@ -205,6 +210,7 @@
gates to the same measurement qubit.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -224,6 +230,7 @@
on a different qubit than the measurement qubit.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -238,6 +245,7 @@
and will not be performed using the fast-path.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -254,6 +262,7 @@
padded out to the duration of the longest block.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -272,6 +281,7 @@
This behavior is also applied to the else condition of a fast-path eligible branch.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -292,6 +302,7 @@
the standard higher latency conditional branch.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -311,6 +322,7 @@
the conditional branch.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -326,6 +338,7 @@
Conditional measurements are not eligible for the fast-path.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -340,6 +353,7 @@
Similarly nested control-flow is not eligible.
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -361,6 +375,7 @@
be padded out by the scheduler to ensure they are of the same duration in Qiskit
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -380,6 +395,7 @@
qc.draw(output="mpl", style="iqp")
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand All @@ -404,6 +420,7 @@
For example:
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class PadDynamicalDecoupling(BlockBasePadder):
(including global phase).
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand Down Expand Up @@ -86,6 +87,7 @@ class PadDynamicalDecoupling(BlockBasePadder):
circ_dd.draw('mpl', style="iqp")
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
:context: close-figs
Expand Down

0 comments on commit f5c1a52

Please sign in to comment.