Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    After a sudden change of Hamiltonian, a simple quantum state develops amplitudes and phases that a small variational family may not represent. Real-time variational evolution follows the part of the Schrödinger velocity available within that family. It therefore needs three separate checks: how much velocity is discarded, how accurately the resulting differential equation is integrated, and how accurately any sampled matrix and force are estimated.

    We derive this projection and apply it to a six-spin quench. The calculation includes a locally complete symmetry sector as a control, smaller neural-feature manifolds, and actual sampling of the variational force. Small energy drift will prove insufficient to establish accurate dynamics.

    Preparation: Neural wavefunctions, the quantum geometric tensor and complex inner products.

    A quench with a known reference

    Use Pauli matrices, with eigenvalues ±1\pm1, on a periodic chain of six sites:

    H=−∑j=05ZjZj+1−0.8∑j=05Xj,Z6=Z0.(1)H=-\sum_{j=0}^{5}Z_jZ_{j+1}-0.8\sum_{j=0}^{5}X_j, \qquad Z_6=Z_0. \tag{1}

    Each of the six bonds occurs once. Time is measured in inverse units of the Ising coupling, and ℏ=1\hbar=1. The initial state is

    ∣ψ(0)⟩=∣+x⟩⊗6,ψ(0;σ)=18.(2)|\psi(0)\rangle=|+x\rangle^{\otimes6},\qquad \psi(0;\sigma)=\frac18. \tag{2}

    It is the ground state of the initial noninteracting Hamiltonian −∑jXj-\sum_jX_j. At t=0t=0 we replace that Hamiltonian by (1), so the post-quench energy is −4.8-4.8. We enumerate all 64 configurations in this teaching calculation; exact diagonalization supplies the reference e−iHtψ(0)e^{-iHt}\psi(0). It is not used to alter the variational equation or tune its parameters.

    Translation and the global flip σ↦−σ\sigma\mapsto-\sigma commute with HH. Their action partitions the configurations into eight orbits. A wavefunction invariant under both transformations consequently has eight complex amplitudes, or seven projective coordinates after removing its overall scale and phase.

    Generate 16 fixed real hidden features, average each over translations and global flip, and subtract its uniform mean:

    aj(σ)=112∑r=05∑ϵ=±1tanh⁡ ⁣(bj+ϵ wj⋅Trσ)−⟨112∑r,ϵtanh⁡ ⁣(bj+ϵ wj⋅Trσ)⟩0.(3)a_j(\sigma)=\frac1{12} \sum_{r=0}^{5}\sum_{\epsilon=\pm1} \tanh\!\left(b_j+\epsilon\,w_j\cdot T^r\sigma\right) -\left\langle\frac1{12}\sum_{r,\epsilon} \tanh\!\left(b_j+\epsilon\,w_j\cdot T^r\sigma\right)\right\rangle_0. \tag{3}

    Here ⟨⋅⟩0\langle\cdot\rangle_0 is the uniform configuration average. A singular-value decomposition gives seven independent columns in the retained draw. Rescale them to real features fif_i satisfying ⟨fi⟩0=0\langle f_i\rangle_0=0 and ⟨fifj⟩0=δij\langle f_if_j\rangle_0=\delta_{ij}. This fixed coordinate choice also specifies what a later numerical metric cutoff means.

    For K=2,4,7K=2,4,7, define

    Ψθ(σ)=exp⁡ ⁣[∑i=1Kθifi(σ)],ψθ=Ψθ∑σ∣Ψθ(σ)∣2,θi∈C.(4)\Psi_\theta(\sigma)=\exp\!\left[\sum_{i=1}^K\theta_i f_i(\sigma)\right], \qquad \psi_\theta=\frac{\Psi_\theta}{\sqrt{\sum_\sigma|\Psi_\theta(\sigma)|^2}}, \qquad \theta_i\in\mathbb C. \tag{4}

    Only the complex output coefficients evolve; the hidden weights and the features remain fixed. Thus this is a neural-feature variational manifold, not a simulation in which an entire network is retrained at every time. The unnormalized amplitude is holomorphic in θ\theta; normalization also depends on θ∗\theta^*. The initial state is represented exactly by θ=0\theta=0.

    The K=7K=7 family is locally complete in this eight-orbit sector wherever every orbit amplitude is nonzero. Finite exponential coordinates cannot represent a node. We therefore monitor small probabilities and metric ranks rather than treating completeness as a global statement valid through arbitrary zeros.

    Project the Schrödinger velocity

    Let E=⟨ψ∣H∣ψ⟩E=\langle\psi|H|\psi\rangle, and remove the physically irrelevant component parallel to ψ\psi. The projective Schrödinger velocity is

    vSch=−i(H−E)ψ.(5)v_{\rm Sch}=-i(H-E)\psi. \tag{5}

    For the real features in (4), the horizontal tangent columns are

    Ti=(fi−⟨fi⟩)ψ.T_i=(f_i-\langle f_i\rangle)\psi.

    Minimizing ∥vSch−Tθ˙∥2\|v_{\rm Sch}-T\dot\theta\|^2 over complex velocities gives the normal equations

    Sθ˙=−iF,Sij=⟨Ti∣Tj⟩,Fi=⟨Ti∣(H−E)ψ⟩.(6)S\dot\theta=-iF,\qquad S_{ij}=\langle T_i|T_j\rangle,\qquad F_i=\langle T_i|(H-E)\psi\rangle. \tag{6}

    The sign follows from i∂tψ=Hψi\partial_t\psi=H\psi. This is the real-time time-dependent variational principle, in contrast to the imaginary-time descent obtained by replacing −i-i with −1-1. See Carleo–Troyer, Appendix B, Eqs. (9)–(11) and Vicentini et al., §4.3, Eq. (37).

    For nonzero amplitudes, divide by ψ(σ)\psi(\sigma) and use the Born probabilities pθ=∣ψθ∣2p_\theta=|\psi_\theta|^2:

    Sij=⟨(fi−⟨fi⟩)(fj−⟨fj⟩)⟩,Fi=⟨(fi−⟨fi⟩)(Eloc−E)⟩,Eloc=Hψψ.(7)\begin{aligned} S_{ij}&=\langle(f_i-\langle f_i\rangle)(f_j-\langle f_j\rangle)\rangle,\\ F_i&=\langle(f_i-\langle f_i\rangle)(E_{\rm loc}-E)\rangle, \qquad E_{\rm loc}=\frac{H\psi}{\psi}. \end{aligned} \tag{7}

    For general complex log derivatives the first factor is conjugated. Equation (7) is convenient for sampling, but the direct tangent formula (6) states the geometry without dividing by a possibly vanishing amplitude. Moving nodes can make a naive local-estimator formula incomplete; the fermionic-state discussion develops that distinction.

    The matrix SS is positive semidefinite. A parameter that only changes the normalization or overall phase has zero horizontal tangent, so redundant coordinates give null directions. A pseudoinverse selects a minimum-coordinate-norm solution after a coordinate convention is fixed:

    θ˙=−iS+F,rproj=−i(H−E)ψ−Tθ˙.(8)\dot\theta=-iS^+F,\qquad r_{\rm proj}=-i(H-E)\psi-T\dot\theta. \tag{8}

    With the exact untruncated pseudoinverse,

    ∥rproj∥2=⟨(H−E)2⟩−F†S+F.(9)\|r_{\rm proj}\|^2 =\langle(H-E)^2\rangle-F^\dagger S^+F. \tag{9}

    This is a distance between Hilbert-space velocities, not an energy residual for a stationary state. The companion verifies it using the full 64-component vectors and independently checks the covariance expressions and complex directional derivatives.

    The fixed numerical rule discards eigenvalues below 10−10λmax⁡(S)10^{-10}\lambda_{\max}(S). A discarded direction changes the accessible projected velocity, so its force component and retained rank are recorded. The nine unshifted trajectories retain their full intended ranks throughout all Runge–Kutta stages.

    Conservation does not certify a trajectory

    For a time-independent Hermitian HH and the exact variational differential equation,

    dEdt=2Re⁡ ⁣(F†θ˙)=2Re⁡ ⁣[−iF†S+F]=0.(10)\frac{dE}{dt}=2\operatorname{Re}\!\left(F^\dagger\dot\theta\right) =2\operatorname{Re}\!\left[-iF^\dagger S^+F\right]=0. \tag{10}

    The quadratic expression is real because S+S^+ is Hermitian. This proves conservation along the projected motion, even when the discarded Schrödinger velocity is large. Normalization is enforced by (4), so norm conservation supplies even less information here.

    A diagonal shift illustrates another limitation. Replacing S+S^+ by (S+ηI)−1(S+\eta I)^{-1} changes the motion. Yet the same reality argument still conserves energy for a Hermitian shifted inverse. It is therefore possible to change the physical correlators while improving an energy-drift diagnostic. The change is a modeling choice for the variational dynamics, not merely an innocuous linear-system implementation [2, §3.5.2].

    There is also a representation obstruction before any numerical integration. If all parameters and amplitudes are constrained to remain real and HH is real, the real-parameter least-squares equation is

    Re⁡S θ˙=Im⁡F=0.\operatorname{Re}S\,\dot\theta=\operatorname{Im}F=0.

    The initial positive state then does not move under this real-manifold projection. Exact evolution creates relative phases immediately. A complex phase tangent is essential.

    Separate manifold size from time-step error

    We evolve to t=2t=2 using fourth-order Runge–Kutta with fixed steps h=0.04,0.02,0.01h=0.04,0.02,0.01 for each KK. The primary trajectory is K=4,h=0.01K=4,h=0.01. All runs finish without clipping amplitudes or increasing a budget. At the common observation times the finest-step results are:

    Coordinates KKFinal infidelityLargest projection defectLargest energy drift
    20.317370.317372.49802.49802.90×10−72.90\times10^{-7}
    40.123000.123001.27071.27077.43×10−77.43\times10^{-7}
    71.78×10−131.78\times10^{-13}1.13×10−131.13\times10^{-13}7.49×10−77.49\times10^{-7}

    Infidelity means 1−∣⟨ψexact∣ψθ⟩∣21-|\langle\psi_{\rm exact}|\psi_\theta\rangle|^2. The projection defect is evaluated from the projected vector field at the saved states. It is not the full residual of a differentiable interpolation of the numerical Runge–Kutta path.

    This distinction is visible in the K=7K=7 control. Its projection defect is near roundoff at every step size, while final infidelity changes from 7.58×10−77.58\times10^{-7} at h=0.04h=0.04 to 5.08×10−115.08\times10^{-11} at h=0.02h=0.02 and 1.78×10−131.78\times10^{-13} at h=0.01h=0.01. Local representational completeness does not eliminate integration error.

    Conversely, reducing hh does not cure the K=4K=4 manifold error. An independent DOP853 integration of the same four-coordinate variational equation, with relative tolerance 10−1110^{-11} and absolute tolerance 10−1310^{-13}, differs from the primary Runge–Kutta trajectory by at most 3.00×10−73.00\times10^{-7} in the three monitored observables. That comparison isolates time integration; the final physical infidelity remains about 0.123.

    Define the translation-averaged observables

    X‾=16∑jXj,Cr=16∑jZjZj+r.(11)\overline X=\frac16\sum_jX_j,\qquad C_r=\frac16\sum_jZ_jZ_{j+r}. \tag{11}

    At t=2t=2 the actual values are:

    Evolution⟨X‾⟩\langle\overline X\rangle⟨C1⟩\langle C_1\rangle⟨C2⟩\langle C_2\rangle
    Exact unitary0.1036010.1036010.7171200.7171200.5689930.568993
    K=2K=2, h=0.01h=0.010.1452570.1452570.6837940.6837940.6850200.685020
    K=4K=4, h=0.01h=0.010.2042450.2042450.6366040.6366040.3465410.346541
    K=7K=7, h=0.01h=0.010.1036010.1036010.7171200.7171200.5689930.568993
    K=4K=4, η=0.01\eta=0.01, h=0.01h=0.010.1857720.1857720.6513820.6513820.3037070.303707

    More coordinates improve the final state overlap here, but not every individual correlator monotonically. The shifted trajectory has final infidelity 0.29616 even though its largest energy drift is only 1.06×10−71.06\times10^{-7}. Both comparisons warn against selecting dynamics by a conservation check alone.

    Exact and projected six-spin correlations, time-step effects on final infidelity, and sampled tangent-velocity errors.

    The same quench separates three questions. Exact and variational correlations test the manifold; step refinement tests the projected equation's integration; iid configuration draws test force estimation at fixed states. The sampled-force panel is not an error bar on a stochastic time trajectory.

    What the sampled force actually tells us

    At the five fixed times 0,0.5,1,1.5,20,0.5,1,1.5,2 of the primary trajectory, draw configurations independently from its enumerated Born distribution. For each time use sample sizes 256, 1024 and 4096, with 128 independent replicas. This is actual sampling, but it avoids Markov-chain autocorrelation so that a specific estimation question can be isolated.

    For nn draws, sample covariances with denominator n−1n-1 estimate SS and FF without bias under iid sampling and finite moments. The resulting velocity

    θ˙^=−i S^+F^(12)\widehat{\dot\theta}=-i\,\widehat S^{+}\widehat F \tag{12}

    is a nonlinear function of these estimates and need not be unbiased. At a fixed state measure its physical tangent error by

    ∥T(θ˙^−θ˙)∥2=(θ˙^−θ˙)†S(θ˙^−θ˙).(13)\|T(\widehat{\dot\theta}-\dot\theta)\|^2 =(\widehat{\dot\theta}-\dot\theta)^\dagger S(\widehat{\dot\theta}-\dot\theta). \tag{13}

    Use the exact enumerated SS in this diagnostic. The same draws also permit a paired comparison with exact SS and sampled FF. Joint noise need not worsen the result: fluctuations of S^\widehat S and F^\widehat F can cancel.

    SnapshotDrawsJoint S,FS,F tangent RMSExact SS, sampled FF RMS
    t=0t=02560.036560.036560.466140.46614
    t=0t=040960.008300.008300.103360.10336
    t=1t=12560.576660.576660.626600.62660
    t=1t=140960.141040.141040.137190.13719
    t=2t=22560.474440.474440.677030.67703
    t=2t=240960.134750.134750.168330.16833

    All retained snapshot metrics have rank 4 at the prescribed threshold. This is evidence for these draws, not a guarantee for different states or smaller samples. Increasing the sample count reduces the observed errors, but the direction of the joint-versus-force-only comparison depends on the state. The companion retains replica second-moment uncertainties as well as RMS values.

    No noisy trajectory was evolved. These results therefore quantify instantaneous estimation error, not accumulated sampling error over time. A stochastic evolution would additionally have to specify new draws, correlations between steps, regularization, and the interaction of sampling with its time integrator.

    When a residual gives a state-error bound

    For a differentiable normalized path ψ~(t)\widetilde\psi(t) with a specified physical phase, define its full residual

    R(t)=i∂tψ~(t)−Hψ~(t).(14)R(t)=i\partial_t\widetilde\psi(t)-H\widetilde\psi(t). \tag{14}

    Unitary propagation implies

    ∥ψ~(t)−ψexact(t)∥≤∥ψ~(0)−ψexact(0)∥+∫0t∥R(s)∥ ds.(15)\|\widetilde\psi(t)-\psi_{\rm exact}(t)\| \le\|\widetilde\psi(0)-\psi_{\rm exact}(0)\| +\int_0^t\|R(s)\|\,ds. \tag{15}

    For the normalized exponential state in (4), ⟨ψθ∣ψ˙θ⟩=iIm⁡(⟨f⟩⋅θ˙)\langle\psi_\theta|\dot\psi_\theta\rangle =i\operatorname{Im}(\langle f\rangle\cdot\dot\theta). Multiplying it by eiα(t)e^{i\alpha(t)} with

    α˙=−E−Im⁡(⟨f⟩⋅θ˙)(16)\dot\alpha=-E-\operatorname{Im}(\langle f\rangle\cdot\dot\theta) \tag{16}

    removes the parallel residual. For an exact solution of (8), ∥R∥=∥rproj∥\|R\|=\|r_{\rm proj}\|. For a numerical interpolation, however, its velocity need not equal the projected vector field. The extra integration defect must also be bounded. A set of small projection defects at saved nodes alone cannot be inserted into (15) as a certificate for the numerical trajectory.

    Summary

    Real-time variational evolution projects a complex Hilbert-space velocity, rather than minimizing energy at successive times. Its metric handles redundant directions; its residual measures missing tangent motion. The six-spin example separates this projection from time integration and from sampled force estimation. Conserved energy, a completed integrator and a stable sampled metric each answer only part of the accuracy question.

    Exercises

    1. Why a positive state cannot precess

    For one spin with H=ZH=Z, start from ∣+x⟩|+x\rangle and use Ψθ(σ)=eθσ\Psi_\theta(\sigma)=e^{\theta\sigma}, where σ=±1\sigma=\pm1. Compare a real-only parameter with a complex parameter. Derive the exact complex trajectory and ⟨X⟩\langle X\rangle.

    Solution

    At θ=0\theta=0, the centered tangent is σψ\sigma\psi, S=1S=1, and F=⟨σ2⟩=1F=\langle\sigma^2\rangle=1. For a real coordinate, minimizing the squared distance to −iZψ-iZ\psi gives θ˙=Re⁡(−iF)/S=0\dot\theta=\operatorname{Re}(-iF)/S=0. More generally the real wavefunction and real Hamiltonian make FF real, so the real tangent cannot follow the imaginary Schrödinger velocity.

    Allowing a complex coordinate gives θ˙=−i\dot\theta=-i. The trajectory is θ(t)=−it\theta(t)=-it, with equal Born probabilities and amplitudes

    ψ(t)=12(e−iteit).\psi(t)=\frac1{\sqrt2} \begin{pmatrix}e^{-it}\\ e^{it}\end{pmatrix}.

    Its energy is zero, so no extra global phase is needed. The overlap between the two amplitudes gives

    ⟨X⟩=Re⁡(e2it)=cos⁡2t.\langle X\rangle=\operatorname{Re}(e^{2it})=\cos2t.

    The real-only state would instead predict ⟨X⟩=1\langle X\rangle=1 for every time while conserving both norm and energy. The missing phase direction, not a time-step choice, causes the failure.

    2. Turn a full residual into an observable bound

    Prove (15) for a finite-dimensional Hermitian Hamiltonian. For normalized paths and a bounded Hermitian observable OO, obtain an expectation-value error bound. Explain which extra term is needed if only the projected vector-field defect is known for a numerically integrated path.

    Solution

    Let e=ψ~−ψexacte=\widetilde\psi-\psi_{\rm exact}. Since ie˙=He+Ri\dot e=He+R, variation of constants gives

    e(t)=e−iHte(0)−i∫0te−iH(t−s)R(s) ds.e(t)=e^{-iHt}e(0) -i\int_0^t e^{-iH(t-s)}R(s)\,ds.

    The propagator preserves the norm. The triangle inequality proves (15), without assuming a small error or a spectral gap.

    For normalized vectors, subtract their expectations and insert ee once in each term:

    ∣⟨ψ~∣O∣ψ~⟩−⟨ψexact∣O∣ψexact⟩∣≤2∥O∥ ∥e∥.\left|\langle\widetilde\psi|O|\widetilde\psi\rangle -\langle\psi_{\rm exact}|O|\psi_{\rm exact}\rangle\right| \le 2\|O\|\,\|e\|.

    Combining this with (15) gives the desired bound. A phase convention is necessary for a state-vector bound; equation (16) supplies one for the variational path.

    For an interpolated coordinate path, write θ˙num=vTDVP(θnum)+δv\dot\theta_{\rm num}=v_{\rm TDVP}(\theta_{\rm num})+\delta v. After the appropriate phase lift, its full residual contains both the projected defect and the tangent integration defect TδvT\delta v. Thus

    ∥R∥≤∥rproj∥+∥Tδv∥.\|R\|\le\|r_{\rm proj}\|+\|T\delta v\|.

    Either term can matter. The complete seven-coordinate example makes the first essentially zero while retaining finite integration error. Conserving norm and energy does not bound either term by itself.

    References

    1. G. Carleo and M. Troyer, “Solving the Quantum Many-Body Problem with Artificial Neural Networks,” Science 355 (2017), 602–606, arXiv:1606.02318v1. Full text. Appendix B, Eqs. (9)–(11), derives the projective-distance formulation and complex variational equation.
    2. F. Vicentini et al., “NetKet 3: Machine Learning Toolbox for Many-Body Quantum Systems,” SciPost Physics Codebases 7 (2022), arXiv:2112.10526v2. Full text. §§3.5–3.5.2 discuss the geometric tensor and regularization; §4.3, Eq. (37), distinguishes real- and imaginary-time evolution. The present calculation uses its own finite implementation.

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.