Or make those "hiddens" in the code above globals. Problem solved.
Or make those "hiddens" in the code above globals. Problem solved.
You can't understand anything about quantum mechanics without knowing that in order to measure a qubit (or anything, really) you need an observable, which is completely missing from that JS code (for a qubit, the observable for a simple projective measurement could be represented by a direction in space).
Exactly the opposite, nonlocality is by far the most exotic resolution here. It means losing existence and uniqueness of solutions to differential equations - i.e., causation.
I think a multiverse, or anything "spooky at a distance" or the other stuff is exotic. Non-locality does take away our ability to do experiments in isolation I suppose, which is kind of a big problem, but it is limited to certain kinds of experiments and not (seemingly) relevant at larger scales.