Charles Link said:
Maybe a single photon can't be treated as a state with a sinusoidal electric field. If you do go this route and try to sum photons in the same mode, it becomes apparent that the phases can't all be the same, because the energy density must follow the classical result that it is proportional to the second power of the electric field amplitude. Perhaps this is something that there isn't a definitive answer to, but in any case I find it of interest. If there is such a thing as a phase for a single photon, a phasor diagram with random phases (for multiple photons) would result in a random walk for the resultant electric field amplitude, with a result that on the average the resultant amplitude would be proportional to the square root of ## N ##, just as it needs to be for energy conservation.
See also
https://core.ac.uk/download/25351228.pdf for a discussion of the phase operator. I find it interesting reading, but it doesn't appear that they are able to yet give a conclusive answer.
For cavity photons the "sinusoidal electric fields" are indeed true states (in contradistinction to the case in free space, where of course the monochromatic plane wave is no true state, and you have to integrate over some square-integrable test function (wave packet); that's not much different from classical optics).
Only now I understand, what's discussed here: The question whether there is a observable representing the phase. As written in the nice paper you linked that's the question, whether there is a canonically conjugate operator to the number operator ##\hat{N}##.
The problem is, as with angles as observables in quantum mechanics, that you can define Hermitean but not self-adjoint angle operators. For the angle it's very easy to give an intuitive insight to the problem. Let's consider a particle in a plane and work in polar coordinates. Now consider the angular-momentum operator, ##\hat{L}=\hat{x}_1 \hat{p}_2 - \hat{x}_2 \hat{p}_1##, which has the representation in polar coordinates of the position representation,
$$\hat{L} \psi(R,\varphi) = -\mathrm{i} \partial_{\varphi} \psi(R,\varphi).$$
The eigenfunctions with eigenvalues ##m## obviously are
$$u_m(\varphi)=\exp(\mathrm{i} m \varphi)/\sqrt{2 \pi}$$
with ##m \in \mathbb{Z}##. That there are only integer eigenvalues follows from using the ladder operators of the symmetric harmonic oscillator in 2D,
$$\hat{a}_j = \sqrt{\frac{m \omega}{2}} \hat{x}_j + \frac{\mathrm{i}}{\sqrt{2 m \omega}} \hat{p}_j, \quad j \in \{1,2 \},$$
fulfilling the commutator relations
$$[\hat{a}_j,\hat{a}_k]=0, \quad [\hat{a}_j,\hat{a}_{k}^{\dagger}]=1.$$
Then also
$$\hat{b}=\frac{1}{\sqrt{2}}(\hat{a}_1+\mathrm{i} \hat{a}_2)$$
is an annihilation operator,
$$[\hat{b},\hat{b}^{\dagger}]=0.$$
The corresponding "number operators"
$$\hat{N}_j=\hat{a}_j^{\dagger} \hat{a}_j, \quad \hat{N}_b=\hat{b}^{\dagger} \hat{b}$$
are self-adjoint and have eigenvalues ##n_1,n_2,n_b \in \mathbb{N}_0=\{0,1,2,\ldots \}##. Now
$$\hat{L}=\hat{N}_1+\hat{N}_2-2\hat{N}_b,$$
which thus has only integer eigenvalues. Note that
$$[\hat{N}_1+\hat{N}_2,\hat{N}_b]=0.$$
This also implies that the wave functions must be square integrable over ##R \in \mathbb{R}_+## and ##\varphi \in (0,2 \pi)## and being ##2 \pi##-periodic in ##\varphi##, because all wave functions can be written in terms of eigenfunction of ##\hat{L}##,
$$\psi(R,\varphi)=\sum_{m=-\infty}^{\infty} \psi_m(R) u_m(\varphi).$$
Since the ##m## are integer that's a ##2\pi##-periodic function in ##\varphi##.
The angle operator then should be ##\hat{\phi}=\varphi##. That's a hermitian operator and canonically conjugated to ##\hat{L}##,
$$\frac{1}{\mathrm{i}} [\hat{\phi},\hat{L}]=1.$$
The problem, however, is that it is obviously is not self-adjoint, because for all ##m \in \mathbb{Z}##
$$\hat{\phi} u_{m}(\varphi)=\varphi \exp(\mathrm{i} m \varphi)/\sqrt{2 \pi},$$
which is not ##2 \pi##-periodic. So there is no angle observable in quantum mechanics, at least not in this direct sense.
Here the way out is that one can use ##\cos \hat{\phi}## and ##\sin \hat{\phi}##, which are self-adjoint and commute. Their common generalized eigenfunctions are obviously ##u_{\varphi_0}(\varphi)=\delta(\varphi-\varphi_0)##, where the eigenvalues are in ##[0,2 \pi)##. In this sense we can define the angle as an observable by measuring simultaneously ##\cos \hat{\phi}## and ##\sin \hat{\phi}##.
For the phase operator for the 1D harmonic oscillator the math starts similarly, but here the would-be phase observable were the canonical conjugate of the number operator. Again you can try to define operators ##\hat{C}## and ##\hat{S}## akin to ##\cos \hat{\phi}## and ##\sin \hat{\phi}##, but here ##\hat{N}## has not ##\mathbb{Z}## but only ##\mathbb{N}_0## as its spectrum, and this makes ##\hat{C}## and ##\hat{S}## non-commuting. For the detailed analysis, see Ref. [19] in the above quoted paper:
https://doi.org/10.1103/RevModPhys.40.411