Skip to content

Imaginary-Time Projection Notebook

This notebook guide turns imaginary-time evolution into a controlled ground-state algorithm. A finite-difference harmonic oscillator supplies a sparse Hamiltonian, exact continuum energies, and a trusted discrete eigensolver benchmark. A deliberately contaminated trial state makes the decay of excited components measurable rather than merely visible.

The operator-semigroup and finite-temperature meaning of

e−τH/ℏe^{-\tau H/\hbar}

belongs to Imaginary Time, while Euclidean and Imaginary-Time Path Integrals owns its kernel and path-integral representation. This page owns the deterministic numerical workflow: apply the damping operator, normalize after every step, diagnose convergence, compare with exact diagonalization, and expose the overlap and symmetry conditions under which projection fails.

The notebook should demonstrate that:

  • normalized imaginary-time evolution selects the lowest-energy component present in the trial state;
  • the spectral gap and initial overlaps determine the convergence rate;
  • per-step normalization prevents underflow but does not create missing ground-state overlap;
  • an exponential-action method and an implicit approximation have different time-step errors;
  • exact diagonalization validates the projection on the same discrete Hamiltonian;
  • grid error, finite-box error, projection error, and time-step error must be reported separately;
  • energy convergence alone is weaker than fidelity, residual, variance, and symmetry checks.

The algorithm finds the ground state of the discretized problem. Agreement with the continuum ground state is a second question requiring spatial convergence.

Let

H∣n⟩=En∣n⟩,E0≤E1≤E2≤⋯ ,H\lvert n\rangle = E_n\lvert n\rangle, \qquad E_0\le E_1\le E_2\le\cdots,

and expand a trial state as

∣ψtr⟩=∑ncn∣n⟩.\lvert\psi_{\rm tr}\rangle = \sum_n c_n\lvert n\rangle.

Unnormalized imaginary-time evolution gives

∣ϕ(τ)⟩=e−τH/ℏ∣ψtr⟩=∑ncne−Enτ/ℏ∣n⟩.\lvert\phi(\tau)\rangle = e^{-\tau H/\hbar} \lvert\psi_{\rm tr}\rangle = \sum_n c_n e^{-E_n\tau/\hbar} \lvert n\rangle.

If c0≠0c_0\ne0 and the ground state is nondegenerate, the normalized state

∣ψ(τ)⟩=∣ϕ(τ)⟩∥ϕ(τ)∥\lvert\psi(\tau)\rangle = \frac{ \lvert\phi(\tau)\rangle }{ \lVert\phi(\tau)\rVert }

approaches ∣0⟩\lvert0\rangle. Factoring out the ground energy makes the rate explicit:

∣ϕ(τ)⟩=e−E0τ/ℏ[c0∣0⟩+∑n>0cne−(En−E0)τ/ℏ∣n⟩].\lvert\phi(\tau)\rangle = e^{-E_0\tau/\hbar} \left[ c_0\lvert0\rangle + \sum_{n\gt0} c_n e^{-(E_n-E_0)\tau/\hbar} \lvert n\rangle \right].

The overall factor disappears under normalization. The relative excited amplitudes do not:

cn(τ)c0(τ)=cnc0e−(En−E0)τ/ℏ.\frac{c_n(\tau)}{c_0(\tau)} = \frac{c_n}{c_0} e^{-(E_n-E_0)\tau/\hbar}.

For a fixed step Δτ\Delta\tau, define

G=exp⁡[−Δτℏ(H−ErefI)].G = \exp\left[ - \frac{\Delta\tau}{\hbar} (H-E_{\rm ref}I) \right].

Its eigenvalues are

gn=exp⁡[−Δτℏ(En−Eref)].g_n = \exp\left[ - \frac{\Delta\tau}{\hbar} (E_n-E_{\rm ref}) \right].

Repeated application of GG followed by normalization is a power method. The ground-state eigenvalue has the largest magnitude because E0E_0 is the smallest energy. The ratio

∣gng0∣=e−(En−E0)Δτ/ℏ\left\lvert \frac{g_n}{g_0} \right\rvert = e^{-(E_n-E_0)\Delta\tau/\hbar}

controls suppression per step. The reference energy changes the common scale of all gng_n but not their ratios.

This interpretation explains both success and failure. Projection cannot create a component in an eigenvector whose coefficient is exactly zero, and a small spectral gap makes convergence slow.

Use the dimensionless oscillator

ℏ=m=ω=1,\hbar=m=\omega=1,

with

H=−12d2dx2+12x2.H = - \frac12 \frac{d^2}{dx^2} + \frac12x^2.

The continuum energies are

En=n+12.E_n=n+\frac12.

Place NN interior points on [−L,L][-L,L]:

xj=−L+jh,h=2LN+1,j=1,…,N.x_j=-L+jh, \qquad h=\frac{2L}{N+1}, \qquad j=1,\ldots,N.

Impose homogeneous Dirichlet conditions at ±L\pm L. The centered second difference gives

(Hhψ)j=−ψj+1−2ψj+ψj−12h2+12xj2ψj.\begin{aligned} (H_h\psi)_j &= - \frac{ \psi_{j+1}-2\psi_j+\psi_{j-1} }{2h^2} \\ &\quad+ \frac12x_j^2\psi_j. \end{aligned}

Thus HhH_h is real symmetric and tridiagonal, with

(Hh)jj=1h2+12xj2(H_h)_{jj} = \frac{1}{h^2} + \frac12x_j^2

and

(Hh)j,j±1=−12h2.(H_h)_{j,j\pm1} = - \frac{1}{2h^2}.

The boundary condition and finite box are part of the discrete model. They must be identical in the projector and eigensolver routes.

If an array stores samples ψ(xj)\psi(x_j), the continuum norm is approximated by

∥ψ∥h2=h∑j∣ψj∣2.\lVert\psi\rVert_h^2 = h\sum_j\lvert\psi_j\rvert^2.

A standard matrix eigensolver instead normalizes vectors with

v†v=1.v^\dagger v=1.

These conventions are reconciled by storing weighted samples

qj=h ψ(xj).q_j=\sqrt h\,\psi(x_j).

Then

q†q≈∫dx ∣ψ(x)∣2.q^\dagger q \approx \int dx\,\lvert\psi(x)\rvert^2.

Because h\sqrt h is a constant factor on a uniform grid, the same matrix HhH_h acts on qq. Choose either convention and use it everywhere. Mixing them produces incorrect overlaps and wavefunction amplitudes even when eigenvalues look correct.

Let φ0\varphi_0, φ1\varphi_1, and φ2\varphi_2 be the first three normalized continuum oscillator wavefunctions. Use

ψtr(x)=φ0(x)+aφ1(x)+bφ2(x)1+a2+b2,\psi_{\rm tr}(x) = \frac{ \varphi_0(x) +a\varphi_1(x) +b\varphi_2(x) }{ \sqrt{1+a^2+b^2} },

with real

a=0.8,b=0.5.a=0.8, \qquad b=0.5.

Sample this state on the grid and normalize it with the chosen discrete convention. In the continuum benchmark, its initial ground-state fidelity is

F0(0)=11+a2+b2≈0.52910.F_0(0) = \frac{1}{1+a^2+b^2} \approx 0.52910.

The trial state contains substantial odd and even excited contamination, so both parity sectors are tested.

After factoring out the ground-state damping, the three amplitudes are proportional to

1,ae−ωτ,be−2ωτ.1, \qquad ae^{-\omega\tau}, \qquad be^{-2\omega\tau}.

The exact continuum ground-state fidelity is

F0(τ)=11+a2e−2ωτ+b2e−4ωτ.F_0(\tau) = \frac{ 1 }{ 1 +a^2e^{-2\omega\tau} +b^2e^{-4\omega\tau} }.

The excited-state contamination is

Pexc(τ)=1−F0(τ).P_{\rm exc}(\tau) = 1-F_0(\tau).

The energy error is

E(τ)−E0ℏω=a2e−2ωτ+2b2e−4ωτ1+a2e−2ωτ+b2e−4ωτ.\begin{aligned} \frac{ E(\tau)-E_0 }{ \hbar\omega } &= \frac{ a^2e^{-2\omega\tau} +2b^2e^{-4\omega\tau} }{ 1 +a^2e^{-2\omega\tau} +b^2e^{-4\omega\tau} }. \end{aligned}

