Commit Graph

1103 Commits

Author SHA1 Message Date
Rebecca Dimock 8ea960c92f Add missing QiskitRuntimeService in migration guide (#1441)
Closes #1436
2024-05-28 21:08:50 +00:00
Rebecca Dimock d717617c07 Fix code bug (#1446)
Closes #1427
2024-05-28 20:40:56 +00:00
Rebecca Dimock 0a6d2fe87b Update Build repetition codes tutorial (#1157)
Closes #1137 

FYI @RoyElkabetz
2024-05-28 19:51:50 +00:00
Eric Arellano e5bcf7b17f Revert putting `(beta)` in Transpiler Service title (#1442)
We got updated instructions from leadership to remove this and instead
have a banner saying that the API is experimental.
2024-05-28 19:18:20 +00:00
Eric Arellano e32e87a406 Add missing metadata for Qiskit Transpiler Service (#1438) 2024-05-28 17:04:04 +00:00
Eric Arellano 7e535db9ca Teach link checker about Qiskit Transpiler Service REST API (#1437) 2024-05-28 16:14:11 +00:00
Kevin J. Sung a294ea2e90 use hellinger_fidelity function from qiskit (#1426) 2024-05-28 15:32:48 +00:00
Eric Arellano 0e80bc4d7c Mark Qiskit Transpiler Service as beta (#1420) 2024-05-22 17:27:35 -04:00
Eric Arellano 6362b9913b Update Qiskit Transpiler Service docs (#1419) 2024-05-22 15:25:25 -04:00
Rebecca Dimock ec33436710 Remove most references to qasm simulator (#1418)
closes #1408
2024-05-21 19:26:22 +00:00
Frank Harkins f7d32de143 Remove spinner from learning uploader (#1415)
Small refactor before #1390.

The spinner was fun when the tool was primarily used locally, but now
it's annoying in CI and is an extra dependency. See an example of the
new behaviour in the
[test](https://github.com/Qiskit/documentation/actions/runs/9173882338/job/25223510491#step:5:102).
2024-05-21 13:10:18 +00: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
abbycross 7f723da202 Move standard gates first in Circuit Library pg (#1410)
Closes #1409

---------

Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
2024-05-20 15:03:51 +00:00
Frank Harkins b443693153 Pull notebook classification out into separate test (#1397)
We want to run the notebook classification check on every PR. This PR
pulls that test out into a separate pytest suite and runs it as part of
the standard CI job. I'd like to also add some more tests to this suite
as the `nb-tester` has grown in complexity and there were some issues
with it recently.
2024-05-17 20:24:08 +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
dependabot[bot] 28480b4264 Update qiskit[all] requirement from ~=1.0 to ~=1.1 in /scripts/nb-tester (#1402)
Updates the requirements on
[qiskit[all]](https://github.com/Qiskit/qiskit) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Qiskit/qiskit/releases">qiskit[all]'s
releases</a>.</em></p>
<blockquote>
<h2>Qiskit 1.1.0</h2>
<h1>Changelog</h1>
<h2>Added</h2>
<ul>
<li>Conjugate reduction in optimize annotated pass (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11811">#11811</a>)</li>
<li>Add star to linear pre-routing pass (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11387">#11387</a>)</li>
<li>Add enhancement to BitArray (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12158">#12158</a>)</li>
<li>Add ElidePermutations transpiler pass (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/9523">#9523</a>)</li>
<li>Support standalone <code>Var</code> throughout transpiler (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12322">#12322</a>)</li>
<li>Add indexing and bitshift expressions (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12310">#12310</a>)</li>
<li>Support standalone <code>Var</code>s in OQ3 exporter (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12308">#12308</a>)</li>
<li>Add minimal support for standalone <code>Var</code> to visualisers
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12307">#12307</a>)</li>
<li>Support <code>Var</code> in circuit-substitution methods (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12215">#12215</a>)</li>
<li>Add representation of <code>expr.Var</code> to
<code>DAGCircuit</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12204">#12204</a>)</li>
<li>Promote arm64 macOS to tier 1 (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12102">#12102</a>)</li>
<li>Support standalone <code>expr.Var</code> in QPY (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11651">#11651</a>)</li>
<li>Extend the basis gates of BasicSimulator (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12186">#12186</a>)</li>
<li>Add reverse permutation for LNN connectivity (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12181">#12181</a>)</li>
<li>Add Rust-based <code>SparsePauliOp.to_matrix</code> and Miri tests
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11388">#11388</a>)</li>
<li>Finalise support for Numpy 2.0 (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11999">#11999</a>)</li>
<li>Rename <code>show_idle</code> and <code>show_barrier</code> to
<code>idle_wires</code> and <code>plot_barriers</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11878">#11878</a>)</li>
<li>Add fast-path construction to <code>NLocal</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12099">#12099</a>)</li>
<li>Add mapping-like features to data_bin (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12129">#12129</a>)</li>
<li>Expose plugin options (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12107">#12107</a>)</li>
<li>Update gate dictionary in <code>two_local.py</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12009">#12009</a>)</li>
<li>Add <code>.apply_layout()</code>method to <code>Pauli</code> class
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12066">#12066</a>)</li>
<li>Improve performance and randomness of <code>QuantumVolume</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12097">#12097</a>)</li>
<li>Add <code>copy</code> keyword argument to
<code>QuantumCircuit.append</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12098">#12098</a>)</li>
<li>Added the ctrl_state param to the mcp() function &amp; MCPhaseGate()
class (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12094">#12094</a>)</li>
<li>Oxidize two qubit basis decomposer (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12010">#12010</a>)</li>
<li>Added the ctrl_state parameter to mcx() function (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12050">#12050</a>)</li>
<li>Compose multiple final_layout attributes in routing (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11399">#11399</a>)</li>
<li>Fix custom constraints in <code>transpile</code> with
<code>BackendV2</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12042">#12042</a>)</li>
<li>Add BackendSamplerV2 (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11928">#11928</a>)</li>
<li>Add BackendEstimatorV2 (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11931">#11931</a>)</li>
<li>Oxidize TwoQubitWeylDecomposition (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11946">#11946</a>)</li>
<li>Adapt commutation checker to abstract circuits (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11948">#11948</a>)</li>
<li>Expose <code>PauliList.noncommutation_graph</code> in public API (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11795">#11795</a>)</li>
<li>Add ElidePermutations pass to optimization level 3 (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12111">#12111</a>)</li>
<li>replace CXCancellation with InverseCancellation (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11937">#11937</a>)</li>
<li>Add support for returning a DAGCircuit to TwoQubitBasisDecomposer
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12109">#12109</a>)</li>
<li>Assignment of parameters in pulse
<code>Schedule</code>/<code>ScheduleBlock</code> doable through
parameter name (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12088">#12088</a>)</li>
<li>Add SamplerPubResult (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12143">#12143</a>)</li>
<li>HLSConfig option to run multiple plugins and to choose the best
decomposition (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12108">#12108</a>)</li>
<li>Update <code>transpile()</code> to convert <code>BackendV1</code>
inputs to <code>BackendV2</code> with <code>BackendV2Converter</code>
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11996">#11996</a>)</li>
<li>Add commutative cancellation to preset passmanagers level 2 and 3
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11929">#11929</a>)</li>
<li>Add RemoveFinalReset pass (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/11266">#11266</a>)</li>
<li>ParameterVector support for pulse parameter assignment (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12045">#12045</a>)</li>
<li>Adding annotated argument to power methods (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12101">#12101</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Qiskit/qiskit/blob/main/docs/release_notes.rst">qiskit[all]'s
changelog</a>.</em></p>
<blockquote>
<p>.. _release-notes:</p>
<h1>==============================
Qiskit |version| release notes</h1>
<p>..
These release notes get converted into Markdown files via the
infrastructure at <a
href="https://github.com/Qiskit/documentation">https://github.com/Qiskit/documentation</a>,
which then gets deployed to <a
href="https://docs.quantum.ibm.com/api/qiskit/release-notes">https://docs.quantum.ibm.com/api/qiskit/release-notes</a>.
Changes to these release notes will update those release notes the next
time the API docs are generated for this version.</p>
<pre><code>`:earliest-version:` should be set to the rc1 release for the
current minor release series. For example, the stable/1.1 branch should
set it to 1.1.0rc1. If on `main`, set to the prior minor version's rc1,
like `1.0.0rc1`.
</code></pre>
<p>.. release-notes::
:earliest-version: 1.0.0rc1</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="7d29dc1b33"><code>7d29dc1</code></a>
Prepare 1.1.0 release (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12371">#12371</a>)</li>
<li><a
href="3f0b5e3f98"><code>3f0b5e3</code></a>
Write complete manual <code>QuantumCircuit</code> documentation (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12403">#12403</a>)
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12420">#12420</a>)</li>
<li><a
href="0a05ea211b"><code>0a05ea2</code></a>
Avoid lossing precision when scaling frequencies (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12392">#12392</a>)
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12416">#12416</a>)</li>
<li><a
href="54059f8e46"><code>54059f8</code></a>
Fix unnecessary serialisation of <code>PassManager</code> in serial
contexts (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12410">#12410</a>)
(#...</li>
<li><a
href="2804ae61eb"><code>2804ae6</code></a>
Fix two cross-references in <code>BasisTranslator</code> docstring (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12398">#12398</a>)
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12405">#12405</a>)</li>
<li><a
href="968547685a"><code>9685476</code></a>
Handle huge integers in OpenQASM 2 expression evaluator (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12140">#12140</a>)
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12400">#12400</a>)</li>
<li><a
href="49bd0d34bb"><code>49bd0d3</code></a>
Fix a corner case of <code>SparsePauliOp.apply_layout</code> (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12375">#12375</a>)
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12402">#12402</a>)</li>
<li><a
href="6e0eea43e0"><code>6e0eea4</code></a>
Fix <code>QuantumCircuit.compose</code> with <code>Index</code> exprs
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12396">#12396</a>)
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12397">#12397</a>)</li>
<li><a
href="70eae3c1e2"><code>70eae3c</code></a>
Fix {Pauli,SparsePauliOp}.apply_layout to raise an error with negative
or dup...</li>
<li><a
href="a93860654d"><code>a938606</code></a>
fix edge coloring bug in plot_coupling_map (<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12369">#12369</a>)
(<a
href="https://redirect.github.com/Qiskit/qiskit/issues/12379">#12379</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/Qiskit/qiskit/compare/1.0.0...1.1.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-17 13:20:56 +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
Matthew Treinish 593e21eb89 Document platform support changes for Qiskit 1.1 (#1108)
In Qiskit/qiskit#12102 we're promoting the macOS arm64 environment to
tier 1 now that github actions exposes native arm64 macOS workers. This
commit updates the documentation accordingly. This should not be merged
until Qiskit 1.1.0 is released (~or 1.0.3 if we decided to backport
Qiskit/qiskit#12102~ this isn't an option because there are issues with
arm64 mac in numpy that need pretty extensive changes to workaround
which will only be in 1.1.0).

---------

Co-authored-by: Rebecca Dimock <66339736+beckykd@users.noreply.github.com>
2024-05-16 20:42:08 +00:00
Kevin J. Sung 1ca51e8f6d Update style-guide.md: Remove redundant list item (#1399) 2024-05-16 20:28:46 +00:00
abbycross 36e911754a Stylistic updates to the Error mitigation w/ Estimator tutorial (#1378) 2024-05-16 19:37:20 +00:00
Rebecca Dimock f0d37ce50a remove callback section (#1393)
closes #1353
2024-05-16 16:46:38 +00:00
Frank Harkins b1990ea286 Exit notebook tests early on forks (#1363)
Suggestion on how to handle notebook testing on forks. Resolves #967.

This PR proposes always failing the test on forks, with advice to merge
to another branch in this repo to test it before merging to the main
branch. While a little clunky, we very rarely get PRs from forks so this
is probably simplest for now. We can review the process if it starts
becoming a problem.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-05-16 13:21:09 +00:00
Frank Harkins 2c989f98d4 Re-run notebooks to refresh outputs (#1396)
Refreshes notebook outputs with the latest package versions so outputs
match user expectations.

Same as #1391 but run locally for notebooks that don't submit jobs.
2024-05-16 11:56:54 +00:00
Arnau Casau 4a0e523ec1 External link checker: Add an HTTP header for the auth for GitHub (#1392)
Part of #823

This PR adds a new HTTP header to the external link checker to set the
auth for GitHub when we are checking GitHub links. The new header is
only used for GitHub links following what we do in the closed-source
repo.

In order to be able to get the environment variable from typescript with
`process.env.GITHUB_TOKEN`, we need to define it in the workflows. In
the case of running the script locally, the token could be undefined.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-05-15 17:09:20 +00:00
Frank Harkins 7831eac0d1 Refresh notebook outputs (#1391)
Uses the results of the most recent cron job to refresh notebook outputs
so they match user expectations.
2024-05-15 16:26:04 +00:00
Arnau Casau 8c73e75cee Fix the properties that were incorrectly marked as methods in Qiskit 0.24-0.28 (#1387)
Closes #1352

We have 18989 misclassified properties across different versions of
Qiskit (0.24 - 0.28). To fix them, this PR added an early return to the
`getApiType()` to return the correct `apyType` in case a member has the
property modifier.

This is an example of the HTML of a property:

```html
<dl class="py method">
<dt id="qiskit.circuit.Measure.definition">
<em class="property">property </em><code class="sig-name descname">definition</code><a class="headerlink" href="#qiskit.circuit.Measure.definition" title="Permalink to this definition">¶</a></dt>
<dd><p>Return definition in terms of other basic gates.</p>
</dd></dl>
```

The script searches for the `property` modifier inside the `<dt>` tag
inside the `<dl>` tag.
2024-05-15 16:14:18 +00:00
Arnau Casau 37676b16be Add check for files in `qiskit_bot.yaml` (#1375)
Closes #1330

This PR adds a check for the qiskit bot config to avoid the
`qiskit_bot.yaml` becoming stale.

The check shows two lists of files that can lead to an error:

The first one is for files that exist in the repo but don't have any
entry in the qiskit bot entry. This case will be triggered when we add
new files or we rename old ones without changing the configuration. If
we don't want to track a new file, we can add its path to the
`ALLOWED_OWNERLESS_FILES` set to avoid the error message.

The second list of files are the ones that don't exist in the repo but
have an entry in the config file. This case will be triggered by files
that change their name, removed files with the entry as a leftover, or
files where we set the config beforehand. The last ones can be added to
the `ALLOWED_INEXISTENT_FILES` set to avoid the error message.

The renamed files trigger both errors and will show the old name in the
first list, and the new name in the second one. This could be useful to
identify the old entries in the config file and to associate the files
in case we have multiple errors.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-05-15 16:13:30 +00:00
Eric Arellano 37f647e515 Allow manually created class pages (#1382)
This unblocks https://github.com/Qiskit/qiskit/pull/12403. Without this
PR, we incorrectly treat the class as inline, which means it gets the
blue left bar and an h3 incorrectly added.

Without this PR, our test to check that the ToC and index page are in
sync also fails, even though things behave how we expect
(https://github.com/Qiskit/qiskit/pull/12403#pullrequestreview-2056366501)
2024-05-15 11:47:24 +00:00
Frank Harkins 107cff50b4 Fix notebooks.toml (#1386)
We didn't notice this until we tried executing notebooks that submit
jobs.
2024-05-15 11:27:24 +00:00
Eric Arellano a78844fea0 Generalize TocGrouping.test.ts for future Qiskit versions (#1383)
Closes https://github.com/Qiskit/documentation/issues/1341.
2024-05-15 11:24:45 +00:00
Frank Harkins 8e505a951a Check for errors when executing initialization code (#1373)
We run some code before notebook execution to silence some warnings and
set up mock backends. At the moment, errors are ignored and the kernel
continues, often leading to unexpected behaviour.

This PR explicitly checks for errors when running the initialization
code and exits early if needed.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-05-15 08:32:13 +00:00
Frank Harkins 7037125c39 Fix mocking code (#1372)
Embarassingly, #1368 broke the mocking code as `warnings` was never
imported. I didn't notice because `kernel.execute` doesn't report if the
execution fails. I'm making a companion PR to catch this.
2024-05-14 19:37:03 +00:00
Frank Harkins 6e3ed3372e Update URL (#1377) 2024-05-14 18:10:52 +00:00
abbycross ca2f459146 Remove run-new directory in light of new reorg plan (#1370)
We no longer need the run-new directory.
2024-05-14 17:53:21 +00:00
Frank Harkins 903c4eed9e Update learning-api.conf.yaml (#1376) 2024-05-14 17:53:10 +00:00
Kevin J. Sung 9d87e26d5a Add tutorial for error mitigation with Qiskit Runtime Estimator (#1313)
Fixes #1168

---------

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: Ritajit Majumdar <majumdar.ritajit@gmail.com>
Co-authored-by: haimeng-zhang <33587226+haimeng-zhang@users.noreply.github.com>
2024-05-14 17:27:49 +00:00
abbycross ec12c2e312 rmv mention of zsh as not necessary (#1371)
Closes #1354.
2024-05-14 15:58:32 +00:00
abbycross 8ab3dacd02 [WIP] Updates and de-orphaning of circuit-execution.mdx (#1345)
Closes #937
2024-05-14 15:39:26 +00:00
Sanket Panda 8561b75096 Changed naming from Quantum Serverless to Qiskit Serverless (#1292)
## Background

As Serverless is integrating into the Qiskit stack, we want to rebrand
Quantum Serverless --> Qiskit Serverless to match. This specific PR
changes naming only, but we have a later PR to adjust how we talk about
Serverless and Patterns, common configuration elements like dependency
management, etc.

## Merge Date

**Do not merge yet**

We have to finish the [Github / PyPi side of things for Qiskit
Serverless](https://github.com/Qiskit-Extensions/quantum-serverless/issues/1307)
before this PR is merged. We expect everything to be merged latest by
**May 20th**

## Stakeholders

@Eric-Arellano, we'd need a redirect since the page URL is changing

---------

Co-authored-by: abbycross <across@us.ibm.com>
2024-05-14 15:38:17 +00:00
Frank Harkins 5ea44f55c7 Ask contributors to use `tox` for final notebook execution. (#1365)
Closes #1239

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-05-14 14:20:09 +00:00
Frank Harkins 337e381e1c Fix MPL warning suppression (#1368)
#1362 didn't work as Matplotlib emits warnings through the `logging`
module rather than the `warnings` module. This follows advice
(https://github.com/matplotlib/matplotlib/issues/23326#issuecomment-1164772708)
to correctly suppress the warnings.
2024-05-14 14:19:55 +00:00
Frank Harkins 62759f6f21 Ignore broken link (#1369)
Ignores a broken link in historical API docs. Closes #1350.
2024-05-14 13:59:56 +00:00
dependabot[bot] 0b9df14201 Update qiskit-aer requirement from ~=0.14.0.1 to ~=0.14.1 in /scripts/nb-tester (#1367)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-14 13:21:53 +00:00
dependabot[bot] e913ee77de Update nbformat requirement from ~=5.9.2 to ~=5.10.4 in /scripts/nb-tester (#1366)
Updates the requirements on
[nbformat](https://github.com/jupyter/nbformat) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/jupyter/nbformat/releases">nbformat's
releases</a>.</em></p>
<blockquote>
<h2>v5.10.4</h2>
<h2>5.10.4</h2>
<p>(<a
href="https://github.com/jupyter/nbformat/compare/v5.10.3...be5ff0a81d544238599b9df4fcefa19e235a8898">Full
Changelog</a>)</p>
<h3>Maintenance and upkeep improvements</h3>
<ul>
<li>Set all min deps <a
href="https://redirect.github.com/jupyter/nbformat/pull/399">#399</a>
(<a
href="https://github.com/blink1073"><code>@​blink1073</code></a>)</li>
<li>chore: update pre-commit hooks <a
href="https://redirect.github.com/jupyter/nbformat/pull/398">#398</a>
(<a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>)</li>
</ul>
<h3>Contributors to this release</h3>
<p>(<a
href="https://github.com/jupyter/nbformat/graphs/contributors?from=2024-03-15&amp;to=2024-04-04&amp;type=c">GitHub
contributors page for this release</a>)</p>
<p><a
href="https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Ablink1073+updated%3A2024-03-15..2024-04-04&amp;type=Issues"><code>@​blink1073</code></a>
| <a
href="https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Apre-commit-ci+updated%3A2024-03-15..2024-04-04&amp;type=Issues"><code>@​pre-commit-ci</code></a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/jupyter/nbformat/blob/main/CHANGELOG.md">nbformat's
changelog</a>.</em></p>
<blockquote>
<h2>5.10.4</h2>
<p>(<a
href="https://github.com/jupyter/nbformat/compare/v5.10.3...be5ff0a81d544238599b9df4fcefa19e235a8898">Full
Changelog</a>)</p>
<h3>Maintenance and upkeep improvements</h3>
<ul>
<li>Set all min deps <a
href="https://redirect.github.com/jupyter/nbformat/pull/399">#399</a>
(<a
href="https://github.com/blink1073"><code>@​blink1073</code></a>)</li>
<li>chore: update pre-commit hooks <a
href="https://redirect.github.com/jupyter/nbformat/pull/398">#398</a>
(<a
href="https://github.com/pre-commit-ci"><code>@​pre-commit-ci</code></a>)</li>
</ul>
<h3>Contributors to this release</h3>
<p>(<a
href="https://github.com/jupyter/nbformat/graphs/contributors?from=2024-03-15&amp;to=2024-04-04&amp;type=c">GitHub
contributors page for this release</a>)</p>
<p><a
href="https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Ablink1073+updated%3A2024-03-15..2024-04-04&amp;type=Issues"><code>@​blink1073</code></a>
| <a
href="https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Apre-commit-ci+updated%3A2024-03-15..2024-04-04&amp;type=Issues"><code>@​pre-commit-ci</code></a></p>
<!-- raw HTML omitted -->
<h2>5.10.3</h2>
<p>(<a
href="https://github.com/jupyter/nbformat/compare/v5.10.2...c17a251a1b1c5e2a7b9fe1fce866d4c110dd12eb">Full
Changelog</a>)</p>
<h3>Bugs fixed</h3>
<ul>
<li>Revert PR <a
href="https://redirect.github.com/jupyter/nbformat/issues/378">#378</a>
(Simplify NotebookNotary._data_dir_default) <a
href="https://redirect.github.com/jupyter/nbformat/pull/397">#397</a>
(<a
href="https://github.com/krassowski"><code>@​krassowski</code></a>)</li>
</ul>
<h3>Contributors to this release</h3>
<p>(<a
href="https://github.com/jupyter/nbformat/graphs/contributors?from=2024-03-12&amp;to=2024-03-15&amp;type=c">GitHub
contributors page for this release</a>)</p>
<p><a
href="https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Akrassowski+updated%3A2024-03-12..2024-03-15&amp;type=Issues"><code>@​krassowski</code></a></p>
<h2>5.10.2</h2>
<p>(<a
href="https://github.com/jupyter/nbformat/compare/v5.10.1...cf61c0ef37312e33efe3ca61ba1f13a4cb5ca901">Full
Changelog</a>)</p>
<h3>Maintenance and upkeep improvements</h3>
<ul>
<li>Restore usage of npm token <a
href="https://redirect.github.com/jupyter/nbformat/pull/395">#395</a>
(<a
href="https://github.com/blink1073"><code>@​blink1073</code></a>)</li>
</ul>
<h3>Contributors to this release</h3>
<p>(<a
href="https://github.com/jupyter/nbformat/graphs/contributors?from=2024-03-12&amp;to=2024-03-12&amp;type=c">GitHub
contributors page for this release</a>)</p>
<p><a
href="https://github.com/search?q=repo%3Ajupyter%2Fnbformat+involves%3Ablink1073+updated%3A2024-03-12..2024-03-12&amp;type=Issues"><code>@​blink1073</code></a></p>
<h2>5.10.1</h2>
<p>No merged PRs</p>
<h2>5.10.0</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="60b6151fed"><code>60b6151</code></a>
Publish 5.10.4</li>
<li><a
href="be5ff0a81d"><code>be5ff0a</code></a>
Set all min deps (<a
href="https://redirect.github.com/jupyter/nbformat/issues/399">#399</a>)</li>
<li><a
href="c55de2ba44"><code>c55de2b</code></a>
chore: update pre-commit hooks (<a
href="https://redirect.github.com/jupyter/nbformat/issues/398">#398</a>)</li>
<li><a
href="4791c59227"><code>4791c59</code></a>
Publish 5.10.3</li>
<li><a
href="c17a251a1b"><code>c17a251</code></a>
Revert PR <a
href="https://redirect.github.com/jupyter/nbformat/issues/378">#378</a>
(Simplify NotebookNotary._data_dir_default) (<a
href="https://redirect.github.com/jupyter/nbformat/issues/397">#397</a>)</li>
<li><a
href="99d09ae0a1"><code>99d09ae</code></a>
Publish 5.10.2</li>
<li><a
href="cf61c0ef37"><code>cf61c0e</code></a>
Restore usage of npm token (<a
href="https://redirect.github.com/jupyter/nbformat/issues/395">#395</a>)</li>
<li><a
href="be363933fe"><code>be36393</code></a>
Publish 5.10.1</li>
<li><a
href="531ba2c506"><code>531ba2c</code></a>
Publish 5.10.0</li>
<li><a
href="e690de1946"><code>e690de1</code></a>
Update Release Scripts (<a
href="https://redirect.github.com/jupyter/nbformat/issues/394">#394</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/jupyter/nbformat/compare/v5.9.2...v5.10.4">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-14 13:21:24 +00:00
Frank Harkins b2d88b9d8f Create dependabot.yml (#1364)
Closes #920
2024-05-14 11:34:09 +00:00
Frank Harkins 840c925b36 Ignore MPL cache warnings (#1362)
We occasionally see the following warnings when executing notebooks:

<img width="503" alt="Screenshot 2024-05-14 at 10 18 24"
src="https://github.com/Qiskit/documentation/assets/36071638/74c174b0-68fc-4eb3-b64c-e77f2e00a5ca">

[See
logs](https://github.com/Qiskit/documentation/actions/runs/9020672968/job/24786345632#step:7:90).

These warnings are harmless, out of our control, and break CI. This PR
runs some code in the kernel before notebook execution to disable them.
2024-05-14 11:32:01 +00:00
Frank Harkins 66792a364e Make sure all notebooks are classified in `notebooks.toml` (#1359)
Closes #1319.

* The script no longer uses `all-notebooks` as a glob pattern to search,
instead it just iterates through the list of filepaths
* Added a check to detect unclassified notebooks

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2024-05-14 09:10:06 +00:00
Frank Harkins 3e13d487a2 Refactor nb-tester execution process (#1346)
* Refactors to remove nbconvert, instead using nbclient directly.
* Rather than injecting cells into the notebook and cleaning up after,
we patch runtime by running the patching code in the kernel before we
execute the notebook. This should also make a future PR simpler too.
2024-05-13 20:45:46 +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 804f65722d Revert truncation of Runtime left ToC (#1358)
Reverts https://github.com/Qiskit/documentation/issues/1213. We've
gotten mixed feedback about truncating the left table of contents. While
it makes things less crowded, several people found it confusing. We'd
rather aim for clarity with our docs, even if it's more verbose.
2024-05-13 19:03:58 +00:00