]> foleosoft.com Git - QAnsel.git/commitdiff
Mon Feb 12 02:37:00 PM EST 2024
authormiha-q <>
Mon, 12 Feb 2024 19:37:00 +0000 (14:37 -0500)
committermiha-q <>
Mon, 12 Feb 2024 19:37:00 +0000 (14:37 -0500)
examples/bombtester.txt

index e7e8ffc223dbbc2aaa2fec8269137d38efd9d64f..d40ffc5fb15a9751b336d32746702a4441acb376 100644 (file)
@@ -1,12 +1,21 @@
 qreg q[2];
 creg c[4];
 
+//The paths through the circuit are designated
+//  as upper or lower and there are three parts
+//  of the circuit, the before, midway, and
+//  after section. The photon enters on the
+//     before-upper path and the bomb is placed on
+//  the midway-upper path, and then final
+//     measurements are made on the after-upper
+//     and after-lower path.
+
 //Get random bomb
 h q[0];
 measure q[0] -> c[3];
 reset q[0];
 
-//10: photon entering on the upper path
+//10: photon entering on the before-upper path
 x q[1];
 
 //beam splitter
@@ -31,16 +40,20 @@ measure q[0] -> c[0];
 measure q[1] -> c[1];
 
 //ABCD
-//A = the chosen bomb is a dud or live
-//B = the bomb measures the photon (on the upper path)
-//C = the photon took the upper path
-//D = the photon took the lower path
+//A = the chosen bomb is a dud or live (placed on the midway-upper path)
+//B = the bomb measures the photon (on the midway-upper path)
+//C = the photon took the after-upper path
+//D = the photon took the after-lower path
 //
 //In the case of the bomb being a dud, only CD=10 can occur.
 //In the case of the bomb being live, CD=01 or CD=10 can occur.
 //  Notice: CD=01 can only occur if the bomb is live.
-//Recall that the bomb is measured on the upper path.
+//Recall that the bomb is measured on the midway-upper path.
 //  This means there is a 12.5% chance that the randomly
 //  chosen bomb is live, the bomb measures nothing, and the
 //  outcome is something unique to a bomb being live (1001).
+//     The photon could not have taken the midway-upper path
+//             where the bomb is or else it would have been measured,
+//             yet the observer can know for certainty the bomb is
+//             live without interacting with it (allegedly).
 sample;