Qiskit/qiskit-ibm-runtime

Remaining time of an instance

francabrera opened this issue · 0 comments

What is the expected feature or enhancement?

Pay-go instances in the Cloud channel and Premium instances in the IBM Quantum channel, have or may have an usage limit. Currently, there is no way to query the remaining available time on my instance through Qiskit so I can decide if submit or not a new workload based on that.

For Cloud instances, there is an API in /instances/configuration to retrieve the max limit and /instances/usage to retrieve the current usage on an instance.

For premium IQP instances, there is an API in https://api-qcon.quantum.ibm.com/api/Network that retrieves capacity in seconds with the total capacity of the project and https://api.quantum.ibm.com/runtime/analytics/usage that retrieves the usage in seconds.

Acceptance criteria

A user can query the remaining time on their instance to decide if run or not the next workload.