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

Add alt text to images #13555

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open

Add alt text to images #13555

wants to merge 32 commits into from

Conversation

beckykd
Copy link
Collaborator

@beckykd beckykd commented Dec 11, 2024

We need to add alt text to images for accessibility.

@CLAassistant
Copy link

CLAassistant commented Dec 11, 2024

CLA assistant check
All committers have signed the CLA.

@coveralls
Copy link

coveralls commented Dec 11, 2024

Pull Request Test Coverage Report for Build 12401585817

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.006%) to 88.967%

Files with Coverage Reduction New Missed Lines %
crates/accelerate/src/unitary_synthesis.rs 1 92.2%
crates/qasm2/src/lex.rs 2 93.48%
Totals Coverage Status
Change from base Build 12395850432: 0.006%
Covered Lines: 79441
Relevant Lines: 89293

💛 - Coveralls

@beckykd beckykd marked this pull request as ready for review December 18, 2024 19:03
@qiskit-bot
Copy link
Collaborator

One or more of the following people are relevant to this code:

  • @enavarro51
  • @Cryoris
  • @Qiskit/terra-core
  • @ajavadia
  • @levbishop
  • @nkanazawa1989
  • @t-imamichi

Eric-Arellano
Eric-Arellano previously approved these changes Dec 18, 2024
qiskit/circuit/library/fourier_checking.py Outdated Show resolved Hide resolved
qiskit/circuit/library/fourier_checking.py Outdated Show resolved Hide resolved
qiskit/pulse/instruction_schedule_map.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ElePT ElePT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR! I think it's a good start, but I wonder if we would like to eventually make it a bit more informative, because the descriptions are still very generic. I suggested a few minor changes on some descriptions (circuit diagram output instead of output), but overall LGTM. Reviewing this PR also gave me the chance to catch a few documentation bugs (#13635)!

@@ -130,6 +130,7 @@
convert it into a :class:`.QuantumCircuit`:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a case of:

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

@@ -27,6 +27,7 @@ def multiplier_cumulative_h18(
performs a non-modular multiplication on two 3-qubit sized registers is:
.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

@@ -35,6 +35,7 @@ def multiplier_qft_r17(
For example, on 3 state qubits, a full multiplier is given by:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

@@ -395,6 +398,7 @@
:meth:`.CouplingMap.build_coupling_map`:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably out of scope for this PR, but I don't see the output for these 3 snippets in https://docs.quantum.ibm.com/api/qiskit/transpiler#representing-quantum-computers

@@ -539,6 +544,7 @@
For example, to run a simple phase estimation circuit:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

@@ -970,6 +989,7 @@
we can then call :func:`~.transpile` on it with ``scheduling_method`` set:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

@@ -989,6 +1009,7 @@
also look at it with the :func:`.timeline.draw` function:

.. plot::
:alt: Diagram illustrating the previously described circuit.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think any of the 3 generic descriptions really fit this one, what about?

Suggested change
:alt: Diagram illustrating the previously described circuit.
:alt: Output from circuit timeline drawer.

@@ -455,6 +455,7 @@ class TranspileLayout:
let the input circuit be:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

@@ -470,6 +471,7 @@ class TranspileLayout:
Suppose that during the layout stage the transpiler reorders the qubits to be:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

@@ -498,6 +500,7 @@ class TranspileLayout:
becomes:

.. plot::
:alt: Output from the previous code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:alt: Output from the previous code.
:alt: Circuit diagram output by the previous code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants