A simple matter of 3
Light is extremely weird. Either analog or digital, depending on its state, photons, the force carrier of the electromagnetic, is an analog wave when traveling in free space but when absorbed by an electron, it becomes digital or a packet of energy i.e. quantum as it must transform in such a way for it to be properly absorbed by, in this case, an electron. When a electron's energy level drops, the photon emitted reverts back to being an analog wave, which means ... reality is digital with analog override, endlessly switching from one to the other as needs warrant. According to Louis de Broglie, this notion of matter/wave/digital/analog duality applies to all particles, which means reality is in constant flux, forever switching from one state to the other, forever driven by the two laws of thermodynamics whereby energy can neither be created or destroyed, only transformed and ... in a natural thermodynamic process, the sum of the entropies of the interacting thermodynamic systems never decreases. A common corollary of the statement is that heat does not spontaneously pass from a colder body to a warmer body. What's even stranger is whenever a particle is "measured", it becomes, in effect, digital just as a photon becomes digital whenever its absorbed by any given particle. This analog/digital duality also applies to the other force particles as well.
Seen below are photons, comprised of analog waves, striking a metal plate. When absorbed by the metal plate's electrons, the photons transform into quanta or packets of energy (digital), able to be absorbed by the metal plates's electrons, thus causing said electrons to be dislodged from the plate. The higher the frequency of light, aka photons, the higher altitude the electrons attain when dislodged from the plate.
Note: Photons are bosons, the force carrier, in this instance, of electromagnetism,
Bosons form one of the two fundamental classes of subatomic particle, the other being fermions. All subatomic particles must be one or the other. A composite particle (hadron) may fall into either class depending on its composition. Bosons are the force carriers of electromagnetism, the weak force, the strong force and possibly gravity. The Higgs is a boson dealing with the issue of mass.
The Matter Wave
Propagation of de Broglie waves in one dimension – real part of the complex amplitude is blue, imaginary part is green. The probability (shown as the color opacity) of finding the particle at a given point x is spread out like a waveform; there is no definite position of the particle. As the amplitude increases above zero the slope decreases, so the amplitude diminishes again, and vice versa. The result is an alternating amplitude: a wave. Top: plane wave. Bottom: wave packet.