Double-Well Instanton Numerical Check
An instanton prediction is not adequately tested by finding a straight line on a logarithmic plot. This notebook compares the lowest even–odd splitting of a fixed quartic double well with two semiclassical formulas, resolves the doublet in parity sectors, varies the basis dimension and scale, and repeats two representative calculations with an independent finite-difference method.
Across , the numerical gap falls from to . The finite-energy WKB ratio to the numerical gap improves from to , while the one-loop instanton ratio improves from to . Those ratios test more than the shared exponential: they also expose how finite-energy endpoint effects and loop corrections are allocated between exponent and prefactor.
At the smallest retained coupling, changing the basis dimension and oscillator scale changes the gap by about relative. That is a numerical floor, not evidence for six more asymptotic digits. The calculation stops there deliberately.
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.
Canonical Boundaries
Section titled “Canonical Boundaries”This page owns the numerical experiment and its retained artifacts. It does not replace the analytic pages.
| Object | Canonical home | Role here |
|---|---|---|
| parity doublets and localized states | Double-Well Potential | physical first encounter |
| smooth-well tunneling model | Double-Well Tunneling | model interpretation |
| Herring, WKB, instanton, and spectral dictionary | Tunneling Splittings | general method |
| Euclidean saddle and action | Instantons in Quantum Mechanics | instanton derivation |
| convention-complete quartic calculation | Double-Well Splitting | hand-worked benchmark |
| reusable code, sweeps, convergence, and independent discretization | this page | computational evidence |
The formulas below are repeated only to define the program’s inputs and outputs. Follow the canonical pages for their derivations.
Physical Problem
Section titled “Physical Problem”The dimensionless Hamiltonian is
The minima lie at , the barrier height is , and the harmonic frequency in either well is . The effective Planck constant is , so the semiclassical regime is .
Let and be the lowest even and odd eigenvalues. The observable is the closed-system spectral gap
It is neither a transmission probability nor a decay width. The corresponding left–right coupling is .
Analytic Benchmarks
Section titled “Analytic Benchmarks”Finite-energy WKB
Section titled “Finite-energy WKB”Using the leading local ground energy , the inner turning point is
The one-way forbidden action is
The program evaluates with 512-point Gauss–Legendre quadrature and repeats it at order 256. The largest action change in the retained sweep is .
One-loop instanton
Section titled “One-loop instanton”The zero-energy Euclidean trajectory is , and its action is
For this Hamiltonian convention, the one-loop splitting is
The reminder is part of the prediction. A ratio that differs from one by several percent at finite is compatible with the stated approximation.
Exponent and prefactor diagnostics
Section titled “Exponent and prefactor diagnostics”To inspect the exponent without pretending the prefactor is constant, define
If
then
The complementary prefactor diagnostic is
The one-loop limit is . In the retained data, rises from at to at .
Production Spectrum
Section titled “Production Spectrum”Oscillator representation
Section titled “Oscillator representation”Use harmonic-oscillator states with adjustable frequency . In that basis,
and the projected Hamiltonian is assembled as
The code constructs four guard states beyond the retained dimension before projecting . This prevents the top edge of a prematurely truncated position matrix from corrupting exact polynomial matrix elements.
Resolve parity before diagonalization
Section titled “Resolve parity before diagonalization”Because , oscillator states of even and odd index do not mix. The program diagonalizes
separately. This prevents a generic eigensolver from returning arbitrary rotations of a nearly degenerate pair and provides an exact structural check: the computed cross-parity block vanishes.
Parity resolution does not eliminate subtraction error. The gap still comes from two numbers of order whose difference can be many orders of magnitude smaller.
Production controls
Section titled “Production controls”The retained sweep uses
Each gap is compared with and with at . The next state above the doublet is also retained so that the isolation ratio
can be checked directly.
Parameter Sweep
Section titled “Parameter Sweep”Selected rows are shown below; the downloadable table contains all ten couplings.
| WKB / numerical | instanton / numerical | |||
|---|---|---|---|---|
Top: parity-resolved gaps and the two semiclassical estimates over nearly eight orders of magnitude. Bottom: ratios to the numerical gap expose prefactor-level disagreement that a logarithmic gap plot largely hides. The finite-energy WKB curve crosses the numerical result between and ; this crossing is not evidence that its omitted corrections vanish.
Both approximations capture the exponential suppression. Their finite- behavior differs because the WKB formula retains the local energy inside , while the displayed instanton formula expands around the zero-energy action and organizes finite- effects as loop corrections.
Agreement of either ratio with one at a single coupling can therefore be accidental. The meaningful evidence is the controlled trend together with a numerical error estimate well below the approximation error.
Independent Finite-Difference Check
Section titled “Independent Finite-Difference Check”The second representation uses a centered grid on with Dirichlet endpoints. For spacing , the tridiagonal matrix has
The two lowest eigenvalues are located by Sturm-sequence bisection; no dense grid matrix is formed. This implementation shares the Hamiltonian convention with the basis calculation but not its representation or eigensolver.
The centered second difference has error. Consecutive grids therefore support the Richardson estimate
The retained half-width is . At the finest grid, the extrapolated relative differences from the oscillator-basis result are at and at .
Basis and Grid Convergence
Section titled “Basis and Grid Convergence”At , the reference in the convergence table is the median of nine high-resolution calculations using and :
The largest deviation among those nine values is in absolute energy, or relative to the gap.
| at | computed gap | relative difference from the median |
|---|---|---|
The negative gap is not a physical parity inversion. The two truncated parity sectors have different variational errors, each much larger than the true splitting. Once the basis resolves both sectors, the gap reaches a plateau. Beyond that plateau, adding states does not produce monotone improvement because roundoff in the two eigenvalues is already comparable with the last reported digits of their difference.
Top: at , several oscillator scales converge to a relative plateau of a few parts in ; poor bases can even give the wrong parity ordering. Bottom: the independent centered finite difference displays second-order convergence, while Richardson extrapolation removes the leading error. Nonmonotonic extrapolated points at the finest grids mark the onset of subtraction and bisection roundoff.
Validation Ledger
Section titled “Validation Ledger”| Check | Retained value | What it tests |
|---|---|---|
| benchmark difference | relative | convention and matrix assembly |
| maximum Hermiticity defect | projected Hamiltonian construction | |
| maximum cross-parity matrix element | symmetry block construction | |
| maximum eigenpair residual | dense parity eigensolver | |
| maximum WKB quadrature change | in action | forbidden-region integral |
| high- basis plateau | relative | basis and scale sensitivity |
| high- basis plateau | relative | roundoff-limited endpoint |
| finite difference at | relative | independent representation |
| finite difference at | relative | independent small-gap extraction |
| production gaps | positive and monotonically suppressed | parity order and parameter trend |
Residuals and Hermiticity show that the represented matrices are solved accurately. They do not establish basis convergence. The and sweep supplies that evidence. The finite-difference calculation then tests the same observable without the oscillator basis.
Error Budget at g = 0.08
Section titled “Error Budget at g = 0.08”At ,
| Source | Retained scale | Interpretation |
|---|---|---|
| WKB discrepancy | relative | finite-order physical approximation |
| one-loop instanton discrepancy | relative | omitted loop corrections |
| basis and scale variation | relative | production spectral uncertainty proxy |
| finite-difference extrapolation | relative | independent numerical check |
| WKB quadrature refinement | in | integration error before division by |
The numerical discrepancies are several orders of magnitude below the approximation errors. The benchmark can therefore distinguish semiclassical physics from discretization error at this coupling.
At , the physical comparison is still useful, but the relative basis spread has grown to . Extending the sweep much further in ordinary double precision would require a different extraction strategy or higher precision.
Reproduce the Calculation
Section titled “Reproduce the Calculation”Run the downloaded program from the folder where you saved it:
python double-well-instanton-check.py --output-dir resultsNumPy is the only required package. The optional —plot flag uses Matplotlib for quick-look PNGs; the documentation figures are generated from the linked pgfplots sources and retained CSVs.
| Artifact | Contents |
|---|---|
| Python program | basis and finite-difference solvers, sweeps, validation, and export |
| semiclassical sweep | ten couplings, exact gaps, WKB actions, instanton estimates, ratios, and diagnostics |
| basis convergence | two small couplings, three oscillator scales, and eight basis dimensions |
| finite-difference convergence | raw and Richardson-extrapolated grid gaps |
| benchmark figure source | pgfplots source for the splitting comparison |
| convergence figure source | pgfplots source for basis and grid convergence |
The program writes its runtime, Python version, NumPy version, platform, output paths, validation metrics, and final pass state. The retained reference run used Python 3.12.13 and NumPy 2.3.5 on 64-bit Windows.
Reproducibility metadata
Section titled “Reproducibility metadata”| Item | Retained setting |
|---|---|
| model | |
| production basis | harmonic oscillator, , |
| basis refinements | through ; |
| WKB quadrature | Gauss–Legendre orders and |
| finite-difference box | , Dirichlet endpoints |
| finite-difference solver | Sturm bisection, 96 iterations per eigenvalue |
| arithmetic | NumPy binary64 |
| randomness | none |
| code license | MIT |
| data transformation | direct CSV export; no smoothing or fitted parameters |
The range and convergence schedule are fixed in the source. No fit window is selected after inspecting the result.
Known Failure Modes
Section titled “Known Failure Modes”- Converged energies, unconverged gap. Absolute errors that are harmless for and can overwhelm their difference.
- Unresolved parity sectors. A generic full-matrix eigensolver may rotate a near-degenerate pair; an undersized parity basis may even reverse the computed ordering.
- Treating a residual as a continuum error bar. A small algebraic residual says nothing about basis dimension, oscillator scale, box size, or grid spacing.
- Pushing binary64 past its useful range. Once basis variation reaches the desired digits, a larger matrix may amplify roundoff rather than improve the gap.
- Confusing exponent and prefactor accuracy. Agreement on does not validate the one-loop normalization.
- Mixing the finite-energy and zero-energy organizations. Replacing by while retaining the finite-energy WKB prefactor does not define a controlled next-order formula.
- Ignoring finite-box error. Grid refinement at fixed cannot reveal a domain that truncates the wavefunction tails.
- Calling the numerical result experimentally exact. It is a converged solution of the stated one-dimensional Hamiltonian, not a model-discrepancy assessment for a molecule or device.
Further Investigations
Section titled “Further Investigations”- Repeat the parity calculation in arbitrary precision and determine where binary64 ceases to resolve the doublet.
- Compute the determinant ratio with a Gel’fand–Yaglom method and test the one-loop prefactor directly.
- Add a weak bias and compare the exact low-energy pair with the two-state avoided-crossing Hamiltonian.
- Track excited-state doublets and test how the finite-energy WKB action changes with intrawell quantum number.
- Extract the gap from an imaginary-time kernel ratio instead of spectral subtraction.
- Compare the leading formulas with higher-order uniform WKB or resurgent corrections without fitting them to the retained data.
Exercises
Section titled “Exercises”1. Verify the parity blocks
Section titled “1. Verify the parity blocks”Show from oscillator selection rules that and connect only states whose indices differ by an even integer. Explain why the Hamiltonian separates into even and odd blocks.
Solution
Since , one power of changes the oscillator index by an odd integer. An even power changes it by an even integer. Therefore
when and have opposite parity. The oscillator Hamiltonian is diagonal, so every term in preserves parity. Ordering the basis as even indices followed by odd indices makes block diagonal.
2. Why can a variational calculation give a negative gap?
Section titled “2. Why can a variational calculation give a negative gap?”At , the , calculation gives . Does this contradict the theorem that the ground state of a one-dimensional confining potential is even and nodeless?
Solution
No. Rayleigh–Ritz gives an upper bound independently in each truncated parity subspace:
It does not require the two upper-bound errors to be equal. If
the truncated difference is negative even though the exact ordering is unchanged. The sign failure is a convergence diagnostic for the difference, not a physical parity inversion.
3. Derive the Richardson formula
Section titled “3. Derive the Richardson formula”Assume the grid gap has the expansion
Construct a combination of and that cancels the term.
Solution
One has
Therefore
The leading second-order grid error is removed. This extrapolation is trustworthy only after the raw values have entered the regime.
4. Extract the leading action from two gaps
Section titled “4. Extract the leading action from two gaps”Neglect the variation of the prefactor and estimate from numerical gaps at and using
Solution
Taking a ratio gives
Using and gives
This is close to , but the difference should not be interpreted as a numerical error: the prefactor has corrections that the two-point estimate neglects.
5. Identify the dominant error at g = 0.08
Section titled “5. Identify the dominant error at g = 0.08”Using the error-budget table, decide whether the comparison can distinguish the WKB and instanton discrepancies from numerical error.
Solution
The independent finite-difference difference, relative, is the largest listed numerical discrepancy. The WKB and instanton discrepancies are and . Their ratios to the numerical scale are approximately
Thus the numerical uncertainty is far below both physical approximation errors. The benchmark can resolve their difference comfortably.
6. Estimate the binary64 subtraction limit
Section titled “6. Estimate the binary64 subtraction limit”Let each parity eigenvalue have absolute roundoff of order , with and . Estimate the relative roundoff amplification in the gap at .
Solution
The scale estimate is
This is a lower bound on practical sensitivity, because matrix conditioning, eigensolver operations, and basis cancellation add larger constants. The observed few-parts-in- plateau is therefore plausible. Resolving substantially smaller gaps calls for higher precision or an observable that avoids subtracting two nearly equal eigenvalues.
Cross-Links
Section titled “Cross-Links”- Computational Notebooks defines the convergence and reproducibility contract used here.
- Double-Well Splitting carries out the same convention-fixed calculation by hand.
- Tunneling Splittings explains why a spectral gap carries an amplitude exponent rather than a transmission-probability exponent.
- Instantons in Quantum Mechanics derives the finite-action Euclidean saddle.
- Fluctuation Determinants Preview explains the zero mode and one-loop prefactor.
- Barrier Penetration and Tunneling develops the WKB forbidden-region action.
- Matrix Diagonalization and Convergence Tests provide the reusable numerical methods.
References
Section titled “References”- L. D. Landau and E. M. Lifshitz, Quantum Mechanics: Non-Relativistic Theory, 3rd ed., §50, Pergamon Press (1977).
- S. Coleman, Aspects of Symmetry, Chapter 7, Cambridge University Press (1985).
- R. Rajaraman, Solitons and Instantons, Chapter 10, North-Holland (1982).
- J. Zinn-Justin and U. D. Jentschura, “Multi-instantons and exact results I: Conjectures, WKB expansions, and instanton interactions,” Annals of Physics 313, 197–267 (2004), doi:10.1016/j.aop.2004.04.004.
- J. Zinn-Justin and U. D. Jentschura, “Multi-instantons and exact results II: Specific cases, higher-order effects, and numerical calculations,” Annals of Physics 313, 269–325 (2004), doi:10.1016/j.aop.2004.04.003.
- N. J. Higham, Accuracy and Stability of Numerical Algorithms, 2nd ed., SIAM (2002).
- G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed., Johns Hopkins University Press (2013).