Suppose I have two hydrogen atoms, each with one electron in their 1s orbital. Then we can represent the wave functions of these two as say $|\Psi\rangle_1$ and $|\Psi\rangle_2$ for each of the two atoms respectively. Since we have two identical atoms, $|\Psi\rangle_2$ is just $|\Psi\rangle_1$ translated to a different point in space with some phase difference, so $|\Psi\rangle_2 = e^{i\theta}|\Psi\rangle_1'$ where the $'$ denotes that we've shifted the wavefunction in space.
We know that if the two atoms have wave functions in phase with each other ($\theta = 0$) then when they come together the orbitals will combine with each other and a $\sigma$-bond will be formed. Equally if the wave functions are completely out of phase with each other then the anti-bonding orbital of the combined system would have 2 electrons while the bonding orbital would have 0 and since the anti-bonding orbital has higher energy this transformation is not energetically favourable so no reaction occurs.
I'm curious about what happens when the phase is not equal to either $0$ or $\pi$, which is a case that happens with probability $1$. Clearly the atoms do end up reacting in real life so the phases must get synchronized somehow before the reaction takes place. I'd like to ask how exactly this happens.