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

Add run_options option and support for processing level 1 data to BackendSamplerV2 #13357

Merged
merged 8 commits into from
Nov 5, 2024

Commits on Oct 22, 2024

  1. 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.
    wshanks committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    58bbf65 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. Configuration menu
    Copy the full SHA
    8210b1e View commit details
    Browse the repository at this point in the history
  2. 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.
    wshanks committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    4a596d9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b4bbf3 View commit details
    Browse the repository at this point in the history
  4. 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.
    wshanks committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    64ece9e View commit details
    Browse the repository at this point in the history
  5. Add release notes

    wshanks committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    8e69005 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    371ed52 View commit details
    Browse the repository at this point in the history
  7. black

    wshanks committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    a7d4046 View commit details
    Browse the repository at this point in the history