I have 1-qubit of quantum register and 2-bit of classical register.
I have this simple algorithm:
- First, I'm doing simple process for
q[0]
with NOT. - Second, I want copy current value of
q[0]
to thec[0]
through measurement. - Third, I put reset in
q[0]
that forcing the state to the 0 with|0>
. - Fourth, I want copy current value of
c[0]
to theq[0]
, how do I do it?. - Fifth, I'm doing simple process for
q[0]
with Hadamard. - Six, I want copy current value of
q[0]
to thec[1]
through measurement.
How do I achieve my goal at fourth step?