Commit Graph

97 Commits

Author SHA1 Message Date
Eric Arellano 3548427f09 Generate Runtime 0.25 docs (#1656) 2024-07-04 17:35:35 +00:00
Eric Arellano 9a68dc18d8 Update SVGs for patterns (#1635) 2024-07-02 12:11:55 -04:00
Arnau Casau 795135727b Update SVGs for patterns pages (#1606)
This PR updates the SVGs for the patterns pages.
2024-06-27 16:56:03 +00:00
Arnau Casau 679617cc5d Organize guides images (#1600)
Part of #154

This PR, following the idea of this
[comment](https://github.com/Qiskit/documentation/issues/154#issuecomment-2104751884),
moves all the images in the folders `start`, `build`, `transpile`,
`verify`, and `run` to a new folder called `guides`, updating all the
docs to point to that new folder.

To change the links, I used the following script that updates all but 3
links that are missed by the regex. I changed them manually.

<details>
<summary>Script</summary>

```python
from __future__ import annotations
import re
import glob
from pathlib import Path
from main import OLD_FOLDERS

def update_link(markdown: str, image_folder: str, link: str) -> str:
    new_link = link.replace(f"/images/{image_folder}/", "/images/guides/")
    return markdown.replace(link, new_link)

def main() -> None:
    inline_link_re = re.compile(r"\!\[([^\]]+)\]\(([^)]+)\)")

    for folder in [*OLD_FOLDERS, "api/migration-guides"]:
        image_folder = folder if folder != "api/migration-guides" else "run"
        for file_path in glob.glob(f"docs/{folder}/*"):
            file = Path(file_path)
            markdown = file.read_text()
            new_markdown = re.sub(
                inline_link_re,
                lambda m: update_link(m[0], image_folder, m[2]),
                markdown,
            )
            if markdown != new_markdown:
                file.write_text(new_markdown)

if __name__ == "__main__":
    main()
```
</details>
2024-06-27 14:55:39 +00:00
Eric Arellano 6af8296af6 Regen Qiskit 0.46, 1.1, 1.2-dev; Runtime 0.24, 0.25-dev (#1583)
```
npm run gen-api -- -p qiskit -v 0.46.2 --historical 
npm run gen-api -- -p qiskit -v 1.1.1 
npm run gen-api -- -p qiskit -v 1.2.0-dev --dev 
npm run gen-api -- -p qiskit-ibm-runtime -v 0.24.1 
npm run gen-api -- -p qiskit-ibm-runtime -v 0.25.0-dev --dev
```
2024-06-21 10:57:47 +00:00
Abby Mitchell 9223038c27 Last updates to Intro to Qiskit and what are patterns pages (#1507)
Just added some images and did some reformatting

---------

Co-authored-by: abbycross <across@us.ibm.com>
2024-06-20 14:22:14 +00:00
Arnau Casau b775000c95 Generate qiskit-ibm-runtime v0.24.0 and dev version (#1532)
This PR converts the qiskit-ibm-runtime 0.23.0 to historical and
generates the docs of version 0.24.0 and dev.

Commands used:
```bash
npm run make-historical -- -p qiskit-ibm-runtime
npm run gen-api -- -p qiskit-ibm-runtime -v 0.24.0
npm run gen-api -- -p qiskit-ibm-runtime -v 0.25.0-dev --dev
```
2024-06-12 12:34:06 +00:00
Kevin J. Sung d4df200ed1 add error mitigation explanation notebook (#1482)
Fixes #1355 .

No material on PEA yet because it's not exposed as an
[option](https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/options).

---------

Co-authored-by: Abdullah Ash- Saki <44783187+ashsaki@users.noreply.github.com>
Co-authored-by: Pedro Rivero <pedro.rivero.ramirez@gmail.com>
Co-authored-by: Jessie Yu <jessieyu@us.ibm.com>
Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Arnau Casau <arnaucasau@gmail.com>
2024-06-06 19:38:48 +00:00
Eric Arellano 6362b9913b Update Qiskit Transpiler Service docs (#1419) 2024-05-22 15:25:25 -04:00
Arnau Casau 9b72c356ac Fix duplicated method in `qiskit.providers.BackendV1` (#1412)
Closes #1199

This PR regenerates qiskit 0.45, 0.46, 1.0, 1.1, and dev with the fix
for #1199.

All artifacts have been uploaded to Box
2024-05-20 19:25:07 +00:00
Arnau Casau 3d3abf76fb Regen qiskit 1.1 with the dunder method fixed. (#1405)
This PR regenerates qiskit 1.1 applying a fix for #1275

Closes #1275
2024-05-17 17:44:15 +00:00
Eric Arellano e057d3c16c Prepare Qiskit 1.1 docs (#1400)
We will set up redirects in closed source.

The new circuit module rewrite suffers from
https://github.com/Qiskit/documentation/issues/1401. That's not blocking
this release, though.
2024-05-17 09:05:00 +00:00
Eric Arellano 166ae8b2d2 Host contributor license agreements (#1360)
Closes https://github.com/Qiskit/documentation/issues/796

We will host the PDFs at:

https://docs.quantum.ibm.com/open-source/qiskit-cla.pdf
https://docs.quantum.ibm.com/open-source/qiskit-corporate-cla.pdf

This folder corresponds to the new `open-source/` folder we'll want at
https://github.com/Qiskit/documentation/issues/605. We decided we don't
want to prefix the URL with `additional-resources/` because it makes the
URL too long and it makes it harder for us to reorganize docs in the
future.

We'll set up redirects for the old qiskit.org URLs.
2024-05-13 20:44:38 +00:00
Eric Arellano 622606cd2f Regenerate Qiskit 1.1.0rc1 (#1338)
This brings in the revamp of the header hierarchy + adding a missing
module to the index page.
2024-05-10 02:40:26 +00:00
Eric Arellano ff986fa93f Add Qiskit Transpiler Service Client docs (#1317)
Docs for https://pypi.org/project/qiskit-transpiler-service/.

These docs are not ready to go live to production yet. But we can safely
merge them in this repository to unblock infrastructure work in closed
source. We won't have closed source sync over these files until we get
the final okay from the transpiler service team.
2024-05-08 11:48:14 +00:00
Eric Arellano 0503da7c81 Generate Qiskit 1.1.0rc1 (#1295) 2024-05-03 19:37:58 +00:00
Eric Arellano 6ebe5ced6a Regenerate Runtime for fix to stub module (#1280)
Pulls in the fix for https://github.com/Qiskit/documentation/issues/1272
to Runtime.

Runtime now also calls its API index page `index.rst`, so we have to
change how we add the metadata to the file.
2024-05-02 15:05:49 +00:00
Eric Arellano eb51244319 Regenerate Runtime docs to use module reorganization (#1270)
Applies the changes made in
https://github.com/Qiskit/documentation/issues/1240.

Also updates the dev docs more generally.

Before:

<img width="272" alt="Screenshot 2024-05-01 at 11 46 46 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/d3655237-7a1e-4d3a-bc51-f8465b520b84">

After:

<img width="271" alt="Screenshot 2024-05-01 at 11 48 22 AM"
src="https://github.com/Qiskit/documentation/assets/14852634/748bfbbc-6610-47c8-8d2d-4826feb0e20f">
2024-05-01 16:08:32 +00:00
Rebecca Dimock 017be70f20 Sessions migration guide (#783)
Closes #595  
Closes #1041 
Closes #582 
Closes #780
Closes #582
Closes #1156 
Closes #577 
Closes #576 

- [x] Add text about job splitting, such as "If you split your workload
into multiple jobs and run them in Batch mode, you can get results from
individual jobs. You can, for example, decide to cancel the rest of the
jobs if the earlier job results don't meet your expectations. If one of
the jobs fail, you can also re-submit just that one instead of
re-running the entire workload."

There are several new and existing topics that are impacted:

- This documentation section has several topics about execution modes:
https://qiskit-docs-preview-pr-783.1799mxdls7qz.us-south.codeengine.appdomain.cloud/run/execution-modes
- This migration guide is new:
https://qiskit-docs-preview-pr-783.1799mxdls7qz.us-south.codeengine.appdomain.cloud/api/migration-guides/sessions

---------

Co-authored-by: Ashley Silva <asarver1@gmail.com>
Co-authored-by: Jessie Yu <jessieyu@us.ibm.com>
Co-authored-by: abbycross <across@us.ibm.com>
2024-04-29 15:32:27 +00:00
Kaelyn Ferris c44f78f30b Update hello-world for 1.0 (#1158)
Closes #699 

Currently waiting for the job to finish in order to plot the last set of
data. However, all the other content should be there and updated to
support 1.0.

---------

Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
Co-authored-by: Rebecca Dimock <beckyd@us.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
Co-authored-by: abbycross <across@us.ibm.com>
2024-04-23 21:32:21 +00:00
Rebecca Dimock a4964cfc43 Primitives (non runtime) changes for 1.0 (#812)
Closes #1072 

Some helpful background: from Jessie: The goal of this document is for
people to test their quantum program (that calls primitives) locally,
before sending them to Qiskit Runtime to run on a real QPU.

Most of this page uses the statevector simulator, and there is an
equivalent for V2, better named as
[StatevectorEstimator](https://github.com/Qiskit/qiskit/blob/main/qiskit/primitives/statevector_estimator.py#L31)
and
[StatevectorSampler](https://github.com/Qiskit/qiskit/blob/main/qiskit/primitives/statevector_sampler.py#L52).

---------

Co-authored-by: Ian Hincks <ian.hincks@gmail.com>
Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Elena Peña Tapia <epenatap@gmail.com>
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
2024-04-19 17:36:57 +00:00
Eric Arellano c8534e1f0b Generate qiskit-ibm-provider 0.11 docs (#1191) 2024-04-18 13:03:02 +00:00
Arnau Casau 4366ca3b14 Generate API docs qiskit-ibm-runtime 0.23.0 and dev version (#1182)
Part of #1178

This PR generates the API docs for runtime v0.23.0 (current version),
v0.24.0 (dev version), and converts v0.22.0 to historical.

Commands used in the generation:

```bash
 npm run make-historical -- -p qiskit-ibm-runtime
 npm run gen-api -- -p qiskit-ibm-runtime -v 0.23.0
 npm run gen-api -- -p qiskit-ibm-runtime -v 0.24.0-dev --dev
```
2024-04-16 15:58:08 +00:00
Eric Arellano a23ce676b3 Regenerate Qiskit 1.1 and Runtime 0.23 dev docs (#1144)
These haven't been generated in a long time. For Qiskit, this brings in
precise GitHub source code links from
https://github.com/Qiskit/documentation/issues/517.
2024-04-09 15:16:33 +00:00
Eric Arellano 2eaf342fe3 Regenerate Qiskit 1.0 docs to use precise source code links (#1145)
Part of https://github.com/Qiskit/documentation/issues/517.
2024-04-09 15:16:25 +00:00
Arnau Casau 3bf197cf71 Regenerate qiskit API docs (#1118)
Part of https://github.com/Qiskit/documentation/issues/1008

This PR regenerates qiskit API with the design changes introduced in
https://github.com/Qiskit/documentation/pull/1026
2024-04-03 14:38:41 +00:00
Arnau Casau e57eebf250 Regenerate qiskit-ibm-runtime API docs (#1117)
Part of https://github.com/Qiskit/documentation/issues/1008

This PR regenerates qiskit-ibm-runtime API with the design changes
introduced in https://github.com/Qiskit/documentation/pull/1026
2024-04-03 14:38:25 +00:00
Kaelyn Ferris 1d651dbd28 Add before and after transpilation images (#1115)
Adds an example before and after transpilation circuit to the
introduction of the transpile pages. Hopefully to clarify further what
the transpiler is used for.
2024-04-03 13:56:33 +00:00
Eric Arellano e3a533dfec Generate Runtime 0.22 docs (#1069)
This is our first time regenerating the Runtime docs with towncrier as
the release notes generator rather than Reno.
2024-03-21 16:59:30 -04:00
Kevin J. Sung bfccad62a6 delete stale images (#1052)
Run `npm run check:stale-images` and delete the output files.
2024-03-19 01:54:50 +00:00
Rebecca Dimock dcdde8aed1 Describe broadcasting rules (#983)
closes #981

---------

Co-authored-by: ABBY CROSS <across@us.ibm.com>
Co-authored-by: Jessie Yu <jessieyu@us.ibm.com>
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
2024-03-13 19:27:00 +00:00
Kevin J. Sung d78489f971 Rewrite "optimization level" documentation (#1007)
Part of #885 

- Convert from MDX to Jupyter notebook
- Rewrite introduction to be more concise
- Use preset pass manager instead of `transpile`
- Use Eagle device and ECR gates instead of retired Falcon device and CX
gates

---------

Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>
Co-authored-by: nick bronn <ntbronn@us.ibm.com>
2024-03-12 14:58:02 +00:00
Kevin J. Sung 6949c628be add script to remove stale images (#1016)
Fixes #194
2024-03-12 14:13:54 +00:00
Eric Arellano dbbc1fa0fb Generate Qiskit 0.46.1 and 1.0.2 (#995) 2024-03-08 14:52:34 -05:00
Arnau Casau 28f25f7a31 Generate qiskit-ibm-runtime 0.21.0 (#986)
This PR regenerates qiskit-ibm-runtime 0.22.0, 0.21.1, and makes 0.20.0
historical

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-03-07 18:20:18 +00:00
Kevin J. Sung f1017834db Rename "Use the transpile function" section to "Configuring transpilation" and update defaults and configuration options docs (#970)
Part of #885

---------

Co-authored-by: abbycross <across@us.ibm.com>
2024-03-06 21:11:50 +00:00
Rebecca Dimock 8106385914 Updates for V2 primitives (#711)
- [x] Remove various transpilation options for v2 primitives
- [x] Update code examples
- [x] Describe new features
- [x] Add migration guide to TOC and index
- [x] Check for outdated information
- [x] Check Cloud for outdated information

---------

Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
Co-authored-by: Jessie Yu <jessieyu@us.ibm.com>
2024-03-06 15:50:20 +00:00
Eric Arellano f3fa4ead11 Regenerate Runtime and Qiskit dev docs (#963)
Note that this also brings in script improvements we've made:

* Precise source code links
* Modules set min heading level to 2
2024-03-05 16:47:01 +00:00
Eric Arellano aaec587777 Update image of admin (#961) 2024-03-05 14:50:00 +00:00
abbycross ac6d5dc88a Update drawer output images in mdx files to match Qiskit 1.0 (part one) (#864)
Closes #833
2024-03-04 20:22:58 +00:00
Eric Arellano d69ba5dc77 Regen Runtime and Provider with full release notes and precise GitHub links (#931)
Part of https://github.com/Qiskit/documentation/issues/517. Also brings
in missing release notes due to bad configuration in Reno in the two
repositories.
2024-02-29 17:51:21 +00:00
Eric Arellano 845af16846 Regenerate Runtime 0.20 release note (#904)
Addresses
https://github.com/Qiskit/qiskit-ibm-runtime/issues/1428#issuecomment-1966573960.

I also updated the dev docs to the latest CI build, but only one image
changed.
2024-02-27 16:37:40 -05:00
Eric Arellano 93f98be6a0 Generate Qiskit 1.0.1 (#877)
`npm run gen-api -- -p qiskit -v 1.0.1`
2024-02-26 13:45:38 -05:00
Eric Arellano 703e6b676a Generate Provider 0.10 and Runtime 0.20 API docs (#861)
```
npm run make-historical -- -p qiskit-ibm-provider
npm run make-historical -- -p qiskit-ibm-runtime
npm run gen-api -- -p qiskit-ibm-provider -v 0.10.0 
npm run gen-api -- -p qiskit-ibm-runtime -v 0.20.0
npm run gen-api -- -p qiskit-ibm-runtime -v 0.20.1-dev --dev
```

For now, I used the same Box folder for 0.20 and 0.20.1-dev because
there is only a single commit difference that changes the version.
2024-02-21 10:33:50 -05:00
Eric Arellano 5c98329bd3 Add objects.inv for historical API docs (#850)
Closes https://github.com/Qiskit/documentation/issues/829.
2024-02-20 13:37:16 +00:00
Eric Arellano a749a22a0f Generate Qiskit 1.0 API docs and dev docs for 1.1 (#822)
```bash
npm run make-historical -- -p qiskit
npm run gen-api -- -p qiskit -v 1.1.0-dev --dev
npm run gen-api -- -p qiskit -v 1.0.0
```
2024-02-15 16:08:58 -05:00
Eric Arellano 2b1c26d427 Don't delete API docs for class aliases (#815)
Part of https://github.com/Qiskit/documentation/issues/814. We shouldn't
be deleting attribute pages if they don't correspond to an owning class.

This PR also runs `npm run regen-apis`; as shown, this PR's logic change
only impacts Qiskit v1 docs.
2024-02-15 12:27:02 +00:00
Eric Arellano 6b5999551a Update Qiskit 1.0 dev docs (#805)
Box artifact was updated, then `npm run gen-api -- -p qiskit -v 1.0.0rc1
--dev`.
2024-02-14 14:03:38 -05:00
Arnau Casau 9676f5d5d6 Generate qiskit and qiskit-ibm-runtime dev versions (#787)
Part of #316 

This PR generates the `dev` versions of qiskit 1.0.0 and
qiskit-ibm-runtime 0.19.2

Commands used:
```bash
npm run gen-api -- -p qiskit -v 1.0.0-dev --dev
npm run gen-api -- -p qiskit-ibm-runtime -v 0.19.2-dev --dev
```
To be able to generate the versions, you need to apply the changes from
#786
2024-02-09 09:50:40 +00:00
Eric Arellano 7a2d869b8d Generate Provider 0.8 and 0.9 docs (#784)
1. Uploaded artifacts to Box and added to `api-html-artifacts.json`
2. `npm run make-historical -- -p qiskit-ibm-provider`
3. `npm run gen-api -- -p qiskit-ibm-provider -v 0.8.0 --historical`
4. `npm run gen-api -- -p qiskit-ibm-provider -v 0.9.0`

This our first time having historical API docs for Provider, so it
required changing our link checker to load Qiskit docs.
2024-02-08 11:57:44 -05:00