Measurement-based Feedback Control of a Quantum System in a Harmonic Potential