Commit Graph

758 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
Rebecca Dimock bc16d038ab
Add NEAT notebook (#2223)
Closes #2191 

(Just a draft; adding the initial content from Sam)
FYI @abbycross @SamFerracin @jyu00

---------

Co-authored-by: ABBY CROSS <across@us.ibm.com>
2024-11-08 16:19:34 +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
Kaelyn Ferris ee70e2f250
Add note about setting fractional gates flag (#1737)
Closes #1527 

~~Currently blocked by #1734 which will need to be merged before CI
passes.~~

Utilizing fractional gates is a flag that is set when requesting a
backend from a `QiskitRuntimeService()` instance and there didn't appear
to be a clear page for a flag to be explained. I ended up adding it as
an admonition to the "get started with primitives" page.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-11-07 14:39:51 +00:00
Kaelyn Ferris 0b6711ae4a
Introduce fractional gates (#1734)
Closes #1526 (and will likely close #1471 @lerongil).

FYI @nbronn here's the draft of the fractional gates page.

---------

Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>
Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Yael Ben-Haim <yaelbh@il.ibm.com>
Co-authored-by: Will Shanks <wshaos@posteo.net>
2024-11-07 14:06:45 +00:00
Jim Garrison 313bcbc51f
Add qiskit-addon-aqc-tensor to addons.mdx (#2243)
This adds qiskit-addon-aqc-tensor to the docs page.

Notes:

- Currently, this addon's tutorial is phrased as step 2 of a Qiskit
pattern. However, after gaining experience with it, I believe it
actually fits in better as step 1. I plan to update the tutorial, but in
the meantime I've proposed it here under "Addons for mapping."
- I wrote a new description for it here, motivated by the desire to be
consistent with both (i) unitary AQC, which will likely be added soon,
and (ii) the phrasing as a "step 1" operation.
2024-11-06 21:28:03 +00:00
Eric Arellano aa8e078dcf
Add versions to API metadata & autogenerate index page metadata (#2241)
An issue with our API docs is confusing which version specific pages
correspond to because we have so many duplicates. That is especially an
issue with SEO, but also rich previews & tab titles. So, this PR adds
the version to both the `title` and `description`.

We use minor versions rather than patch versions because search engines
can be slow to update and we don't want their metadata to be
out-of-date. Likewise, we call it `(latest version)` and `(dev version)`
for this same reason.

Finally, this PR automates setting metadata for the index page whereas
before we hardcoded it.
2024-11-06 13:07:35 -05: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
Frank Harkins 9d98cb0139
Format notebooks with Ruff (#2199)
Follow-up to #2197. Draft until that PR is merged, then I'll rebase
this.

Also a partial fix for #1806 depending if we want to also lint code
examples in MDX.
2024-11-04 15:56:07 +00:00
Frank Harkins ff751796b5
List package versions in executed notebooks (#2208)
Adds the ability for `nb-tester` to list package versions in executed
notebooks. Closes #922.

To add version information to a notebook, add a markdown cell with tag
`version-info`. The script will replace the markdown in that cell with
the version information. I've added this cell to one notebook and
executed it to demonstrate (preview:
https://qiskit.github.io/documentation/pr-2208/guides/plot-quantum-states).
If we go with this approach, I can add empty cells to all notebooks and
they'll be populated as they're run.

This is just plain markdown for now, but we could also consider putting
it the information in a component or adding it to the notebook metadata
so we can display it somewhere else (e.g. the right sidebar).
2024-11-04 14:51:17 +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
Frank Harkins 882cd0aa25
Correct language in API code examples (#2207)
Fixes #2162 and regens the current API docs to demonstrate.
2024-11-01 17:51:17 +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 277826f52f
Ignore announcements in link checker (#2222)
Closes https://github.com/Qiskit/documentation/issues/2100.
2024-11-01 14:02:41 +00:00
assafb ff0bd17784
docs format changes (#2139)
Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
2024-11-01 10:13:06 +00:00
abbycross 4144d6047d
Update examples in get-started-with-primitives (#2200)
Closes #2189 and is part of #2094

---------

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
2024-10-31 18:58:17 +00:00
Rebecca Dimock a23baae25b
Rename Migrate to Qiskit Runtime section (#2221)
Closes #2216
2024-10-31 18:47:15 +00:00
Eric Arellano 0a7c76d059
Generate Runtime 0.32 (#2219) 2024-10-31 16:56:36 +00:00
abbycross 8b17877094
Mention mthree on configure-error-mitigation (#2192)
Closes #2104

---------

Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
2024-10-30 20:21:05 +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 9feacfbc2d
Regen API docs to remove broken external links (#2203)
Generated with `npm run regen-apis`. I changed the Box artifacts for the
Qiskit docs to not have the broken links. Closes
https://github.com/Qiskit/documentation/issues/2187.

Also applies https://github.com/Qiskit/documentation/pull/2195 to
qiskit-ibm-transpiler - I forgot to regen.
2024-10-30 14:08:13 +00:00
Rebecca Dimock 7f72cc8d59
Update Sampler import (#2201)
Closes #2176 

I searched and didn't find any other improperly coded imports. Hopefully
there aren't any more lurking in there!
2024-10-29 16:21:14 +00:00
Frank Harkins 0791c334f8
Add linting with ruff (#2197)
Adds linting and formatting with [Ruff](https://docs.astral.sh/ruff).

This caught a couple of undefined variables, but it also enforces
consistent code styling across our code examples. You may find it easier
to review this PR commit-wise.
2024-10-29 14:17:38 +00:00
Eric Arellano 0e70f3667c
Use sentence case capitalization for API names (#2195)
This changes the left sidebar and the release notes heading, per the IBM
style guide.
2024-10-29 14:09:13 +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
lucachiese25 59e41621ce
fixed typo in Specify observables in the Pauli basis (#2182)
fixes #2172

---------

Co-authored-by: CHIESELU <luca.chiese@posteitaliane.it>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-10-25 16:06:23 -04: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
Frank Harkins e6881a52d9
Fix syntax in CodeAssistantAdmonition (#2180)
Expressions must be JSON serializable
2024-10-25 15:32:54 +01:00
Frank Harkins 2f521be848
Switch `CodeAssistantPrompt` format (#2137)
We're changing how the prompt works. We'll have to merge with the broken
preview as we need to merge the MDX changes and the component changes to
inner-source at the same time. I've copied the files over to
inner-source to test it out with the new component and make sure the
syntax is correct.
2024-10-25 14:34:03 +01: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
abbycross 64410c238e
make paths safer (tweak to latest updates pg) (#2171) 2024-10-23 14:04:00 +00:00
Ludmila Botelho 081e4ae677
Algorithmiq TEM documentation: change parameter in example (#2169)
Updating the Algorithmiq TEM documentation in the Example section. The
parameter `max_execution_time` was removed.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-10-23 13:54:26 +00:00
abbycross e1d7a05c9f
What's new in the docs updates since early Sept (#2165)
Both content and infra changes are reflected here.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-10-22 19:03:51 +00:00
Eric Arellano 073f1ceb88
Regen runtime docs to add debug_tools module (#2161) 2024-10-22 14:32:05 +00:00
Tom Merkh 6cd46d63b1
chore: Update contact link (#2160)
This PR updates the contact link for one of Q-CTRL's docs notebooks.
2024-10-21 20:38:17 +00:00
abbycross 3d70b115f7
Fix outdated learning link in four docs pages (#2157)
Closes #2150.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-10-21 18:41:32 +00:00
abbycross f865fd2deb
Removed `dependencies=qiskit-aer==0.14.1` from serverless (#2158)
Closes #2155
2024-10-21 18:40:50 +00:00
Eric Arellano d70c46dfcd
Fix more external links (#2130)
Closes https://github.com/Qiskit/documentation/issues/2126.
2024-10-21 10:30:38 +00:00
Rowen Wu 1c0954ee3f
Update Q-CTRL Qiskit Function guides (#2134)
- Update schemas for both functions
- Split out Sampler/Estimator docs, rerun problems, update outputs
- Update some text and typos

---------

Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-10-17 11:12:14 -04:00
Eric Arellano 763ec2e5bd
Fix broken anchor link from execution modes rewrite (#2144)
This broke the Runtime release notes.
2024-10-16 21:46:07 +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
Ludmila Botelho 991d37a920
Update TEM documentation (#2088)
Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Francesca Pietracaprina <francesca@algorithmiq.fi>
Co-authored-by: Francesca Pietracaprina <fpietra@users.noreply.github.com>
2024-10-15 16:41:30 +00:00
Rebecca Dimock 5865b1c895
Improvements to execution modes docs (#2105)
Improve documentation about execution modes; specifically clarifying the
max timeout information

---------

Co-authored-by: abbycross <across@us.ibm.com>
2024-10-14 20:15:10 +00:00
Rebecca Dimock b7e0301377
Improve primitive intro (#2018)
closes #1733

---------

Co-authored-by: Kaelyn Ferris <43348706+kaelynj@users.noreply.github.com>
Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>
2024-10-14 15:49:25 +00:00