Quantum physics of simple optical instruments