from QiskitEducation import *

qc = QuantumAlgorithm(3,3)
q = qc.q; c = qc.c

qc.h(q[0])
qc.h(q[1])
qc.cx(q[1], q[2])
qc.cx(q[0], q[1])
qc.h(q[0])
qc.measure(q[0], c[0])
qc.measure(q[1], c[1])
qc.cx(q[1], q[2])
qc.cz(q[0], q[2])
qc.h(q[2])
qc.measure(q[2], c[2])

data = qc.execute(histogram=True)
print(data['counts'])
qc.plot_histogram(data['counts'])

