!pip install -U --user qiskit
!pip install -U --user qiskit_ibm_runtime
!pip install -U --user matplotlib
!pip install -U --user pylatexenc

import qiskit
import secret

qiskit.__version__

from qiskit_ibm_runtime import QiskitRuntimeService

service = QiskitRuntimeService(channel="ibm_quantum", # or ibm_cloud
                               token=secret.api_key_ibm_q)

QiskitRuntimeService.save_account(channel="ibm_quantum",
                                  token=secret.api_key_ibm_q)

backend = service.backend(name="ibm_brisbane")

backend.num_qubits