Skip to content
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

Fix code examples in "Manage Qiskit Serverless compute and data resources" #2015

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

frankharkins
Copy link
Member

@frankharkins frankharkins commented Sep 23, 2024

This makes the code examples runnable. Unfortunately we can't add tests just yet (will happen in #1960), but this does mean users will be able to run all the code on the page.

I've removed the section on automatic QPU selection after discussion with the serverless team. This feature is being developed but isn't ready just yet. We'll add the section back in when it's ready.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@qiskit-bot
Copy link
Contributor

One or more of the following people are relevant to this code:

@frankharkins
Copy link
Member Author

PR did deploy, check out the page here: https://docs.quantum.ibm.com/guides/serverless-manage-resources

Copy link
Collaborator

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

"@distribute_task(target={\n",
" \"cpu\": 16,\n",
" \"mem\": 32 * 1024 * 1024 * 1024\n",
" \"mem\": 2 * 1024 * 1024 * 1024\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prose says:

To allocate 2 GB of memory for your worker, you need to allocate "mem": 2 * 1024 * 1024 * 1024

As a reader, I was mildly surprised when the code example allocated 32GB rather than 2.

@frankharkins frankharkins added this pull request to the merge queue Sep 24, 2024
Merged via the queue into main with commit f215475 Sep 24, 2024
3 of 4 checks passed
@frankharkins frankharkins deleted the FH/serverless-code-examples branch September 24, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants