from qiskit import QuantumCircuit,QuantumRegister,transpile
from qiskit.test.mock import FakeVigo,FakeLondon

qc=QuantumCircuit(1)
qc.h(0)
qc.barrier(0)
qc.x(0)
qc.barrier(0)
qc.h(0)

qc.draw(output="mpl")

device_backend = FakeVigo()

config_details = device_backend.configuration()

config_details.backend_name

config_details.n_qubits

config_details.basis_gates

qc_transpile=transpile(qc,device_backend)
qc_transpile.draw(output="mpl")

qc=QuantumCircuit(1)
qc.h(0)
qc.x(0)
qc.h(0)

qc.draw(output="mpl")

qc_transpile=transpile(qc,device_backend)
qc_transpile.draw(output="mpl")

device_backend = FakeLondon()

config_details = device_backend.configuration()

config_details.backend_name

config_details.n_qubits

config_details.basis_gates

qc=QuantumCircuit(1)
qc.h(0)
qc.x(0)
qc.h(0)

qc.draw(output="mpl")

qc_transpile=transpile(qc,device_backend)
qc_transpile.draw(output="mpl")

qc=QuantumCircuit(1)
qc.h(0)
qc.barrier(0)
qc.x(0)
qc.barrier(0)
qc.h(0)

qc.draw(output="mpl")

qc_transpile=transpile(qc,device_backend)
qc_transpile.draw(output="mpl")