qreg q[2];
creg c[1];
+//Alice sends two bits 00
h q[0];
h q[1];
-density q[0];
\ No newline at end of file
+//Eve tries to measure the first
+measure q[0] -> c[0];
+
+//Bob applies the gate before measuring
+h q[0];
+h q[1];
+
+//The first should now be random noise
+// while the second unmeasured one
+// should be 0
+born;
+
+//In a full BB84 Alice would randomly
+// apply the gate or not apply the
+// gate so Eve would have to guess
+// and would inevitably end up
+// turning the transferred bits
+// into random noise whenever there
+// is a wrong guess.
\ No newline at end of file