from qiskit import*

# Loading your IBM Quantum account(s)
provider = IBMQ.load_account()


qc=QuantumCircuit(1,1)

from qiskit.tools.visualization import plot_bloch_multivector 

qc.x(0)

sim=Aer.get_backend('statevector_simulator')

result=execute(qc,backend=sim).result()

sv=result.get_statevector()

print(sv)


qc.draw()

plot_bloch_multivector(sv)

qc.measure(range(1),range(1))



backend=Aer.get_backend('qasm_simulator')
result=execute(qc,backend=backend).result()
count=result.get_counts()
from qiskit.tools.visualization import plot_histogram


plot_histogram(count)

s=Aer.get_backend('unitary_simulator')
result=execute(qc,backend=s).result()
unitary=result.get_unitary()
print(unitary)

