from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister

qc = QuantumCircuit(1)

qc.x(0)
qc.draw(output='mpl')

qc1 = QuantumCircuit(1)
qc1.y(0)
qc1.draw(output='mpl')

qc2 = QuantumCircuit(1)
qc2.z(0)
qc2.draw(output='mpl')

qc3 = QuantumCircuit(1)
qc3.h(0)
qc3.draw(output='mpl')

from cmath import pi

# Para aplicar este operador, precisamos especificar o ângulo para o qubit
# Aqui vamos considerar a = 2*pi

qc4 = QuantumCircuit(1)
qc4.ry(2*pi,0)
qc4.draw(output='mpl')

qc5 = QuantumCircuit(2)
qc5.cx(0,1)
qc5.draw(output='mpl')
