Finding the least busy backend
When you run your quantum program on an IBM Quantum® backend, you will quickly realize that you might not be the only one attempting to use that same backend at the same time. Depending on the time and day of the week, and the type and purpose of the quantum programs being run, not all IBM Quantum® machines are used to the same degree.
If you are not concerned with which machine you should run the code on, you can use the least_busy
method to automatically find the best backend to run your programs on. The least busy status of a backend generally means that you have the least wait time, but this is not necessarily true. Some programs run longer than others, and queues (just like in the supermarket) might move at different speeds.
Let's take a look at the following steps:
- Start by importing the required
IBMQ
andleast_busy
methods and load our account. - Use the
least_busy
method to automatically select the generally available...