← Research
Research · A Toy Model Of Spacetime Critical Points

A Few-Parameter Model That Shows The Critical Points Of A Moving Density

Can a density with a handful of continuous parameters, evaluated in about a microsecond, show the spatial and spacetime critical points, catastrophes and basins that molecular calculations show, which of them can it not show, and can it test an integrator against known answers?

This Is A Model

Nothing on this page is a molecular result. Names such as H2+ swing, ring or cage describe an analogy of shape. Sums of functions on several centres solve no Schrödinger equation.

1. The Model

The density
ρ(r,t)=∑gwg|ψg|2,ψg=∑k∈ge−iEkt∑ickiφi(r−Ri(t))
μa=mMam+Ma,aa=1μa|q|Za,En=−μaq2Za22n2

A few centres carry a charge Za, a mass Ma and, if wanted, a prescribed oscillation. The functions are Slater 1s, hydrogenic 2s and 2p, or Gaussian s and p, each with an inverse length (a factor times 1/aa). Coefficients are complex, each belongs to a state energy Ek, and coherent groups are added with weights wg ≥ 0, so that the density need not have exact zeros. A finite-nucleus length b replaces r by (r2 + b2)1/2 in the Slater functions. Value, gradient, Hessian, third derivatives, ∂ρ/∂t, ∂2ρ/∂t2, ∂∇ρ/∂t and the time derivative of the Hessian are analytic. Units have ħ = 1 and Coulomb constant 1.

StatementStatus
One centre, point nucleus, hydrogenic functions with energies En, any superpositionexact solution of the one-centre Schrödinger equation with reduced mass μ
The finite-nucleus length b, Gaussian functions, exponent factors other than 1model densities, not eigenfunctions
Two or more centresmodel: not a solution. State energies, the virial theorem, continuity and a conserved particle number are meaningless
Prescribed centre motionmodel: no electron translation factors, no back reaction
Zero-flux surfaces, critical points, L(Ω) = 0, ∫K = ∫G on a basinexact statements about the given function ρ

Only dimensionless combinations shape the picture. Take centre 0 as the unit: lengths in a0, energies in μ0q2Z02, time in the inverse of that. Then m, |q|, Z0 and M0 are pure scale and drop out. What remains: the positions Ra/a0 (3N − 6 numbers for three or more non-collinear centres, 1 for two), the inverse length of each function times a0 (its factor times μaZa/(μ0Z0)), b/a0, the complex coefficients (up to a phase per group), the weights, the energy differences, and the motion amplitudes, frequencies and phases.

2. Explorer

Choose a type or a preset, then move the sliders. Everything is computed in the page. Canvases take mouse, touch and arrow keys. The searches are sampled and can miss points.

The smoothed H2+ swing over one period: critical points on the axis, births and deaths (crosses) and spacetime critical points (rings).
The three-fold symmetric preset, in its plane, before and after the two in-plane curvatures of the centre vanish together. Colours are basins of steepest ascent; dots are level lines at half decades.

3. Which Types Occur

A sampled scan of the 15 presets and 150 random models (seed 1; two to four centres, Gaussian or smoothed Slater functions, real or complex coefficients) counted what it found. Counts are of points found at the sampled times, not of distinct families.

TypeFoundFirst found in
(3,−3) smooth maximum1909h2plus-swing
(3,−1) bond point1760h2plus-swing
(3,+1) ring point454h4-cage
(3,+3) cage point, ρ > 074umbilic
cusp maximum at a point nucleus19h2plus-swing
non-nuclear maximum775h2plus-swing
isolated zero of ρ, (3,+3)10node-point
degenerate set, rank 00-
degenerate set, rank 14813h2plus-swing
degenerate set, rank 26148node-point
(4,−4)540h2plus-smooth
(4,−2)1206h2plus-swing
(4, 0)417h3-ring
(4,+2)119h4-cage
(4,+4)9node-event
isolated spacetime zero, rank 42node-event
spacetime degenerate, rank 1723hyd-shells
spacetime degenerate, rank 216462h2plus-swing
spacetime degenerate, rank 3200h2-bond
fold: pair (3,−3) and (3,−1)520h2plus-swing
fold: pair (3,−1) and (3,+1)382h3-ring
fold: pair (3,+1) and (3,+3)176h4-cage
cusp or pitchfork (a coefficient of the fold form vanishes)28umbilic
two null directions (umbilic)7umbilic

One example of each rank-4 signature, each from a preset. In a model of two energies with real coefficients every spatial critical point at a turning instant, cos ωt = ±1, is a spacetime point, and its 4 × 4 matrix splits into the spatial Hessian and ∂2ρ/∂t2. Spatial signatures ±3 and ±1 with either sign in time give all five.

TypePresett / TPositionρEigenvalues
(4,−4)umbilic0.00−0.523, 0.905, 0.0000.6341−1.7145, −1.4973, −1.0824, −0.0505
(4,−2)umbilic0.000.129, 0.224, 0.0000.4980−1.1453, −0.2470, −0.0379, 0.5776
(4, 0)umbilic0.000.000, 0.000, 0.0000.4953−1.1274, −0.0374, 0.2305, 0.2305
(4,+2)cage-minimum0.000.000, 0.000, 0.0000.0687−0.0054, 0.0798, 0.0798, 0.0798
(4,+4)cage-minimum0.500.000, 0.000, 0.0000.00150.0054, 0.0173, 0.0173, 0.0173
(4,+4) zeronode-event0.00−0.000, −0.000, −1.0247.7 × 10−340.0025, 0.3936, 0.3936, 0.5572

Beyond folds: the three-fold preset has an elliptic umbilic at t = 4.488812, where both in-plane curvatures of the centre vanish together (third derivatives fxxx = 0.3966 and fxyy = −0.3966, their sum zero as the symmetry requires; the third direction keeps curvature −0.3823). A swallowtail, f′ to f(4) zero along the axis of three collinear Gaussians with time, the third position and its amplitude as the three controls, was found at z = 1.165341, t = 15.337448, third centre at 0.947763 with amplitude −0.458855 (f(5)/ρ = −1529, transverse curvature/ρ = −4.000, ρ = 2.7 × 10−4). It sits in a region of small density; the fourth derivative in that solution is a central difference of the analytic third derivative. Butterfly and hyperbolic umbilic points were not searched for.

4. What Cannot Occur, And Why

Cannot occurReason
A zero of ρ with a negative eigenvalue, in space or in space-timeρ ≥ 0, so every zero is a minimum: rank equals signature
A zero of rank above 2 with a single coherent group, in space or space-timeat ψ = 0 the Hessian is 2 Re(∂ψ* ∂ψ), which has rank at most 2 (at most 1 if ψ is real); n groups allow at most 2n
Any spacetime point of rank 4 in a stationary densitythe time row of the matrix vanishes
Any spacetime point of rank 4 in a rigidly rotating densitythe tangent of the helical worldline is annihilated
(4,−4) or (4,+4) where the oscillating part of a two-energy density on fixed centres vanishesthere ∂2ρ/∂t2 = −ω2(ρ − mean) = 0, and a symmetric matrix with a zero diagonal entry is not definite
A smooth (3,−3) point at the centre of an unsmoothed Slater function where the density has a cuspthe density behaves there as ρ0 + g·d + s|d| with s ≠ 0; a cusp maximum is reported as its own class, without a Hessian
A maximum of a sum of squares of positive combinations of unsmoothed 1s Slaters farther than 2/ζi from every nucleusthere ∇2ψ = Σ ci ζi(ζi − 2/ri) e−ζiri > 0, so ψ2 is subharmonic
An isolated critical point away from the nucleus in a one-centre density of s functions onlythe density is spherical: away from the nucleus its critical sets are whole spheres, of rank 1 where ∂2ρ/∂r2 ≠ 0 and of rank 0 where it vanishes too

Smooth maxima at a centre do occur with Gaussian functions, and also with Slater functions whose cusp terms cancel, as in ψ = (e−r − e−2r/2)/√π. The searches of this model do not list such a point on a Slater centre.

Rank 0 does occur, although the sampled scan counted none. In the exact superposition (1s + 2s)/√2 on one centre two critical spheres merge at r = 3.859014, t = 3.177763, and there the whole sphere has rank 0. In cage-minimum with the amplitude of the second energy doubled, the Hessian at the centre vanishes at t = 4.978609, an isolated point of rank 0.

