Klein–Gordon Wave Packets
A Klein–Gordon packet requires both an initial field and its initial time derivative. This experiment evolves both data exactly within a finite Fourier basis, compares three preparations, and measures how the periodic box and momentum cutoff affect the answer. The plotted field intensity is a shape diagnostic; the conserved Klein–Gordon pairing is a separate, signed quantity. The derivation of the modes belongs to Plane-Wave Solutions.
Required background. Plane-Wave Solutions supplies the two-data evolution; Klein–Gordon Inner Product fixes the pairing. Helpful background. Klein–Gordon to Schrödinger provides the low-momentum comparison and its error bounds.
Run the investigation. The program and retained results below support the stated experiment. Follow Running an Experiment for environment and output-directory guidance. The recorded evidence applies to its stated parameters and environment.
Two Cauchy data on a periodic Fourier grid
Section titled “Two Cauchy data on a periodic Fourier grid”Use one spatial dimension, , mass , and a periodic interval with even and spacing . Let and . For each retained Fourier wave number , set . The implemented evolution is
No numerical time integrator is used. Changing the output times samples the same exact finite-mode solution. The independent frequency reconstruction uses
Both branches retain the same spatial Fourier phase. Positive frequency means , not .
NumPy’s unitary FFT is used in both directions. Its coefficients are finite box coefficients, with Parseval identity
They are not continuum momentum amplitudes with an unstated factor of or .
The adopted massive pairing gives
The code compares with . Neither nor is asserted to be a general positive local probability density. The latter’s centroid and width describe the field shape. A real nonzero solution can have .
Run and inspect the three preparations
Section titled “Run and inspect the three preparations”Download klein-gordon-wave-packets.py. The standalone calculation uses only NumPy and Python’s standard library and performs no network access. It is import-safe for use in a personal notebook. The retained execution used Python 3.12.14 and NumPy 2.3.5.
In a Python 3.12 virtual environment:
python -m pip install "numpy==2.3.5"python klein-gordon-wave-packets.py --output-dir kg-runUse a new output directory. The default
report has "passed": true and 64
scientific checks. Existing output files
are refused. --help describes parameters
and optional destination overrides.
The default field profile is a Gaussian with center , field-intensity standard deviation , and carrier momentum . It uses , , , and five output times from through . Three preparations share the grid:
| Preparation | Initial derivative and interpretation |
|---|---|
positive_frequency | The nonlocal spectral derivative , with |
independent_cauchy_data | A separately specified shifted complex Gaussian derivative; both branches are present |
real_zero_derivative | A real Gaussian and ; equal positive/negative weights and zero signed charge |
The initial Gaussian is normalized in the flat field norm, not rescaled to unit KG charge. Accordingly the default positive-frequency charge is about , not one. This difference is an intentional normalization check.
Packet motion and reproducible outputs
Section titled “Packet motion and reproducible outputs”Default positive-frequency field intensity at and . The centroid moves from to , and the shape standard deviation grows from to . These are moments of , not moments of a proposed KG position probability. The displayed window lies well inside the periodic box.
The full retained outputs are:
| Download | Contents |
|---|---|
| Summary and checks | Versions, parameters, program/CSV hashes, tolerances, and all checks |
| Profiles | Real/imaginary field and time derivative, intensity, signed charge density, and current |
| Diagnostics | Frequency weights, charge, energy, field-shape moments, edge and cutoff fractions |
| Refinement studies | Independent box, cutoff, and derivative-residual experiments |
| Nonrelativistic comparison | Rest-phase-removed errors and weighted momentum bounds |
Published report paths are normalized to the download locations; numerical results and CSV bytes are unchanged. The fixed verification fixtures in the report are distinct from user-selected profile parameters. Passing those fixtures does not certify an arbitrary new packet or box.
To reproduce the figure, place its
TikZ/PGFPlots source
beside the retained profiles.csv and run:
latex notebook-klein-gordon-packet.texdvisvgm --no-fonts notebook-klein-gordon-packet.dviThe source also resolves the data from
the repository root. Its row selections
are explicitly tied to the default
-point, five-time output.
Changing --points or --time-samples
requires updating those selections;
do not plot a different preparation
under the old caption.
Separate box, cutoff, and diagnostic derivative errors
Section titled “Separate box, cutoff, and diagnostic derivative errors”At fixed , increasing changes the largest retained wave number. The cutoff study compares both Cauchy data on common spatial samples against a finer reference in the same box. At fixed , increasing instead moves the periodic images away without increasing the cutoff. That study compares the same physical window .
Representative retained results are:
| Study | Result |
|---|---|
| Fixed box, | Relative Cauchy-data error |
| Fixed box, | Error |
| Fixed box, | Agreement with the finer reference at about |
| Fixed spacing, | Common-window error and about intensity in the outer edge zones |
| Fixed spacing, | Common-window agreement with the reference at about |
Small finite-reference differences are numerical evidence for these fixtures, not a universal continuum convergence proof. Inspect the edge fractions of the field, time derivative, and energy, as well as the sector-weight and energy fractions near the Fourier cutoff. A narrow high-momentum packet can defeat a grid that resolves a broad slow packet.
The independent time-difference check approximates derivatives of the exact solution. Its KG residual decreases from at diagnostic to at , consistent with a second-order difference formula. This is not an integration-step convergence result.
Check the nonrelativistic approximation with its tail
Section titled “Check the nonrelativistic approximation with its tail”A separate low-momentum fixture uses , mean momentum , and momentum standard deviation . After removing the rest phase, the exact frequency is
The rationalized expression avoids a small difference of large energies. Compare it with and . For normalized spectral weights, the relative field-norm errors obey the moment bounds
The derivation belongs to Klein–Gordon to Schrödinger. The numerical weights include the retained Gaussian tail; no false hard momentum cutoff is assigned to the Gaussian.
At , the Schrödinger relative error is , below the quartic-moment bound . The fourth-order error is , below the sixth-moment bound . The report also retains a tighter bound formed from the exact phase-energy difference. These results concern this separate low-momentum fixture, not the -momentum packet in the figure.
Modification exercises
Section titled “Modification exercises”A field at rest in time is not positive frequency. Replace the positive-frequency preparation by while keeping nonzero . What must the sector diagnostic report?
Solution
. Their positive and negative weights are equal, so , although the field and its positive energy functional need not vanish. If is real, the evolved solution remains real.
A misleading refinement. Increase while keeping fixed. Why is this not a clean box-size test?
Solution
increases, so the Nyquist wave number decreases. The periodic images move outward while the momentum resolution at high wave number worsens. A box test should keep fixed, and a separate cutoff test should keep fixed.
Change the mass without changing the claim.
Run a smaller positive --mass at the same
profile momentum. Which comparison needs
renewed justification?
Solution
The ratio of characteristic momentum to mass grows, weakening a nonrelativistic approximation. Inspect the new profile’s edge/cutoff diagnostics and, for a new NR comparison, recompute its own spectral weights and error bounds. The fixed low-momentum verification fixture does not change automatically with the profile. Setting is rejected because this notebook’s pairing divides by .
References
Section titled “References”- Bjorken, James D., and Sidney D. Drell. Relativistic Quantum Mechanics. McGraw–Hill (1964). Scalar modes and relativistic currents.
- Greiner, Walter. Relativistic Quantum Mechanics: Wave Equations. 3rd ed., Springer (2000). doi:10.1007/978-3-662-04275-5. Frequency branches and scalar wave mechanics.