Certified quantum non-demolition measurement of material systems