from qiskit import *
%matplotlib inline

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

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

print(qc1)

print(qc2)

qc3 = qc1 + qc2

qc3.draw(output = 'mpl')

qc1[0]

qc3.z(0)
qc3.draw(output = 'mpl')