At late time, the n=1n=1 term dominates:

Pexc(τ)∼a2e−2ωτ.P_{\rm exc}(\tau) \sim a^2e^{-2\omega\tau}.

This gives a predicted logarithmic slope of −2ω-2\omega. The discrete eigensystem supplies a slightly different gap and overlap, allowing the notebook to separate continuum discretization error from projector error.

For each step, compute

∣ψ~k+1⟩=exp⁡[−Δτℏ(Hh−ErefI)]∣ψk⟩.\lvert\widetilde\psi_{k+1}\rangle = \exp\left[ - \frac{\Delta\tau}{\hbar} (H_h-E_{\rm ref}I) \right] \lvert\psi_k\rangle.

Record the pre-normalization scale

sk=∥ψ~k+1∥,s_k = \lVert \widetilde\psi_{k+1} \rVert,

then normalize:

∣ψk+1⟩=∣ψ~k+1⟩sk.\lvert\psi_{k+1}\rangle = \frac{ \lvert\widetilde\psi_{k+1}\rangle }{ s_k }.

Normalization prevents exponential underflow and keeps diagnostics on a stable scale. It does not change the relative eigenstate damping.

For an exact exponential action, changing a constant ErefE_{\rm ref} changes only the discarded normalization factor. For an approximate step, the shift can change truncation error, so it must be recorded.

Near convergence to an eigenstate, the recorded scale estimates the energy:

E0≈Eref−ℏΔτlog⁡sk.E_0 \approx E_{\rm ref} - \frac{\hbar}{\Delta\tau} \log s_k.

Compare this estimate with the Rayleigh quotient and exact diagonalization. Agreement among them is a useful implementation check.

The preferred projection route applies the matrix exponential to a vector without forming the dense matrix exponential:

ψ~=expm_multiply⁡[−Δτℏ(Hh−ErefI),ψ].\widetilde\psi = \operatorname{expm\_multiply} \left[ - \frac{\Delta\tau}{\hbar} (H_h-E_{\rm ref}I), \psi \right].

For a sparse tridiagonal HhH_h, an exponential-action algorithm uses matrix-vector products and adaptive polynomial information internally. It preserves the exact imaginary-time map up to the action algorithm’s numerical tolerance, so the user-selected normalization interval is not a first-order time discretization.

Validate this route on a smaller grid by comparing it with the spectral expression

ψ(Δτ)=∑ne−(En−Eref)Δτ/ℏvn⟨vn∣ψ(0)⟩,\psi(\Delta\tau) = \sum_n e^{-(E_n-E_{\rm ref})\Delta\tau/\hbar} v_n \langle v_n\vert\psi(0)\rangle,

constructed from a full dense eigendecomposition.

A backward-Euler step is

[I+Δτℏ(Hh−ErefI)]ψ~k+1=ψk.\left[ I+ \frac{\Delta\tau}{\hbar} (H_h-E_{\rm ref}I) \right] \widetilde\psi_{k+1} = \psi_k.

For an energy eigencomponent, its amplification factor is

gnBE=11+Δτ(En−Eref)/ℏ.g_n^{\rm BE} = \frac{ 1 }{ 1+\Delta\tau(E_n-E_{\rm ref})/\hbar }.

With a safe shift, high-energy components are strongly damped. The method is first-order accurate in Δτ\Delta\tau, so repeat it with smaller steps and compare against exponential action.

Forward Euler gives

ψ~k+1=[I−Δτℏ(Hh−ErefI)]ψk.\widetilde\psi_{k+1} = \left[ I- \frac{\Delta\tau}{\hbar} (H_h-E_{\rm ref}I) \right] \psi_k.

Its amplification factor is

gnFE=1−Δτℏ(En−Eref).g_n^{\rm FE} = 1- \frac{\Delta\tau}{\hbar} (E_n-E_{\rm ref}).

High finite-difference energies scale as h−2h^{-2}, making this method severely step-size restricted. Include it only as a controlled failure demonstration. Per-step renormalization can hide its explosive high-mode amplification while the state converges to the wrong vector.

