Ancilla-assisted calibration of a measuring apparatus