By using Python:
If we have a certain number of photons, let's say 100 photons, which propagate for a distance 10 cm between transmitter and receiver in 3 dimensions(xyz) straight down the z axis where the initial position is (0,0,1).While propagating, some random photons are randomly deflected by random scattering angles (theta, phi). Theta has random value between 0 and Pi, and phi has this value (2PiS) where is uniform random value between 0 and 1.
Then, if we have an array ( let’s call it C_array) which represents random new x y z position.
What is the best method to ask this C_array if it is have any photon in it ( in the position which it represents)? (We ask this C_array that is there any photon in you or not? If yes, how many photons do you have out of 100? If no, print (NO)).
Could you plz write this code?
Thank you
...........