from QiskitEducation import *

qc = QuantumAlgorithm(3,3)

qc.h(qc.q[0])

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

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

print(qc.execute()['counts'])





