According to Sir Roger Penrose, an entangled quantum system exists within the brain, and it's sufficiently isolated from the effects of the environment outside the body on the brain to remain in a superposed state. This superposed state eventually is acted upon by the chemical environment of the brain, causing the superposed state to collapse, and the firing of a particular constellation of neurons. In other words, quantum consciousness caused the wave function to collapse.