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

Remove 0.24.0 deprecations #1907

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kt474
Copy link
Member

@kt474 kt474 commented Sep 5, 2024

Summary

Removes/updates everything that was deprecated in the 0.24.0 release. BackendV1 related things will be taken care of in a separate PR

Changes:

  • The arguments backend and session for Sampler and Estimator have been removed and replaced with "mode"
  • Primitive Session property has been replaced with mode
  • Specifying options without the full dictionary structure is no longer supported
  • Job.program_id() has been replaced with Job.primitive_id()
  • Service.run() and Session.run() have been replaced with a private method, _run()
  • In Service.backend(), "name" is now a required parameter
  • Service.get_backend() removed, replaced with backend()

Details and comments

Fixes #1911

@kt474 kt474 added the Changelog: Removal Include in the Removed section of the changelog label Sep 5, 2024
"{'environment': {'log_level': 'INFO'}} instead of {'log_level': 'INFO'}.",
4,
)
self._options = self._options_class(**merge_options_v2(default_options, options))
Copy link
Collaborator

Choose a reason for hiding this comment

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

We shouldn't keep the try/except?

Comment on lines +154 to +155
merged = merge_options_v2(self, kwargs)
_set_attr(merged)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Removal Include in the Removed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation has to be updated
2 participants