First programmable quantum sensor