from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister, execute, Aer
from math import pi
from qiskit.visualization import plot_bloch_multivector, plot_state_qsphere
%matplotlib inline


qcx = QuantumCircuit(1)
qcx.draw('mpl')


backend = Aer.get_backend('statevector_simulator') # Tell Qiskit how to simulate our circuit
job = execute(qcx,backend).result() # Do the simulation, returning the state vector
plot_bloch_multivector(job.get_statevector()) # Display the output state vector

plot_state_qsphere(job.get_statevector(qcx))

# Let's do an X-gate on a |0> qubit
qcx.x(0)
qcx.draw('mpl')

job = execute(qcx,backend).result() # Do the simulation, returning the state vector
plot_bloch_multivector(job.get_statevector()) # Display the output state vector

plot_state_qsphere(job.get_statevector(qcx))

from IPython.display import YouTubeVideo
print("Install Qiskit")
YouTubeVideo("M4EkW4VwhcI")


print("Hello World!")
YouTubeVideo("RrUTwq5jKM4")


