Scheme for the protective measurement of a single photon using a tunable quantum Zeno effect