Skip to content

Conversation

kt474
Copy link
Member

@kt474 kt474 commented Aug 22, 2025

Summary

When no instance is specified:

QiskitRuntimeService()

Warning:
Instance was not set at service instantiation. Free and trial plan instances will be prioritized. Based on the following filters, (tags: None, region: us-east, eu-de) and available plans: (premium, internal), the available account instances are: services-internal-eu, services-premium-eu, services-internal-us, services-premium-us. If you need a specific instance set it explicitly either by using a saved account with a saved default instance or passing it in directly to QiskitRuntimeService().

Filtering by region and plans_preference:

QiskitRuntimeService(region="us-east", plans_preference=["internal"])

Warning:
Instance was not set at service instantiation. Based on the following filters, (tags: None, region: us-east, plans_preference: internal), the available account instances are: services-internal-us. If you need a specific instance set it explicitly either by using a saved account with a saved default instance or passing it in directly to QiskitRuntimeService()

if plans_preference is given, it will be added to list of filters in the warning message. If plans_preference is not given, the available plans will be listed instead.

Retrieving backends:

service.backends()
// or 
service.backend('...')

Warning:
Loading instance: services-internal-eu, plan: internal

Using saved account vs. new account

If using saved account:

Loading default saved account or Loading saved account: quantum-internal

If token is passed in:

Loading account with the given token. A saved account will not be used.

Details and comments

Fixes #2374
Fixes #2346

@kt474 kt474 marked this pull request as ready for review August 26, 2025 17:18
@kt474 kt474 requested a review from ElePT August 26, 2025 18:05
@kt474 kt474 added the Changelog: New Feature Include in the Added section of the changelog label Aug 28, 2025
@kt474
Copy link
Member Author

kt474 commented Aug 28, 2025

@ElePT Now that the warning message wording is more or less finalized, I think this is ready for a review

Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

Account intialization by token looks good. Let's have an offline discussion regarding instance selection filters before moving forward with the other changes.

@kt474
Copy link
Member Author

kt474 commented Sep 10, 2025

Updated the PR description so all warning messages are up to date. The behavior has changed that so when no instance is given and plans_preference is not set, the available instances will be prioritized by instance pricing type: free, trial, paygo, paid, subscription.

Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

Thanks a lot!! I think that this PR is in a really good state, I just have a couple of minor grammatical suggestions. I played around with different account saving/loading strategies and things seem to work as expected, and the warnings are very informative.

kt474 and others added 3 commits September 11, 2025 12:02
@kt474 kt474 requested a review from ElePT September 11, 2025 16:16
Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

LGTM

@ElePT ElePT added this pull request to the merge queue Sep 12, 2025
Merged via the queue into Qiskit:main with commit 1706d94 Sep 12, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: New Feature Include in the Added section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection of instance enhancements Allow for providing a token without specifying a channel after IQP classic removal
2 participants