Spectra and Bands
On this page
The first questions asked of a model are about its spectrum: the levels of a finite flake and its edge states, the bands of a ribbon and the channels it opens to transport, the bulk bands and their gaps. caroli answers them by diagonalising dense Hermitian matrices: the Hamiltonian of a region, the Bloch Hamiltonian of a ribbon's cross-section, or that of the unit cell. These are exact to rounding error, at a cost that grows as the cube of the number of orbitals. Beyond a few thousand orbitals, densities of states come from the kernel polynomial method instead.
The spectrum of a finite sample
The spectrum of a region is the set of eigenvalues \(E_1 \le E_2 \le \dots \le E_N\) of its Hamiltonian, Model::hamiltonian(region), with open boundaries: the sites outside the region do not exist. With disorder, it is the spectrum of one configuration. A periodic sample is the supercell of the region repeated along its periods, Model::bloch_hamiltonian(region, periods, θ): \(\boldsymbol\theta = 0\) for a torus, \(\boldsymbol\theta \ne 0\) for twisted boundaries. Without disorder, a supercell of \(N_1 \times N_2\) cells, with the periods \(\mathbf T_i = N_i \mathbf a_i\), has at the twist \(\boldsymbol\theta\) the bulk bands \(E_n(\mathbf k)\) at the points
$$ \mathbf k \cdot \mathbf a_i = \frac{\theta_i + 2\pi m_i}{N_i} , \qquad m_i = 0, \dots, N_i - 1 , $$
since a Bloch state of the bulk is a state of the supercell when \(\mathbf k \cdot \mathbf T_i = \theta_i\) modulo \(2\pi\). A torus samples the zone on a grid that contains \(\Gamma\); a twist shifts the grid, and an average over twists fills in the zone.
The eigenvalues come from faer's Hermitian eigensolver (self_adjoint_eigenvalues), which reads the lower triangle. It reduces the matrix to a real symmetric tridiagonal matrix by Householder reflections, then finds the eigenvalues of the tridiagonal matrix by the implicit QR algorithm. The cost is \(O(N^3)\) operations and the memory \(16 N^2\) bytes for \(N\) orbitals. Both steps are backward stable: the computed eigenvalues are exact for a matrix that differs from \(H\) by a few units of rounding of \(\lVert H \rVert\). Since the eigenvalues of a Hermitian matrix move by at most the norm of a perturbation (Weyl), each is within \(\epsilon \lVert H \rVert\) of the exact one, \(\epsilon \approx 1.1 \times 10^{-16}\) the unit roundoff, times a modest factor that grows slowly with \(N\), degenerate or not. Eigenvectors, when they are needed, come from caroli_dense::hermitian_eigen (LAPACK's zheevd through Accelerate on macOS, faer elsewhere).
A flake of the BHZ model in its inverted regime has levels inside the bulk gap: its helical edge states, made discrete by the finite perimeter. In a magnetic field the spectrum of a flake does not depend on the gauge, which caroli's tests check to \(10^{-12}\) in three gauges (Magnetic Fields).
The bands of a ribbon or a lead
A ribbon is a finite cross-section repeated along one primitive vector, the axis of transport. If \(h_{00}\) is the Hamiltonian of one slice of the ribbon and \(h_{01} = \langle n \rvert H \lvert n + 1 \rangle\) its coupling to the next, Bloch's theorem along the axis gives the bands as the eigenvalues of
$$ H(k) = h_{00} + h_{01}\, e^{ik} + h_{01}^{\dagger}\, e^{-ik} , \qquad -\pi \lt k \le \pi , $$
\(k\) being the Bloch phase per cell along the axis. Lead::bands(k) computes them in increasing order, for the leads left and right of a TwoTerminal built from a model, or for a Lead made of the matrices h00 and h01 of a lead attached to a MultiTerminal. It symmetrises the matrix, \(H \to (H + H^{\dagger})/2\), before the eigensolver, which only removes rounding. These leads are in their own gauges (Magnetic Fields), so their bands are right in a field whatever their direction. The same bands come from Model::bloch_hamiltonian(slice, &[step], &[k]), the slice repeated along one cell of the axis, which also accepts hoppings that reach further along the axis (\(e^{2ik}\) terms and beyond).
The group velocity of a band follows from the Hellmann–Feynman theorem,
$$ v_n(k) = \frac{\partial E_n}{\partial k} = \Big\langle \varphi_n \Big\rvert \frac{\partial H}{\partial k} \Big\lvert \varphi_n \Big\rangle = \big\langle \varphi_n \big\rvert\, i \big( h_{01}\, e^{ik} - h_{01}^{\dagger}\, e^{-ik} \big) \big\lvert \varphi_n \big\rangle , $$
in cells per unit time for an eigenvector \(\varphi_n\) of unit norm on one slice: it is the current the Bloch state carries along the ribbon. With \(\lambda = e^{ik}\), the eigenvalue equation \(H(k)\, \varphi = E \varphi\) is the Bloch equation of the lead, \(h_{01}^{\dagger} \lambda^{-1} \varphi + (h_{00} - E)\, \varphi + h_{01} \lambda\, \varphi = 0\). Solved at a fixed energy for \(\lambda\), it gives all the modes of the lead: those on the unit circle are the bands at that energy, the propagating modes, and those inside or outside it the evanescent modes. The ribbon bands are the part of this complex band structure on the unit circle (Lead Modes and Self-Energies solves it and normalises the propagating modes to the current above).
At an energy \(E\), each band that crosses \(E\) with a positive group velocity is an open channel of the lead. The transmission of a clean ribbon between two identical leads is their number: two in the gap of a BHZ ribbon in the inverted regime, whose edges each carry a Kramers pair of counter-propagating states of opposite spins, and a staircase of integers in the bands.
Graphene ribbons show how much the bands depend on the edges. A ribbon cut along \(\mathbf a_1\) by Region::cuboid has bearded edges, whose last sites keep a single neighbour (Lattices and Regions). Besides the bulk bands folded onto its axis, it has a flat band of edge states at zero energy for \(\lvert k \rvert \lt 2\pi/3\). Without the dangling sites the edges are zigzag, and the flat band lies on the complementary range \(2\pi/3 \lt \lvert k \rvert \le \pi\). Both ribbons transmit one channel near zero energy.
Bulk bands along a path
The bulk bands are the eigenvalues of the Bloch Hamiltonian of the unit cell (one cell holding every sublattice, repeated along the primitive vectors),
$$ H(\mathbf k) = \sum_{\mathbf n} H_{0 \mathbf n}\, e^{i \sum_i n_i \theta_i} , \qquad \theta_i = \mathbf k \cdot \mathbf a_i , $$
as defined in Tight-Binding Models. A path through the Brillouin zone is given by its corners in Bloch phases, one per lattice direction. A point of Cartesian wave vector \(\mathbf k\) has the phases \(\theta_i = \mathbf k \cdot \mathbf a_i\); conversely, \(\mathbf k = \sum_j (\theta_j / 2\pi)\, \mathbf b_j\) with the reciprocal vectors \(\mathbf a_i \cdot \mathbf b_j = 2\pi \delta_{ij}\). Some points in phases:
| Lattice | Points \((\theta_1, \theta_2)\) |
|---|---|
| Square, BHZ, Qi–Wu–Zhang | \(\Gamma = (0, 0)\), \(X = (\pi, 0)\), \(M = (\pi, \pi)\) |
Honeycomb (Lattice::honeycomb) | \(\Gamma = (0, 0)\), \(K = (4\pi/3, 2\pi/3)\), \(K' = (2\pi/3, 4\pi/3)\), \(M = (\pi, 0)\) |
The point \(K\) of the honeycomb lattice is the Cartesian \((4\pi / 3\sqrt 3 a, 0)\), \(a\) the nearest-neighbour distance, where the two bands of graphene touch at zero energy.
The bands and spectrum runs of the caroli command
The caroli command computes these three things (The caroli Command):
| Run | What it diagonalises | Options | Columns |
|---|---|---|---|
spectrum | The Hamiltonian of the sample, with the disorder of each configuration; with periodic = true in [system], the torus of the sample at \(\boldsymbol\theta = 0\), its periods being the sizes along each lattice direction | configurations, scan | config, index, energy |
bands without path | The ribbon: the first slice of the sample along the axis of the leads (the axis of -x and +x, or of the first lead given), repeated along that axis, at the phases k | k (default 201 values from \(-\pi\) to \(\pi\)), scan | k, band, energy |
bands with path | The unit cell along the path through the corners of path (Bloch phases, numbers or expressions such as "4*pi/3") | points per segment (default 50), scan | s, band, energy |
spectrum refuses a sample of more than 8000 orbitals, a dense matrix of 1 GB, and suggests a density of states by the kernel polynomial method instead. bands uses the clean model and ignores the disorder, with a warning. Along a path, segment \(c\) is sampled at \(\boldsymbol\theta^{(c)} + (j / p)\, (\boldsymbol\theta^{(c+1)} - \boldsymbol\theta^{(c)})\) for \(j = 0, \dots, p - 1\), and the last corner is added at the end; the abscissa \(s\) is the length travelled in the space of the phases, \(\sum_c \lvert \boldsymbol\theta^{(c+1)} - \boldsymbol\theta^{(c)} \rvert\), which differs from the length in Cartesian \(\mathbf k\) when the primitive vectors are not orthonormal. The bands of a ribbon use the gauge of the model, landau_x for a field set by field: in a field, ribbon bands are right for ribbons along \(x\); along another axis, Lead::bands of a lead built by the library is. Bulk bands along a path assume a model invariant under the lattice translations, so without a field.
Accuracy and tests
The spectra and the ribbon bands of the BHZ model pin down its conventions (Dirac matrices, hoppings, on-site terms) against the thesis codes, which diagonalised them with LAPACK:
| Golden case | What it is | Agreement |
|---|---|---|
ti-diag | The 144 eigenvalues of a clean 6 × 6 BHZ flake with open boundaries | Within \(10^{-10}\), the test's bound |
ti-ribbon-bands | The 64 bands of a BHZ ribbon 16 sites wide, open along \(x\) and periodic along \(y\), at 32 values of \(k_y\), with a uniform same-g exchange \(J_s s_z\), \(J_s = 0.17\) (the mean field of polarised impurities, Disorder) | Within \(10^{-10}\), the test's bound |
ti-ribbon-bands-fourier-y | The ribbon bands of the 2013 code, \(M = -0.25\), \(\lambda = -0.1\) | \(2.5 \times 10^{-14}\), measured on 28 November 2026 |
The 2013 code used the transposes of the later Dirac matrices (\(\Gamma_{44} = -\tau_y\)), and its \(\Gamma_{14}\) was the anti-Hermitian \(-i s_y\). LAPACK's heev reads only the upper triangle, so the program diagonalised the Hermitian matrix whose \(y\) term is \(\sin k_y\, \tau_y - \lambda \sin k_y\, s_x\); caroli rebuilds that matrix to compare.
| Test | What it checks |
|---|---|
bands_and_spectrum (caroli-cli/tests/cli.rs) | On graphene (a 3 × 4 sample): the ribbon bands at \(k = 1\) and the dense spectrum equal the library's to \(10^{-12}\); the path from \(\Gamma\) to \(K = (4\pi/3, 2\pi/3)\) ends on two zero energies to \(10^{-12}\) |
blocks_make_up_the_full_model (caroli-model) | The spectrum of a BHZ flake is the union of those of its spin blocks, to \(10^{-12}\) |
flake_spectra_are_gauge_invariant (caroli-model) | Flake spectra in a field, the same in three gauges to \(10^{-12}\) |
any_fundamental_domain (caroli-model) | Two fundamental domains of one periodic system give the same spectrum to \(10^{-12}\) |
zigzag_graphene_ribbon (caroli/tests/tutorials.rs) | A graphene ribbon of 20 × 20 cells cut by Region::cuboid (edges along the zigzag direction, bearded) transmits one channel near the Dirac point, \(T = 1\) to \(10^{-8}\) at \(E = 0.02, -0.05, 0.08\) |
In the code
| Item | Role |
|---|---|
Model::hamiltonian | The dense Hamiltonian of a finite region |
Model::bloch_hamiltonian | The Hamiltonian of a supercell with twisted boundaries; the Bloch Hamiltonian of a ribbon or of the unit cell |
Lead::bands | The bands of a lead, \(h_{00} + h_{01} e^{ik} + h_{01}^{\dagger} e^{-ik}\), in increasing order |
TwoTerminal, AttachedLead | The leads of a two-terminal device (left, right) and of a multi-terminal one (h00, h01) |
caroli_dense::hermitian_eigen | Eigenvalues and eigenvectors of a Hermitian matrix |
caroli_kpm::Spectrum | Densities of states of samples too large for a dense matrix |
The eigenvalues themselves are faer's Mat::self_adjoint_eigenvalues. The runs bands and spectrum are in crates/caroli-cli/src/run.rs.
References
- G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed., Johns Hopkins University Press (2013), § 8.3: the symmetric QR algorithm; § 8.1: Weyl's bound on the perturbation of eigenvalues.
- B. A. Bernevig, T. L. Hughes and S.-C. Zhang, Quantum spin Hall effect and topological phase transition in HgTe quantum wells, Science 314, 1757 (2006).
- A. H. Castro Neto, F. Guinea, N. M. R. Peres, K. S. Novoselov and A. K. Geim, The electronic properties of graphene, Rev. Mod. Phys. 81, 109 (2009).
- K. Nakada, M. Fujita, G. Dresselhaus and M. S. Dresselhaus, Edge state in graphene ribbons: nanometer size effect and edge shape dependence, Phys. Rev. B 54, 17954 (1996).