The behavior of particles in quantum mechanics is described by wave functions, which can exhibit wave-like properties such as interference and superposition. When a measurement is made on a particle, the wave function collapses to a specific value corresponding to the observed outcome. This collapse is a fundamental feature of quantum mechanics.
The concept of God knowing everything is a philosophical and theological question that goes beyond the scope of scientific understanding. In the context of quantum mechanics, it is important to note that the collapse of the wave function is a probabilistic process. Even if God were to possess complete knowledge of the initial conditions and laws governing the universe, the probabilistic nature of quantum mechanics means that the specific outcomes of measurements cannot be predetermined with certainty.
Quantum mechanics provides a mathematical framework that accurately describes the behavior of particles at the microscopic level, but it does not address questions of determinism or predestination. The wave-particle duality and the probabilistic nature of quantum mechanics are inherent aspects of the theory, and they do not necessarily imply that God's knowledge would preclude the existence of wave-like behavior or collapse of wave functions. These are philosophical and theological questions that lie beyond the scope of scientific inquiry.