from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit, Aer, execute

from qiskit.quantum_info import Statevector # the state vector of the required qubits is generated
from qiskit.visualization import plot_bloch_multivector, plot_histogram, plot_state_qsphere # plot the qubits in a qsphere


import numpy as np
from numpy import pi
import math
from math import sqrt

import matplotlib as mpl
%matplotlib inline

import qiskit
qiskit.__version__
qiskit.__qiskit_version__

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

qc.s(1)
qc.s(1)

qc.t(2)
qc.t(2)
qc.t(2)
qc.t(2)

qc.draw()

simulator = Aer.get_backend('statevector_simulator')
sv = Statevector.from_label('0')
plot_state_qsphere(sv.data)
plot_bloch_multivector(sv)
#job = execute(qc, simulator)
#result = job.result()
#outputstate = result.get_statevector(qc)
#plot_bloch_multivector(outputstate)