5. Basins In Space And In Space-Time

In space the gradient flow of ρ needs only the Euclidean metric: nuclear attractors, non-nuclear attractors, the two-dimensional stable manifolds of (3,−1) points as interatomic surfaces, ring and cage points on their intersections. In space-time a gradient needs a metric on (x, y, z, t), which the density does not supply. Here it is a named choice.

Two plug-in flows, with a time scale c
dXads=gab∂bρ,g=diag(1,1,1,±c2)

With the Euclidean choice ρ increases along every path, the number of unstable directions at a critical point equals the number of positive eigenvalues of the 4 × 4 matrix for every c, and only (4,−4) points attract; the shapes of the basins still depend on c. With the Lorentzian choice ρ need not increase, a (4,−4) point is a saddle, and eigenvalues can be complex, so that paths can spiral; basins in the sense of QTAIM are not available.

Spacetime point of the smoothed swingUnstable directions, EuclideanUnstable directions, LorentzianComplex pair for some c
(4,−4)01no
(4,−2)10no
(4,−2)12yes

On the axis (z, t) plane of that model, which both flows leave invariant, the Euclidean ascent from a grid of 2304 points reaches one of the two (4,−4) maxima from every point for c = 0.3, 1 and 3, half to each. The assignment of 40 points differs between c = 0.3 and 1, of 20 between 1 and 3, and of 60 between 0.3 and 3.

6. Molecular Analogues

PresetWhat It Imitates
h2plus-swingtwo point nuclei, one-exponent LCAO of the two lowest states, equal superposition (the H2+ swing)
h2plus-smooththe same swing with finite nuclei (smoothing length 0.15), so that the maxima are smooth
h2-bondtwo clamped Gaussian centres, stationary: the plain two-atom graph
h3-ringthree Gaussian centres in a triangle, two-state superposition: a ring point
h4-cagefour Gaussian centres in a tetrahedron, two-state superposition: a cage point
nna-birthtwo centres with s and inward p functions: a non-nuclear maximum is born and dies
path-switchtwo fixed centres and a third that swings past them: a bond path changes partner
umbilicthree-fold symmetric superposition of tight and diffuse functions: both in-plane curvatures vanish together
node-pointthree incoherent real p states on one centre pair: isolated zeros of the density
hyd-1s2pzone centre, hydrogenic 1s + 2p0 superposition (an exact solution of the one-centre Schrödinger equation)
hyd-rotatingone centre, hydrogenic 1s + 2p(+1): a rigidly rotating density (exact solution; a control)
hyd-shellsone centre, incoherent hydrogenic 1s and 2s shells: spherical zero-flux surfaces (stationary control)
node-eventthe node-point model with the two centres at different state energies: zeros of the density isolated in space and time
swallowtailthree collinear Gaussian centres at the parameters of a swallowtail point found by toy_scan swallowtail
cage-minimumfour centres in a tetrahedron, tight minus diffuse functions half a period on: a cage point that is a minimum in space and time

The swing uses clamped protons 2 bohr apart, a one-exponent LCAO for each of the two states (exponent factors 1.238 and 0.9, chosen by hand) and the exact electronic energies as input. Toward full swing, a non-nuclear maximum and a second bond point are born together in a fold beyond one proton at |cos ωt| = 0.98742, and at |cos ωt| = 0.99734 the bond point between the protons runs into the cusp of that proton, which then is no longer a maximum: three, five and three critical points. Away from full swing the events run in reverse. For the exact solution the page QTAIM in time and its record give 0.9712 and 0.997172. The model reproduces the sequence, not the numbers.

The one-centre superposition of hydrogenic 1s and 2p0 is an exact solution and has a non-nuclear maximum that is born and dies: folds at t = 2.17010, 6.20748, 10.54768, 14.58506 on the axis at |z| = 2.81393. The test suite confirms each one by counting extrema of the closed-form axial density on both sides.

7. Speed

One thread, processor time, minimum of repeated runs, on a machine with 32 logical processors, under a load average of 39.23. The jet columns give microseconds per evaluation with first derivatives, with second derivatives and time derivatives, and with third derivatives. The topology columns give milliseconds for all spatial critical points at one time, for all spacetime points of one period, and for the fold search of one period.

