qiskit-ibm-runtime icon indicating copy to clipboard operation
qiskit-ibm-runtime copied to clipboard

Add local channel

Open jyu00 opened this issue 10 months ago • 0 comments

What is the expected feature or enhancement?

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

from qiskit_ibm_runtime import QiskitRuntimeService, Sampler

service = QiskitRuntimeService(channel="local")  # <--- this will return an instance of `QiskitRuntimeLocalService`

jyu00 avatar Apr 11 '24 21:04 jyu00