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

Allow users to set a logging level when running a program #99

Merged
merged 4 commits into from
Jan 13, 2022

Conversation

jyu00
Copy link
Collaborator

@jyu00 jyu00 commented Jan 12, 2022

Summary

Allow users to set a logging level when running a program.
@daka1510 Sorry for taking another one from you, but I need this to get some performance numbers.

Details and comments

Fixes #11

This PR adds a new RuntimeOptions class for the execution options, including backend_name, image, and now log_level. Since we already have options as a parameter to run(), it made more sense to me to have both image and log_level in it instead of creating more parameters, especially since they're both related to the execution environment.

Copy link
Member

@rathishcholarajan rathishcholarajan left a comment

Choose a reason for hiding this comment

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

LGTM! Left a minor doc suggestion...

qiskit_ibm_runtime/runtime_options.py Outdated Show resolved Hide resolved
@rathishcholarajan rathishcholarajan merged commit 32607d6 into Qiskit:main Jan 13, 2022
@jyu00 jyu00 deleted the logging-level branch February 2, 2022 15:48
@rathishcholarajan rathishcholarajan added the Changelog: API Change Include in the Changed section of the changelog label Feb 24, 2022
blakejohnson pushed a commit to blakejohnson/qiskit-ibm-runtime that referenced this pull request May 26, 2023
* catch none optimizer

* skip optimizer in print

* skip qaoa test for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: API Change Include in the Changed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify logging level when running a program
2 participants