Commit Graph

156 Commits

Author SHA1 Message Date
Kaelyn Ferris 044ce6c82c
Kjf/sqd getting started (#2148)
Closes #2112 

A few questions for @Eric-Arellano about this:
- The notebook requires a separate text file to ingest orbital
information. I've put the contents in the page, but need to put the file
somewhere in the repo, I chose the `/guides/` directory to avoid
exposing the site's folder structure (and for easier reading by the
user). Is that alright to do?
- The notebook also requires `pyscf` to run. Should this dependency be
added to the `pyproject.toml` or `requirements.txt` in nb-tester?

Pedagogy question/notes for @javabster:
- I've cut out most of the circuit preparation and execution since the
SQD configuration recovery loop for this example can be run on synthetic
data. I think this helps focus in on the tooling of the package, but
wanted to make sure this was kosher since this example doesn't execute
anything on a QPU.
- I also think the full tutorial should be moved to the Learning
platform at some point (and this page should link out to it). It
contains good content and helpful information for users wanting to
prepare own chemistry workloads to post-process with SQD.

---------

Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>
Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
Co-authored-by: Caleb Johnson <calebj1524@outlook.com>
2024-11-08 19:41:51 +00:00
Eric Arellano 870071aebf
Generate Qiskit 1.3.0rc1 (#2268)
Note that /qiskit.circuit.library.IQP was deleted and is now
/qiskit.circuit.library.iqp because the class was deprecated in favor of
a function. However, the class page should not be deleted until Qiskit
2.0 so I will open a PR to fix this. Because it's dev docs, it's fine to
not block on this.
2024-11-08 16:14:39 +00:00
Eric Arellano 3a895f2dea
Generate sqd 0.8 and runtime 0.33 (#2264)
This is the first time SQD has a historical version, so we tell the link
checker to run on it with `--historical-apis`.
2024-11-08 13:15:01 +00:00
Eric Arellano 794e3c0ea6
Regen addons (#2262)
Cutting had a big change to show missing methods and un-inline some
classes. The other addons had smaller changes to show type hints even if
the parameter doesn't have docstring.

All changes were generated with `npm run gen-api`.
2024-11-07 20:59:13 +00:00
github-actions[bot] e2354fd570
Update API dev docs (#2254)
An action recently synced the latest dev docs. This PR updates all dev
APIs that changed.
  > [!NOTE]
  > This pull request was created by a GitHub action.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-07 19:20:43 +00:00
abbycross 65e150d26a
update functions overview image (#2260)
Closes #2250
2024-11-07 19:00:15 +00:00
github-actions[bot] a4deec7a41
Update API dev docs (#2249)
An action recently synced the latest dev docs. This PR updates all dev
APIs that changed.
  > [!NOTE]
  > This pull request was created by a GitHub action.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-06 15:04:07 +00:00
github-actions[bot] 551868e760
Update API dev docs (#2244)
An action recently synced the latest dev docs. This PR updates all dev
APIs that changed.
  > [!NOTE]
  > This pull request was created by a GitHub action.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-05 21:43:11 +00:00
github-actions[bot] 82aea7d288
Update API dev docs (#2238)
An action recently synced the latest dev docs. This PR updates all dev
APIs that changed.
  > [!NOTE]
  > This pull request was created by a GitHub action.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-11-04 13:01:25 +00:00
Eric Arellano fedadabbdd
Revert "Update API dev docs (#2224)" (#2229)
This reverts commit f998723472. It's not
safe due to https://github.com/Qiskit/qiskit/pull/13388.
2024-11-01 19:36:00 +00:00
github-actions[bot] f998723472
Update API dev docs (#2224)
An action recently synced the latest dev docs. This PR updates all dev
APIs that changed.
  > [!NOTE]
  > This pull request was created by a GitHub action.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-11-01 18:09:55 +00:00
Eric Arellano 283ca70cb0
Fix anchor links in API docs to inline class methods (#2218)
Closes https://github.com/Qiskit/documentation/issues/2210. Before,
cross references to inlined class methods would try using the link
`InlineClass.some_method`, but the link should really be `some_method`
without `InlineClass`.

The better fix is https://github.com/Qiskit/documentation/pull/2215
because it avoids the risk of ambiguous anchors. However, it would be a
UX regression to land that until
https://github.com/Qiskit/documentation/issues/1395 is done. Fixing this
is tracked by https://github.com/Qiskit/documentation/issues/2217.
2024-11-01 14:10:17 +00:00
Eric Arellano 0a7c76d059
Generate Runtime 0.32 (#2219) 2024-10-31 16:56:36 +00:00
Eric Arellano f1ae9bed89
Regenerate addon API docs with reorganization (#2209)
All five addons now use the structure we expect of having a flat list of
module pages, along with an index page.

Thanks to this PR, we can now run `checkOrphanPages.ts` on the addon
projects.
2024-10-30 18:05:32 +00:00
Eric Arellano 3b58c42340
Shorten and use kebab-case for Addon URLs (#2177)
Closes https://github.com/Qiskit/documentation/issues/2174. We now
convert URLs like `qiskit_addon_obp.MyClass` to `my-class`.

This is safe to change because the Addons are not yet public. We may
eventually want to do this for Qiskit, Runtime, and Transpiler Service -
for now, they stay the same.
2024-10-25 20:07:09 +00:00
Eric Arellano 305e99a9f8
Regenerate Addons to remove broken links (#2181)
These links were all fixed in the Addon repositories directly.
2024-10-25 19:23:22 +00:00
Eric Arellano 9dbb50f42e
Add Qiskit addon API docs as a baseline (#2167)
We're in the process of adding six Qiskit addon API docs. This PR sets
up the initial projects so that it's easier for us to iterate on them,
such as running `npm run gen-api -- -a <path-to-html>` to see locally
how changes to Sphinx config impact the MDX pipeline.

The docs are _not_ ready to go live and they will not yet be synced by
closed source or deployed.

The quality issues will fixed in the project repositories, such as
https://github.com/Qiskit/qiskit-addon-obp/pull/24.

## API naming scheme

We call the API by their full name, without their abbrevation. For
example, "Operator Backpropagation" rather than "OBP" or "Operator
Backpropagation (OBP)".

We do not explicitly mention "Qiskit addon" in the API name. It's
already evident these are addons by looking at the left ToC which shows
the full module path like `qiskit_addon_obp`.


![image_720](https://github.com/user-attachments/assets/fe664a69-a0a1-4058-92f2-34d03618db8f)

## URL scheme

Each package's URL matches their PyPI name, like `qiskit-addon-obp`.

Note that we may want to normalize the URLs for individual pages to
follow SEO best practices, e.g.
`/api/qiskit-addon-obp/qiskit_addon_obp.utils.simplify` would be
`/api/qiskit-addon-obp/qiskit-addon-obp-utils-simplify`. We would make
this change in a follow up PR.
2024-10-23 17:13:33 +00:00
Eric Arellano 073f1ceb88
Regen runtime docs to add debug_tools module (#2161) 2024-10-22 14:32:05 +00:00
Eric Arellano e0ced199e0
Generate Runtime 0.31 docs (#2142)
Note that several APIs were removed from Runtime. I'll set up redirects
in closed source.

This PR also updates the dev docs for Qiskit. For some reason, our cron
job isn't actually opening up PRs.
2024-10-16 15:43:03 -04:00
Eric Arellano 71dfb787a2
Sync fix for bad GitHub links for decorators (#2093)
Syncs the fix for https://github.com/Qiskit/documentation/issues/2060.
2024-10-08 09:25:44 +00:00
Eric Arellano f0c693a98a
Generate Qiskit 1.2.4 (#2068)
The release notes rendered well locally with `./start --apis`.
2024-10-04 11:50:28 +00:00
Eric Arellano d00405d5cb
Regen dev docs (#2071)
Generated with `npx tsx scripts/js/commands/api/syncDevDocs.ts` (cron
job currently not working).

Note that Runtime removes all v1 Fake Provider pages. We'll set up
redirects once this version becomes stable.

There is also a Qiskit SDK regression tracked by
https://github.com/Qiskit/qiskit/issues/13258.
2024-10-02 20:33:29 +00:00
Eric Arellano 622659a473
Regenerate qiskit-ibm-transpiler 0.6.1 (#2039)
For some reason, the generated docs were missing some entries in
objects.inv. This was generated by running `npm run regen-apis -- -p
qiskit-ibm-transpiler`.
2024-09-26 19:58:01 +00:00
Frank Harkins bde4c6af7f
Fix broken image in "IBM Circuit function" (#2036)
Looks like this image got corrupted in #2006 and we didn't notice. This
PR restores the image to it's state before that commit using the
following command.

```sh
git restore public/images/guides/ibm-circuit-function/ibm-circuit-function.svg --source 47688a1c86
```

Related to #2037
2024-09-26 12:57:21 +00:00
Eric Arellano c5e6245bfc
Regen Runtime to fix broken anchor links in release notes (#2028) 2024-09-25 08:54:13 +00:00
Eric Arellano 84023c225e
Generate Runtime 0.30 (#2025) 2024-09-24 16:14:09 +00:00
Eric Arellano 238829532e
Update dev docs (#2014)
This is our first time generating the dev docs in an automated way
through the new script added in
https://github.com/Qiskit/documentation/pull/2017.

Note that we now store GitHub URLs for the artifacts, rather than Box.
These will become stale in 90 days, so this would not be safe to do for
stable docs. But it's okay for dev docs since we update them more
frequently than every 90 days.
2024-09-24 15:29:08 +00:00
Eric Arellano 86790b8a80
Add dark mode images for Qiskit Functions (#2006) 2024-09-23 15:05:34 +00:00
Eric Arellano bf7948fe4a
Generate Qiskit 1.2.2 (#2001) 2024-09-20 16:06:06 +00:00
abbycross ddd6659738
fix typo/update language in image (#1991)
Closes #1977
2024-09-19 18:25:45 +00:00
Eric Arellano c71579c89c
Generate Runtime 0.29.1 and Transpiler 0.7.0 (#1983)
Gens:

* Runtime dev
* Runtime 0.29.1
* Transpiler 0.7.0

Manually bumps the versions for Transpiler 0.5 and 0.6 (no docs changes
were made). Also updates the link checker for Runtime due to a shift in
its index.html page.
2024-09-18 18:31:27 +00:00
Eric Arellano 2640612711
Regen Qiskit 0.46.3 to fix broken link (#1972)
Also makes the Runtime link ignores more precise. I spent twenty minutes
trying to figure out why `objects.inv` still has a broken link
`index#qiskit-runtime-version-api-docs-preview` in Runtime but not
Transpiler Service & Qiskit. I couldn't figure it out, so moved on.
2024-09-18 14:17:11 +00:00
Eric Arellano 453e7102b3
Generate Qiskit 0.46.3 (#1952)
This brings in a fix for `.. py:data::` in `utils.mdx`, so we can turn
off those link checker ignores.
2024-09-16 14:36:33 +00:00
Eric Arellano 451e2ec13b
Generate qiskit-ibm-transpiler 0.6 (#1942)
We enable release notes and source code links.

---------

Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
2024-09-16 14:12:25 +00:00
Eric Arellano 3d5c6a3a37
Sync Functions from closed source (#1947)
Note that we do not test the notebooks in CI.
2024-09-16 13:28:23 +00:00
Juan Cruz-Benito 3d4b93307d
Add documentation about the Qiskit Code Assistant (#1931)
1st draft for documentation about the Qiskit Code Assistant. Should fix
#1930

Considerations:
- Rough draft, feel free to edit or give any feedback
- I'm not sure if we should split the documentation in 2 parts: one for
JupyterLab extension and another one for the VSCode extension
- I'm not sure the where the Qiskit Code Assistant should be placed in
the TOC
- I added content that depends on #1918

---------

Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
Co-authored-by: Rebecca Dimock <beckyd@us.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-09-13 21:51:15 +00:00
Eric Arellano ba2a3e9512
Generate Qiskit 1.2.1, 1.3.0b1 and Runtime improvements (#1935)
This brings in a fix for
https://github.com/Qiskit/documentation/issues/798, which means that we
need to set up our historical redirects for those RST files in Qiskit to
go to the now renamed files. I will set up redirects in closed source.
2024-09-13 10:08:12 +00:00
Eric Arellano 60e5b3e1b0
Generate Runtime 0.29.0 (#1921) 2024-09-09 16:41:18 +00:00
Eric Arellano 21c5f6472d
Fix API aliases being orphaned (#1915)
We have some attribute pages that are aliases, like `Sampler` being an
alias for `SamplerV1`. These pages weren't showing up in the ToC
(orphans) because of an oversight.

This PR also makes these improvements:

* Fixes our code for copying release note images to the correct location
for Qiskit, as a continuation of
https://github.com/Qiskit/documentation/pull/1914
* Uses `ApiType` rather than `string` in more places so that we get
stronger typing
* Removes an unused arg, `$main`
2024-09-06 13:14:36 +00:00
Eric Arellano f98fa50081
Fix release note image path for Qiskit historical versions (#1914)
https://github.com/Qiskit/documentation/pull/1848 only fixed `npm run
make-historical`, but not `npm run gen-api` and `npm run regen-apis`.
With this PR, 1.1 stays the same when regenerating, whereas before the
release note changed.

I also manually changed the Sphinx artifact for 1.0 to fix a link to a
page we migrated.
2024-09-05 16:15:58 +00:00
Eric Arellano d47d34e4f1
Regen Runtime and Qiskit (#1911)
There were some changes that we didn't properly set up by regenerating
the API docs. This runs `npm run regen-apis`.

The file docs/api/qiskit-ibm-runtime/0.23/options.mdx was manually
changed in the uploaded Box artifact to avoid a regression where the
link changed to point to current API docs for a page that was deleted.
2024-09-05 15:55:35 +00:00
Eric Arellano 91db925135
Use dark-mode friendly Patterns SVGs (#1904)
Closes https://github.com/Qiskit/documentation/issues/1896. Light mode
stays the same, but dark mode now looks like:
<img width="917" alt="Screenshot 2024-09-03 at 3 45 52 PM"
src="https://github.com/user-attachments/assets/9fca121e-9d6b-417c-956e-2cf477a2df5e">

<img width="922" alt="Screenshot 2024-09-03 at 3 45 41 PM"
src="https://github.com/user-attachments/assets/dc45d385-2374-450b-8551-90a0b81e19b2">
2024-09-04 15:46:04 +00:00
Eric Arellano 0c3fa1cb7c
Generate qiskit-ibm-transpiler 0.5.1 and 0.4.8 (#1891)
All the pages were renamed in 0.5, so we'll set up redirects in closed
source.

We also set up precise redirects in `historical-pages-to-latest.json`.
Otherwise, those pages would have gone to `/` (root).
2024-08-29 13:18:23 +00:00
Eric Arellano ab355a47ec
Migrate qiskit-transpiler-service to qiskit-ibm-transpiler (#1886)
Part of https://github.com/Qiskit/documentation/issues/1870. We'll set
up redirects in closed source from `qiskit-transpiler-service/*` to
`qiskit-ibm-transpiler/*`.

We don't yet generate `qiskit-ibm-transpiler` version 0.5 because that
is going to require a new set of more specific redirects, as the page
names will change from `qiskit_transpiler_service.Foo` to
`qiskit_ibm_transpiler.Foo`. That'll be done in a follow up after this
initial migration is complete.
2024-08-28 15:11:23 +00:00
abbycross 93028b8c16
How usage affects job priority within an instance (#1872)
Closes #1863

---------

Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
Co-authored-by: Rebecca Dimock <beckyd@us.ibm.com>
2024-08-26 18:34:27 +00:00
Eric Arellano 678ceff7bb
Regenerate Runtime 0.28 and Transpiler 0.4 (#1869)
Regenerates Runtime 0.28 and 0.29.0-dev because the team made some docs
they want to go live. Also generates the new Transpiler 0.4.6 release.
2024-08-23 14:24:50 +00:00
Frank Harkins 91f4627af4
Remove Qiskit IBM Provider (#1862)
Closes #1797
2024-08-23 12:20:46 +00:00
Eric Arellano 6f2203218c
Generate Qiskit 1.2.0 (#1834) 2024-08-16 20:45:51 +00:00
Eric Arellano a17c600dc7
Generate Runtime 0.28.0 (#1835)
This PR removes a few files. We will set up redirects in closed source.
2024-08-16 18:25:46 +00:00
Eric Arellano 77693035ca
Generate qiskit-transpiler-service 0.4.5 (#1824)
This means that we now have our first historical version of
qiskit-transpiler-service: 0.3. So, we need to update
`checkInternalLinks.ts` to start checking historical versions.

We don't yet add a dev version because it's annoying to maintain and the
users are too few for now.
2024-08-14 19:07:51 +00:00