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

Update old links in documentation #1374

Merged
merged 4 commits into from
Feb 1, 2024
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
11 changes: 6 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributing Guide

To contribute to Qiskit Experiments, first read the overall [Qiskit project contributing
guidelines](https://qiskit.org/documentation/contributing_to_qiskit.html). In addition
guidelines](https://github.com/Qiskit/qiskit/blob/main/CONTRIBUTING.md). In addition
to the general guidelines, the specific guidelines for contributing to Qiskit
Experiments are documented below.

Expand All @@ -13,6 +13,7 @@ Contents:
- [Pull request checklist](#pull-request-checklist)
- [Testing your code](#testing-your-code)
- [STDOUT/STDERR and logging capture](#stdoutstderr-and-logging-capture)
- [Other testing related settings](#other-testing-related-settings)
- [Code style](#code-style)
- [Changelog generation](#changelog-generation)
- [Release notes](#release-notes)
Expand Down Expand Up @@ -317,15 +318,15 @@ https://github.com/Qiskit-Extensions/qiskit-experiments/blob/main/docs/release_n

### Documentation

The [Qiskit Experiments documentation](https://qiskit.org/ecosystem/experiments/) is
The [Qiskit Experiments documentation](https://qiskit-extensions.github.io/qiskit-experiments) is
rendered from `.rst` files as well as experiment and analysis class docstrings into HTML
files.

#### Updating the documentation

Any change that would affect existing documentation, or a new feature that requires a
documentation, should be updated correspondingly. Before updating, review the [existing
documentation](https://qiskit.org/ecosystem/experiments) for their style and
documentation](https://qiskit-extensions.github.io/qiskit-experiments) for their style and
content, and read the [documentation guidelines](docs/GUIDELINES.md) for further
details.

Expand Down Expand Up @@ -361,15 +362,15 @@ There are a few other build options available:
### Deprecation policy

Qiskit Experiments is part of Qiskit and, therefore, the [Qiskit Deprecation
Policy](https://qiskit.org/documentation/deprecation_policy.html) fully applies here.
Policy](https://github.com/Qiskit/qiskit/blob/main/DEPRECATION.md) fully applies here.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was concerned that this policy might not apply to experiments now with 1.0 but DEPRECATION.md just contains the same content that we were linking to (which is hard to find now that the old link redirects to DEPRECATION.md but you can see it here). I think DEPRECATION.md might still get an update for 1.0.

Should we decouple from the Qiskit repo by copying more of the old policy over here? We don't need to do it in this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I'll open a new PR for adding our own DEPRECATION.md based on the current Qiskit one.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps we could still link to the Qiskit one rather than copying all of it and say something like "Changes and removals of public facing interfaces must be preceded by a deprecation warning in at least one previous minor release published at least three months before the change. The Qiskit deprecation guide has good advice on how to deprecate a feature. Follow it when possible, but note that Qiskit Experiments has a different release model than Qiskit." I think we want to take out the "part of Qiskit and the Qiskit policy fully applies here" part.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done in #1385.

Public-facing changes must come with a deprecation warning for at least three months or
two version cycles before the old feature is removed. Deprecations can only happen on
minor releases and not on patch releases.

#### Adding deprecation warnings

We use the deprecation wrappers in [Qiskit
Utilities](https://qiskit.org/documentation/apidoc/utils.html) to add warnings:
Utilities](https://docs.quantum.ibm.com/api/qiskit/utils) to add warnings:

```python

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
and analyzing experiments on noisy quantum computers using Qiskit.

To learn more about the package, you can see the
[most up-to-date documentation](https://qiskit.org/ecosystem/experiments/dev/)
[most up-to-date documentation](https://qiskit-extensions.github.io/qiskit-experiments/dev)
corresponding to the main branch of this repository or the
[documentation for the latest stable release](https://qiskit.org/ecosystem/experiments).
[documentation for the latest stable release](https://qiskit-extensions.github.io/qiskit-experiments).

## Contribution Guidelines

Expand Down
8 changes: 4 additions & 4 deletions docs/GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ example and example outputs by printing relevant analysis results and plot figur
Required and common parameters, such as experiment and analysis options, should be
covered.

See the [Randomized Benchmarking](https://qiskit.org/ecosystem/experiments/manuals/benchmarking/randomized_benchmarking.html)
guide and its [source code](docs/manuals/benchmarking/randomized_benchmarking.rst) for an
See the [Randomized Benchmarking](https://qiskit-extensions.github.io/qiskit-experiments/manuals/verification/randomized_benchmarking.html)
guide and its [source code](manuals/verification/randomized_benchmarking.rst) for an
example. Here is a simple template for a manual:

```
Expand Down Expand Up @@ -380,9 +380,9 @@ header should be named `Analysis Options` to be parsed correctly.
After you complete documentation of your classes, you must add documentation to the
toctree so that it can be rendered as the API documentation. In Qiskit Experiments, we
have a separate tables of contents for each experiment module (e.g. [characterization
experiments](https://qiskit.org/ecosystem/experiments/apidocs/mod_characterization.html))
experiments](https://qiskit-extensions.github.io/qiskit-experiments/apidocs/mod_characterization.html))
and for the [entire
library](https://qiskit.org/ecosystem/experiments/apidocs/library.html). Thus we
library](https://qiskit-extensions.github.io/qiskit-experiments/apidocs/library.html). Thus we
should add document to the tree of a particular module and then reference it to the
entire module.

Expand Down
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@
autoclass_content = "both"
intersphinx_mapping = {
"matplotlib": ("https://matplotlib.org/stable/", None),
"qiskit": ("https://qiskit.org/documentation/", None),
"qiskit": ("https://docs.quantum.ibm.com/api/qiskit/", None),
"uncertainties": ("https://pythonhosted.org/uncertainties", None),
"qiskit_ibm_provider": ("https://qiskit.org/ecosystem/ibm-provider/", None),
"qiskit_aer": ("https://qiskit.org/ecosystem/aer", None),
"qiskit_dynamics": ("https://qiskit.org/documentation/dynamics", None),
"qiskit_ibm_runtime": ("https://qiskit.org/ecosystem/ibm-runtime/", None),
"qiskit_dynamics": ("https://qiskit.org/ecosystem/dynamics/", None),
"qiskit_ibm_runtime": ("https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/", None),
}


Expand Down
6 changes: 3 additions & 3 deletions docs/howtos/job_splitting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Discussion
----------

Qiskit Experiments will automatically split circuits across jobs for you for backends
that have a maximum circuit number per circuit, which is given by the ``max_experiments``
property of :meth:`qiskit.providers.BackendV1.configuration` for V1 backends and
:attr:`qiskit.providers.BackendV2.max_circuits` for V2. This should
that have a maximum circuit number per job, which is given by the ``max_experiments``
property of :meth:`~qiskit.providers.BackendV1.configuration` for V1 backends and
the :attr:`~qiskit.providers.BackendV2.max_circuits` attribute for V2 backends. This should
work automatically in most cases, but there may be some backends where other limits
exist. When the ``max_circuits`` experiment option is provided, the experiment class
will split the experiment circuits as dictated by the smaller of the backend property
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ We've divided up the documentation into four sections with different purposes:
apidocs/index
release_notes
GitHub <https://github.com/Qiskit-Extensions/qiskit-experiments>
Development Branch Docs <https://qiskit.org/ecosystem/experiments/dev>
Development Branch Docs <https://qiskit-extensions.github.io/qiskit-experiments/dev/>

|

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
long_description_content_type="text/markdown",
url="https://github.com/Qiskit-Extensions/qiskit-experiments",
author="Qiskit Development Team",
author_email="hello@qiskit.org",
author_email="qiskit@us.ibm.com",
license="Apache 2.0",
classifiers=[
"Environment :: Console",
Expand All @@ -66,7 +66,7 @@
python_requires=">=3.8",
project_urls={
"Bug Tracker": "https://github.com/Qiskit-Extensions/qiskit-experiments/issues",
"Documentation": "https://qiskit.org/ecosystem/experiments",
"Documentation": "https://qiskit-extensions.github.io/qiskit-experiments",
"Source Code": "https://github.com/Qiskit-Extensions/qiskit-experiments",
},
zip_safe=False,
Expand Down
Loading