PresetJet 1 (µs)Jet 2 + t (µs)Jet 3 + t (µs)One Time (ms)Space-Time (ms)Folds (ms)
h2plus-swing0.4020.4940.5893.1660.5376.6
h2plus-smooth0.4290.5370.4893.1757.3344.1
h4-cage0.6710.8170.89623.15484.55360.2
node-point0.9561.2001.37211.00182.4stationary

8. An Integrator Test Bed

The cubature inside the library's basin integrator sees a density only through callbacks, so a test program built with the library sources can supply the model. G and K come from the same amplitudes, so the following hold for every parameter set, solution or not.

Identity on every zero-flux basin
K−G=−14m∇2ρ,L(Ω)=−14m∮∂Ω∇ρ·ndS=0

This checks quadrature and surface placement, not physics. References used: closed-form whole-space integrals (Gaussians; Slaters on one centre; pairs of 1s Slaters), equal fractions forced by symmetry, the closed-form population of a spherical zero-flux surface of hydrogenic shells (approached through a small 2p admixture, since a sphere of maxima was outside the integrator contract at the commit tested (816973b)), exact scaling in Z, q and m, rigid motions, separated fragments, small basins, a non-nuclear basin that vanishes at a pitchfork, and a weak basin that disappears in a fold, where its population stays finite up to the fold and then drops to zero. A check is flagged when the integrator reports convergence and the true error exceeds its own error estimate.

FamilyCasesBasinsNot ConvergedLargest Closure ErrorLargest |L|Flags Within ToleranceFlags Beyond ToleranceL FlagsRaysMedian Time (s)
one centre1102.3 × 10−156.7 × 10−1600018600.0
symmetry-forced fractions184404.4 × 10−69.3 × 10−60003068948.3
rigid motions51501.2 × 10−76.4 × 10−700011720046.2
exact scaling112208.9 × 10−14.2 × 1022342363407.9
separated fragments51007.7 × 10−101.4 × 10−9000186002.9
spherical surfaces (perturbed shells)101822.7 × 10−62.1 × 10−43034797032.7
small basins and slivers51005.9 × 10−64.2 × 10−6400223502.5
non-nuclear basin at a pitchfork61801.4 × 10−59.9 × 10−61007467015.7
basin lost in a fold51001.0 × 10−78.5 × 10−8000238502.0
random parameter sets308513.2 × 10−56.6 × 10−450966403954.4

The integrator is that of development commit 816973b of the library, which follows release 1.6.0 and is not itself a release; it was not modified. The test bed called its internal cubature and copied two caller rules of qtaim_integrate_attractor_basin (capture radius and ray origin); the public function takes a wavefunction and was not called. The requested tolerance was 10−5 electrons per basin, and a closure error counts as beyond tolerance only above that figure times the number of basins. Flag columns count cases. A flag means that it reported convergence and the error exceeded its estimate. Parameter sets of the failing cases are kept as reproducer files beside the code.

The large entries of the exact-scaling row come from pairs of nuclei 0.12, 0.044 and 0.012 bohr apart, scaled or muonic separations far below those of ordinary molecules, run with the copied ray-origin rule (the last nucleus within 0.3 bohr). In the case with |L| = 420 hartree the integrator reported convergence of its angular estimates while also counting 900 unconverged radial panels. In the two pitchfork cases nearest the bifurcation the population of the new basin depended on the capture radius (0.03455 and 0.03387 with the copied rule, 0.02598 and 0.01006 with a tenth of the saddle distance), a transfer between basins that closure and the flags of this table do not see.

With rays started on the nearest nucleus the three close pairs closed within 4 × 10−6. At 0.12 and 0.044 bohr the basin populations were within about 2 × 10−5 of the unscaled values; at 0.012 bohr 1.1 × 10−2 electrons were still assigned to the wrong basin. |L| remained up to 3.4 × 10−3, 5.0 × 10−2 and 1.7 hartree.

Times are wall times with three threads on a loaded machine. Closure errors are against closed forms where one exists.