Compute the lowest several eigenpairs of the same HhH_h:

Hhvn(h)=En(h)vn(h).H_hv_n^{(h)} = E_n^{(h)}v_n^{(h)}.

Validate:

∥Hhvn(h)−En(h)vn(h)∥\lVert H_hv_n^{(h)} - E_n^{(h)}v_n^{(h)} \rVert

and

(vm(h))†vn(h)≈δmn.\left( v_m^{(h)} \right)^\dagger v_n^{(h)} \approx \delta_{mn}.

Also compare low energies with

En=n+12.E_n=n+\frac12.

Projection fidelity must first be measured against v0(h)v_0^{(h)}, the exact ground vector of the discrete matrix. Only after projection has converged should v0(h)v_0^{(h)} and E0(h)E_0^{(h)} be compared with their continuum targets under box and grid refinement.

For a real symmetric matrix, use a Hermitian sparse eigensolver and request the smallest algebraic eigenvalues. Check residuals explicitly; a solver status alone is not a validation record.

For a normalized state, define the Rayleigh quotient

Eψ=⟨ψ∣Hh∣ψ⟩.E_\psi = \langle\psi\vert H_h\vert\psi\rangle.

The energy variance is

σH2=⟨Hh2⟩−⟨Hh⟩2=∥(Hh−Eψ)ψ∥2.\begin{aligned} \sigma_H^2 &= \langle H_h^2\rangle - \langle H_h\rangle^2 \\ &= \left\lVert (H_h-E_\psi)\psi \right\rVert^2. \end{aligned}

Thus the variance is also the squared eigenpair residual. It vanishes for any exact eigenstate, not only the ground state. Combine it with energy and symmetry information.

For continuously normalized imaginary-time flow,

∂∂τ∣ψ⟩=−1ℏ(H−⟨H⟩)∣ψ⟩,\frac{\partial}{\partial\tau} \lvert\psi\rangle = - \frac{1}{\hbar} \left( H-\langle H\rangle \right) \lvert\psi\rangle,

one finds

dEψdτ=−2ℏσH2≤0.\frac{dE_\psi}{d\tau} = - \frac{2}{\hbar} \sigma_H^2 \le0.

The exact normalized energy is monotone. A numerical increase beyond tolerance indicates a step, solver, normalization, or inner-product problem.

With the discrete ground vector available, compute

F0(h)(τ)=∣(v0(h))†ψ(τ)∣2.F_0^{(h)}(\tau) = \left\lvert \left( v_0^{(h)} \right)^\dagger \psi(\tau) \right\rvert^2.

For wavefunction plots, align the arbitrary phase:

eiθ=(v0(h))†ψ∣(v0(h))†ψ∣.e^{i\theta} = \frac{ \left( v_0^{(h)} \right)^\dagger\psi }{ \left\lvert \left( v_0^{(h)} \right)^\dagger\psi \right\rvert }.

Then compare ψ\psi with eiθv0(h)e^{i\theta}v_0^{(h)}. For a real calculation this reduces to a sign choice. Comparing signed arrays without alignment can report a large error for physically identical eigenvectors.

The oscillator ground state is even. An exactly odd trial state obeys

⟨0∣ψodd⟩=0.\langle0\vert\psi_{\rm odd}\rangle=0.

Because HhH_h preserves parity on a symmetric grid, imaginary-time evolution remains in the odd sector and approaches the lowest odd state, v1(h)v_1^{(h)}, rather than the global ground state.

Run three trials:

  1. the mixed state with a=0.8a=0.8 and b=0.5b=0.5;
  2. an even state with a=0a=0, whose leading contamination is n=2n=2;
  3. the odd state φ1\varphi_1, which has zero ground overlap.

The even trial should converge faster because its first allowed gap is E2−E0E_2-E_0. The odd trial should have vanishing ground fidelity while its energy and variance converge cleanly to the first excited state.

Floating-point or solver errors can leak a tiny even component into an intended odd calculation. At very long imaginary time, that tiny lower-energy component may eventually dominate. If projection is meant to stay in a symmetry sector, enforce or monitor the symmetry explicitly.

If the ground energy is degenerate, normalized projection approaches the normalized projection of the trial state onto the ground eigenspace. It does not select a unique basis vector inside that subspace.

To target an excited state, project out already known lower states after every step:

ψ←ψ−∑r=0k−1∣vr⟩⟨vr∣ψ⟩,\psi \leftarrow \psi - \sum_{r=0}^{k-1} \lvert v_r\rangle \langle v_r\vert\psi\rangle,

then renormalize. This is an extension, not part of the baseline ground-state algorithm. Orthogonalization errors and near-degeneracy require additional care.

Use

L=8,N=800,Δτ=0.1,τmax⁡=8.L=8, \qquad N=800, \qquad \Delta\tau=0.1, \qquad \tau_{\max}=8.

Take Eref=0E_{\rm ref}=0 for the positive oscillator Hamiltonian. Record diagnostics at every step and store a smaller set of states for plots.

For the continuum three-level benchmark,

Pexc(8)≈0.82e−16≈7.2×10−8.P_{\rm exc}(8) \approx 0.8^2e^{-16} \approx 7.2\times10^{-8}.

The finite-difference result should approach the corresponding discrete prediction based on measured overlaps and gaps. It should not be forced to equal the continuum number before spatial refinement.

Organize the notebook into these stages:

  1. define physical and grid parameters;
  2. build the sparse tridiagonal HhH_h with explicit boundary conditions;
  3. check symmetry and Hermiticity;
  4. compute several lowest eigenpairs and validate residuals;
  5. construct and discretely normalize the mixed trial state;
  6. measure its eigenbasis overlaps;
  7. apply exponential-action projection and normalize every step;
  8. record pre-normalization scales, energy, variance, residual, parity, and fidelity;
  9. compare contamination with analytic continuum and discrete spectral predictions;
  10. repeat with backward Euler and step refinement;
  11. run the even and odd symmetry trials;
  12. refine box, grid, and projection parameters separately;
  13. run assertions before producing plots.

Record package versions, sparse formats, eigensolver settings, exponential-action options, random seeds for random trial states, and all tolerances.

The minimum validation suite is:

CheckTarget
Hamiltonianreal symmetric with the intended Dirichlet boundary condition
Eigensolverlow eigenpair residuals and orthonormality pass
Continuum spectrumlow En(h)E_n^{(h)} approach n+1/2n+1/2 under spatial refinement
Initial overlapmeasured F0(h)(0)F_0^{(h)}(0) agrees with the sampled trial state
Per-step normnormalized state has unit norm in the declared convention
Shift invarianceexact-action normalized states agree for different constant ErefE_{\rm ref}
Energy monotonicityEψ(τ)E_\psi(\tau) does not increase beyond tolerance
VarianceσH2\sigma_H^2 approaches zero
FidelityF0(h)F_0^{(h)} approaches one for the mixed trial
Decay ratelate-time contamination slope matches the lowest populated gap
Norm-ratio energyagrees with Rayleigh quotient near convergence
Backward Eulerconverges to exponential action as Δτ\Delta\tau decreases
Odd trialapproaches the first odd state, not the ground state
Spatial convergencebox enlargement and grid refinement are tested separately

Do not stop only because successive energies differ by a small amount. A biased integrator can plateau, and a symmetry-restricted excited state can have a stable energy.

Separate four limits:

  1. Projection time. Increase τmax⁡\tau_{\max} at fixed method and discrete Hamiltonian.
  2. Projection step. Refine Δτ\Delta\tau for backward or forward Euler. Exponential action should be insensitive to normalization interval up to algorithmic tolerance.
  3. Grid spacing. Increase NN at fixed LL and verify the expected second-order finite-difference regime.
  4. Box size. Increase LL at approximately fixed hh and monitor boundary amplitude.

The highest discrete energy grows like h−2h^{-2}. Forward-Euler stability therefore becomes more restrictive as the spatial grid is refined. A time step that worked on a coarse grid is not automatically valid on a fine one.

Plot contamination, energy error, and variance on logarithmic scales. Report where each quantity reaches a discretization or floating-point floor.

For the mixed baseline state:

  • the initial discrete ground fidelity is close to 0.52910.5291;
  • energy decreases monotonically toward E0(h)E_0^{(h)};
  • excited contamination follows the measured spectral-gap prediction;
  • the late-time log slope approaches −2(E1(h)−E0(h))/ℏ-2(E_1^{(h)}-E_0^{(h)})/\hbar;
  • fidelity reaches approximately 1−7×10−81-7\times10^{-8} by τ=8\tau=8 before other errors are considered;
  • energy variance and eigenpair residual approach zero;
  • the projected state agrees with the discrete ground eigenvector after phase alignment;
  • the even trial converges with the larger even-sector gap;
  • the odd trial converges to the first excited state and never acquires ground overlap in the symmetry-preserving calculation;
  • backward Euler approaches exponential action under step refinement;
  • continuum agreement improves only under box and grid refinement.
  • Assuming normalization creates ground overlap. It rescales existing components only.
  • Comparing the projector directly with the continuum state before validating the discrete ground state.
  • Mixing Euclidean and ordinary vector normalization on the coordinate grid.
  • Renormalizing without recording the pre-normalization scale. This discards an energy diagnostic.
  • Using forward Euler with a step chosen independently of the highest grid energy.
  • Calling backward Euler exact because it is stable. It has first-order step error.
  • Forming a dense matrix exponential for a large sparse Hamiltonian. Apply the exponential to the vector.
  • Using energy change as the only stopping criterion. Check variance, residual, fidelity, and symmetry.
  • Ignoring parity. An odd trial state correctly projects to the lowest odd state.
  • Breaking a symmetry accidentally and interpreting late-time sector leakage as physical.
  • Using a reference-energy shift without recording it. Approximate propagators can depend on the shift.
  • Refining NN while keeping an unstable explicit imaginary-time step.
  • Treating a degenerate ground space as a unique eigenvector.
  • Project the quartic oscillator ground state and compare with sparse diagonalization.
  • Target the first few excited states by repeated orthogonalization.
  • Compare exponential action with a symmetric split-operator imaginary-time step.
  • Use inverse iteration or shift-invert eigensolvers and compare convergence mechanisms.
  • Project within a fixed parity sector using an explicit symmetry projector.
  • Continue from pure-state projection to thermal traces and Euclidean correlation functions.
  • D. J. Tannor, Introduction to Quantum Mechanics: A Time-Dependent Perspective, University Science Books, 2007.
  • J. M. Thijssen, Computational Physics, 2nd ed., Cambridge University Press, 2007.
  • Y. Saad, Numerical Methods for Large Eigenvalue Problems, 2nd ed., Society for Industrial and Applied Mathematics, 2011.
  • A. H. Al-Mohy and N. J. Higham, “Computing the Action of the Matrix Exponential, with an Application to Exponential Integrators,” SIAM Journal on Scientific Computing 33, 488–511 (2011), doi:10.1137/100788860.
  • SciPy Developers, expm_multiply documentation, consulted for sparse exponential action.
  • SciPy Developers, eigsh documentation, consulted for Hermitian sparse eigenvalue settings and residual validation.

For the three-level trial state, derive F0(τ)F_0(\tau) and the energy error.

Solution

After removing the common ground factor, the unnormalized amplitudes are

1,ae−ωτ,be−2ωτ.1, \qquad ae^{-\omega\tau}, \qquad be^{-2\omega\tau}.

The squared norm is proportional to

D(τ)=1+a2e−2ωτ+b2e−4ωτ.D(\tau) = 1+a^2e^{-2\omega\tau} +b^2e^{-4\omega\tau}.

The normalized ground probability is therefore

F0(τ)=1D(τ).F_0(\tau) = \frac{1}{D(\tau)}.

Using E1−E0=ℏωE_1-E_0=\hbar\omega and E2−E0=2ℏωE_2-E_0=2\hbar\omega,

E(τ)−E0ℏω=a2e−2ωτ+2b2e−4ωτD(τ).\frac{E(\tau)-E_0}{\hbar\omega} = \frac{ a^2e^{-2\omega\tau} +2b^2e^{-4\omega\tau} }{ D(\tau) }.

For normalized imaginary-time flow, derive dE/dτ=−2σH2/ℏdE/d\tau=-2\sigma_H^2/\hbar.

Solution

The normalized flow and its adjoint are

∣ψ˙⟩=−1ℏ(H−E)∣ψ⟩,\lvert\dot\psi\rangle = - \frac{1}{\hbar} (H-E)\lvert\psi\rangle,

and

⟨ψ˙∣=−1ℏ⟨ψ∣(H−E).\langle\dot\psi\rvert = - \frac{1}{\hbar} \langle\psi\rvert(H-E).

For time-independent HH,

E˙=⟨ψ˙∣H∣ψ⟩+⟨ψ∣H∣ψ˙⟩=−2ℏ⟨ψ∣(H−E)H∣ψ⟩=−2ℏ(⟨H2⟩−E2)=−2ℏσH2.\begin{aligned} \dot E &= \langle\dot\psi\vert H\vert\psi\rangle + \langle\psi\vert H\vert\dot\psi\rangle \\ &= - \frac{2}{\hbar} \langle\psi\vert (H-E)H \vert\psi\rangle \\ &= - \frac{2}{\hbar} \left( \langle H^2\rangle-E^2 \right) \\ &= - \frac{2}{\hbar}\sigma_H^2. \end{aligned}

Assume the normalized state has converged to an exact eigenstate. Derive the estimate from sks_k.

Solution

For H∣n⟩=En∣n⟩H\lvert n\rangle=E_n\lvert n\rangle,

ψ~k+1=e−Δτ(En−Eref)/ℏ∣n⟩.\widetilde\psi_{k+1} = e^{-\Delta\tau(E_n-E_{\rm ref})/\hbar} \lvert n\rangle.

Its norm is

sk=e−Δτ(En−Eref)/ℏ.s_k = e^{-\Delta\tau(E_n-E_{\rm ref})/\hbar}.

Taking the logarithm gives

En=Eref−ℏΔτlog⁡sk.E_n = E_{\rm ref} - \frac{\hbar}{\Delta\tau} \log s_k.

Before convergence, the norm combines several spectral components and the expression is only an effective-energy diagnostic.

Why does an odd trial state converge to the first excited oscillator state rather than the ground state?

Solution

The ground state is even, so its overlap with an odd trial state vanishes. The symmetric oscillator Hamiltonian commutes with parity, and imaginary-time evolution preserves the odd subspace. Within that subspace the lowest energy belongs to the n=1n=1 state. Projection therefore suppresses higher odd states relative to n=1n=1 but cannot generate an even ground-state component.

Let the shifted discrete energies satisfy 0≤En−Eref≤Λ0\le E_n-E_{\rm ref}\le\Lambda. Find a condition ensuring that every forward-Euler amplification factor has magnitude at most one.

Solution

For

gn=1−Δτℏ(En−Eref),g_n = 1- \frac{\Delta\tau}{\hbar} (E_n-E_{\rm ref}),

the condition ∣gn∣≤1\lvert g_n\rvert\le1 requires

−1≤1−Δτℏ(En−Eref)≤1.-1 \le 1- \frac{\Delta\tau}{\hbar} (E_n-E_{\rm ref}) \le 1.

The upper bound is automatic for nonnegative shifted energies. The lower bound at the largest energy gives

Δτ≤2ℏΛ.\Delta\tau \le \frac{2\hbar}{\Lambda}.

Because Λ\Lambda grows like h−2h^{-2} for a finite-difference Hamiltonian, the allowed explicit step shrinks like h2h^2.

6. Separate projection and discretization error

Section titled “6. Separate projection and discretization error”

Design a test showing that a projected state has converged to the discrete ground state even if the discrete ground energy has not converged to the continuum value.

Solution

At fixed LL and NN, compute v0(h)v_0^{(h)} and E0(h)E_0^{(h)} by exact diagonalization. Run projection until the fidelity with v0(h)v_0^{(h)} is near one and the residual with HhH_h is below tolerance. This establishes projection convergence for that matrix. Then repeat the entire matrix construction at larger LL and smaller hh. Changes in E0(h)E_0^{(h)} and the phase-aligned wavefunction now measure spatial discretization and box error, not incomplete imaginary-time projection.