Note
Go to the end to download the full example code.
Miller’s classical S-matrix#
Miller (1970) computed quantum transition probabilities for a molecular collision from classical trajectories alone. Write the vibration in action-angle variables \((n,q)\), start it with the quantized action \(n_1+\tfrac12\) and an initial angle \(q_1\), and record the final action \(n_2(q_1)\). Every angle that lands on \(n_2=m+\tfrac12\) contributes an amplitude
with \(\Phi\) the classical action of the trajectory. There are two roots for each allowed \(m\). Squaring the sum without the cross term gives the classical probability; keeping it gives the quantum interference.
The model is the one Miller tested first: a collinear collision treated
as a harmonic oscillator driven by a force pulse \(F(t)\), for which
the exact quantum probabilities are Laguerre polynomials
(forced_oscillator_quantum_probability()).
The trajectories come from
forced_oscillator_classical_map().
Units: \(\hbar=m=\omega=1\).
import matplotlib.pyplot as plt
import numpy as np
from physicskit.semiclassical.core.classical_s_matrix import (
classical_s_matrix_probability,
classical_s_matrix_roots,
forced_oscillator_classical_map,
forced_oscillator_quantum_probability,
)
The classical map from initial angle to final action#
A Gaussian force pulse kicks the oscillator out of \(n_1=20\). The final action is a sinusoid in the initial angle; a horizontal line at \(m+\tfrac12\) crosses it twice, and those two trajectories are the ones that contribute to \(S_{m,20}\). Beyond the extrema (the classical “rainbows”) there is no real trajectory at all.
t = np.linspace(-8, 8, 4001)
n1 = 20
q1, n2, phase, lam = forced_oscillator_classical_map(n1, 2.0 * np.exp(-(t**2)), t, n_angles=8192)
print(f"energy transfer lambda = {lam:.4f}, classical range of n2: {n2.min() - 0.5:.2f} to {n2.max() - 0.5:.2f}")
m_show = 30
roots = classical_s_matrix_roots(q1, n2, phase, m_show)
fig1, ax = plt.subplots(figsize=(7, 4))
ax.plot(q1, n2 - 0.5, color="k")
for m in range(int(n2.min()), int(n2.max()) + 1):
ax.axhline(m, color="0.85", lw=0.6, zorder=0)
ax.axhline(m_show, color="firebrick", lw=1.2, label=rf"$m={m_show}$")
for r, _, _ in roots:
ax.plot(r, m_show, "o", color="firebrick")
ax.set_xlabel(r"initial angle $q_1$")
ax.set_ylabel(r"final action $n_2-\frac{1}{2}$")
ax.set_title("Two classical trajectories end on each final state")
ax.legend()
fig1.tight_layout()

energy transfer lambda = 3.8109, classical range of n2: 6.13 to 41.49
Classical, primitive and uniform probabilities#
Without interference the classical probability is a smooth envelope that diverges at the rainbows. The primitive semiclassical sum adds the interference between the two roots and reproduces the quantum oscillations away from the rainbows. Miller’s uniform (Airy) version stays finite where the two roots merge and follows the exact result across the whole classically allowed range. Only the exponentially small tails beyond the rainbows, which need complex-valued trajectories, are missing.
ms = np.arange(0, 50)
exact = np.array([forced_oscillator_quantum_probability(n1, m, lam) for m in ms])
p_cl = np.array([classical_s_matrix_probability(q1, n2, phase, m, "classical") for m in ms])
p_prim = np.array([classical_s_matrix_probability(q1, n2, phase, m, "primitive") for m in ms])
p_uni = np.array([classical_s_matrix_probability(q1, n2, phase, m, "uniform") for m in ms])
fig2, ax = plt.subplots(figsize=(9, 4.5))
ax.bar(ms, exact, color="0.8", label="exact quantum")
ax.plot(ms, p_cl, color="steelblue", ls="--", label="classical (no interference)")
ax.plot(ms, p_prim, "s", color="darkorange", ms=4, mfc="none", label="primitive classical S-matrix")
ax.plot(ms, p_uni, "o", color="firebrick", ms=3, label="uniform classical S-matrix")
ax.axvline(n2.min() - 0.5, color="k", lw=0.6, ls=":")
ax.axvline(n2.max() - 0.5, color="k", lw=0.6, ls=":")
ax.set_ylim(0, 0.1)
ax.set_xlabel(r"final state $m$")
ax.set_ylabel(r"$P_{20\to m}$")
ax.set_title("Miller's classical S-matrix for a forced oscillator")
ax.legend(fontsize=8)
fig2.tight_layout()
plt.show()
allowed = (ms > n2.min() - 0.5) & (ms < n2.max() - 0.5)
interior = (ms > n2.min() + 4) & (ms < n2.max() - 4)
print(f"max |uniform - exact| in allowed range: {np.max(np.abs(p_uni - exact)[allowed]):.2e}")
print(f"max |primitive - exact| away from rainbows: {np.max(np.abs(p_prim - exact)[interior]):.2e}")
print(f"max |classical - exact| away from rainbows: {np.max(np.abs(p_cl - exact)[interior]):.2e}")

max |uniform - exact| in allowed range: 7.51e-05
max |primitive - exact| away from rainbows: 1.48e-03
max |classical - exact| away from rainbows: 2.59e-02
Check#
Two roots per allowed final state, the uniform result matches the exact quantum probabilities, the primitive one matches away from the rainbows, and the classical one misses the interference.
Total running time of the script: (0 minutes 1.405 seconds)