I know qiskit offers the job_monitor function. However it only allows monitoring a BaseJob, for instance the one outputted from the execute function.

How can I monitor a job entirely embedded into a qiskit class and hidden behind a QuantumInstance ?

For instance, let's assume I want to run this tutorial on IBM Cloud. Therefore, I want to replace, inside the QuantumInstance, the backend parameter with this

from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy

provider = IBMQ.get_provider('ibm-q')

devices = provider.backends(filters=lambda p: p.configuration().n_qubits >= 2 and not p.configuration().simulator)

backend = least_busy(devices)

how can I then monitor the job and basically benchmark it ?



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.