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

Session best practices #1041

Closed
Tracked by #1073
jyu00 opened this issue Mar 15, 2024 · 1 comment · Fixed by #783
Closed
Tracked by #1073

Session best practices #1041

jyu00 opened this issue Mar 15, 2024 · 1 comment · Fixed by #783
Assignees
Labels
content request request for new content to be added in-progress

Comments

@jyu00
Copy link
Collaborator

jyu00 commented Mar 15, 2024

URL, if applicable

No response

Describe the new content you are requesting.

With the upcoming changes to execution modes, we should provide some best practices, especially for Session, so the modes can be used efficiently.

Key points:

  • Always close your session!
  • There is a fixed overhead associating with running each job. In general, if your each of your jobs consumes less than a minute of QPU time, consider combining them into a larger job (this applies to all execution modes). QPU time here refers to time spent by the QPU complex to process your job. You can find this information here.
  • If your job already consumes more than 1 minute of QPU time, or if combining jobs is not practical, you can still run multiple jobs in parallel. Every job goes through both classical and quantum processing. While a QPU can process only 1 job at a time, classical processing can be parallelize. You can take advantage of this parallelism by submitting multiple jobs in Batch or Session execution modes. The degree of parallelism is set by the server and is currently 5, meaning up to 5 jobs can run in parallel.
    • Example/link showing parallel jobs for both Batch and Session
  • What we described above is the general guideline, and we encourage you to tune your workload to find the optimal ratio, especially when using Session. For example, you may find running smaller jobs in parallel becomes more cost effective because of reduced wall clock time.

If this new content request is accepted, do you want to write the content?

I can help the team by providing enough information to write the material

@beckykd
Copy link
Collaborator

beckykd commented Mar 21, 2024

Closed in #783

@javabster javabster linked a pull request Mar 22, 2024 that will close this issue
1 task
github-merge-queue bot pushed a commit that referenced this issue Apr 29, 2024
Closes #595  
Closes #1041 
Closes #582 
Closes #780
Closes #582
Closes #1156 
Closes #577 
Closes #576 

- [x] Add text about job splitting, such as "If you split your workload
into multiple jobs and run them in Batch mode, you can get results from
individual jobs. You can, for example, decide to cancel the rest of the
jobs if the earlier job results don't meet your expectations. If one of
the jobs fail, you can also re-submit just that one instead of
re-running the entire workload."

There are several new and existing topics that are impacted:

- This documentation section has several topics about execution modes:
https://qiskit-docs-preview-pr-783.1799mxdls7qz.us-south.codeengine.appdomain.cloud/run/execution-modes
- This migration guide is new:
https://qiskit-docs-preview-pr-783.1799mxdls7qz.us-south.codeengine.appdomain.cloud/api/migration-guides/sessions

---------

Co-authored-by: Ashley Silva <asarver1@gmail.com>
Co-authored-by: Jessie Yu <jessieyu@us.ibm.com>
Co-authored-by: abbycross <across@us.ibm.com>
frankharkins pushed a commit to frankharkins/documentation that referenced this issue Jul 22, 2024
Closes Qiskit#595  
Closes Qiskit#1041 
Closes Qiskit#582 
Closes Qiskit#780
Closes Qiskit#582
Closes Qiskit#1156 
Closes Qiskit#577 
Closes Qiskit#576 

- [x] Add text about job splitting, such as "If you split your workload
into multiple jobs and run them in Batch mode, you can get results from
individual jobs. You can, for example, decide to cancel the rest of the
jobs if the earlier job results don't meet your expectations. If one of
the jobs fail, you can also re-submit just that one instead of
re-running the entire workload."

There are several new and existing topics that are impacted:

- This documentation section has several topics about execution modes:
https://qiskit-docs-preview-pr-783.1799mxdls7qz.us-south.codeengine.appdomain.cloud/run/execution-modes
- This migration guide is new:
https://qiskit-docs-preview-pr-783.1799mxdls7qz.us-south.codeengine.appdomain.cloud/api/migration-guides/sessions

---------

Co-authored-by: Ashley Silva <asarver1@gmail.com>
Co-authored-by: Jessie Yu <jessieyu@us.ibm.com>
Co-authored-by: abbycross <across@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content request request for new content to be added in-progress
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants