Submitted:
14 August 2026
Posted:
17 August 2026
You are already at the latest version
Abstract
Hinge states are a characteristic boundary manifestation of three-dimensional higherorder topological phases, but identifying them in realistic Wannier tight-binding models requires a sequence of choices that is rarely automated: selection of a target bulk gap, construction of multiple mixed-boundary geometries, sparse solution of large wire Hamiltonians, and discrimination of corner-localized spectral weight from surface and bulk weight. We present HingeStateDetector, a computational method that performs this sequence using a wannier90_hr.dat Hamiltonian and a POSCAR as its mandatory inputs. The program parses and validates the real-space hopping model, estimates sampled global bulk gaps, constructs wires that are finite along two lattice directions and periodic along the third, and uses shift--invert sparse diagonalization near the selected gap. For every eigenstate it reports corner-, edge-, and interior-cell probabilities and builds an energy- and cell-resolved local density of states (LDOS). An automatic mode screens all three lattice axes, while machinereadable JSON and NPZ outputs retain the parameters and numerical evidence needed for convergence studies. We verify the implementation with the chiral hinge model of Benalcazar, Bernevig, and Hughes: only the expected periodic direction is classified as positive, four corner-localized branches traverse the bulk gap, and the interior weight falls below one percent for converged cross sections. A 30-orbital spinful Bi$_2$Se$_3$ Hamiltonian distributed with WannierTools provides a realistic stress test. In addition, a 128-orbital spinful Hamiltonian for the experimentally established higher-order topological insulator \(\alpha\)-Bi$_4$Br$_4$ supplies a real-material positive control. The detector selects the quasi-one-dimensional chain direction and retains corner-dominated in-gap candidates as the cross section grows from $3\times3$ to $5\times5$. These results establish an axis-resolved, quantitative route from Wannier interpolation to finite-boundary evidence, while showing explicitly why hinge localization alone is not a bulk topological invariant
Keywords:
higher-order topological insulators
; hinge states
; Wannier tight-binding Hamiltonians
; sparse diagonalization
; local density of states
1. Introduction
The bulk–boundary correspondence of a conventional three-dimensional topological insulator connects a bulk invariant to gapless states on a two-dimensional surface. Higher-order topological insulators generalize this correspondence: their surfaces can be gapped while protected states occur on one-dimensional hinges or at zero-dimensional corners. Quantized electric multipole insulators established a particularly transparent route to this hierarchy [1,2]. Shortly thereafter, complementary classifications based on crystalline symmetries, inversion, and boundary mass patterns placed hinge states in a broad theoretical setting [3,4,5,6]. Experimental and first-principles studies of bismuth further showed that the concept is relevant to realistic electronic structures rather than only to solvable lattice models [7,8].
Modern material calculations commonly bridge density-functional theory and boundary-state analysis with maximally localized Wannier functions. The foundational localization and disentanglement procedures [9,10] and the Wannier90 implementation [11,12] produce compact real-space Hamiltonians that retain an accurate description of a selected energy window. Such Hamiltonians have enabled high-throughput databases [13] and specialized analysis packages. WannierTools, for example, calculates surface spectra, topological invariants, and transport-related properties [14]; Z2Pack tracks hybrid Wannier charge centres [15]; and Kwant provides a general framework for quantum transport and open-system tight-binding calculations [16]. Recent programs have expanded the ecosystem towards model fitting, magnetic exchange, excitons, and optoelectronics [17,18,19]. These packages evaluate boundary spectra for a geometry specified by the user; none screens the lattice axes automatically or reports corner-resolved spectral weights as a reproducible classification.
Nevertheless, obtaining a Wannier Hamiltonian does not make hinge-state screening automatic. A researcher must identify an appropriate bulk energy gap, decide which pair of surfaces should be opened, build a wire that preserves translation along a possible hinge, compute only a small spectral window of a potentially large matrix, and determine whether in-gap eigenstates occupy corners rather than the complete boundary. These tasks are simple in principle but vulnerable to inconsistent phase conventions, omitted Wigner–Seitz degeneracies, coarse Brillouin-zone sampling, inappropriate surface terminations, and finite-size localization unrelated to a higher-order bulk invariant.
HingeStateDetector was developed to make this intermediate step reproducible. The program accepts the two files most often available after a Wannier calculation, wannier90_hr.dat and POSCAR, and produces both human-readable plots and machine-readable evidence. It screens each primitive lattice axis as a possible wire direction, evaluates spectral and spatial criteria, checks Hermiticity, and records every numerical choice in JSON. Its automatic LIKELY_HINGE_STATE label identifies boundary-localized spectral evidence for subsequent convergence and bulk-topology tests.
This article describes the mathematical convention, implementation, output model, and verification of HingeStateDetector. The first example is an exact positive control derived from the three-dimensional chiral hinge model of Benalcazar, Bernevig, and Hughes [2]. The second is the experimentally established HOTI -Bi4Br4, for which theory, ARPES, and spatially resolved measurements support chain-parallel one-dimensional hinge states [20,21,22]. The third uses the official 30-orbital spinful Bi2Se3 example distributed with WannierTools. Bi2Se3 is a canonical strong topological insulator [23,24,25], so it is an instructive test of both realistic model size and interpretive discipline. The resulting workflow is summarized in Figure 1.
2. Model and Numerical Method
2.1. Real-Space Wannier Representation
A Wannier90 Hamiltonian is stored as matrices between Wannier orbital n in a reference cell and orbital m in the cell displaced by integer lattice vector . With Wannier90’s Wigner–Seitz degeneracy , the Bloch Hamiltonian used here is
where the components of are fractional reciprocal coordinates. The parser reads the number of Wannier functions, the number and ordered list of lattice vectors, all degeneracies, and the complex matrix elements. Repeated entries are accumulated. Matrix elements smaller than a user-controlled cutoff can be removed, although the default preserves the supplied model.
The POSCAR provides the lattice matrix and is used to assign physical coordinates to repeated cells. Cartesian and direct atomic coordinates are accepted, including a selective-dynamics line, but atomic coordinates do not enter the Hamiltonian construction. This distinction is essential: hr.dat contains an orbital-indexed Hamiltonian but not the spatial coordinate of each Wannier centre, and POSCAR contains atomic positions but not an unambiguous orbital-to-atom map. Consequently, the current implementation resolves probability at the repeated-cell level. An orbital-resolved assignment would require additional information such as wannier90_centres.xyz or a user-supplied orbital map.
Before any boundary calculation, the program samples Equation (1) and evaluates
for all adjacent band indices v. A sampled global gap exists when . Among these gaps, the largest interval containing the requested reference energy is preferred. If none contains it, the code selects the nearest interval using a gap-normalized distance. This rule is useful because hr.dat does not encode the Fermi energy or the electron count. It also makes the limitation explicit: a coarse bulk mesh can miss a narrow indirect overlap, so gap convergence must precede a strong physical claim.
2.2. Mixed-Boundary Wire Hamiltonian
For a trial periodic axis p, the other two axes u and v are truncated to and complete unit cells. A basis state is indexed by , and the matrix dimension is
where is the number of Wannier orbitals. A hopping with displacement contributes only if both and remain within the finite cross section. Translation along p is retained through the phase factor . Thus,
The implementation assembles Equation (4) directly as a SciPy sparse matrix. Sparse diagonalization is central for realistic models because the full eigenspectrum scales cubically with D and stores many states far from the target gap. Instead, HingeStateDetector applies ARPACK through SciPy’s shift–invert interface and requests a user-defined number of eigenpairs around the bulk-gap midpoint. NumPy and SciPy supply the array and eigensolver infrastructure [26,27]; Matplotlib produces static figures [28].
The real-space hopping convention, boundary clipping, and phase factor are tested together by evaluating
The matrix is numerically symmetrized before diagonalization. If the maximum exceeds the requested tolerance, a positive-looking spectrum is downgraded to an inconclusive result rather than silently accepted.
2.3. Spatial Weights and Candidate Criterion
For a normalized eigenvector , the probability in cross-sectional cell is
The cross section is partitioned as illustrated in Figure 2. Corner masks contain square regions of complete cells at the four corners. The edge mask contains the remaining cells within layers of the boundary, and the bulk mask contains the interior. The corresponding weights , , and are sums of Equation (6); they obey up to rounding.
A state is a candidate if its energy lies inside the sampled bulk gap after a fractional margin has been removed, exceeds the corner threshold, , and is below the bulk threshold. A periodic direction receives the LIKELY_HINGE_STATE label if at least a specified fraction of sampled points contains one or more candidates. These thresholds are operational screening parameters, and all values are written to the output report so that the classification can be reproduced and varied systematically.
The cell-resolved LDOS provides a second, visually direct representation:
Here is the Lorentzian half-width. HingeStateDetector stores the complete three-dimensional array rather than only the plotted subset. In all LDOS figures, marker area follows the bounded linear mapping , while color is independently mapped with the jet palette. The two visual channels make high-LDOS points substantially larger than the background, while the NPZ array remains the quantitative source.
3. Computational Implementation and Workflow
Table 1 summarizes the computational scope. The principal executable, hinge_detector.py, is intentionally self-contained. Data classes represent the parsed structure, hopping model, selected gap, and result from one orientation. The parser and dense bulk Hamiltonian are separated from the sparse WireBuilder; the latter precomputes boundary-compatible index maps for every hopping block and reuses them over the one-dimensional momentum mesh. Independent functions implement region masks, state weights, LDOS accumulation, plotting, and JSON serialization. This separation makes it possible to test the marker scaling and topological/trivial demonstration models without running a large material calculation.
The minimum invocation is
python3 hinge_detector.py \
--hr wannier90_hr.dat --poscar POSCAR \
--output hinge_results --periodic-axis auto \
--size 8 8 --verbose
Automatic orientation mode executes three wire calculations, one for each primitive lattice direction. A recommended production workflow begins with a or cross section and modest k mesh, identifies the most promising direction, then repeats that direction with increasing cross section, bulk mesh, one-dimensional momentum mesh, and requested eigenpair count. The companion run_convergence.py automates this two-stage procedure and writes a consolidated convergence.json.
Each run produces a summary.json containing the overall status, selected axis, sampled gap, model dimensions, complete command parameters, orientation reports, runtime, and a textual interpretation. Each orientation directory contains report.json, hinge_data.npz, a corner-weighted band plot, a two-dimensional LDOS slice, and a static three-dimensional LDOS point cloud. If Plotly is installed, an interactive HTML point cloud is also written. Exit status 0 denotes at least one likely orientation, status 1 denotes a completed negative screen, status 2 means that no sampled global bulk gap was found, and status 3 denotes invalid input or a numerical error. In batch workflows, status 1 is therefore a scientific result rather than a crashed job. The source code, tests, input archives, run parameters, and numerical arrays underlying the reported figures are available at the following DOI: 10.5281/zenodo.21778263.
Table 2 lists the most consequential controls. The defaults are chosen for exploratory screening and should be converged for quantitative material calculations. In particular, the physical localization length need not equal one cell. Increasing corner-layers is appropriate for wider wires, but the mask should occupy a decreasing fraction of the cross-sectional area during a convergence study. Likewise, num-eigs must be large enough to include all bands inside and near the selected gap. A too-small request can make a complex surface manifold look artificially sparse.
4. Verification with a Chiral Hinge Model
4.1. Positive-Control Construction
The positive control implements the four-orbital chiral hinge Hamiltonian associated with Equation (132) of Benalcazar, Bernevig, and Hughes [2]. The chosen parameters place each constant- two-dimensional subsystem in the appropriate quadrupole regime over part of the Brillouin zone, producing chiral branches at the four hinges of a wire open along and . A generator writes the model in the standard Wannier90 text format together with a cubic POSCAR; the detector therefore exercises the same input path used for a first-principles Hamiltonian. The archived metadata identify the publication and DOI from which the model was transcribed.
The bulk mesh identifies a gap centred at zero. With a cross section, 31 momenta, and 24 eigenpairs, automatic orientation screening produces the result shown in Figure 3. Directions and are inconclusive: some states approach a single-cell corner weight of 0.468, but none satisfies the combined energy and spatial criteria. For periodic, 35.5% of momenta contain candidates, the maximum corner weight is unity, and the mean candidate weights are . The maximum relative Hermiticity error is .
The denser calculation in Figure 4 resolves four branches crossing at zero energy. Their red coloring corresponds to nearly unit corner weight around the crossing, while states merging into the bulk continua evolve continuously towards smaller corner weight. The LDOS at zero energy is concentrated at all four cross-sectional corners. Because LDOS marker area increases with intensity, the contrast does not depend only on subtle color differences. This simultaneous spectral flow and four-corner localization is stronger evidence than either an in-gap energy or an LDOS peak alone.
4.2. Finite-Size and Performance Behavior
Cross sections from to remain positive, as summarized in Table 3 and Figure 5. The mean candidate corner weight approaches approximately 0.916, while the mean interior weight falls below 0.01 for the two largest calculations. The four eigenvalues nearest zero at have a span of for and for and 16. The exceedingly small values reflect the exact structure and symmetry of this benchmark rather than a general promise of machine-zero splitting in materials.
The cost is not a clean power law because the calculations deliberately used different values of and requested eigenpairs, and because sparse LU fill-in depends on connectivity. The run requested 64 eigenpairs at 101 momenta and took approximately 2822 s, whereas the calculation took 28 s. These measurements support the staged strategy: orientation screening should use small wires and a narrow spectral window, followed by targeted convergence only for promising directions. For a material with 30 Wannier orbitals, Equation (3) gives already at ; a blind three-axis large-size scan would therefore be wasteful.
5. Real-Material Positive Control: -Bi4Br4
The van der Waals material -Bi4Br4 provides the real-material positive control required to test HingeStateDetector beyond an ideal lattice model. Its HOTI identity is established independently of the present calculation. First-principles theory identifies a rotational-symmetry-protected three-dimensional crystalline phase with one-dimensional hinge states along the quasi-1D chains [20]. ARPES measurements subsequently showed that the stacking of quantum-spin-Hall building blocks realizes a three-dimensional HOTI [21]. More recent spatially and spin-resolved spectroscopy found gapped surface states together with in-gap states connecting the surface valence and conduction bands, providing additional hinge-state evidence [22]. Together, these studies establish -Bi4Br4 as a real-material HOTI positive control independently of the present detector calculation.
For reproducibility, we use the NIST JARVIS-WTBH entry JVASP-32759 [13]. Its reduced formula is BiBr and its space group is (No. 12); the supplied POSCAR contains eight Bi and eight Br atoms, corresponding to two Bi4Br4 formula units. The official archive contains the mutually matched POSCAR, wannier90_hr.dat, Wannier90 input and output, and the JARVIS validation record. The Hamiltonian has 128 spinor Wannier orbitals constructed from Bi and Br projections and 85 nonzero lattice-vector blocks. We use its mesh Fermi energy, 2.95712475 eV, as the reference energy. The JARVIS Hamiltonian is an independent high-throughput Wannierization of the same material and need not be numerically identical to the models used in Refs. [20,21,22].
An exploratory calculation scanned all primitive lattice axes with 11 momenta and 16 eigenpairs. The best direction was lattice axis 2, which is the quasi-one-dimensional chain and expected hinge direction. We then retained this direction for and wires using 21 momenta and 24 shift–invert eigenpairs. Increasing the bulk mesh from to changed the sampled gap only from 0.169929 to 0.167591 eV, with the final interval eV. The sparse Hamiltonian has dimension 3200 and remained numerically Hermitian to .
Figure 6 summarizes the resulting positive control. At , 52.4% of the sampled chain momenta contain at least one candidate, the maximum corner weight is 0.718, and the mean candidate weights are . The LDOS at 3.069 eV is concentrated at the two diagonally opposite termination corners selected by this complete unit-cell cut. Marker areas are linearly proportional to normalized LDOS and are capped so that neighboring cells remain visible. The interior weight stays below 0.026 throughout the – sequence, while the corner weight remains larger than the remaining edge weight. These results reproduce the expected combination of a chain-parallel in-gap spectrum and cross-sectional hinge localization for a material whose higher-order topology is known independently.
The complete-cell boundary of the JARVIS model need not be atomically identical to the cleaved surfaces studied experimentally, and the finite wire contains additional surface-derived levels. Nevertheless, the selected direction, in-gap spectrum, and cross-sectional localization agree with the established hinge phenomenology of -Bi4Br4, providing a real-material validation of the detector.
6. Real-Material Stress Test: Bi2Se3
Bi2Se3 is a useful real-material input for two reasons. Its strong topological-insulator band structure is established by first-principles theory, photoemission, and low-energy modeling [23,24,25], while its Wannier model is publicly distributed as an official WannierTools example [14]. The archived POSCAR and wannier90_hr.dat contain a rhombohedral cell and a 30-orbital spinful basis built from Bi and Se p orbitals. The Hamiltonian has 547 nonzero lattice-vector blocks. We use the tutorial reference energy 4.4195 eV and retain the files without re-fitting or modifying the hoppings. The source URLs and raw input archive are preserved with the manuscript.
A bulk mesh for initial screening gave a sampled gap of 0.315 eV. The first two primitive-axis wires were inconclusive, while the third was positive. We then calculated and cross sections along this direction. For the wire, an bulk mesh gives eV. Thirty-one momenta and 32 shift–invert eigenpairs produce the spectrum in Figure 7. The mean candidate weights are and the maximum corner weight is 0.701. The maximum wire Hermiticity error is .
This case tests the specificity of the geometric classifier. The candidate bands remain near the lower bulk-gap edge instead of displaying the unambiguous gap-spanning spectral flow of the BBH control. The representative LDOS is dominated by one corner, and the interior weight increases from 0.131 at to 0.168 at for the fixed one-cell mask. The threshold-based classifier has therefore found geometrically localized wire states without the spectral signature of the positive control. Because Bi2Se3 is canonically described as a first-order strong topological insulator, surface-state quantization, termination-specific potentials, and unit-cell grouping are plausible sources of this signal.
We therefore interpret this output as a boundary-localization signal rather than a higher-order assignment. Establishing such an assignment would require surface and termination calculations, larger-wire scaling, and an independent crystalline invariant or boundary-mass analysis. The example simultaneously verifies the parser and sparse solver for a realistic spin-orbit-coupled Hamiltonian.
7. Robustness, Applicability, and Limitations
The two mandatory files make HingeStateDetector broadly reusable. The hr.dat file must follow the standard Wannier90 real-space format, including degeneracies, and the POSCAR lattice must correspond to the same primitive or conventional cell used for the Hamiltonian. The target energy must lie near the intended insulating gap, and the system must have a sampled global gap. Metals and semimetals are outside the current classifier’s assumptions.
Only wires parallel to a supplied lattice vector are generated automatically. Many physically relevant hinges are defined by non-primitive Miller planes, surface reconstructions, cleavage choices, or enlarged surface cells. A general transformation to an integer supercell basis and a termination builder would be needed for these cases. Even for an axis-aligned wire, cutting complete cells selects one particular termination. Adding or removing a surface layer can alter trivial boundary bands without changing the bulk Hamiltonian, so termination robustness is a physical test rather than a software detail.
Cell-level localization is another deliberate compromise. Summing over all Wannier functions in a repeated cell is invariant under unitary rotations among those orbitals and is sufficient for localization at well-separated wire corners. It cannot reveal which atom, orbital, or Wannier centre carries the state, and it can exaggerate “corner” localization when the cross section contains only a few cells. For example, the four one-cell corner masks occupy 44% of a cross section before edges are separately counted. Production calculations therefore require larger cross sections and should monitor both the absolute localization length and the fractional mask area.
The bulk-gap estimator is based on a regular mesh rather than an optimizer over the Brillouin zone. This choice is transparent and parallelizable, but a small indirect overlap can be missed. Increasing bulk-mesh, checking high-symmetry paths, and comparing the Wannier bands against the parent first-principles calculation are necessary safeguards. The latter calculation may originate from VASP [29], Quantum ESPRESSO [30], or another electronic-structure package.
The classifier intentionally combines several imperfect indicators. Corner weight rejects states distributed along complete surfaces, the edge comparison rejects states spread around the perimeter, the interior threshold penalizes bulk-like states, and the momentum-fraction test suppresses isolated accidental levels. No fixed threshold is basis-, size-, and material-independent. The machine-readable arrays make it possible to replace these defaults with continuous diagnostics, localization-length fits, inverse participation ratios, clustering, or supervised ranking without repeating the expensive eigensolutions.
The boundary diagnostics complement the bulk invariants and surface observables available from programs such as Z2Pack and WannierTools [14,15]. Combining these layers yields a reproducible topological-materials workflow, as illustrated by the analytically known BBH benchmark and the independently established Bi4Br4 positive control.
8. Conclusions
HingeStateDetector converts a common pair of electronic-structure outputs into a reproducible search for hinge-localized wire states. The implementation handles Wannier90 degeneracies, selects a sampled bulk gap near a user-specified energy, assembles three mixed-boundary sparse Hamiltonian families, solves only the relevant spectral window, and quantifies corner, edge, and interior probability. Static and interactive LDOS products complement the band spectrum, while JSON and NPZ outputs preserve the complete numerical evidence.
The chiral BBH benchmark reproduces the expected axis-selective, four-corner, gap-spanning hinge modes and remains positive through a size sequence. The 128-orbital JARVIS-WTBH model of the experimentally established HOTI -Bi4Br4 selects the chain direction and retains corner-dominated candidates through a – sequence. The official WannierTools Bi2Se3 model demonstrates that the same code also handles a realistic 30-orbital spin-orbit Hamiltonian and provides a specificity stress test for the geometric classifier.
Future development should add arbitrary integer surface transformations, explicit surface termination editing, use of Wannier-centre coordinates, orbital- and atom-resolved LDOS, iterative Green-function alternatives to finite wires, symmetry annotations, and interfaces to bulk-invariant calculations. In its present form, HingeStateDetector provides a transparent and reproducible boundary-localization layer that identifies hinge-like spectral weight and retains the information needed for subsequent topological analysis.
Author Contributions
Conceptualization, C.L.; Methodology, C.L. and X.H.; Software, C.L. and X.H.; Validation, C.L. and X.H.; Formal analysis, C.L.; Investigation, C.L. and X.H.; Resources, C.L. and X.H.; Data curation, C.L.; Writing—original draft, C.L.; Writing—review & editing, C.L. and X.H.; Visualization, C.L.
Funding
Not applicable.
Data Availability Statement
The data and material that support the findings of this study are openly available at the following DOI: 10.5281/zenodo.21778263.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Benalcazar, W.A.; Bernevig, B.A.; Hughes, T.L. Quantized electric multipole insulators. Science 2017, 357, 61–66. [Google Scholar] [CrossRef] [PubMed]
- Benalcazar, W.A.; Bernevig, B.A.; Hughes, T.L. Electric multipole moments, topological multipole moment pumping, and chiral hinge states in crystalline insulators. Phys. Rev. B 2017, 96, 245115. [Google Scholar] [CrossRef]
- Langbehn, J.; Peng, Y.; Trifunovic, L.; von Oppen, F.; Brouwer, P.W. Reflection-Symmetric Second-Order Topological Insulators and Superconductors. Phys. Rev. Lett. 2017, 119, 246401. [Google Scholar] [CrossRef] [PubMed]
- Song, Z.; Fang, Z.; Fang, C. (d-2)-Dimensional Edge States of Rotation Symmetry Protected Topological States. Phys. Rev. Lett. 2017, 119, 246402. [Google Scholar] [CrossRef] [PubMed]
- Khalaf, E. Higher-order topological insulators and superconductors protected by inversion symmetry. Phys. Rev. B 2018, 97, 205136. [Google Scholar] [CrossRef]
- Geier, M.; Trifunovic, L.; Hoskam, M.; Brouwer, P.W. Second-order topological insulators and superconductors with an order-two crystalline symmetry. Phys. Rev. B 2018, 97, 205135. [Google Scholar] [CrossRef]
- Schindler, F.; Cook, A.M.; Vergniory, M.G.; Wang, Z.; Parkin, S.S.P.; Bernevig, B.A.; Neupert, T. Higher-order topological insulators. Sci. Adv. 2018, 4, eaat0346. [Google Scholar] [CrossRef] [PubMed]
- Schindler, F.; Wang, Z.; Vergniory, M.G.; Cook, A.M.; Murani, A.; Sengupta, S.; Kasumov, A.Y.; Deblock, R.; Jeon, S.; Drozdov, I.; et al. Higher-order topology in bismuth. Nat. Phys. 2018, 14, 918–924. [Google Scholar] [CrossRef] [PubMed]
- Marzari, N.; Vanderbilt, D. Maximally localized generalized Wannier functions for composite energy bands. Phys. Rev. B 1997, 56, 12847–12865. [Google Scholar] [CrossRef]
- Souza, I.; Marzari, N.; Vanderbilt, D. Maximally localized Wannier functions for entangled energy bands. Phys. Rev. B 2001, 65, 035109. [Google Scholar] [CrossRef]
- Mostofi, A.A.; Yates, J.R.; Lee, Y.S.; Souza, I.; Vanderbilt, D.; Marzari, N. wannier90: A tool for obtaining maximally-localised Wannier functions. Comput. Phys. Commun. 2008, 178, 685–699. [Google Scholar] [CrossRef]
- Mostofi, A.A.; Yates, J.R.; Pizzi, G.; Lee, Y.S.; Souza, I.; Vanderbilt, D.; Marzari, N. An updated version of wannier90: A tool for obtaining maximally-localised Wannier functions. Comput. Phys. Commun. 2014, 185, 2309–2310. [Google Scholar] [CrossRef]
- Garrity, K.F.; Choudhary, K. Database of Wannier tight-binding Hamiltonians using high-throughput density functional theory. Sci. Data 2021, 8, 106. [Google Scholar] [CrossRef] [PubMed]
- Wu, Q.; Zhang, S.; Song, H.F.; Troyer, M.; Soluyanov, A.A. WannierTools: An open-source software package for novel topological materials. Comput. Phys. Commun. 2018, 224, 405–416. [Google Scholar] [CrossRef]
- Gresch, D.; Autès, G.; Yazyev, O.V.; Troyer, M.; Vanderbilt, D.; Bernevig, B.A.; Soluyanov, A.A. Z2Pack: Numerical implementation of hybrid Wannier centers for identifying topological materials. Phys. Rev. B 2017, 95, 075146. [Google Scholar] [CrossRef]
- Groth, C.W.; Wimmer, M.; Akhmerov, A.R.; Waintal, X. Kwant: A software package for quantum transport. New J. Phys. 2014, 16, 063065. [Google Scholar] [CrossRef]
- Nakhaee, M.; Ketabi, S.A.; Peeters, F.M. Tight-Binding Studio: A technical software package to find the parameters of tight-binding Hamiltonian. Comput. Phys. Commun. 2020, 254, 107379. [Google Scholar] [CrossRef]
- He, X.; Helbig, N.; Verstraete, M.J.; Bousquet, E. TB2J: A python package for computing magnetic interaction parameters. Comput. Phys. Commun. 2021, 264, 107938. [Google Scholar] [CrossRef]
- Dias, A.C.; Silveira, J.F.; Qu, F. WanTiBEXOS: A Wannier based Tight Binding code for electronic band structure, excitonic and optoelectronic properties of solids. Comput. Phys. Commun. 2023, 285, 108636. [Google Scholar] [CrossRef]
- Hsu, C.H.; Zhou, X.; Ma, Q.; Gedik, N.; Bansil, A.; Pereira, V.M.; Lin, H.; Fu, L.; Xu, S.Y.; Chang, T.R. Purely rotational symmetry-protected topological crystalline insulator α-Bi4Br4. 2D Mater. 2019, 6, 031004. [Google Scholar] [CrossRef]
- Noguchi, R.; Kobayashi, M.; Jiang, Z.; Kuroda, K.; Takahashi, T.; Xu, Z.; Lee, D.; Hirayama, M.; Ochi, M.; Shirasawa, T.; et al. Evidence for a higher-order topological insulator in a three-dimensional material built from van der Waals stacking of bismuth-halide chains. Nat. Mater. 2021, 20, 473–479. [Google Scholar] [CrossRef] [PubMed]
- Zhao, W.; Yang, M.; Xu, R.; Du, X.; Li, Y.; Zhai, K.; Peng, C.; Pei, D.; Gao, H.; Li, Y.; et al. Topological electronic structure and spin texture of quasi-one-dimensional higher-order topological insulator Bi4Br4. Nat. Commun. 2023, 14, 8089. [Google Scholar] [CrossRef] [PubMed]
- Zhang, H.; Liu, C.X.; Qi, X.L.; Dai, X.; Fang, Z.; Zhang, S.C. Topological insulators in Bi2Se3, Bi2Te3 and Sb2Te3 with a single Dirac cone on the surface. Nat. Phys. 2009, 5, 438–442. [Google Scholar] [CrossRef]
- Xia, Y.; Qian, D.; Hsieh, D.; Wray, L.; Pal, A.; Lin, H.; Bansil, A.; Grauer, D.; Hor, Y.S.; Cava, R.J.; et al. Observation of a large-gap topological-insulator class with a single Dirac cone on the surface. Nat. Phys. 2009, 5, 398–402. [Google Scholar] [CrossRef]
- Liu, C.X.; Qi, X.L.; Zhang, H.; Dai, X.; Fang, Z.; Zhang, S.C. Model Hamiltonian for topological insulators. Phys. Rev. B 2010, 82, 045122. [Google Scholar] [CrossRef]
- Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N.J.; et al. Array Programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef] [PubMed]
- Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed]
- Hunter, J.D. Matplotlib: A 2D Graphics Environment. Comput. Sci. Eng. 2007, 9, 90–95. [Google Scholar] [CrossRef]
- Kresse, G.; Furthmüller, J. Efficient iterative schemes for ab initio total-energy calculations using a plane-wave basis set. Phys. Rev. B 1996, 54, 11169–11186. [Google Scholar] [CrossRef] [PubMed]
- Giannozzi, P.; Baroni, S.; Bonini, N.; Calandra, M.; Car, R.; Cavazzoni, C.; Ceresoli, D.; Chiarotti, G.L.; Cococcioni, M.; Dabo, I.; et al. QUANTUM ESPRESSO: A modular and open-source software project for quantum simulations of materials. J. Phys. Condens. Matter 2009, 21, 395502. [Google Scholar] [CrossRef] [PubMed]
Figure 1.
Overview of the HingeStateDetector workflow. A Wannier90 real-space Hamiltonian and a crystal structure are converted into sparse finite-wire problems. Spectrum and LDOS localization are combined into a candidate assessment.Schematic only (no actual physical data)
Figure 1.
Overview of the HingeStateDetector workflow. A Wannier90 real-space Hamiltonian and a crystal structure are converted into sparse finite-wire problems. Spectrum and LDOS localization are combined into a candidate assessment.Schematic only (no actual physical data)

Figure 2.
Geometry and numerical evidence chain. (a) A wire is finite along two lattice directions and periodic along the trial hinge direction. Complete cross-sectional cells are divided into corner, edge, and interior masks. (b) Parsing, partial Fourier transformation, sparse solution, and spatial classification are performed for each periodic momentum. Colors use the same jet palette as the numerical figures.
Figure 2.
Geometry and numerical evidence chain. (a) A wire is finite along two lattice directions and periodic along the trial hinge direction. Complete cross-sectional cells are divided into corner, edge, and interior masks. (b) Parsing, partial Fourier transformation, sparse solution, and spatial classification are performed for each periodic momentum. Colors use the same jet palette as the numerical figures.

Figure 3.
Automatic orientation search for the BBH chiral hinge model. Eigenvalue color and marker area encode corner weight. The same sampled bulk gap is shaded in each panel. Opening the two directions transverse to reveals the expected in-gap branches, whereas the other two primitive-axis wires are classified as inconclusive.
Figure 3.
Automatic orientation search for the BBH chiral hinge model. Eigenvalue color and marker area encode corner weight. The same sampled bulk gap is shaded in each panel. Opening the two directions transverse to reveals the expected in-gap branches, whereas the other two primitive-axis wires are classified as inconclusive.

Figure 4.
Positive-control evidence for a BBH wire. (a) Four strongly corner-localized branches traverse the sampled bulk gap. Dashed lines mark its edges. (b) Cell-resolved LDOS at zero energy is localized at the four corners. Color represents LDOS and marker area scales linearly with normalized LDOS using a conservative upper area bound.
Figure 4.
Positive-control evidence for a BBH wire. (a) Four strongly corner-localized branches traverse the sampled bulk gap. Dashed lines mark its edges. (b) Cell-resolved LDOS at zero energy is localized at the four corners. Color represents LDOS and marker area scales linearly with normalized LDOS using a conservative upper area bound.

Figure 5.
Finite-size verification and measured computational cost for the BBH case. (a) Mean spatial weights of candidate states. (b) End-to-end runtime versus sparse matrix dimension; point color and size encode wire width. The last point illustrates that shift–invert factorization and a dense requested spectral window can become expensive even when the matrix dimension is only about .
Figure 5.
Finite-size verification and measured computational cost for the BBH case. (a) Mean spatial weights of candidate states. (b) End-to-end runtime versus sparse matrix dimension; point color and size encode wire width. The last point illustrates that shift–invert factorization and a dense requested spectral window can become expensive even when the matrix dimension is only about .

Figure 6.
Real-HOTI positive control using the JARVIS-WTBH -Bi4Br4 Hamiltonian. (a) Sampled bulk-gap and candidate-momentum convergence for bulk meshes and wire widths 3–5. (b) Spectrum of the wire periodic along lattice axis 2; color and marker area encode corner weight, and dashed lines mark the sampled bulk-gap edges. (c) Cross-sectional LDOS at 3.069 eV, with bounded marker area varying linearly with normalized LDOS. (d) Mean corner, remaining-edge, and interior weights of candidate states.
Figure 6.
Real-HOTI positive control using the JARVIS-WTBH -Bi4Br4 Hamiltonian. (a) Sampled bulk-gap and candidate-momentum convergence for bulk meshes and wire widths 3–5. (b) Spectrum of the wire periodic along lattice axis 2; color and marker area encode corner weight, and dashed lines mark the sampled bulk-gap edges. (c) Cross-sectional LDOS at 3.069 eV, with bounded marker area varying linearly with normalized LDOS. (d) Mean corner, remaining-edge, and interior weights of candidate states.

Figure 7.
Real-material stress test using the official WannierTools Bi2Se3 Hamiltonian. (a) The wire has a narrow manifold near the lower sampled gap edge with appreciable corner weight. (b) LDOS at 4.288 eV is dominated by one cross-sectional corner; marker area scales linearly with normalized LDOS. (c) Mean candidate weights for two finite sizes. The result provides a specificity test of the geometric classifier.
Figure 7.
Real-material stress test using the official WannierTools Bi2Se3 Hamiltonian. (a) The wire has a narrow manifold near the lower sampled gap edge with appreciable corner weight. (b) LDOS at 4.288 eV is dominated by one cross-sectional corner; marker area scales linearly with normalized LDOS. (c) Mean candidate weights for two finite sizes. The result provides a specificity test of the geometric classifier.

Table 1.
Computational scope of HingeStateDetector.
| Programming language | Python 3 |
|---|---|
| External libraries | NumPy, SciPy, Matplotlib; Plotly is optional |
| Input | Wannier90 wannier90_hr.dat and POSCAR |
| Output | JSON reports, compressed NPZ arrays, static PNG figures, and optional interactive HTML LDOS plots |
| Nature of problem | Detecting spectrally isolated states localized at the corners of a finite cross section and extended along a periodic wire direction in a three-dimensional Wannier tight-binding model. |
| Solution method | A sampled bulk gap is selected near a reference energy. Sparse mixed-boundary Hamiltonians are assembled for one or all lattice-axis orientations, solved near the gap by shift–invert diagonalization, and classified from corner, edge, and interior probability weights. Lorentzian broadening produces cell-resolved LDOS maps. |
| Restrictions | The current implementation resolves complete repeated cells rather than individual Wannier centres and supports lattice-axis-aligned terminations. |
Table 2.
Principal command-line parameters and their numerical roles.
| Parameter | Default | Role |
|---|---|---|
| –periodic-axis | auto | Trial hinge direction(s) |
| –size | Finite cross-section dimensions | |
| –nk | 41 | One-dimensional momentum points |
| –num-eigs | 24 | Eigenpairs near gap midpoint |
| –bulk-mesh | 6 | Bulk mesh per reciprocal direction |
| –reference-energy | 0 eV | Target used for gap selection |
| –corner-layers | 1 | Thickness of localization masks |
| –corner-threshold | 0.45 | Minimum |
| –bulk-threshold | 0.30 | Maximum |
| –min-k-fraction | 0.15 | Required positive momentum fraction |
| –eta | 0.015 eV | LDOS Lorentzian broadening |
Table 3.
BBH finite-size verification. Runtime is measured end to end on the development machine and includes spectrum and LDOS generation.
Table 3.
BBH finite-size verification. Runtime is measured end to end on the development machine and includes spectrum and LDOS generation.
| N | D | time (s) | |||
|---|---|---|---|---|---|
| 6 | 144 | 31 | 0.8674 | 0.01364 | 2.84 |
| 8 | 256 | 101 | 0.8609 | 0.01584 | 4.47 |
| 12 | 576 | 101 | 0.9168 | 0.00906 | 28.22 |
| 16 | 1024 | 101 | 0.9163 | 0.00924 | 2822.17 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.