Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Excited States and Symmetry Sectors

    An energy minimizer finds the ground state of the space it is allowed to explore. To obtain an excitation, we must change that space: impose a symmetry sector, remove lower states, or use a variational subspace with several independent vectors. A second optimizer run is not enough. It may simply find the same state with different network parameters.

    Here we recover two levels of a six-spin chain, calculate the matrix element connecting them, and follow their identities as the transverse field changes. The example also compares orthogonality to an exact lower state with orthogonality to a fitted approximation.

    Preparation: Neural wavefunctions and the variational energy gradient. All expectations in the worked example are complete finite-state sums; there is no Monte Carlo uncertainty to obscure the distinction between symmetry, optimization, and spectral accuracy.

    Turn the symmetry into a variational restriction

    Use the periodic transverse-field Ising Hamiltonian

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

    with Pauli matrices, six bonds each counted once, and coupling 11 setting the energy unit. The basis is labeled by integers from 00 to 6363; site zero is the least significant bit and σj=1−2nj\sigma_j=1-2n_j. The global spin flip is

    F=∏j=05Xj,F2=I,[H,F]=0.(2)F=\prod_{j=0}^{5}X_j, \qquad F^2=I, \qquad [H,F]=0. \tag{2}

    It maps every configuration σ\sigma to −σ-\sigma, or integer nn to 63−n63-n. Total ZZ magnetization is not conserved when g≠0g\ne0.

    The two orthogonal projectors are

    P±=I±F2,P±2=P±,P+P−=0.(3)P_\pm=\frac{I\pm F}{2}, \qquad P_\pm^2=P_\pm, \qquad P_+P_-=0. \tag{3}

    For any raw neural amplitude vector Ψθ\Psi_\theta, define Φθ,±=P±Ψθ\Phi_{\theta,\pm}=P_\pm\Psi_\theta. If it is nonzero, its normalized Rayleigh quotient is an upper bound to the lowest eigenvalue in that sector. To see this, expand its normalized vector in the sector's exact eigenbasis:

    Φ^±=∑aca∣a,±⟩,E[Φ±]=∑a∣ca∣2Ea,±≥E0,±.(4)\widehat\Phi_\pm=\sum_a c_a|a,\pm\rangle, \qquad E[\Phi_\pm]=\sum_a|c_a|^2E_{a,\pm}\ge E_{0,\pm}. \tag{4}

    This bound does not guarantee that the optimizer reaches the sector minimum, or that the sector minimum is the globally first excitation. The latter requires comparison with other sectors. Choo et al. develop symmetry restrictions for neural excited states in the “Abelian Symmetries” section, Eqs. (7)–(9), of their paper (PDF). Our explicit projector is a convenient realization for this two-element group. Different-irrep targeting is also illustrated in §7.3 of Vicentini et al..

    Project amplitudes and derivatives together

    The shared restricted Boltzmann machine has raw amplitudes

    Ψθ(σ)=e∑jajσj∏α=1M2cosh⁡ ⁣(bα+∑jWjασj).(5)\Psi_\theta(\sigma)= e^{\sum_j a_j\sigma_j} \prod_{\alpha=1}^{M} 2\cosh\!\left(b_\alpha+\sum_jW_{j\alpha}\sigma_j\right). \tag{5}

    Our fits use real parameters. The raw vector is then positive, but P−ΨP_-\Psi is a difference of two positive vectors and can change sign. Thus the positivity of (5) does not prevent an odd state. An exactly even initial raw vector would instead give a zero odd projection; it cannot be normalized. The prescribed nonzero random biases avoid that special initialization, and any zero or nonfinite projected trial is reported as a failure.

    Because the projectors are fixed,

    ∂kΦθ,±=P±∂kΨθ,∂kE=2Re⁡[(∂kΦ)†(H−E)Φ]Φ†Φ.(6)\partial_k\Phi_{\theta,\pm}=P_\pm\partial_k\Psi_\theta, \qquad \partial_k E= \frac{2\operatorname{Re}\left[ (\partial_k\Phi)^\dagger(H-E)\Phi\right]} {\Phi^\dagger\Phi}. \tag{6}

    Apply the same map to both objects. Differentiating an unprojected network while evaluating the energy of its projection gives the wrong gradient. Products of hidden factors are differentiated directly, so individual zeros do not require division by a logarithmic derivative. The node example explains why this matters.

    A common nonzero scale can be removed from the amplitude and its derivative vectors during evaluation. Its omitted derivative is a radial term proportional to Φ\Phi; it contributes nothing to (6), since Φ†(H−E)Φ=0\Phi^\dagger(H-E)\Phi=0. This numerical rescaling does not justify replacing a null projection by an epsilon-normalized vector.

    Orthogonality within one sector

    Suppose the desired state has the same symmetry as a lower state. For a normalized, frozen even reference ∣g⟩|g\rangle, use

    Qg=P+−∣g⟩⟨g∣,Φθ=QgΨθ.(7)Q_g=P_+-|g\rangle\langle g|, \qquad \Phi_\theta=Q_g\Psi_\theta. \tag{7}

    Since P+g=gP_+g=g, this is a Hermitian projector and ⟨g∣Φθ⟩=0\langle g|\Phi_\theta\rangle=0. The derivative in (6) now contains Qg∂kΨQ_g\partial_k\Psi. The reference is held fixed during each fit. Projection against several orthonormal lower states replaces the last term in (7) by the sum of their rank-one projectors.

    If gg is the exact even ground state, the expansion in (4) starts at a=1a=1, giving an upper bound to E1,+E_{1,+}. If gg is only an approximation, the allowed space can still contain some true ground-state component. Exact numerical orthogonality to gg does not restore the excited-state bound. The first exercise gives an explicit two-level counterexample.

    This subtraction is the finite-sum version of the orthogonalization in Choo et al., Eqs. (10)–(12), printed p. 3 of their paper (PDF). For large systems, estimating the subtraction coefficient with Monte Carlo adds another error: even orthogonality to the chosen reference is then approximate. That sampling issue is absent from our enumerated example, but the reference-state error remains.

    A soft penalty has a further distinction. For an exact lower state, H+λ∣g⟩⟨g∣H+\lambda|g\rangle\langle g| raises its eigenvalue by λ\lambda; the desired excitation becomes the minimum only when the penalty exceeds the relevant gap. An approximate projector can also mix eigenstates. A finite penalty, an exact sector, and exact subtraction against a known eigenstate should not be described as interchangeable constraints.

    A transition needs a state and a phase convention

    Choose the intensive magnetization operator

    Mz=16∑j=05Zj,FMzF=−Mz.(8)M_z=\frac16\sum_{j=0}^{5}Z_j, \qquad FM_zF=-M_z. \tag{8}

    For states of flip parities ηa,ηb\eta_a,\eta_b, inserting F2F^2 gives

    ⟨a∣Mz∣b⟩=−ηaηb⟨a∣Mz∣b⟩.(9)\langle a|M_z|b\rangle =-\eta_a\eta_b\langle a|M_z|b\rangle. \tag{9}

    Equal-parity matrix elements vanish. The opposite-parity transition A=⟨0,−∣Mz∣0,+⟩A=\langle0,-|M_z|0,+\rangle is allowed. It changes under phase redefinitions as A↦ei(α+−α−)AA\mapsto e^{i(\alpha_+-\alpha_-)}A, while ∣A∣2|A|^2 is invariant. The signed real value is meaningful only after declaring the phases.

    At the primary coupling, each real state is chosen with positive all-up coefficient; if that coefficient is numerically negligible, the first largest-magnitude coefficient fixes the sign instead. Along a parameter scan, choose the sign giving positive overlap with the preceding state in the same sector. Record a fallback when that overlap vanishes. At a true degeneracy, a whole eigenspace may need to be followed; a single-vector sign rule cannot fix its internal rotation.

    There is a useful complete-spectrum check. Inserting all odd eigenstates between two factors of MzM_z yields

    ∑a∣⟨a,−∣Mz∣0,+⟩∣2=⟨0,+∣Mz2∣0,+⟩.(10)\sum_a\left|\langle a,-|M_z|0,+\rangle\right|^2 =\langle0,+|M_z^2|0,+\rangle. \tag{10}

    It tests normalization and the chosen operator. The lowest transition need not exhaust the sum.

    Two fitted levels at a fixed physical regulator

    At g=0.8g=0.8, exact diagonalization gives the lowest three global energies in the order E0,+E_{0,+}, E0,−E_{0,-}, and E1,+E_{1,+}. The primary comparison is

    QuantityExact finite chainDesignated neural pair
    Even energy−7.048804475010-7.048804475010−7.048804475006-7.048804475006
    Odd energy−6.957130148345-6.957130148345−6.957130144760-6.957130144760
    Gap0.0916743266650.0916743266650.0916743302460.091674330246
    Signed transition AA0.88905531460.88905531460.88905518030.8890551803
    Strength ∣A∣2\lvert A\rvert^20.79041935240.79041935240.79041911360.7904191136

    The even state is the chapter's already fitted M=6M=6, initialization-zero state; it is reused without refitting. The odd state is independently optimized at M=6M=6 with its own prescribed initialization zero. Both are normalized and have exactly opposite flip symmetry. Their overlap vanishes at numerical precision because of the projectors, regardless of how accurate either energy is.

    The odd fit reaches its fixed 600600-iteration cap. Its energy error is only 3.59×10−93.59\times10^{-9}, but its residual is 1.80×10−41.80\times10^{-4} and its maximum gradient component is 2.60×10−62.60\times10^{-6}. The even residual is 6.14×10−66.14\times10^{-6}. These distinctions are expected: if a state has a small admixture ϵ\epsilon of another eigenvector, its energy error is quadratic in ϵ\epsilon, whereas its residual and many matrix-element errors are linear in ϵ\epsilon.

    Three starts at each of M=6,12M=6,12 are retained for the odd state. Five of these six fits reach the cap, and none meets the separately stated 10−710^{-7} gradient criterion. Width 1212 reduces the designated-start residual to 5.20×10−55.20\times10^{-5}, but the finite-budget result does not isolate architecture error from optimization error. No additional starts were selected after inspecting these outcomes.

    For (10), the exact lowest strength is 0.79041935240.7904193524, while the full sum is 0.80438633150.8043863315. The independently summed difference from ⟨Mz2⟩\langle M_z^2\rangle is below 5×10−165\times10^{-16}. Keeping only the first transition would miss the remaining spectral weight.

    The same-sector comparison

    We also fit the next even level using (7), first with the reused neural ground and then with the exact ground. The exact target is E1,+=−5.0314424195E_{1,+}=-5.0314424195. Initialization zero gives

    Frozen lower referenceEnergy errorResidualTrue-ground probability
    Neural even ground1.41×10−111.41\times10^{-11}1.05×10−51.05\times10^{-5}7.36×10−167.36\times10^{-16}
    Exact even ground2.40×10−112.40\times10^{-11}1.41×10−51.41\times10^{-5}3.18×10−333.18\times10^{-33}

    Both overlaps with their own frozen references are below 4×10−164\times10^{-16}. Their restrictions are nevertheless different. Here the neural reference is accurate enough that its true-ground leakage is tiny and neither fitted energy falls below the exact target. This outcome does not establish a bound for approximate orthogonalization. The other two paired starts are retained; the third start reaches the cap for both references, with residuals near 1.7×10−31.7\times10^{-3}.

    Follow labels as the Hamiltonian changes

    Starting from the primary states, the fixed scan continues separately to g=0.6g=0.6 and through g=1.0g=1.0, 1.21.2, and 1.41.4. Each new fit starts from the preceding parameters in its sector. No exact eigenvector is inserted into the optimization. Comparison with the complete same-sector eigensystem then identifies the dominant state and checks whether the overlap label changes.

    The fitted even-to-odd gap across five couplings agrees closely with exact diagonalization, while the transition-strength errors remain visible on a separate scale.

    The fixed six-spin calculation follows the lowest states in the two flip sectors. The second panel resolves the error in the transition strength, which is not apparent from the gap plot. Marked cap-limited pairs are retained without extra training; lines connect the five evaluated couplings.

    All tracked states retain their intended lowest-sector identity in this scan. The gap rises from about 0.019440.01944 to 0.870920.87092; the largest absolute transition-strength error at these five points is 9.68×10−79.68\times10^{-7}. Across the complete twenty-fit study, eleven runs hit the iteration cap, and all twenty miss the independently declared gradient target. Successful energy-change stopping therefore does not mean that target was met.

    The difference of two variational upper bounds is not itself an upper bound on the gap:

    Δ~−Δ=(E~0,−−E0,−)−(E~0,+−E0,+).(11)\widetilde\Delta-\Delta= (\widetilde E_{0,-}-E_{0,-}) -(\widetilde E_{0,+}-E_{0,+}). \tag{11}

    The retained gap errors have both signs. Likewise, changing MM changes a variational representation at fixed six-site Hilbert space. It is not an increase of volume, a lattice-spacing refinement, or a continuum limit. A level crossing can reorder global energies without exchanging exact symmetry labels, as the second exercise illustrates.

    The pure wrappers in neural_excited.py import the chapter's shared spin_nqs.py; neural_excited_checks.py retains parameters, all optimizer outcomes, exact comparisons, and projection/gradient checks in neural-excited-results.json. Its default operation replays saved states without fitting. The first even state is identified explicitly in spin-vmc-models.json. New training refuses existing output paths.

    Summary

    An exact symmetry sector gives exact orthogonality to other sectors and a variational bound to its own lowest level. Projection against exact lower states extends that argument within a sector; projection against an approximation does not. Energies, residuals, state overlaps, and transition strengths answer different questions. A phase convention and overlap-based labels make parameter scans interpretable, while the fixed-regulator comparison keeps neural approximation separate from physical limits.

    Exercises

    1. Exact orthogonality to an inaccurate ground state

    Let H∣0⟩=E0∣0⟩H|0\rangle=E_0|0\rangle and H∣1⟩=E1∣1⟩H|1\rangle=E_1|1\rangle, with E0<E1E_0<E_1. A normalized approximate lower state is ∣g⟩=cos⁡α∣0⟩+sin⁡α∣1⟩|g\rangle=\cos\alpha|0\rangle+\sin\alpha|1\rangle. Find its normalized orthogonal complement and its energy. Does exact orthogonality to gg imply an upper bound to E1E_1?

    Solution

    Choose

    ∣v⟩=−sin⁡α∣0⟩+cos⁡α∣1⟩.|v\rangle=-\sin\alpha|0\rangle+\cos\alpha|1\rangle.

    Its norm is one and its overlap with gg is zero. Its energy is

    ⟨v∣H∣v⟩=E0sin⁡2α+E1cos⁡2α=E1−(E1−E0)sin⁡2α.\langle v|H|v\rangle =E_0\sin^2\alpha+E_1\cos^2\alpha =E_1-(E_1-E_0)\sin^2\alpha.

    For nonzero ground contamination this lies below E1E_1. There is no violation of the ground-state variational principle: the allowed subspace contains a component of the true ground state. The excited-state bound requires orthogonality to the exact lower eigenspace, not merely an accurately normalized vector intended to approximate it. At E0=0E_0=0, E1=2E_1=2, and α=0.2\alpha=0.2, the energy is approximately 1.921061.92106, despite zero overlap with gg.

    2. Follow a symmetry label through a crossing

    Consider H(g)=diag⁡(g,−g)H(g)=\operatorname{diag}(g,-g), F=diag⁡(1,−1)F=\operatorname{diag}(1,-1), and O=XO=X. Follow both symmetry sectors through g=0g=0, find their transition matrix element, and compare their fixed-label energy difference with the globally sorted gap.

    Solution

    The fixed sector vectors are ∣+⟩=(1,0)T|+\rangle=(1,0)^{\mathsf T} and ∣−⟩=(0,1)T|-\rangle=(0,1)^{\mathsf T}. Their energies are gg and −g-g, respectively, and

    ⟨−∣O∣+⟩=1,E−−E+=−2g.\langle-|O|+\rangle=1, \qquad E_- - E_+=-2g.

    The globally sorted excitation gap is 2∣g∣2|g|, which is nonnegative and vanishes at the crossing. For g<0g<0 the even state is the ground; for g>0g>0 the odd state is. Sorting the energies changes the ground-state label, while following FF does not change either vector.

    Under independent phases of the two vectors, the transition becomes ei(α+−α−)e^{i(\alpha_+-\alpha_-)}. Its magnitude squared remains one. At the crossing, HH alone permits any orthonormal basis in the degenerate space; the commuting operator FF still selects these two one-dimensional sectors. An arbitrary eigensolver basis at the degeneracy may mix them, so symmetry or subspace information is needed in addition to a frequency or energy ordering.

    References

    • K. Choo, G. Carleo, N. Regnault and T. Neupert, “Symmetries and Many-Body Excitations with Neural-Network Quantum States,” Physical Review Letters 121, 167204 (2018), arXiv:1807.03325v1 (PDF). “Abelian Symmetries,” Eqs. (7)–(9), and “Excited States Without Symmetry,” Eqs. (10)–(12), printed pp. 2–3. Our finite-sum projectors use the same symmetry and subtraction principles without estimating the overlaps by sampling.
    • F. Vicentini et al., “NetKet 3: Machine Learning Toolbox for Many-Body Quantum Systems,” SciPost Physics Codebases 7 (2022), arXiv:2112.10526v2. §§5.1 and 7.3 for symmetry sectors; §3.5 for derivative vectors and the support qualification of logarithmic estimators.

    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.