from qiskit.visualization import *
from qiskit import QuantumCircuit,transpile
from qiskit import IBMQ

provider=IBMQ.load_account()
provider

provider.backends()

backend=provider.get_backend("ibmq_lima")
backend

plot_gate_map(backend)

plot_error_map(backend)

qc=QuantumCircuit(3)
qc.h(0)
qc.cx(0,1)
qc.z(1)
qc.draw(output="mpl")

qc_transpile=transpile(qc,backend)

qc_transpile.draw(output="mpl")

plot_circuit_layout(qc_transpile,backend)