-
Notifications
You must be signed in to change notification settings - Fork 114
method get_job_by_id() missing in Qiskit Function Intro #2629
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
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
One or more of the following people are relevant to this code: |
So basically we'd want a few lines showing how to take an existing job_id and pass it to |
e.g. we can use the existing |
Co-authored-by: Johannes Greiner <[email protected]>
docs/guides/functions.ipynb
Outdated
"metadata": {}, | ||
"source": [ | ||
"```\n", | ||
"<Job | b1486233-3f59-4c19-b52d-6ad729b891cc>\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Eric-Arellano when there is no print statement, would the assert statement still give an output of any kind? (What is here is left over from when there was a print statement, so I need to update it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the assert
does not give output. Rather than hardcoding the output as markdown like this, it's better to update the code
block to directly call print()
and rely on nb-tester
(i.e. run tox
) to generate the output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been running the notebook locally to get outputs. Should I be leaving them blank and leave it to tox to supply the outputs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running it locally is fine too
Co-authored-by: Eric Arellano <[email protected]>
Co-authored-by: Eric Arellano <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me now!
commit 539d82097ac378a26892f7ecb4586d2df4ab12c3 Author: Eric Arellano <[email protected]> Date: Tue May 13 15:55:00 2025 -0400 Rename part 2 commit 9c2c424a8b80856b295ce5c0091c38985ce7f2ba Author: Eric Arellano <[email protected]> Date: Tue May 13 15:54:36 2025 -0400 Rename part 1 commit 765a73c Author: Christopher Porter <[email protected]> Date: Tue May 13 15:29:49 2025 -0400 Added a course introduction commit 84eff50 Author: Christopher Porter <[email protected]> Date: Tue May 13 15:14:11 2025 -0400 Removed hyphen from my own handle in qiskit_bot.yaml commit 526e092 Author: Christopher Porter <[email protected]> Date: Tue May 13 15:05:29 2025 -0400 Removed hyphen from my own handle in qiskit_bot.yaml commit ed35726 Author: Christopher Porter <[email protected]> Date: Tue May 13 15:01:14 2025 -0400 Fixed sp errors and added words to ignore to each file commit ce8e441 Author: Christopher Porter <[email protected]> Date: Tue May 13 14:54:14 2025 -0400 Fixed sp errors and added words to ignore to each file commit e2b0540 Author: Christopher Porter <[email protected]> Date: Tue May 13 14:45:48 2025 -0400 Fixed sp errors and added words to ignore to each file commit bab8bb5 Author: Christopher Porter <[email protected]> Date: Tue May 13 14:18:53 2025 -0400 Fixed sp errors and added words to ignore to QVCs QNNs commit ac04ccc Author: Christopher Porter <[email protected]> Date: Tue May 13 14:15:23 2025 -0400 Fixed sp errors and added words to ignore to QVCs QNNs commit c75b963 Author: Christopher Porter <[email protected]> Date: Tue May 13 12:52:07 2025 -0400 Added QVC and QNN to dictionary commit b23d30e Author: Christopher Porter <[email protected]> Date: Tue May 13 12:17:35 2025 -0400 Fixed description and title in kernel methods commit 50810c7 Merge: 29cdc84 6426ce4 Author: Christopher Porter <[email protected]> Date: Tue May 13 12:09:05 2025 -0400 Merge branch 'CP/QML' of https://github.com/Qiskit/documentation into CP/QML commit 29cdc84 Author: Christopher Porter <[email protected]> Date: Tue May 13 12:08:33 2025 -0400 Edited description and title of each notebook in QML commit 6426ce4 Merge: d834a24 9b4e192 Author: christopherporter1 <[email protected]> Date: Tue May 13 11:55:10 2025 -0400 Merge branch 'main' into CP/QML commit 9b4e192 Author: Kaelyn Ferris <[email protected]> Date: Tue May 13 11:39:07 2025 -0400 Update testing env to include `PendingDeprecation` warnings (#3114) Closes #2716 According to the official python docs, `PendingDeprecation` warnings are [ignored by default](https://docs.python.org/3/library/exceptions.html#PendingDeprecationWarning) unless [Python Development Mode](https://docs.python.org/3/library/devmode.html) is enabled (done either through the `-Xdev` or `-Wd` flags when invoking `python` or by setting the environment variable `PYTHONDEVMODE=1`). This PR sets the `tox` environment to run using dev mode with the `PYTHONDEVMODE` env var. commit d834a24 Author: Christopher Porter <[email protected]> Date: Tue May 13 10:41:29 2025 -0400 replaced Frank's addition of Prac QC to index, qiskit_bot, and notebook checker commit 1c9860d Author: Christopher Porter <[email protected]> Date: Tue May 13 09:18:04 2025 -0400 replaced python with python3 in start, check, fix commit 42ec9e4 Author: Emil Kovacev <[email protected]> Date: Tue May 13 06:55:25 2025 -0400 Adds additional tutorials requirements for nb-tester (#3093) Closes #3071 commit a942952 Author: abbycross <[email protected]> Date: Mon May 12 14:04:37 2025 -0400 Specify rolling plan is for Premium only (#3113) Mention on fair-share-scheduler page that the 28-day rolling window only applies to Premium, not Flex Plan. commit 476035b Author: Christopher Porter <[email protected]> Date: Mon May 12 13:09:35 2025 -0400 Added course to index commit acfd586 Author: Christopher Porter <[email protected]> Date: Mon May 12 11:47:28 2025 -0400 Update notebook-testing.toml commit 7cd57d7 Author: Rebecca Dimock <[email protected]> Date: Fri May 9 15:37:21 2025 -0500 Update session max TTL (#3110) @jyu00 noticed that when I updated the batch max TTL, I needed to also update the session max TTL. --------- Co-authored-by: Jessie Yu <[email protected]> commit ae60a0c Author: Arnau Casau <[email protected]> Date: Fri May 9 19:14:03 2025 +0200 Generate Qiskit 1.4.3 (#3111) This PR generates the docs for qiskit 1.4.3 (historical) ``` npm run gen-api -- -p qiskit -v 1.4.3 --historical ``` commit 479402a Author: Frank Harkins <[email protected]> Date: Fri May 9 17:37:42 2025 +0100 Extract notebook image outputs (#3109) Follow up to #3095. This PR actually extracts the images and adds the script to `./check`, `./fix`, and CI. commit fd899ad Author: abbycross <[email protected]> Date: Fri May 9 12:02:53 2025 -0400 New Platform updates for Latest Updates pg (#3102) Co-authored-by: Eric Arellano <[email protected]> commit 81fff3e Author: Frank Harkins <[email protected]> Date: Fri May 9 15:42:41 2025 +0100 Add script to extract notebook image outputs (#3095) This PR adds a script to extract image outputs from notebooks and convert them to AVIF if necessary. We're already doing this in inner-source as part of the sync but it was taking too long with the new tutorial notebooks. This PR just introduces the script, a follow-up PR will extract the images and add this to `./fix`. --------- Co-authored-by: Rebecca Dimock <[email protected]> Co-authored-by: Eric Arellano <[email protected]> commit 39201f7 Author: Frank Harkins <[email protected]> Date: Fri May 9 10:05:32 2025 +0100 Relativize documentation links in tutorials (#3101) Fixes #3097. Some of these links are quite old, so I made a request for each URL and recorded the redirect. I then replaced `https://docs.quantum.ibm.com` -> `/docs` in the redirect, then replaced the original URLs with these paths. commit e987606 Author: abbycross <[email protected]> Date: Thu May 8 14:07:20 2025 -0400 Local estimation (before submitting job) (#3092) Closes #2783. Note that this PR re-institutes the Workload usage page in the toc, which recently was marked for the Classic platform only. --------- Co-authored-by: Jessie Yu <[email protected]> commit 95bb10e Author: abbycross <[email protected]> Date: Thu May 8 13:54:11 2025 -0400 Remove duplicate step 1 in Grovers tutorial (#3104) Closes #3096 Also spotted a `quantum-computing` URL and updated it to `quantum` commit 5c6a64e Author: abbycross <[email protected]> Date: Thu May 8 13:53:52 2025 -0400 Update c-extension-for-python.mdx (#3103) Closes #3066. commit 5b1c2bc Author: Christopher Porter <[email protected]> Date: Thu May 8 13:02:17 2025 -0400 Copy QML notebooks commit 57306b6 Author: Sanket Panda <[email protected]> Date: Thu May 8 12:29:49 2025 -0400 serverless: add information about detailed statuses (#3068) Qiskit Serverless allows users to [set custom statuses](Qiskit/qiskit-serverless#1615) soon. This documentation outlines how to set these statuses and return an execution summary easily --------- Co-authored-by: ABBY CROSS <[email protected]> Co-authored-by: Kaelyn Ferris <[email protected]> commit cb0c07a Author: Jessie Yu <[email protected]> Date: Thu May 8 12:07:46 2025 -0400 Minor fixes to the timing pages (#3069) Some minor fixes to the pages on timing, including - Use the same wording to describe quantum time - Change `QPU-calculated max execution time` to `service-calculated`, since QPU is just hardware - Fix hyperlink text to match the new topic names - Add wording on minimizing run time for estimator jobs --------- Co-authored-by: abbycross <[email protected]> commit 2aeb5ad Author: Kaelyn Ferris <[email protected]> Date: Thu May 8 10:16:45 2025 -0400 Add admonition about pyscf in SQD guide (#3086) Closes #2596 --------- Co-authored-by: abbycross <[email protected]> commit f03f973 Author: Frank Harkins <[email protected]> Date: Thu May 8 12:42:18 2025 +0100 Migrate "Quantum computing in practice" course (#3078) Migrates the [Quantum computing in practice](https://learning.quantum.ibm.com/course/quantum-computing-in-practice) course from the learning platform. [Preview link](https://qiskit.github.io/documentation/pr-3078/learning/courses/quantum-computing-in-practice/) commit 14ea3d0 Author: abbycross <[email protected]> Date: Wed May 7 10:04:58 2025 -0400 method get_job_by_id() missing in Qiskit Function Intro (#2629) Closes #2627 which was opened by @johannesgreiner. Johannes, can you provide more info on the fix please? --------- Co-authored-by: Johannes Greiner <[email protected]> Co-authored-by: Eric Arellano <[email protected]> commit 7bdb091 Author: Frank Harkins <[email protected]> Date: Tue May 6 18:01:46 2025 +0100 Fix stale images check and remove unused images (#3088) These images were accidentally included during the tutorials migration. commit cf1a1fe Author: Rebecca Dimock <[email protected]> Date: Tue May 6 10:08:12 2025 -0500 Update max ttl defaults (#3089) closes #2996 commit 88781bf Author: Jim Garrison <[email protected]> Date: Mon May 5 23:20:51 2025 -0400 AQC = approximate quantum compilation (#3087) This updates it so AQC consistently is expanded as "approximate quantum compilation" This content was originally added in #2291. commit 821e9ad Author: Eric Arellano <[email protected]> Date: Mon May 5 16:27:43 2025 -0400 Document how to ignore gh-pages branch (#3080) Running `git fetch` is very slow in this repository because of the `gh-pages` branch, even though you never use that locally. https://stackoverflow.com/a/64439191 says how to ignore the branch. commit e022157 Author: Arnau Casau <[email protected]> Date: Mon May 5 21:51:21 2025 +0200 Update docker digest from start script (#3083) This PR updates the image digest from the `start` script. The new image allows the user to override the dividers from the TOC. commit 4154a11 Author: Rebecca Dimock <[email protected]> Date: Mon May 5 14:49:26 2025 -0500 Fix broken links in instances guide (#3085) closes #3049
commit 539d82097ac378a26892f7ecb4586d2df4ab12c3 Author: Eric Arellano <[email protected]> Date: Tue May 13 15:55:00 2025 -0400 Rename part 2 commit 9c2c424a8b80856b295ce5c0091c38985ce7f2ba Author: Eric Arellano <[email protected]> Date: Tue May 13 15:54:36 2025 -0400 Rename part 1 commit 765a73c Author: Christopher Porter <[email protected]> Date: Tue May 13 15:29:49 2025 -0400 Added a course introduction commit 84eff50 Author: Christopher Porter <[email protected]> Date: Tue May 13 15:14:11 2025 -0400 Removed hyphen from my own handle in qiskit_bot.yaml commit 526e092 Author: Christopher Porter <[email protected]> Date: Tue May 13 15:05:29 2025 -0400 Removed hyphen from my own handle in qiskit_bot.yaml commit ed35726 Author: Christopher Porter <[email protected]> Date: Tue May 13 15:01:14 2025 -0400 Fixed sp errors and added words to ignore to each file commit ce8e441 Author: Christopher Porter <[email protected]> Date: Tue May 13 14:54:14 2025 -0400 Fixed sp errors and added words to ignore to each file commit e2b0540 Author: Christopher Porter <[email protected]> Date: Tue May 13 14:45:48 2025 -0400 Fixed sp errors and added words to ignore to each file commit bab8bb5 Author: Christopher Porter <[email protected]> Date: Tue May 13 14:18:53 2025 -0400 Fixed sp errors and added words to ignore to QVCs QNNs commit ac04ccc Author: Christopher Porter <[email protected]> Date: Tue May 13 14:15:23 2025 -0400 Fixed sp errors and added words to ignore to QVCs QNNs commit c75b963 Author: Christopher Porter <[email protected]> Date: Tue May 13 12:52:07 2025 -0400 Added QVC and QNN to dictionary commit b23d30e Author: Christopher Porter <[email protected]> Date: Tue May 13 12:17:35 2025 -0400 Fixed description and title in kernel methods commit 50810c7 Merge: 29cdc84 6426ce4 Author: Christopher Porter <[email protected]> Date: Tue May 13 12:09:05 2025 -0400 Merge branch 'CP/QML' of https://github.com/Qiskit/documentation into CP/QML commit 29cdc84 Author: Christopher Porter <[email protected]> Date: Tue May 13 12:08:33 2025 -0400 Edited description and title of each notebook in QML commit 6426ce4 Merge: d834a24 9b4e192 Author: christopherporter1 <[email protected]> Date: Tue May 13 11:55:10 2025 -0400 Merge branch 'main' into CP/QML commit 9b4e192 Author: Kaelyn Ferris <[email protected]> Date: Tue May 13 11:39:07 2025 -0400 Update testing env to include `PendingDeprecation` warnings (#3114) Closes #2716 According to the official python docs, `PendingDeprecation` warnings are [ignored by default](https://docs.python.org/3/library/exceptions.html#PendingDeprecationWarning) unless [Python Development Mode](https://docs.python.org/3/library/devmode.html) is enabled (done either through the `-Xdev` or `-Wd` flags when invoking `python` or by setting the environment variable `PYTHONDEVMODE=1`). This PR sets the `tox` environment to run using dev mode with the `PYTHONDEVMODE` env var. commit d834a24 Author: Christopher Porter <[email protected]> Date: Tue May 13 10:41:29 2025 -0400 replaced Frank's addition of Prac QC to index, qiskit_bot, and notebook checker commit 1c9860d Author: Christopher Porter <[email protected]> Date: Tue May 13 09:18:04 2025 -0400 replaced python with python3 in start, check, fix commit 42ec9e4 Author: Emil Kovacev <[email protected]> Date: Tue May 13 06:55:25 2025 -0400 Adds additional tutorials requirements for nb-tester (#3093) Closes #3071 commit a942952 Author: abbycross <[email protected]> Date: Mon May 12 14:04:37 2025 -0400 Specify rolling plan is for Premium only (#3113) Mention on fair-share-scheduler page that the 28-day rolling window only applies to Premium, not Flex Plan. commit 476035b Author: Christopher Porter <[email protected]> Date: Mon May 12 13:09:35 2025 -0400 Added course to index commit acfd586 Author: Christopher Porter <[email protected]> Date: Mon May 12 11:47:28 2025 -0400 Update notebook-testing.toml commit 7cd57d7 Author: Rebecca Dimock <[email protected]> Date: Fri May 9 15:37:21 2025 -0500 Update session max TTL (#3110) @jyu00 noticed that when I updated the batch max TTL, I needed to also update the session max TTL. --------- Co-authored-by: Jessie Yu <[email protected]> commit ae60a0c Author: Arnau Casau <[email protected]> Date: Fri May 9 19:14:03 2025 +0200 Generate Qiskit 1.4.3 (#3111) This PR generates the docs for qiskit 1.4.3 (historical) ``` npm run gen-api -- -p qiskit -v 1.4.3 --historical ``` commit 479402a Author: Frank Harkins <[email protected]> Date: Fri May 9 17:37:42 2025 +0100 Extract notebook image outputs (#3109) Follow up to #3095. This PR actually extracts the images and adds the script to `./check`, `./fix`, and CI. commit fd899ad Author: abbycross <[email protected]> Date: Fri May 9 12:02:53 2025 -0400 New Platform updates for Latest Updates pg (#3102) Co-authored-by: Eric Arellano <[email protected]> commit 81fff3e Author: Frank Harkins <[email protected]> Date: Fri May 9 15:42:41 2025 +0100 Add script to extract notebook image outputs (#3095) This PR adds a script to extract image outputs from notebooks and convert them to AVIF if necessary. We're already doing this in inner-source as part of the sync but it was taking too long with the new tutorial notebooks. This PR just introduces the script, a follow-up PR will extract the images and add this to `./fix`. --------- Co-authored-by: Rebecca Dimock <[email protected]> Co-authored-by: Eric Arellano <[email protected]> commit 39201f7 Author: Frank Harkins <[email protected]> Date: Fri May 9 10:05:32 2025 +0100 Relativize documentation links in tutorials (#3101) Fixes #3097. Some of these links are quite old, so I made a request for each URL and recorded the redirect. I then replaced `https://docs.quantum.ibm.com` -> `/docs` in the redirect, then replaced the original URLs with these paths. commit e987606 Author: abbycross <[email protected]> Date: Thu May 8 14:07:20 2025 -0400 Local estimation (before submitting job) (#3092) Closes #2783. Note that this PR re-institutes the Workload usage page in the toc, which recently was marked for the Classic platform only. --------- Co-authored-by: Jessie Yu <[email protected]> commit 95bb10e Author: abbycross <[email protected]> Date: Thu May 8 13:54:11 2025 -0400 Remove duplicate step 1 in Grovers tutorial (#3104) Closes #3096 Also spotted a `quantum-computing` URL and updated it to `quantum` commit 5c6a64e Author: abbycross <[email protected]> Date: Thu May 8 13:53:52 2025 -0400 Update c-extension-for-python.mdx (#3103) Closes #3066. commit 5b1c2bc Author: Christopher Porter <[email protected]> Date: Thu May 8 13:02:17 2025 -0400 Copy QML notebooks commit 57306b6 Author: Sanket Panda <[email protected]> Date: Thu May 8 12:29:49 2025 -0400 serverless: add information about detailed statuses (#3068) Qiskit Serverless allows users to [set custom statuses](Qiskit/qiskit-serverless#1615) soon. This documentation outlines how to set these statuses and return an execution summary easily --------- Co-authored-by: ABBY CROSS <[email protected]> Co-authored-by: Kaelyn Ferris <[email protected]> commit cb0c07a Author: Jessie Yu <[email protected]> Date: Thu May 8 12:07:46 2025 -0400 Minor fixes to the timing pages (#3069) Some minor fixes to the pages on timing, including - Use the same wording to describe quantum time - Change `QPU-calculated max execution time` to `service-calculated`, since QPU is just hardware - Fix hyperlink text to match the new topic names - Add wording on minimizing run time for estimator jobs --------- Co-authored-by: abbycross <[email protected]> commit 2aeb5ad Author: Kaelyn Ferris <[email protected]> Date: Thu May 8 10:16:45 2025 -0400 Add admonition about pyscf in SQD guide (#3086) Closes #2596 --------- Co-authored-by: abbycross <[email protected]> commit f03f973 Author: Frank Harkins <[email protected]> Date: Thu May 8 12:42:18 2025 +0100 Migrate "Quantum computing in practice" course (#3078) Migrates the [Quantum computing in practice](https://learning.quantum.ibm.com/course/quantum-computing-in-practice) course from the learning platform. [Preview link](https://qiskit.github.io/documentation/pr-3078/learning/courses/quantum-computing-in-practice/) commit 14ea3d0 Author: abbycross <[email protected]> Date: Wed May 7 10:04:58 2025 -0400 method get_job_by_id() missing in Qiskit Function Intro (#2629) Closes #2627 which was opened by @johannesgreiner. Johannes, can you provide more info on the fix please? --------- Co-authored-by: Johannes Greiner <[email protected]> Co-authored-by: Eric Arellano <[email protected]> commit 7bdb091 Author: Frank Harkins <[email protected]> Date: Tue May 6 18:01:46 2025 +0100 Fix stale images check and remove unused images (#3088) These images were accidentally included during the tutorials migration. commit cf1a1fe Author: Rebecca Dimock <[email protected]> Date: Tue May 6 10:08:12 2025 -0500 Update max ttl defaults (#3089) closes #2996 commit 88781bf Author: Jim Garrison <[email protected]> Date: Mon May 5 23:20:51 2025 -0400 AQC = approximate quantum compilation (#3087) This updates it so AQC consistently is expanded as "approximate quantum compilation" This content was originally added in #2291. commit 821e9ad Author: Eric Arellano <[email protected]> Date: Mon May 5 16:27:43 2025 -0400 Document how to ignore gh-pages branch (#3080) Running `git fetch` is very slow in this repository because of the `gh-pages` branch, even though you never use that locally. https://stackoverflow.com/a/64439191 says how to ignore the branch. commit e022157 Author: Arnau Casau <[email protected]> Date: Mon May 5 21:51:21 2025 +0200 Update docker digest from start script (#3083) This PR updates the image digest from the `start` script. The new image allows the user to override the dividers from the TOC. commit 4154a11 Author: Rebecca Dimock <[email protected]> Date: Mon May 5 14:49:26 2025 -0500 Fix broken links in instances guide (#3085) closes #3049
Closes #2627 which was opened by @johannesgreiner. Johannes, can you provide more info on the fix please?