from qiskit import QuantumCircuit,QuantumRegister,transpile
import qiskit.test.mock as fake_backends
from qiskit.test.mock import FakeProvider

provider = FakeProvider()
backends =provider.backends()

backends

backend=provider.get_backend(name ='fake_vigo')

backend

from qiskit.test.mock import FakeVigo
device_backend = FakeVigo()

device_backend

device_backend.name()

config_details = device_backend.configuration()

config_details.backend_name

config_details.n_qubits

config_details.basis_gates

for i in range(len(backends)):
    
    backend_details = backends[i]
    config_details = backend_details.configuration()
    
    if config_details.n_qubits <=5:
        print(backends[i],":",config_details.basis_gates)

from qiskit.test.mock import FakeLondon
device_backend = FakeLondon()

config_details = device_backend.configuration()

config_details.backend_name

config_details.n_qubits

config_details.basis_gates