Qiskit/qiskit-ibmq-provider

Add IBMQBackend.experiments() function to list experiments like jobs

mriedem opened this issue · 2 comments

What is the expected enhancement?

During a recent user experience feedback session about qiskit-experiments a user was mentioning that they weren't sure how they'd use qiskit to list their experiments like they do for jobs. For jobs they noted that they use the IBMQBackend.jobs() interface and maybe apply some filters (this user used a lot of tags) and a limit.

The user thought it would be useful to have a similar interface on IBMQBackend for listing experiments.

It seems we should be able to use this existing experiment service interface and pass through the backend name:

https://github.com/Qiskit/qiskit-ibmq-provider/blob/0.16.0/qiskit/providers/ibmq/experiment/ibm_experiment_service.py#L312

jyu00 commented

One can list experiments by doing provider.experiment.experiments(filter=...). It's the same as jobs - provider.backend.jobs().

IBMQBackend.jobs() (or backend.jobs()) is actually being deprecated as it's a duplicate of IBMQBackendService.jobs(). I would prefer not duplicate the same experiments() method to IBMQBackend.

jyu00 commented

I'm going to close this issue for now, since the suggested pattern is actually being deprecated in favor of the new interface. Please feel free to re-open / add more comments as you see fit.