Skip to content

Fix broken documentation references in qiskit.providers#10547

Merged
1ucian0 merged 4 commits into
Qiskit:mainfrom
jakelishman:doc/providers-nitpick
Aug 31, 2023
Merged

Fix broken documentation references in qiskit.providers#10547
1ucian0 merged 4 commits into
Qiskit:mainfrom
jakelishman:doc/providers-nitpick

Conversation

@jakelishman
Copy link
Copy Markdown
Member

@jakelishman jakelishman commented Aug 2, 2023

Summary

This fixes all the broken crossreferences in the Sphinx build of qiskit.providers, found by using Sphinx's nitpicky mode. Leaving aside the errors due to attempted crossreferences to Python builtin and standard-library types (which are fixed in another commit), there were just over 500 errors in this module (the count inflated severely because of docstring inheritance) which are now all fixed.

Details and comments

The "other commit" alluded to in the message that fixes the builtin/standard-library types is #10523, but this PR doesn't depend on that one.

This fixes all the broken crossreferences in the Sphinx build of
`qiskit.providers`, found by using Sphinx's nitpicky mode.  Leaving
aside the errors due to attempted crossreferences to Python builtin and
standard-library types (which are fixed in another commit), there were
just over 500 errors in this module (the count inflated severely because
of docstring inheritance) which are now all fixed.
@jakelishman jakelishman added documentation Something is not clear or an error documentation Changelog: None Do not include in the GitHub Release changelog. labels Aug 2, 2023
@jakelishman jakelishman requested review from a team and jyu00 as code owners August 2, 2023 14:38
@qiskit-bot
Copy link
Copy Markdown
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core
  • @nkanazawa1989

Comment thread qiskit/providers/backend.py Outdated
Comment on lines 86 to 87

class Gate:
class GateProperties:
"""Class representing a gate's properties
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I renamed this (and put in a backwards-compatibility alias below) to avoid introducing an annoying Sphinx conflict in the crossreference :class:`.Gate` with qiskit.circuit.Gate.

Comment thread qiskit/providers/fake_provider/__init__.py Outdated
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 5741091114

  • 5 of 6 (83.33%) changed or added relevant lines in 3 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 85.914%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/providers/models/backendproperties.py 3 4 75.0%
Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 4 91.39%
Totals Coverage Status
Change from base Build 5727764372: 0.02%
Covered Lines: 73080
Relevant Lines: 85062

💛 - Coveralls

Eric-Arellano
Eric-Arellano previously approved these changes Aug 30, 2023
Copy link
Copy Markdown
Contributor

@Eric-Arellano Eric-Arellano 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 improving this!

Comment thread qiskit/providers/backend.py Outdated
Comment thread qiskit/providers/models/jobstatus.py
Comment thread qiskit/providers/models/pulsedefaults.py
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
@1ucian0 1ucian0 enabled auto-merge August 31, 2023 07:25
@1ucian0 1ucian0 added this pull request to the merge queue Aug 31, 2023
Merged via the queue into Qiskit:main with commit 9514dbe Aug 31, 2023
@jakelishman jakelishman deleted the doc/providers-nitpick branch August 31, 2023 10:45
SameerD-phys pushed a commit to SameerD-phys/qiskit-terra that referenced this pull request Sep 7, 2023
* Fix broken documentation references in `qiskit.providers`

This fixes all the broken crossreferences in the Sphinx build of
`qiskit.providers`, found by using Sphinx's nitpicky mode.  Leaving
aside the errors due to attempted crossreferences to Python builtin and
standard-library types (which are fixed in another commit), there were
just over 500 errors in this module (the count inflated severely because
of docstring inheritance) which are now all fixed.

* Remove unneeded reference to base type

* Fix broken import

* Update qiskit/providers/backend.py

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit-ibm-provider that referenced this pull request Oct 4, 2023
…kit#10547)

* Fix broken documentation references in `qiskit.providers`

This fixes all the broken crossreferences in the Sphinx build of
`qiskit.providers`, found by using Sphinx's nitpicky mode.  Leaving
aside the errors due to attempted crossreferences to Python builtin and
standard-library types (which are fixed in another commit), there were
just over 500 errors in this module (the count inflated severely because
of docstring inheritance) which are now all fixed.

* Remove unneeded reference to base type

* Fix broken import

* Update qiskit/providers/backend.py

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit-ibm-runtime that referenced this pull request Oct 10, 2023
…kit#10547)

* Fix broken documentation references in `qiskit.providers`

This fixes all the broken crossreferences in the Sphinx build of
`qiskit.providers`, found by using Sphinx's nitpicky mode.  Leaving
aside the errors due to attempted crossreferences to Python builtin and
standard-library types (which are fixed in another commit), there were
just over 500 errors in this module (the count inflated severely because
of docstring inheritance) which are now all fixed.

* Remove unneeded reference to base type

* Fix broken import

* Update qiskit/providers/backend.py

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Oct 12, 2023
* Fix broken documentation references in `qiskit.providers`

This fixes all the broken crossreferences in the Sphinx build of
`qiskit.providers`, found by using Sphinx's nitpicky mode.  Leaving
aside the errors due to attempted crossreferences to Python builtin and
standard-library types (which are fixed in another commit), there were
just over 500 errors in this module (the count inflated severely because
of docstring inheritance) which are now all fixed.

* Remove unneeded reference to base type

* Fix broken import

* Update qiskit/providers/backend.py

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit-ibm-runtime that referenced this pull request Dec 8, 2023
…kit#10547)

* Fix broken documentation references in `qiskit.providers`

This fixes all the broken crossreferences in the Sphinx build of
`qiskit.providers`, found by using Sphinx's nitpicky mode.  Leaving
aside the errors due to attempted crossreferences to Python builtin and
standard-library types (which are fixed in another commit), there were
just over 500 errors in this module (the count inflated severely because
of docstring inheritance) which are now all fixed.

* Remove unneeded reference to base type

* Fix broken import

* Update qiskit/providers/backend.py

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog. documentation Something is not clear or an error documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants