-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add run_options option and support for processing level 1 data to BackendSamplerV2 #13357
Merged
Commits on Oct 22, 2024
-
Add meas_level, meas_return, and noise_model options to BackendSamapl…
…erV2 This change adds support to the `BackendSamplerV2` class so that it will pass through the `meas_level`, `meas_return`, and `noise_model` options passed to it through to the underlying `BackendV2`'s `run()` method. For the sake of compatibility with backends that might not expect those options, it does not pass default values for them (like the previously defined options for the class) if the default `None` value is not overridden. Additionally, to support `meas_level=1`, the results processing code checks the `meas_level` option and handles `meas_level=1` data appropriately, rather than always assuming the returned data is level 2.
Configuration menu - View commit details
-
Copy full SHA for 58bbf65 - Browse repository at this point
Copy the full SHA 58bbf65View commit details
Commits on Oct 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8210b1e - Browse repository at this point
Copy the full SHA 8210b1eView commit details -
Switch from individual new options to a run_options option
run_options is a dict passed on to backend.run as it is for SamplerV2 in qiskit-aer.
Configuration menu - View commit details
-
Copy full SHA for 4a596d9 - Browse repository at this point
Copy the full SHA 4a596d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b4bbf3 - Browse repository at this point
Copy the full SHA 7b4bbf3View commit details -
Do not clear circuit metadata for BackendSamplerV2
All of the backend primitives use the same helper function for calling `backend.run` and this function has been clearing metadata because the estimator primitives can add large objects to the metadata that payload large for running the circuits on a remote service. In some cases, it is helpful to have the circuit metadata make it to the `backend.run` call. Since the concern about large metadata entries should not affect the sampler case, an option is added here to skip clearing the metadata and `BackendSamplerV2` is updated to use this option.
Configuration menu - View commit details
-
Copy full SHA for 64ece9e - Browse repository at this point
Copy the full SHA 64ece9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e69005 - Browse repository at this point
Copy the full SHA 8e69005View commit details -
Configuration menu - View commit details
-
Copy full SHA for 371ed52 - Browse repository at this point
Copy the full SHA 371ed52View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7d4046 - Browse repository at this point
Copy the full SHA a7d4046View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.