L(Ω) was not part of the convergence decision. At commit 816973b the radial panels were refined on L as well as on N, but the rule over the directions and the converged flag looked at N (and the energy) only. Among random cases that converged and whose attractor list passes the Poincaré–Hopf test, 4 have a basin with |L| beyond its radial estimate plus 10−5: random-1-23-gauss-sp 4.2 × 10−4, random-1-19-gauss-s 6.8 × 10−5, random-1-17-gauss-sp 4.2 × 10−5, random-1-25-gauss-s 1.7 × 10−5 (largest |L| per case, hartree).

In the random scan of 30 parameter sets and 85 basins, 5 closure checks exceed the estimate and 0 exceed the requested tolerance; 17 basins have |L| beyond the radial estimate plus 10−5 (more for compact functions), the largest among converged cases with a confirmed attractor list 4.2 × 10−4 hartree (6.6 × 10−4 in one whose list is not confirmed); 1 case is reported as not converged; in 8 cases the model’s own attractor list could not be confirmed by the Poincaré–Hopf sum. The scan took 53 minutes of integration: the integrator, not the density, sets the pace.

Estimates are not bounds. In 15 of 96 cases a closure or symmetry error exceeded the integrator’s own estimate while staying within the requested tolerance, as the header at that commit allowed for surface positions.

What Passed

Equal fractions of two, three and four equivalent centres with and without mirror planes; rigid motions, including a shift by thousands of bohr (the cubature frame followed the attractors, so this tests equivariance, not accuracy); separated fragments from 8 to 100 bohr. No case was built specifically for grazing rays. The nuclear basin of perturbed shells approaches the closed-form ball as the square of the admixture, while the integrator converged; at the smallest admixture the sphere of maxima is nearly degenerate and it reported no convergence:

SurfaceAdmixture εComputed NClosed Form At ε = 0DifferenceDifference / ε²Converged
incoherent shells0.10.1348412540.1344839983.6 × 10−40.036yes
incoherent shells0.030.1345157410.1344839983.2 × 10−50.035yes
incoherent shells0.010.1344875050.1344839983.5 × 10−60.035yes
incoherent shells0.0010.1344840500.1344839985.2 × 10−80.052no
nodal sphere0.10.4128236690.4112890901.5 × 10−30.153yes
nodal sphere0.030.4114267640.4112890901.4 × 10−40.153yes
nodal sphere0.010.4113043830.4112890901.5 × 10−50.153yes
nodal sphere0.0010.4112931820.4112890904.1 × 10−64.091no

A basin that is lost in a fold does not shrink to nothing. For a pair of unequal Gaussians whose weaker maximum disappears at R = 1.4932, its population is 0.4297 at R = 1.9, 0.4154 at R = 1.75, 0.3989 at R = 1.65, 0.3866 at R = 1.6, 0.3768 at R = 1.57. With the smaller capture radius, the basin born in the pitchfork vanishes continuously.

The Critical-Point Search

The critical-point search at the untagged commit 719b6ac, which follows release 1.6.0 and whose version macros already read 1.7.0, also takes a density callback. Over 216 cases it was compared with the model’s own search on a much denser seed set and with counts forced by symmetry. Of 1610 reference points it listed 1383. Of the 227 missing, 221 are cusps at point nuclei, which are not zeros of a gradient and show up as a Poincaré–Hopf mismatch. The other 6 are bond points of density 1.3 × 10−8 to 2.2 × 10−5; in 4 cases the search returned success with a sum of 1 and no flag of an unfinished or truncated search while such a point was missing (two of the four carried the flag for zeros discarded below the density floor, which these points were above). Each of those bond points, handed back to the search as an extra seed, is then listed (6 of 6), so at that commit the search could resolve them and its own seeding did not reach them.

9. Parameters, Limits And Provenance

C program and tests: commit c88edb3 of the local branch toy, which was not published when this page was written; the file TOY_MODEL.md there lists the commands. The C tests report 674 checks with 0 failures. The JavaScript port agrees with the C code on 1350 derivative values to 2.5 × 10−16 relative to the size of the terms, and on 82 critical points of one time slice per preset it misses 0, mislabels 0 and adds 0.

Sources

Comments, questions or contributions? Please open an issue or a pull request on GitHub.