12.2 Exercises
1. (★) Three solitons. Extend two_solitons to a list of \((N_j, x_j, k_j, \varphi_j)\) and launch three solitons of norms \(0.2\), \(0.3\), \(0.5\) with velocities chosen so that all three collisions are well separated in time. Verify that the total shift of each soliton is the sum of its pairwise shifts from Eq. (11) — one of the sharpest consequences of integrability, and one that a numerical experiment can test in ten lines. Check the three-body version of the sum rule, \(\sum_j N_j\Delta x_j = 0\). Enlarge the ring first: the accuracy floor of Eq. (6) is set by the smallest \(\kappa\), here \(\kappa = N g/2 = 0.2\), so Section 10.2(c) demands pairwise separations of order \(80\) rather than \(40\), and \(L=120\) is not enough — \(L = 400\) with \(N_x = 4096\) keeps \(\Delta x\) and the cost per step where they are now.
2. (★) A soliton beam splitter. Send a single soliton of norm \(1\) at a Gaussian barrier \(V(x) = V_0e^{-x^{2}/2\sigma_b^{2}}\) with \(\sigma_b\) smaller than the soliton width, using perturbed_frames with \(g_5=0\). Scan \(V_0\) at fixed incident velocity and measure the transmitted and reflected norms. Find the \(V_0\) that gives a \(50{:}50\) split, and check whether the two outgoing pieces are still solitons (measure their peak density against \(\kappa^{2}/g\) with the new norms). This is the beam splitter of a soliton interferometer.
3. (★★) The higher-order soliton and its period. The initial condition \(\psi(x,0) = 2\phi_1(x)\), i.e. the unit-norm soliton \(\phi_1\) of Eq. (2) with its amplitude doubled (its norm is then \(4\), not \(1\): doubling the amplitude of a fixed profile quadruples the norm, so this one experiment leaves the unit-norm convention of the notebook), is not a soliton: Ref. [15] showed that \(A\,\mathrm{sech}\) with \(A\) an integer multiple of the fundamental amplitude is an \(N\)-soliton bound state which breathes periodically. Its period is set by the difference of the two chemical potentials of the bound eigenvalues. Propagate it, measure the period of the peak density, and compare with the value you get by identifying the two discrete eigenvalues from the amplitudes of the two constituent solitons at the moment of maximum separation. The textbook quotes the answer as the “soliton period” \(\pi/2\) of fibre optics; check that this needs no conversion at all in the time units of this notebook, by running the dictionary of Section 5.2 backwards. Watch the resolution: at half a period the state compresses to four times its initial peak density and a correspondingly broader spectrum.
4. (★★) Chirped collisions. Multiply one of the two solitons by \(e^{i\alpha x^{2}}\) before the collision, i.e. give it a spatially varying velocity (“chirp”). The chirped object is no longer a soliton, so the initial condition contains a soliton plus radiation. Measure how much norm survives as a soliton against \(\alpha\), and check that the surviving soliton still collides elastically with the unchirped one.
5. (★★) Newton’s cradle. Build a train of five equally spaced solitons at rest, all in phase, and propagate. The nearest-neighbour attraction of Eq. (16) makes the outer pairs fall inwards first. Measure the positions and ask whether the motion resembles the classical Newton’s cradle — and why the answer is “no” for an integrable system, in which nothing can be transferred except position. Then add a small \(g_5\) and repeat.
6. (★★) The collision time. Section 10.3 measured that the density peak sits between the crossing of the incoming and the outgoing asymptotes. Derive the exact relation from the two-soliton solution in the limit \(\Delta k \gg \kappa\), where the two solitons barely deform, and test it against the measured collision times over the velocity sweep of Section 5.3.
7. (★★★) Solitons in a trap. Add \(V(x) = \tfrac12\omega^{2}x^{2}\) with \(\omega = 0.03\) and release two in-phase solitons at rest at \(\pm 20\). They fall towards each other, collide, separate, and come back. (In the soliton trains of [16], neighbouring solitons oscillating in a shallow trap did not pass through each other, which the authors read as a repulsion from alternating phases; repeat the run with \(\Delta\phi = \pi\) to see that case.) The trap breaks translation invariance, so the collisions are no longer exactly elastic. Measure the norm radiated per collision over ten collisions and find how it scales with \(\omega\). Compare the oscillation period with \(2\pi/\omega\) and explain the difference using the shift of Eq. (11), as Section 10.3 did for the ring.
8. (★★★) The two-soliton solution in closed form. Look up or construct the exact two-soliton solution of Eq. (1) by the bilinear method introduced in [17] for the Korteweg-de Vries equation and applied in [18] to the nonlinear Schrödinger equation, evaluate it on the grid, and compare with the numerical propagation during the overlap, where this notebook has no analytic reference at all. Then read the shifts of Eq. (11) directly off its asymptotics instead of measuring them.
12.3 References
[1] N. J. Zabusky and M. D. Kruskal, Interaction of “solitons” in a collisionless plasma and the recurrence of initial states, Phys. Rev. Lett. 15, 240 (1965) — the numerical experiment that found solitary waves surviving collisions, and named them.
[2] D. J. Korteweg and G. de Vries, On the change of form of long waves advancing in a rectangular canal, and on a new type of long stationary waves, Phil. Mag. 39, 422 (1895) — the Korteweg-de Vries equation.
[3] V. E. Zakharov and A. B. Shabat, Exact theory of two-dimensional self-focusing and one-dimensional self-modulation of waves in nonlinear media, Sov. Phys. JETP 34, 62 (1972) — integrability of Eq. (1) by inverse scattering, and the multi-soliton solutions behind Eqs. (10)-(13).
[4] C. S. Gardner, J. M. Greene, M. D. Kruskal and R. M. Miura, Method for solving the Korteweg-deVries equation, Phys. Rev. Lett. 19, 1095 (1967) — the inverse scattering method.
[5] G. P. Agrawal, Nonlinear Fiber Optics, 5th ed., Academic Press (2013) — Chapter 5 (Optical Solitons) for the optical form of Eq. (1), its inverse-scattering solution and higher-order solitons; the appendix Numerical Code for the NLS Equation gives the split-step Fourier method as photonics uses it.
[6] J. P. Gordon, Interaction forces among solitons in optical fibers, Opt. Lett. 8, 596 (1983) — the force between neighbouring solitons: exponential in their separation, sinusoidal in their relative phase.
[7] J. H. V. Nguyen, P. Dyke, D. Luo, B. A. Malomed and R. G. Hulet, Collisions of matter-wave solitons, Nature Physics 10, 918 (2014) — collisions of lithium-7 solitons resolved by relative phase.
[8] M. D. Feit, J. A. Fleck Jr. and A. Steiger, Solution of the Schrödinger equation by a spectral method, J. Comput. Phys. 47, 412 (1982) — the split-step Fourier propagator.
[9] G. Strang, On the construction and comparison of difference schemes, SIAM J. Numer. Anal. 5, 506 (1968) — the symmetric splitting of the split-step propagator.
[10] J. W. Cooley and J. W. Tukey, An algorithm for the machine calculation of complex Fourier series, Math. Comp. 19, 297 (1965) — the fast Fourier transform.
[11] W. H. Press, S. A. Teukolsky, W. T. Vetterling and B. P. Flannery, Numerical Recipes: The Art of Scientific Computing, 3rd ed., Cambridge University Press (2007) — Chapter 12 (fast Fourier transform) and Chapter 20 (partial differential equations, including operator splitting).
[12] W. H. Press, S. A. Teukolsky, W. T. Vetterling and B. P. Flannery, Numerical Recipes in Fortran 90: The Art of Parallel Scientific Computing, 2nd ed. (Fortran Numerical Recipes, Volume 2), Cambridge University Press (1996) — the same material with parallel implementations of the FFT, which is the only operation this notebook performs in quantity.
[13] V. I. Karpman and V. V. Solov’ev, A perturbational approach to the two-soliton systems, Physica D 3, 487 (1981) — the perturbation theory for two overlapping solitons from which the half-separation form converted in Section 7.2 comes.
[14] N. G. Parker, A. M. Martin, S. L. Cornish and C. S. Adams, Collisions of bright solitary matter waves, J. Phys. B 41, 045303 (2008) — the three-dimensional Gross-Pitaevskii calculation in which in-phase collisions trigger collapse and out-of-phase collisions do not.
[15] J. Satsuma and N. Yajima, Initial value problems of one-dimensional self-modulation of nonlinear waves in dispersive media, Prog. Theor. Phys. Suppl. 55, 284 (1974) — how an arbitrary initial condition decomposes into solitons plus radiation, and the higher-order breathing solitons of Exercise 3.
[16] K. E. Strecker, G. B. Partridge, A. G. Truscott and R. G. Hulet, Formation and propagation of matter-wave soliton trains, Nature 417, 150 (2002) — a soliton train oscillating in a shallow trap, whose neighbours repel because of alternating relative phases (Exercise 7).
[17] R. Hirota, Exact solution of the Korteweg-de Vries equation for multiple collisions of solitons, Phys. Rev. Lett. 27, 1192 (1971) — the bilinear method (Exercise 8).
[18] R. Hirota, Exact envelope-soliton solutions of a nonlinear wave equation, J. Math. Phys. 14, 805 (1973) — the bilinear method applied to Eq. (1), and its \(N\)-soliton solutions (Exercise 8).
Marcin Płodzień, PhD
Citation: M. Płodzień, Quantum Many-Body Simulation: from a single spin to quantum machine learning (2026), https://marcinplodzien.github.io/quantum-many-body-simulation/