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

Update max_execution_time docstrings #1059

Merged
merged 7 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions qiskit_ibm_runtime/options/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ class Options:
<https://qiskit.org/documentation/partners/qiskit_ibm_runtime>`_.
for more information about the error mitigation methods used at each level.

max_execution_time: Maximum execution time in seconds. If
a job exceeds this time limit, it is forcibly cancelled. If ``None``, the
maximum execution time of the primitive is used.
This value must be in between 300 seconds and the
`system imposed maximum
max_execution_time: Maximum execution time in seconds, which is based
on quantum time instead of wall clock time. Quantum time represents the time that
kt474 marked this conversation as resolved.
Show resolved Hide resolved
the QPU complex (including control software, control electronics, QPU, and so on)
is engaged in processing the job. If a job exceeds this time limit, it is forcibly cancelled.
Simulator jobs continue to use wall clock time because they do not have quantum time.

Refer to the
`Max execution time documentation
<https://qiskit.org/documentation/partners/qiskit_ibm_runtime/faqs/max_execution_time.html>`_.
kt474 marked this conversation as resolved.
Show resolved Hide resolved
for more information.

transpilation: Transpilation options. See :class:`TranspilationOptions` for all
available options.
Expand Down
8 changes: 6 additions & 2 deletions qiskit_ibm_runtime/runtime_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ def __init__(
access to the target backend is randomly selected.
job_tags: Tags to be assigned to the job. The tags can subsequently be used
as a filter in the :meth:`jobs()` function call.
max_execution_time: Maximum execution time in seconds. If
a job exceeds this time limit, it is forcibly cancelled.
max_execution_time: Maximum execution time in seconds, which is based
on quantum time instead of wall clock time. Quantum time represents the time that
kt474 marked this conversation as resolved.
Show resolved Hide resolved
the QPU complex (including control software, control electronics, QPU, and so on)
is engaged in processing the job. If a job exceeds this time limit, it is forcibly
cancelled. Simulator jobs continue to use wall clock time because they do not have
quantum time.
session_time: Length of session in seconds.
"""
self.backend = backend
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
fixes:
- |
The `max_execution_time` option is now based on quantum time instead of wall clock time.
Quantum time represents the time that the QPU complex
kt474 marked this conversation as resolved.
Show resolved Hide resolved
(including control software, control electronics, QPU, and so on)
is engaged in processing the job. If a job exceeds this time limit, it is forcibly cancelled.
Simulator jobs continue to use wall clock time because they do not have quantum time.
Loading