from qiskit import QuantumCircuit
from qiskit.visualization import visualize_transition

qc = QuantumCircuit(1)
qc.z(0)

qc.draw('mpl')

visualize_transition(qc)

qc1 = QuantumCircuit(1)
qc1.x(0)

qc1.z(0)

qc1.draw('mpl')

visualize_transition(qc1)