Collapse of wave function