The quantum optical Josephson interferometer