]> foleosoft.com Git - QAnsel.git/commitdiff
Tue Feb 13 06:55:48 PM EST 2024
authormiha-q <>
Tue, 13 Feb 2024 23:55:48 +0000 (18:55 -0500)
committermiha-q <>
Tue, 13 Feb 2024 23:55:48 +0000 (18:55 -0500)
examples/decoherence.txt

index 97e74a5770dcef9e96802d164dd078d05e9a4d33..c4ac0edd8a507d3f2713337cd20e7c9041c91a8e 100644 (file)
@@ -1,13 +1,12 @@
 //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;