A Byte of PhysicsLogo

Photons and quantization

Photons model electromagnetic energy exchange in discrete packets. The energy of each packet depends on frequency, so a dim high-frequency beam and a bright low-frequency beam are different inputs: intensity can change the packet rate, while frequency changes energy per packet.

Think like a programmer

Use a packet record, not one ambiguous “light amount” number: frequency in hertz, energy per photon in joules, expected arrival rate, exposure duration, detector efficiency, and a seeded sampler for a repeatable teaching run. Separate the calculation of one packet's energy from the stochastic model of whether a detector records it.

Model checklist

Inputs
Frequency f in Hz, Planck's constant h in J·s, packet count or arrival rate, exposure duration, and detector efficiency.
State
Energy assigned to one photon and accumulated detected-event count.
Rule
Multiply h by f; model detection separately as a probability or efficiency branch.
Output
Energy per packet, total incident energy for a stated packet count, and recorded events.
Check
Zero frequency gives zero energy in this relation; doubling frequency doubles energy per photon.

The photon-energy relation is

\[E=hf=\frac{hc}{\lambda}\]

E is energy in joules, f is frequency in hertz, h = 6.62607015 × 10⁻³⁴ J·s, c is vacuum light speed, and λ is vacuum wavelength. At f = 8 × 10¹⁴ Hz, one photon carries about 5.30 × 10⁻¹⁹ J. Doubling frequency doubles this value; that direct proportionality makes a good regression test.

const PLANCK_CONSTANT = 6.626_070_15e-34; // J·s

function photonEnergy(frequency: number) {
  if (frequency < 0 || !Number.isFinite(frequency)) throw new RangeError("finite non-negative frequency required");
  return PLANCK_CONSTANT * frequency;
}

For N identical photons in this deliberately simple model, total incident energy is N * photonEnergy(frequency). Do not silently turn a fractional expected detector count into a fractional photon. An expectation is a mean over repeated runs; an individual event is recorded or not recorded.

Try this experiment

Prediction: A beam can be dimmer by having fewer photons per second without changing energy per photon, as long as frequency stays fixed.

Evaluate the function at 4 × 10¹⁴ Hz and 8 × 10¹⁴ Hz. Predict their ratio before calculating it. Then keep the higher frequency and compare 10 versus 100 photons: identify which number changes energy per photon and which changes total energy.

Where this model breaks

This is an ideal vacuum relation. It does not model a source spectrum, bandwidth, polarization, coherence, material dispersion, detector threshold, dark counts, absorption, multiphoton effects, or the quantum state of the field. Frequency in a material and energy exchange need careful context; do not reuse this small function as a full optical-device simulation.

Summary

Quantization makes the packet contract explicit: frequency maps to energy per photon, while count and detector behavior are separate state and sampling problems. Unit tests for zero and proportionality catch mistakes before a stochastic event display hides them.

Glossary

Self-check

  1. Which input changes energy per photon: frequency or packet count?
  2. What ratio should result when frequency doubles?
  3. Why should detection sampling be separate from the photon-energy function?

Sources

Model contract

Treat the lesson as a small function before treating it as a fact to memorize. Give every value a unit, keep only the state needed for the next step, and make the output easy to inspect.

\[\text{observable output} = f(\text{inputs},\,\text{state})\]
Inputs
Quantities you set or measure, with units and useful bounds.
State
Values the program must retain to reproduce the next result.
Rule
The relationship or update that turns inputs and state into a result.
Check
A known limit, unit check, invariant, or measured result that can expose a bad model.

Implement the idea as a model

For Photons and Quantization, write down the quantities you can control, the values your program must retain, and the result a reader could inspect. In Quantum Beginnings, the useful program is not the drawing: it is the smallest explicit model that makes a prediction you can test.

Guided experiment

Prediction: changing one declared input while holding the others fixed should change only the outputs that the model connects to that input. Choose one input, predict the direction of change, then check a limiting case such as zero, a symmetric arrangement, or a familiar low-speed or small-change approximation.

Where this model breaks

This lesson is a teaching model, not a complete simulator. Before using it outside the stated question, check which interactions, scales, uncertainties, boundary conditions, and measurement limits it leaves out.

Summary

Treat Photons and Quantization as a contract: named inputs and units enter a rule, the rule produces an observable result, and a known limit or invariant checks whether the implementation deserves trust.

Glossary

  • Input: a measured value or chosen parameter supplied to a model.
  • State: the smallest set of values needed to continue or reproduce a model.
  • Validation: comparing an output with a known result, limit, invariant, or measurement.

Self-check

  1. Which values are inputs, and which values must remain state?
  2. What observable result would tell you the model is behaving as expected?
  3. Which assumption would you test first before applying the model to a real system?

Model review: turn Photons and Quantization into a test

Represent quantized light exchange with explicit packet state, detector rules, and reproducible sampling.

  1. Name the inputs and units that the quantum beginnings model needs.
  2. Separate the state you must keep from values you can calculate when needed.
  3. Write one rule that maps the current state and inputs to an observable result.
  4. Choose a limiting case, unit check, invariant, or known result before trusting an output.
  5. State one assumption you would change before using this simplified model for a real decision.

Share to: