Optimal metrology with programmable quantum sensors | Litlas