You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QiskitRuntimeLocalService was created to support local testing mode and is meant to be similar to QiskitRuntimeService. Today a user is not expected to instantiate this class directly, since it only has a run() method that is called under the cover by the primitives. As we add more methods to it (see #1606 and #1607), users will want to instantiate it. Instead of having to import / create another class, we should just add a "local" channel.
Acceptance criteria
User can do
fromqiskit_ibm_runtimeimportQiskitRuntimeService, Samplerservice=QiskitRuntimeService(channel="local") # <--- this will return an instance of `QiskitRuntimeLocalService`
The text was updated successfully, but these errors were encountered:
I was having second thoughts about whether to use QiskitRuntimeService(channel="local"), since we want to allow one to refresh the fake backend's data (see #1707), which requires a real service. So people may think they can do
But that won't work since service here is local service, not a real QRT service. On the other hand, even if we make people to initialize service = QiskitRuntimeLocalService(), they may still think it's a "service" they can pass to refresh().
We should just check if the service passed to refresh is a non-local QiskitRuntimeService
What is the expected feature or enhancement?
QiskitRuntimeLocalService
was created to support local testing mode and is meant to be similar toQiskitRuntimeService
. Today a user is not expected to instantiate this class directly, since it only has arun()
method that is called under the cover by the primitives. As we add more methods to it (see #1606 and #1607), users will want to instantiate it. Instead of having to import / create another class, we should just add a "local" channel.Acceptance criteria
User can do
The text was updated successfully, but these errors were encountered: