import numpy as np
from qiskit import *

q = QuantumRegister(1)

# Create a Quantum Circuit acting on a quantum register of n qubits
qc = QuantumCircuit(q)

qc.draw(filename="0.png")

qc.h(0)
qc.draw()

qc.z(0)
qc.draw()

qc.h(0)
qc.draw()

qc.measure(0,0)
qc.draw()

from qiskit.visualization import plot_bloch_vector

plot_bloch_vector([0,0,1], title='Intial state')


plot_bloch_vector([1,0,0], title='H gate')


plot_bloch_vector([-1,0,0], title='Z gate')

plot_bloch_vector([0,0,-1], title='H gate')



