3 ms·
Yeah; A real "Hello world" quantum program is randomly printing 0 or 1 without any pseudo-random generator. At the most fundamental level, the quantum-bit can b
by d0m 6y ago
Yeah; A real "Hello world" quantum program is randomly printing 0 or 1 without any pseudo-random generator. At the most fundamental level, the quantum-bit can be in many states, but when measured will "jump" to either 0 or 1.
In that website's playground (https://quantumjavascript.app/playground.html https://quantumjavascript.app/playground.html), just write:
H
And you'll get 50% 0 and 50% 1.
Now, /why/ does it jump when measured? We don't know, but physicists have many cool theories.
One of which is that it doesn't really jump, but just that there are many universes created and one shows a 0 and another one shows a 1 (Called the Many-worlds interpretation). As weird as it sounds, it seems like the most promising explanation. There are other theories but they all need to add hacks to make the maths work.
- autonoshitbox 6y agoThis comment is being taken way too seriously.