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



#IBMQ.save_account('TOKEN ID needs to be provided')

#Load the  account
IBMQ.load_account() 

# Providers available
IBMQ.providers()    

ibmq_account = IBMQ.load_account()

backends = ibmq_account.backends()

backends

backend = ibmq_account.get_backend('ibmq_qasm_simulator')

backend

backend.name()

backend=ibmq_account.backend.ibmq_qasm_simulator

backend

backend.name()

ibmq_provider = IBMQ.get_provider(hub='ibm-q')

ibmq_provider.backends()

ibmq_provider.backends(filters=lambda b: b.configuration().n_qubits > 5)

ibmq_provider.backends(n_qubits=5, operational=True)

ibmq_provider.backends(simulator=False, operational=True)

ibmq_provider.backends(simulator=True)

least_busy(ibmq_provider.backends())

backend=least_busy(ibmq_provider.backends())


backend.name()

backend.provider()

backend.configuration()

backend.status()

backend.properties()

backend=ibmq_account.backend.ibmq_qasm_simulator

backend.name()

backend.provider()

backend.configuration()

backend.status()

backend.properties()

backend=ibmq_account.backend.ibmq_bogota

backend.jobs()

backend.jobs()[0]

