Skip to content

Exact Diagonalization Preview

Exact diagonalization, or ED, solves a declared finite many-body eigenproblem without introducing a physical approximation beyond the finite representation itself. One chooses a finite geometry, basis, local cutoff, boundary condition, and symmetry sector; represents the Hamiltonian on that space; computes all or selected eigenpairs; and evaluates observables from the resulting finite-system states.

A finite calculation retains finite-size, boundary, and local-cutoff errors:

exact for the represented finite problem≠exact for the thermodynamic system.\begin{gathered} \text{exact for the represented finite problem} \\ \neq \\ \text{exact for the thermodynamic system}. \end{gathered}

An eigensolver residual can be near machine precision while the physical result still has finite-size, boundary, cutoff, or model error. Conversely, a modest cluster can be uniquely valuable because it gives unbiased access to every state in the represented space, supplies sharp unit tests, and benchmarks methods that reach larger systems through additional approximations.

Required background. Computational method choice distinguishes numerical convergence from physical limits; matrix diagonalization introduces eigenpairs and residuals.

Complete and targeted finite diagonalization

Section titled “Complete and targeted finite diagonalization”

The literature uses ED in two related senses.

A dense or structure-aware solver returns every eigenvalue and, when requested, a complete orthonormal eigenbasis:

H=∑n=1DEn∣n⟩⟨n∣.H = \sum_{n=1}^{D} E_n |n\rangle \langle n|.

This form supports exact finite-temperature traces, arbitrary unitary evolution in the finite space, full level statistics, and complete Lehmann sums. Its memory cost is at least quadratic if a dense Hamiltonian or all eigenvectors are stored.

In many-body practice, ED can also mean constructing the exact finite Hamiltonian but using a sparse iterative solver to obtain only a few eigenpairs. The finite operator is still represented without a variational ansatz, but the output is incomplete:

{E0,…,Ek−1},k≪D.\left\{ E_0,\ldots,E_{k-1} \right\}, \qquad k\ll D.

This route is appropriate for ground states and low excitations. It does not automatically provide a complete thermal trace or all spectral weight. Lanczos develops the connection between the finite operator, its Krylov subspace, and the computed observables.

Whenever “ED” is reported, state which meaning is intended. Specify the finite geometry, boundary condition, Hilbert space and any local cutoff before constructing the matrix. These define the problem being solved.

Let

SL=span⁡{∣a⟩}a=0D−1\mathcal S_L = \operatorname{span} \left\{ |a\rangle \right\}_{a=0}^{D-1}

be an orthonormal finite basis. A computational basis needs both a physical definition and an indexing convention:

∣a⟩⟷configuration⟷integer index.|a\rangle \longleftrightarrow \text{configuration} \longleftrightarrow \text{integer index}.

The map must be one-to-one on the represented sector. Duplicate configurations, omitted states, or inconsistent ordering can produce a Hermitian matrix with the wrong physics, so basis validation precedes diagonalization.

For LL spin-one-half sites, choose

