A code for trained lattice
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnYlFjGiHFRKadAhr1WN8qM3CIcsrRcsNoNvxGgRUp4-ZZxwBBSCGsL5wPkdTNQjZpb2-MkB9-Cle9xqCZyR08vGhFNDvzD0C2IYz2oJCt1MNhHa6r5keykP56UJZmlB_mnJipE5XkruA/s640/arrivals_slit_trained.jpg)
In our quest for a local-realistic model for Quantum Mechanics, we have discussed in the last post how the lattice - that mediates locally the interactions between single instances of a same ensemble of particles - is progressively " trained " as subsequent particles are emitted. With the lattice already trained, the Matlab code discussed in this post can be strongly simplified as shown below. %%% Simulate an ensemble of Np particles emitted at intervals Nti %%% from either of Ns distinct sources xs(1,...,Ns) having %%% probability Ps(1,...,Ns). Evaluate the frequency of arrivals at %%% a 'screen' after Nt iterations. %%% %%% Parameters: Np,Ns,Nt,Nti,xs,Ps. %%% %%% Evaluate the number of possible bosons for this scenario. B = Ns*(Ns-1)/2; %%% Evaluate a priori the probability of each Quantum Reset iB = 0; for i = 1:Ns-1 for j = i+1:Ns iB = iB+1; Pb(iB) = 2*Ps(i)*Ps(j); ...