"I Built a Quantum Physics Simulator in JavaScript — And It Broke My Brain"
I Built a Quantum Physics Simulator in JavaScript — And It Broke My Brain I'm going to tell you something strange. An electron can pass through two holes at the same time. Not metaphorically. Not "...

Source: DEV Community
I Built a Quantum Physics Simulator in JavaScript — And It Broke My Brain I'm going to tell you something strange. An electron can pass through two holes at the same time. Not metaphorically. Not "as if it does." Physically, literally, through both holes simultaneously. And I wrote a simulation to prove it. You've heard of this experiment. You probably got it wrong. The double-slit experiment is usually described like this: "Electrons behave like waves." Okay. But what does that actually mean? It means: fire an electron. Let it pass through two slits. Look at the screen. Expected: two bands. Reality: dozens of thin stripes. An interference pattern. Fine. Wave behavior. Got it. But here's the part that actually matters. Fire electrons one at a time. One electron. Wait. Another. Wait. After hundreds of electrons — look at the screen. The interference pattern is still there. A single electron interfered with itself. Then turn on the detector — just to see which slit it went through. The i