//Even if we don't bother reading the contents of
-// c[1], the very fact the state of q[0] was
+// q[1], the very fact the state of q[0] was
// recorded into something at all leads it
// to lose its ability to interfere with
// itself.
-qreg q[1];
-creg c[2];
+qreg q[2];
+creg c[1];
h q[0];
-measure q[0] -> c[1];
+cx q[0], q[1];
h q[0];
measure q[0] -> c[0];
-reset c[1];
sample;