Function to measure Q from a Modular object