from qiskit import *
from qiskit.visualization import plot_bloch_multivector
from qiskit.visualization import visualize_transition
import numpy as np
%matplotlib inline
qc=QuantumCircuit(2,1)
qc.x(1)
qc.h(0)
qc.h(1)
qc.barrier()
qc.draw(output='mpl')
plot_bloch_multivector(qc)
qc.cx(0,1)
qc.barrier()
qc.draw(output='mpl')
plot_bloch_multivector(qc)
qc.cx(0,1)
qc.barrier()
qc.draw(output='mpl')
plot_bloch_multivector(qc)