A code for 2D particle motion
The local-realistic model for quantum mechanics that we are presenting in this blog is based on a set of rules for particles' motion and interactions in a discrete spatiotemporal lattice. In a previous post , we have introduced the 3D lattice and how the model rules (earlier described in a 1D space) are generalized to it. It is time to present a Matlab code that implements the multi-dimensional model as a program. We start from the fully trained expected-motion program , where both the lattice and the particles are " trained " and in addition we simulate the expected values of momentum and position, not their actual values (this in order to limit the computing times; for a "realistic" simulation see this code instead). For the sake of clarity we limit the number of dimensions to two; adding the third is straightforward. The main addition to the code concern the inclusion of polarization (below noted as px, py), as we have seen in the corresponding post. %...