I'm testing out a program in different IBMQ mock backends, and I want the program to use the maximum number of qubits in each case. Is there any function/method to extract the number of qubits of a given backend, so that I don't have to manually look it up every time?
Extra: Is there any way to automate the process of selecting each of these mock backends? My plan is to create an array
fake_servers = [FakeAlmaden(), FakeAthens(), FakeBelem(), FakeBoeblingen()]
etc, but if there's a more straightforward way, I'd like to know about it...