What are virtual particles?
One of the first steps in the development of quantum mechanics was Max Planck’s idea that a harmonic oscillator (classically, anything that wiggles like a mass bobbing on the end of an ideal spring) cannot have just any energy. Its possible energies come in a discrete set of equally spaced levels. An electromagnetic field wiggles in the same way when it possesses waves. Applying quantum mechanics to this oscillator reveals that it must also have discrete, evenly spaced energy levels. These energy levels are what we usually identify as different numbers of photons. The higher the energy level of a vibrational mode, the more photons there are. In this way, an electromagnetic wave acts as if it were made of particles. The electromagnetic field is a quantum field. Electromagnetic fields can do things other than vibration. For instance, the electric field produces an attractive or repulsive force between charged objects, which varies as the inverse square of distance. The force can change t