Jump to content

Schrödinger's cat


Recommended Posts

Hello all! I had a thought today about the example for quantum physics and was wondering (how accurately) if It could be represented through script.

Here is a quote from Wikipedia explaining the test: 

"Schrödinger's cat: a cat, a flask of poison, and a radioactive source are placed in a sealed box. If an internal monitor (e.g. Geiger counter) detects radioactivity (i.e. a single atom decaying), the flask is shattered, releasing the poison, which kills the cat. The Copenhagen interpretation of quantum mechanics implies that after a while, the cat is simultaneously alive and dead. Yet, when one looks in the box, one sees the cat either alive or dead not both alive and dead. This poses the question of when exactly quantum superposition ends and reality collapses into one possibility or the other. "

was just wondering about different ways it could be visually interpreted in a way others may better understand. Thanks for any input it is much appreciated.

Link to comment
Share on other sites

  • Moderators

I'm sure you're looking for some advanced-thought Rube Goldberg script, but if you're explaining it to others (especially those without an understanding of the concept or of scripting), go simple. Until the internal monitor (hit Spacebar) is signaled, $iNum is both 0 and 1. Can't get more binary than that ;)

 

#include <Misc.au3>
Local $hDLL = DllOpen("user32.dll")
Local $iNum = Random(0, 1, 1)

    While 1
        If _IsPressed(20) Then
            $iNum = 1
            ExitLoop
        EndIf

        Sleep(100)
    WEnd

    ConsoleWrite($iNum & @CRLF)

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...