from qiskit import QuantumCircuit
import numpy as np

qc = QuantumCircuit(3)
qc.ccx(0,1,2)
qc.draw(output="mpl")

qc.decompose().draw(output="mpl")

qc = QuantumCircuit(2)
qc.y(0)
qc.z(1)
qc.h(0)
qc.swap(0,1)
qc.draw(output="mpl")

qc.decompose().draw(output="mpl")

qc.decompose().decompose().draw(output="mpl")

qc = QuantumCircuit(1)
qc.initialize([1/np.sqrt(2), -1/np.sqrt(2)], 0)
qc.draw(output="mpl")

qc.decompose().draw(output="mpl")

qc.decompose().decompose().draw(output="mpl")

qc.decompose().decompose().decompose().draw(output="mpl")

qc.decompose().decompose().decompose().decompose().draw(output="mpl")

