Theory Of Quantum Oscillations In Cuprate Superconductors