The quantum description of optical phase