bi={1,∣↑⟩i,0,∣↓⟩i.b_i = \begin{cases} 1, & |\uparrow\rangle_i,\\ 0, & |\downarrow\rangle_i. \end{cases}

A product state is

∣bL−1⋯b1b0⟩,|b_{L-1}\cdots b_1b_0\rangle,

and one possible integer encoding is

a=∑i=0L−1bi2i.a = \sum_{i=0}^{L-1} b_i2^i.

The site-to-bit convention must be stated. Reversing endianness does not change a correctly transformed spectrum, but it changes every operator mask, basis label, and reshaping convention. A one-site product state is an inexpensive test of the convention.

Use dimensionless spin operators S=σ/2\mathbf S=\boldsymbol\sigma/2 throughout this page; physical angular momentum is ℏS\hbar\mathbf S. The spin projection is

Siz∣a⟩=(bi−12)∣a⟩.S_i^z |a\rangle = \left( b_i-\frac12 \right) |a\rangle.

If total SzS^z is conserved, a fixed-N↑N_\uparrow sector contains only configurations satisfying

∑ibi=N↑.\sum_i b_i = N_\uparrow.

Its dimension is

DN↑=(LN↑).D_{N_\uparrow} = \binom{L}{N_\uparrow}.

The counting derivation belongs to Scaling of Hilbert Space. Here the point is operational: the sector basis must contain exactly that many unique states, and every Hamiltonian action must remain inside it.

For spinless fermionic modes ordered as 0,1,…,M−10,1,\ldots,M-1, an occupation basis is

∣n⟩=∣nM−1⋯n1n0⟩,ni∈{0,1}.|\mathbf n\rangle = |n_{M-1}\cdots n_1n_0\rangle, \qquad n_i\in\{0,1\}.

The annihilation action includes the parity of occupied modes preceding jj:

cj∣n⟩=(−1)pjnj∣…,0j,…⟩,c_j|\mathbf n\rangle = (-1)^{p_j} n_j |\ldots,0_j,\ldots\rangle,

with

pj=∑i<jni.p_j = \sum_{i<j}n_i.

Changing the mode ordering changes intermediate signs and basis labels, although consistently transformed observables agree. On the full two-mode Fock space, check the anticommutator before assembling an interacting Hamiltonian:

(cicj†+cj†ci)∣n⟩=δij∣n⟩.\left( c_i c_j^\dagger + c_j^\dagger c_i \right) |\mathbf n\rangle = \delta_{ij} |\mathbf n\rangle.

The creation-string convention is ∣n⟩=(c0†)n0⋯(cM−1†)nM−1∣0⟩|\mathbf n\rangle=(c_0^\dagger)^{n_0}\cdots(c_{M-1}^\dagger)^{n_{M-1}}|0\rangle, despite displaying the most significant bit first. Fermionic operator actions explain these signs. In a fixed-number sector, the individual cjc_j maps to a different sector; projecting every factor back into the original sector would incorrectly make it vanish.

Bosonic local spaces are infinite, but finitely many modes at fixed total number already give a finite sector, with no additional local approximation. When number is not fixed, a finite representation requires a cutoff. A local cutoff uses

0≤ni≤nmax⁡,0 \leq n_i \leq n_{\max},

whereas a total-number cutoff uses

∑ini≤Nmax⁡.\sum_i n_i \leq N_{\max}.

These define different subspaces. The same symbol “cutoff 5” is meaningless without saying which rule is used. Observables sensitive to high occupation, such as onsite number variance, must be converged under cutoff enlargement.

The ladder factors

ai∣ni⟩=ni∣ni−1⟩,ai†∣ni⟩=ni+1∣ni+1⟩\begin{aligned} a_i|n_i\rangle &= \sqrt{n_i} |n_i-1\rangle, \\ a_i^\dagger|n_i\rangle &= \sqrt{n_i+1} |n_i+1\rangle \end{aligned}

must be combined with a boundary rule at ni=nmax⁡n_i=n_{\max}. The projected ladder operator obeys [a,a†]=I−(nmax⁡+1)∣nmax⁡⟩⟨nmax⁡∣[a,a^\dagger]=I-(n_{\max}+1)|n_{\max}\rangle\langle n_{\max}|, rather than the full oscillator commutator. Construct the desired Hamiltonian matrix elements before imposing the retained basis: generally PABP≠(PAP)(PBP)PABP\ne(PAP)(PBP) because the intermediate state can leave the basis and return. For example, Paa†PPaa^\dagger P acts as nmax⁡+1n_{\max}+1 on the top state, while the product of truncated ladders gives zero.

Write a local lattice Hamiltonian as

H=∑X⊂ΛLhX,H = \sum_{X\subset\Lambda_L} h_X,

where each hXh_X acts on a small set of sites or modes. Matrix elements are

Hab=⟨a∣H∣b⟩.H_{ab} = \langle a|H|b\rangle.

The useful computational object is often the action

H∣b⟩=∑aHab∣a⟩,H|b\rangle = \sum_a H_{ab}|a\rangle,

not a dense table of all D2D^2 possible entries. A local term changes only a few occupation labels, so each basis state connects to a small fraction of the full basis.

Define

nnz⁡(H)=#{(a,b):Hab≠0}.\operatorname{nnz}(H) = \#\left\{ (a,b): H_{ab}\neq0 \right\}.

For many local models,

nnz⁡(H)∼poly⁡(L)D,\operatorname{nnz}(H) \sim \operatorname{poly}(L)D,

even though DD itself grows exponentially. This makes sparse or matrix-free Hamiltonian application possible; it does not remove the exponential vector length.

It is useful to view the represented Hamiltonian as a weighted graph:

  • basis states are vertices;
  • diagonal terms give onsite vertex weights;
  • off-diagonal terms connect configurations;
  • matrix elements are edge weights;
  • conserved labels diagonal in this configuration basis split the graph into disconnected components; translation or total-spin symmetry can instead require linear combinations of vertices.

This picture exposes several tests. Every transition must land on a valid basis state. Reverse edges must carry conjugate amplitudes. A claimed conserved sector must be closed under the full Hamiltonian. Termwise closure is a convenient sufficient condition; separate terms can also cancel leakage.

For an orthonormal basis of a closed system,

Hab=Hba∗.H_{ab} = H_{ba}^\ast.

Common assembly errors include:

  • adding a hopping or spin-flip transition in only one direction;
  • double-counting an undirected bond;
  • applying inconsistent complex phases on reverse links;
  • using different basis-index conventions in diagonal and off-diagonal terms;
  • forgetting a boundary bond or adding it twice.

Hermiticity is necessary but not sufficient. Two identically wrong off-diagonal entries can remain Hermitian.

For two spin-one-half sites,

H12=J S1⋅S2.H_{12} = J\, \mathbf S_1 \cdot \mathbf S_2.

Using dimensionless spin operators, S=σ/2\mathbf S=\boldsymbol\sigma/2, write

S1⋅S2=S1zS2z+12(S1+S2−+S1−S2+).\mathbf S_1 \cdot \mathbf S_2 = S_1^zS_2^z + \frac12 \left( S_1^+S_2^- + S_1^-S_2^+ \right).

The local action is

S1⋅S2∣↑↑⟩=14∣↑↑⟩,S1⋅S2∣↓↓⟩=14∣↓↓⟩,\begin{aligned} \mathbf S_1\cdot\mathbf S_2 |\uparrow\uparrow\rangle &= \frac14 |\uparrow\uparrow\rangle, \\ \mathbf S_1\cdot\mathbf S_2 |\downarrow\downarrow\rangle &= \frac14 |\downarrow\downarrow\rangle, \end{aligned}

and

S1⋅S2∣↑↓⟩=−14∣↑↓⟩+12∣↓↑⟩,S1⋅S2∣↓↑⟩=−14∣↓↑⟩+12∣↑↓⟩.\begin{aligned} \mathbf S_1\cdot\mathbf S_2 |\uparrow\downarrow\rangle &= -\frac14 |\uparrow\downarrow\rangle + \frac12 |\downarrow\uparrow\rangle, \\ \mathbf S_1\cdot\mathbf S_2 |\downarrow\uparrow\rangle &= -\frac14 |\downarrow\uparrow\rangle + \frac12 |\uparrow\downarrow\rangle. \end{aligned}

These four rules are enough to assemble every Heisenberg bond in a product basis. The Heisenberg model develops the many-site physics.

Order the basis as

(∣↑↑⟩,∣↑↓⟩,∣↓↑⟩,∣↓↓⟩).\left( |\uparrow\uparrow\rangle, |\uparrow\downarrow\rangle, |\downarrow\uparrow\rangle, |\downarrow\downarrow\rangle \right).

The matrix is

H12=J4(10000−12002−100001).H_{12} = \frac{J}{4} \begin{pmatrix} 1 & 0 & 0 & 0\\ 0 & -1 & 2 & 0\\ 0 & 2 & -1 & 0\\ 0 & 0 & 0 & 1 \end{pmatrix}.

The parallel states are already eigenstates. The antiparallel block has symmetric and antisymmetric combinations:

∣T0⟩=∣↑↓⟩+∣↓↑⟩2,ET=J4,∣S⟩=∣↑↓⟩−∣↓↑⟩2,ES=−3J4.\begin{aligned} |T_0\rangle &= \frac{ |\uparrow\downarrow\rangle + |\downarrow\uparrow\rangle }{\sqrt2}, & E_T &= \frac{J}{4}, \\ |S\rangle &= \frac{ |\uparrow\downarrow\rangle - |\downarrow\uparrow\rangle }{\sqrt2}, & E_S &= -\frac{3J}{4}. \end{aligned}

Together with ∣↑↑⟩|\uparrow\uparrow\rangle and ∣↓↓⟩|\downarrow\downarrow\rangle, the symmetric states form a triplet at J/4J/4 and the antisymmetric state is a singlet at −3J/4-3J/4. Two Spin-One-Half Particles derives the angular-momentum addition. ED recovers it from basis actions.

This tiny problem supports a strong unit-test suite:

Tr⁡H12=0,\operatorname{Tr}H_{12} = 0, Tr⁡H122=3J24,\operatorname{Tr}H_{12}^2 = \frac{3J^2}{4},

and

[H12,S1z+S2z]=0.\left[ H_{12}, S_1^z+S_2^z \right] = 0.

A many-site implementation should reproduce the same local matrix elements before any large sparse calculation is trusted.

Dense, Sparse, and Matrix-Free Representations

Section titled “Dense, Sparse, and Matrix-Free Representations”

The represented operator and the eigensolver are separate choices.

Storing a general complex dense Hamiltonian requires approximately

Mdense≃16D2bytesM_{\mathrm{dense}} \simeq 16D^2 \quad \text{bytes}

in complex double precision, before workspace and eigenvectors. A complete dense Hermitian eigensolve typically requires order-D3D^3 arithmetic, with algorithm-dependent constants and storage reductions.

This route is valuable when DD is small enough because completeness enables:

  • every finite-system energy level;
  • exact traces over the represented space;
  • arbitrary operator matrices in the eigenbasis;
  • full finite-system propagators;
  • complete level and degeneracy comparisons.

A sparse representation stores nonzero values and their indices. Its memory scales with nnz⁡(H)\operatorname{nnz}(H) rather than D2D^2, plus indexing overhead. It is useful when the operator is reused for many matrix-vector products or several observables.

Sparse storage does not imply a sparse eigenvector. Generic interacting eigenstates can have nonzero amplitude on essentially every basis state.

A matrix-free implementation computes

∣y⟩=H∣x⟩|y\rangle = H|x\rangle

by applying local terms directly. It avoids storing the sparse matrix and can reduce memory, but it is harder to inspect. Tiny-system matrices, randomized Hermiticity checks, and exact action tests become especially important.

Storage formats and operation counts are explained in Sparse Matrices.

A single complex state vector requires

Mvec=16Dbytes.M_{\mathrm{vec}} = 16D \quad \text{bytes}.

For an unconstrained L=20L=20 spin-one-half system,

D=220=1,048,576.D = 2^{20} = 1{,}048{,}576.

Thus one vector is about 1616 MiB, while a dense complex matrix is about 1616 TiB:

Mvec≃16 MiB,Mdense≃16 TiB.\begin{aligned} M_{\mathrm{vec}} &\simeq 16\ \mathrm{MiB}, \\ M_{\mathrm{dense}} &\simeq 16\ \mathrm{TiB}. \end{aligned}

The fixed-N↑=10N_\uparrow=10 sector has

D10=(2010)=184,756.D_{10} = \binom{20}{10} = 184{,}756.

One vector then needs about 2.822.82 MiB, but a dense complex matrix still needs about 509509 GiB. Symmetry reduction can make sparse vector methods practical long after dense storage has failed.

Real calculations need several work vectors, basis-index data, sparse indices, observables, and solver workspace. Quoting only one-vector memory is a lower bound.

Let

H∣n⟩=En∣n⟩,⟨m∣n⟩=δmn.H|n\rangle = E_n|n\rangle, \qquad \langle m|n\rangle = \delta_{mn}.

For an operator OO,

⟨O⟩n=⟨n∣O∣n⟩.\langle O\rangle_n = \langle n|O|n\rangle.

Off-diagonal matrix elements

Omn=⟨m∣O∣n⟩O_{mn} = \langle m|O|n\rangle

control transitions, response, and dynamics. Operator conventions must match those used in the Hamiltonian basis.

Equal-time correlations follow directly:

Cij(n)=⟨n∣OiOj∣n⟩.C_{ij}^{(n)} = \langle n| O_iO_j |n\rangle.

Connected correlations subtract one-point products. Their physical definitions and normalizations are explained in Connected Correlation Functions.

A complete spectrum gives

ZL(β)=∑n=1De−βEn,Z_L(\beta) = \sum_{n=1}^{D} e^{-\beta E_n},

and

⟨O⟩β,L=∑ne−βEn⟨n∣O∣n⟩ZL(β).\langle O\rangle_{\beta,L} = \frac{ \sum_n e^{-\beta E_n} \langle n|O|n\rangle }{ Z_L(\beta) }.

This is exact for the represented finite Hilbert space. It is not necessarily exact for an untruncated bosonic space or the thermodynamic system.

A low-energy subset can approximate low-temperature thermodynamics only when omitted weight is controlled. If EcutE_{\mathrm{cut}} is the first omitted energy, the suppression scale is

e−β(Ecut−E0),e^{-\beta \left( E_{\mathrm{cut}}-E_0 \right)},

but degeneracy and the number of omitted states also matter. “Low temperature” must be compared with both gaps and entropy.

An error bound for a partial thermal trace

Section titled “An error bound for a partial thermal trace”

For β>0\beta>0, suppose the retained states are exact eigenstates of the finite Hamiltonian, with partition sum Zr>0Z_{\mathrm r}>0. Suppose there are at most RR omitted states and every omitted energy is at least a certified EcutE_{\mathrm{cut}}. Set

B=Re−βEcut,Zo≤B,δ=ZoZr+Zo≤BZr+B.B=R e^{-\beta E_{\mathrm{cut}}}, \qquad Z_{\mathrm o}\le B, \qquad \delta=\frac{Z_{\mathrm o}}{Z_{\mathrm r}+Z_{\mathrm o}} \le\frac{B}{Z_{\mathrm r}+B}.

If no states are omitted, the error is zero. Otherwise, normalize the Gibbs weights separately on the retained and omitted subspaces to obtain ρr\rho_{\mathrm r} and ρo\rho_{\mathrm o}. Their supports are orthogonal, and the full state is

ρ=(1−δ)ρr+δρo,12∥ρ−ρr∥1=δ.\rho=(1-\delta)\rho_{\mathrm r}+\delta\rho_{\mathrm o}, \qquad \frac12\|\rho-\rho_{\mathrm r}\|_1=\delta.

Thus δ\delta is exactly the trace distance of this spectral truncation. For a Hermitian observable with spectrum in [omin⁡,omax⁡][o_{\min},o_{\max}],

∣⟨O⟩β−Tr⁡(ρrO)∣≤(omax⁡−omin⁡)BZr+B.|\langle O\rangle_\beta-\operatorname{Tr}(\rho_{\mathrm r}O)| \le(o_{\max}-o_{\min})\frac{B}{Z_{\mathrm r}+B}.

No commutation of OO with HH is required: each normalized state’s expectation lies in the same spectral interval. For a probability, use 0≤O≤I0\le O\le I and interval width one. An operator-norm bound gives the less sharp but convenient width 2∥O∥2\|O\|.

The retained free energy Fr=−β−1ln⁡ZrF_{\mathrm r}=-\beta^{-1}\ln Z_{\mathrm r} also bounds the full free energy:

Fr−1βln⁡ ⁣(1+BZr)≤F≤Fr.F_{\mathrm r}-\frac1\beta\ln\!\left(1+\frac{B}{Z_{\mathrm r}}\right) \le F\le F_{\mathrm r}.

These bounds quantify omitted thermal weight, separately from errors in computed eigenpairs or matrix elements. A few converged Ritz values do not by themselves certify that no omitted state lies below EcutE_{\mathrm{cut}}. An energy shift rescales BB and ZrZ_{\mathrm r} equally, so their ratio and the observable bound remain unchanged.

At zero temperature, a finite-system spectral measure for OO has the form

SO(ω)=∑n∣⟨n∣O∣0⟩∣2δ(ω−ωn0),S_O(\omega) = \sum_n \left| \langle n|O|0\rangle \right|^2 \delta \left( \omega-\omega_{n0} \right),

where

ωn0=En−E0ℏ.\omega_{n0} = \frac{ E_n-E_0 }{\hbar}.

The exact finite result is a set of delta peaks. Any broadening used in a plot is an added resolution prescription. Spectral Functions defines the spectral conventions. Dynamical Correlation Functions Numerically shows how to benchmark this direct line list against Lanczos and real-time estimators with a matched kernel.

First embed a state computed in a constrained or symmetry-adapted basis into the product basis (or assemble the coefficient matrix directly from its configurations). A fixed-number basis does not factor into subsystem bases. For a spatial bipartition A∪BA\cup B, the resulting coefficients can be arranged as

∣ψ⟩=∑a,bCab∣a⟩A∣b⟩B.|\psi\rangle = \sum_{a,b} C_{ab} |a\rangle_A |b\rangle_B.

Then

ρA=CC†.\rho_A = CC^\dagger.

The arrangement depends on site ordering, bit convention, and subsystem choice. For fermionic modes, also fix the ordered Fock-space tensor convention and include the parity signs when reordering modes into the chosen grouping. Product states and Bell pairs are essential tests. Entanglement Spectrum develops this calculation and its interpretation.

Inside an exactly degenerate eigenspace, the solver may return any orthonormal basis. Individual vectors can rotate under tiny perturbations or changes of numerical library while the invariant subspace remains correct.

If D\mathcal D is a degenerate subspace, define its projector:

PD=∑n∈D∣n⟩⟨n∣.P_{\mathcal D} = \sum_{n\in\mathcal D} |n\rangle\langle n|.

The projector is basis independent. For a symmetry-resolved interpretation, diagonalize the commuting symmetry operator within D\mathcal D or construct the sector before solving. Do not infer broken symmetry from an arbitrary numerical combination of degenerate states.

Eigenvector phases are also arbitrary:

∣n⟩⟶eiϕn∣n⟩.|n\rangle \longrightarrow e^{i\phi_n}|n\rangle.

Expectation values are unchanged, but raw vector components and off-diagonal phases are not. Regression tests should compare phase-invariant quantities or align phases by an explicit convention.

For every normalized computed eigenpair,

∣rn⟩=(H−En)∣n⟩.|r_n\rangle = \left( H-E_n \right) |n\rangle.

Report absolute or scaled residuals and check

⟨m∣n⟩≃δmn.\langle m|n\rangle \simeq \delta_{mn}.

For a complete eigensystem,

∑nEn=Tr⁡H,\sum_n E_n = \operatorname{Tr}H,

and

∑nEn2=Tr⁡H2.\sum_n E_n^2 = \operatorname{Tr}H^2.

These identities detect missing eigenvalues, sector mismatches, and some assembly errors. Higher moments can be useful when independently available.

  • exact sum rules;
  • positive probabilities and nonnegative variances;
  • known limits at zero coupling or decoupled sites;
  • symmetry-forbidden matrix elements, including transitions to other sectors;
  • derivative identities such as Hellmann–Feynman;
  • agreement between direct time evolution and spectral reconstruction on tiny systems.

For a nondegenerate eigenstate,

dEndλ=⟨n∣∂H∂λ∣n⟩.\frac{dE_n}{d\lambda} = \left\langle n\left| \frac{\partial H} {\partial\lambda} \right|n\right\rangle.

This tests the Hamiltonian parameterization, state, observable, and finite-difference procedure together.

ED has a controlled finite-system exactness and an uncontrolled reach problem. Several cautions follow.

Finite systems have discrete energy levels. A dense cluster of peaks can approximate a continuum only with a declared joint limit in size and resolution.

Finite eigenstates can preserve an exact symmetry even where the thermodynamic system breaks it. Order parameters may vanish while squared order parameters, structure factors, susceptibilities, or quasi-degenerate state families reveal ordering tendencies.

Two clusters with the same LL can have different shortest loops, aspect ratios, coordination defects, or momentum grids. A sequence chosen only by increasing LL can oscillate between incompatible geometries.

Periodic, open, twisted, and antiperiodic boundaries change allowed momenta and finite-size corrections. Boundary averaging can reduce some shell effects but does not erase the need to report each boundary condition.

Accessible sizes can precede the asymptotic regime

Section titled “Accessible sizes can precede the asymptotic regime”

A smooth trend over three clusters is not proof of asymptotic scaling. Finite-Size Effects explains shape, shell, gap, boundary, and resolution effects; Thermodynamic Limit defines the limiting target.

For an unconstrained L=24L=24 spin-one-half system, estimate the memory for one complex double-precision vector and for a dense complex matrix. Use binary units.

Solution

The dimension is

D=224.D = 2^{24}.

At 1616 bytes per complex number,

Mvec=16⋅224 bytes=256 MiB.M_{\mathrm{vec}} = 16\cdot2^{24} \ \text{bytes} = 256\ \text{MiB}.

The dense matrix requires

Mdense=16(224)2 bytes=16⋅248 bytes=4 PiB.\begin{aligned} M_{\mathrm{dense}} &= 16 \left( 2^{24} \right)^2 \ \text{bytes} \\ &= 16\cdot2^{48} \ \text{bytes} \\ &= 4\ \text{PiB}. \end{aligned}

This excludes eigensolver workspace and eigenvector storage. Sparse or matrix-free action is mandatory, but even that still requires several 256256 MiB vectors.

A Hamiltonian is assembled in a fixed-N↑N_\uparrow spin basis. Give two independent numerical tests that the sector is closed.

Solution

First, apply the full Hamiltonian to every sector basis state on a tiny system and verify that every nonzero output has the same N↑N_\uparrow and maps to a valid sector index. For a decomposition whose terms individually conserve number, testing each term is a useful stronger diagnostic.

Second, construct the number operator

N↑=∑i(Siz+12)N_\uparrow = \sum_i \left( S_i^z+\frac12 \right)

on the full tiny-system Hilbert space, before restricting to the sector, and verify

[H,N↑]=0\left[ H,N_\uparrow \right] = 0

to numerical precision. The transition test exercises the basis map; the full-space commutator tests the original operator. Inside a fixed-N↑N_\uparrow block, N↑N_\uparrow is a scalar multiple of the identity, so its commutator is zero even for an incorrectly projected Hamiltonian. Equivalently, test the leakage (I−P)HP(I-P)HP in the full space, where PP projects onto the proposed block.

At positive inverse temperature β>0\beta>0, suppose all omitted states have energy at least EcutE_{\mathrm{cut}} and there are at most RR omitted states. Give an upper bound on their partition-function contribution.

As a concrete test, retain only a nondegenerate ground state with E0=0E_0=0 and omit R=1000R=1000 states, all at energy Δ>0\Delta>0. Compute the omitted probability at βΔ=8\beta\Delta=8. How large must βΔ\beta\Delta be for every effect 0≤O≤I0\le O\le I to have absolute expectation error at most 1%1\%?

Solution

Each omitted Boltzmann factor satisfies

e−βEn≤e−βEcut.e^{-\beta E_n} \leq e^{-\beta E_{\mathrm{cut}}}.

Therefore the omitted contribution obeys

Zomit≤Re−βEcut.Z_{\mathrm{omit}} \leq R e^{-\beta E_{\mathrm{cut}}}.

Relative to the ground-state contribution,

Zomite−βE0≤Re−β(Ecut−E0).\frac{ Z_{\mathrm{omit}} }{ e^{-\beta E_0} } \leq R e^{-\beta \left( E_{\mathrm{cut}}-E_0 \right)}.

The factor RR shows why a gap alone is not enough: the number of omitted states can offset Boltzmann suppression.

Here Zr=1Z_{\mathrm r}=1 and Zo=1000e−βΔZ_{\mathrm o}=1000e^{-\beta\Delta}, so the bound is attained:

δ=1000e−81+1000e−8≃0.251196.\delta=\frac{1000e^{-8}}{1+1000e^{-8}} \simeq0.251196.

Each omitted state’s Boltzmann factor is small, but together the omitted states carry about 25.1%25.1\% of the probability. The projector onto the excited subspace attains this error. Requiring δ≤0.01\delta\le0.01 gives

1000e−βΔ≤0.010.99,βΔ≥ln⁡(99000)≃11.5029.1000e^{-\beta\Delta}\le\frac{0.01}{0.99}, \qquad \beta\Delta\ge\ln(99000)\simeq11.5029.

The required inverse temperature includes the logarithm of the omitted degeneracy. A gap alone cannot set the thermal truncation tolerance.

Two diagonalization libraries return different orthonormal vectors for a twofold-degenerate eigenvalue. How should the results be compared?

Solution

Compare the projectors onto the degenerate subspaces:

P=∣1⟩⟨1∣+∣2⟩⟨2∣.P = |1\rangle\langle1| + |2\rangle\langle2|.

The individual vectors can be related by any 2×22\times2 unitary rotation and arbitrary phases, so component-wise comparison is not meaningful. One can compare projector norms, principal angles between subspaces, traces of observables over the subspace, and symmetry-resolved vectors obtained by diagonalizing a commuting operator within it.

  • P. Weinberg and M. Bukov, “QuSpin: A Python Package for Dynamics and Exact Diagonalisation of Quantum Many Body Systems, Part I: Spin Chains,” SciPost Physics 2, 003 (2017), doi:10.21468/SciPostPhys.2.1.003.
  • E. Dagotto, “Correlated Electrons in High-Temperature Superconductors,” Reviews of Modern Physics 66, 763–840 (1994), doi:10.1103/RevModPhys.66.763.
  • J. M. Zhang and R. X. Dong, “Exact Diagonalization: The Bose–Hubbard Model as an Example,” European Journal of Physics 31, 591–602 (2010), doi:10.1088/0143-0807/31/3/016.
  • H. Fehske, R. Schneider, and A. Weiße, eds., Computational Many-Particle Physics, Springer, 2008, doi:10.1007/978-3-540-74686-7.
  • C. Lanczos, “An Iteration Method for the Solution of the Eigenvalue Problem of Linear Differential and Integral Operators,” Journal of Research of the National Bureau of Standards 45, 255–282 (1950), doi:10.6028/jres.045.026.
  • H. Q. Lin, “Exact Diagonalization of Quantum-Spin Models,” Physical Review B 42, 6561–6567 (1990), doi:10.1103/PhysRevB.42.6561.
  • G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed., Johns Hopkins University Press, 2013.
  • J. Jaklič and P. Prelovšek, “Finite-Temperature Properties of Doped Antiferromagnets,” Advances in Physics 49, 1–92 (2000), doi:10.1080/000187300243381.
  • Y. Saad, Numerical Methods for Large Eigenvalue Problems, 2nd ed., SIAM, 2011, doi:10.1137/1.9781611970739.
  • A. W. Sandvik, “Computational Studies of Quantum Spin Systems,” in AIP Conference Proceedings 1297, 135–338 (2010), doi:10.1063/1.3518900.