%matplotlib inline
%config InlineBackend.figure_format = 'svg'
from IPython.display import clear_output

from qiskit import QuantumCircuit

std_cirq=QuantumCircuit(2)
std_cirq.h(0)  # Hadamard gate on q0
std_cirq.x(1)  # X gate on q1
std_cirq.cx(0,1)  # CNOT on q1 controlled on q0
std_cirq.draw('mpl')

from qiskit import Aer, execute
from qiskit.quantum_info import Statevector
from qiskit.visualization import plot_histogram

backend = Aer.get_backend('statevector_simulator')
#state = execute(std_cirq,backend).result().get_statevector()
results = execute(std_cirq,backend).result().get_counts()
plot_histogram(results, color='darkturquoise')

from numpy import pi

cirq = QuantumCircuit(2)
cirq.ry(pi/2, 0) 
cirq.rx(pi, 0)
cirq.rx(pi, 1)
cirq.cx(0,1)

cirq.draw('mpl')

results = execute(cirq,backend).result().get_counts()
plot_histogram(results, color='deepskyblue')

from qiskit.visualization import plot_state_qsphere

sv = Statevector.from_label('00').evolve(cirq)
plot_state_qsphere(sv.data, show_state_phases=True)

import qiskit
qiskit.__qiskit_version__