Introduction

About a decade ago, a renewed interest in flat band (FB) systems1 gave way to a new cycle of studies devoted to the topic (a more detailed chronology can be found in ref. 2), and it has no signs of slowing down. In this recent wave of studies, the focus has gradually shifted towards the compact localized states (CLSs) that span most types of FBs. For one-dimensional (1D) models, it has been shown that these CLSs form an orthogonal set when the FB projector is strictly local, and a non-orthogonal one otherwise3,4. Based on the form of the CLSs, FB generators were constructed for 1D5,6 and higher-dimensional7,8,9,10,11 models.

An interesting class of FB systems is the (self-explanatory) class of all-bands-flat (ABF) models12,13, where transport is completely suppressed, since any local excitation in an ABF model can be written as a linear combination of CLSs belonging to the different FBs, leading to the phenomenon of particle confinement known as Aharonov-Bohm (AB) caging14. The diamond chain with a π-flux per plaquette15,16,17,18,19,20, along with its 2n-root versions21,22, is a prime example of an ABF model exhibiting AB caging that has been thoroughly investigated. In this and other related ABF models, the effects of weak perturbations have been studied by projecting the perturbation operator onto one of the FBs. For example, this method was employed to study weak disorder in the ABF Creutz ladder23,24, and weak interactions in both this model25 and the diamond chain26, shown to be able to induce dynamical effects27 in two-body states where it would otherwise be absent, due to the infinite effective mass of the states of a FB. Conversely, strong interactions can drive the appearance of effective ABF many-body subspaces, in models with a dispersive single-particle energy spectrum28.

Here, we address the case of a diamond chain with a finite flux per plaquette, and introduce a perturbation in the form of weak local potentials in the midchain plaquette, as schematically illustrated in Fig. 1a. By projecting this impurity perturbation onto the gapped zero-energy FB, only two partially overlapping CLSs have finite weight at the impurity sites. However, due to the non-orthogonal nature of adjacent CLSs, we show that the analytical treatment of the system requires one to reexpress the problem in terms of its dual basis states. This greatly simplifies the problem, by reducing it to the solutions of a decoupled dimer in a non-orthogonal dual subspace. We then derive the analytical solutions for the impurity states that are lifted from the FB as a function of the magnetic flux, focusing on the cases of two equal impurities, two opposite impurities, and a single-impurity, where near-perfect agreement with numerical results is observed. Finally, for the single-impurity case, we further demonstrate how it corresponds to a non-trivial topological phase characterized by half-integer topological invariants. Upon mapping this system onto an equivalent 2D lattice decorated with a central line of defects, we provide indirect evidence of a refined bulk-boundary correspondence by relating the half-integer bulk invariants with the presence of a single in-gap edge state in the spectrum of the mapped lattice.

Fig. 1: Diamond chain.
figure 1

a Diamond chain with ϕ flux per plaquette, distributed uniformly by the four hopping terms of each plaquette, with positive phase accumulated in the clockwise direction. Green shaded region represents the qth unit cell with sites Aq, Bq and Cq, while dashed blue and dotted orange regions represent the spatial width of adjacent CLSs \(\left\vert \,{\mbox{Loc}}\,,q+3\right\rangle\) and \(\left\vert \,{\mbox{Loc}}\,,q+4\right\rangle\), respectively, which overlap in the middle B and C sites. Onsite impurity potentials ϵB and ϵC are placed at the orange Bq+1 and light blue Cq+1 sites, respectively. b Bulk energy spectrum, in units of t, of the diamond chain for three representative values of the ϕ flux per plaquette. The zero-energy flat band is common to all ϕ values.

Results

Basics of non-orthogonal bases

In this section, we will review some basic results of non-orthogonal bases, particularly in what concerns the definition of projection operators and the procedure for diagonalizing a Hamiltonian written in such a basis. We will heavily rely in the theory outlined in ref. 29, as well in the summarized results provided in the appendix of ref. 30. Let us start by considering a non-orthogonal basis \(\{\left\vert i\right\rangle \}\), not necessarily normalized. The elements of the overlap matrix S of this basis are written as Sij = 〈ij〉, with S further assumed to be a real symmetric matrix Sij = Sji. Evidently, S reduces to the identity I for an orthonormal basis. One can define the dual basis \(\{\left\vert {i}^{* }\right\rangle \}\), whose states are defined by the property 〈ij*〉 = δij, with δij the Kronecker delta. The transformation of states between the direct and dual bases is given by

$$\left\vert i\right\rangle ={\sum}_{j}{S}_{ij}\left\vert {j}^{* }\right\rangle ,\quad \left\vert {i}^{* }\right\rangle ={\sum}_{j}{S}_{ij}^{-1}\left\vert j\right\rangle ,$$
(1)

where the usual slight abuse of language of writing \({({{{{\bf{S}}}}}^{-1})}_{ij}\) as \({S}_{ij}^{-1}\) is used here and throughout the text for simplicity. The identity operator can therefore be expressed in several different forms, as

$$\hat{I}={\sum}_{i}\left\vert i\right\rangle \left\langle {i}^{* }\right\vert ={\sum}_{ij}\left\vert i\right\rangle {S}_{ij}^{-1}\left\langle j\right\vert ,$$
(2)

which is widely used, e.g., in systems of coupled coherent states31,32 that form an overcomplete non-orthogonal basis, or alternatively as

$$\hat{I}={\sum}_{i}\left\vert {i}^{* }\right\rangle \left\langle i\right\vert ={\sum}_{ij}\left\vert {i}^{* }\right\rangle {S}_{ij}\left\langle {j}^{* }\right\vert .$$
(3)

From \({\hat{I}}^{2}=\hat{I}\), one can derive the following useful identity,

$${\sum}_{k}{S}_{ik}^{-1}{S}_{kj}={\delta }_{ij}.$$
(4)

Projection of operators onto a non-orthogonal subspace

It is convenient, for later use, to consider the case of a basis of size N + M composed of two orthogonal subspaces, \(\{\left\vert i\right\rangle \}=\{\left\vert \,{\mbox{Loc}}\,,n\right\rangle \}\cup \{\left\vert \,{\mbox{Ext}}\,,m\right\rangle \}\), with n = 1, 2, …, N and m = 1, 2, …, M, and where, anticipating the notation that will be used later on, \(\{\left\vert \,{\mbox{Loc}}\,,n\right\rangle \}\) stands for the non-orthogonal subspace of localized states and \(\{\left\vert \,{\mbox{Ext}}\,,m\right\rangle \}\) for the orthonormal subspace of extended states. The total overlap matrix reads as Stot = S IM, where IM is the identity matrix of size M. The projection operator onto the non-orthogonal subspace is written as

$${\hat{P}}_{{{{\rm{Loc}}}}} = {\sum}_{j=1}^{N}\left\vert \,{\mbox{Loc}}\,,j\right\rangle \left\langle \,{\mbox{Loc}}\,,{j}^{* }\right\vert \\ = {\sum}_{j=1}^{N}\left\vert \,{\mbox{Loc}}\,,j\right\rangle {\sum}_{i=1}^{N+M}{S}_{ij}^{-1}\left\langle i\right\vert \\ = {\sum}_{i,j=1}^{N}\left\vert \,{\mbox{Loc}}\,,j\right\rangle {S}_{ij}^{-1}\left\langle \,{\mbox{Loc}}\,,i\right\vert ,$$
(5)

where \(\left\vert \,{\mbox{Loc}}\,,{j}^{* }\right\rangle\) belongs to the dual localized subspace and the orthogonality between subspaces was used in the last line. Correspondingly,

$${\hat{P}}_{{{{\rm{Loc}}}}}^{{{\dagger}} } = {\sum}_{j=1}^{N}\left\vert \,{\mbox{Loc}}\,,{j}^{* }\right\rangle \left\langle \,{\mbox{Loc}}\,,j\right\vert \\ = {\sum}_{i,j=1}^{N}\left\vert \,{\mbox{Loc}}\,,i\right\rangle {S}_{ij}^{-1}\left\langle \,{\mbox{Loc}}\,,j\right\vert ={\hat{P}}_{{{{\rm{Loc}}}}}.$$
(6)

Given an arbitrary operator \(\hat{A}\), its projection onto the non-orthogonal subspace can be developed as

$${\hat{A}}_{{{{\rm{Loc}}}}} = {\hat{P}}_{{{{\rm{Loc}}}}}^{{{\dagger}} }\hat{A}{\hat{P}}_{{{{\rm{Loc}}}}}\\ = {\sum}_{i,j=1}^{N}\left\vert \,{\mbox{Loc}}\,,{i}^{* }\right\rangle {A}_{ij}\left\langle \,{\mbox{Loc}}\,,{j}^{* }\right\vert ,$$
(7)

where \({A}_{ij}=\left\langle \,{\mbox{Loc}}\,,i\right\vert \hat{A}\left\vert \,{\mbox{Loc}}\,,j\right\rangle\).

Symmetric orthonormalization

Given a non-orthogonal basis, one can always find an orthonormalized basis through the Gram-Schmidt method33, which relies on a recursive state-by-state orthogonalization procedure. However, this method can be very computationally demanding and prone to numerical instabilities. A more efficient method consists of using the Löwdin transformation34,35 to perform a symmetrical orthogonalization of a non-orthogonal basis. With this transformation, and from a non-orthogonal basis spanning \(\{\left\vert i\right\rangle \}\), with i = 1, 2, …, N, one can find the orthogonal basis states with the help of the overlap matrix as

$$\left\vert \tilde{i}\right\rangle ={\sum}_{j}{S}_{ij}^{-\frac{1}{2}}\left\vert j\right\rangle ,$$
(8)

where, again, we use the simplified notation \({S}_{ij}^{-\frac{1}{2}}\equiv {({{{{\bf{S}}}}}^{-\frac{1}{2}})}_{ij}\). The secular equation, in this basis, is computed through the effective Hamiltonian \(\tilde{{{{\bf{H}}}}}\),

$$\tilde{{{{\bf{H}}}}}\tilde{{{{{\boldsymbol{\psi }}}}}_{j}}={E}_{j}\tilde{{{{{\boldsymbol{\psi }}}}}_{j}},\,\,j=1,2,\ldots ,N,$$
(9)
$$\tilde{{{{\bf{H}}}}}={{{{\bf{S}}}}}^{-\frac{1}{2}}{{{\bf{H}}}}{{{{\bf{S}}}}}^{-\frac{1}{2}},$$
(10)

where H is the Hamiltonian matrix written in the starting non-orthogonal \(\{\left\vert i\right\rangle \}\) basis, also called the core Hamiltonian36, and \(\tilde{{{{{\boldsymbol{\psi }}}}}_{j}}\) is the jth eigenvector with components spanning the orthogonal \(\{\left\vert \tilde{i}\right\rangle \}\) basis.

Diamond chain with flux

The specific system we will consider from now on will be that of Fig. 1a, consisting of a diamond chain with a \(\phi =2\pi \frac{\Phi }{{\Phi }_{0}}\) reduced magnetic flux per plaquette, with Φ the magnetic flux and Φ0 the magnetic flux quantum. Setting the lattice constant to unit, the bulk Hamiltonian of the clean system is given, in the \(\{\left\vert A(k)\right\rangle ,\left\vert B(k)\right\rangle ,\left\vert C(k)\right\rangle \}\) basis, with k the quasimomentum, by

$$H(k)=-t\left(\begin{array}{cc}0&h\\ {h}^{{{\dagger}} }&0\end{array}\right),$$
(11)
$${h}^{{{\dagger}} }=\left(\begin{array}{c}{e}^{i\frac{\phi }{4}}+{e}^{i(k-\frac{\phi }{4})}\\ {e}^{-i\frac{\phi }{4}}+{e}^{i(k+\frac{\phi }{4})}\end{array}\right)$$
(12)

where t is the magnitude of the hopping term. Diagonalization of this Hamiltonian yields three energy bands,

$${E}_{0}=0,$$
(13)
$${E}_{\pm }(k)=\pm 2t\sqrt{1+\cos k\cos \frac{\phi }{2}},$$
(14)

where E±(k) are dispersive for all ϕ except for ϕ = π, where they become flat [see Fig. 1b]. An energy gap between the zero-energy FB E0 and E±(k) opens at k = π for ϕ ≠ 0, with a value of \({E}_{{{{\rm{gap}}}}}=2t\sqrt{1-\cos \frac{\phi }{2}}\).

The eigenstates corresponding to E0 can be written as CLSs, which for finite flux span over two plaquettes18, as shown in Fig. 1a. Consecutive normalized CLSs of the zero-energy FB are written, in the \(\{\vert {B}_{j}\rangle ,\vert {C}_{j}\rangle ,\vert {B}_{j+1}\rangle ,\vert {C}_{j+1}\rangle ,\vert {B}_{j+2}\rangle ,\vert {C}_{j+2}\rangle \}\) basis, where \(\vert {\zeta }_{l}\rangle\) stands for the state at site ζ = BC of unit cell l (note that A sites are absent from this basis, as the CLSs have no weight on them), as

$$\left\vert \,{\mbox{Loc}}\,,j\right\rangle =\frac{1}{2}{\left(1,-{e}^{-i\frac{\phi }{2}},{e}^{-i\frac{\phi }{2}},-1,0,0\right)}^{T},$$
(15)
$$\left\vert \,{\mbox{Loc}}\,,j+1\right\rangle =\frac{1}{2}{\left(0,0,1,-{e}^{-i\frac{\phi }{2}},{e}^{-i\frac{\phi }{2}},-1\right)}^{T},$$
(16)

which overlap in the two middle sites [see Fig. 1a]. By taking advantage of this overlap, it was already shown that projecting spatially modulated onsite interactions on the CLSs can induce topological behavior in a two-body system26. Here, we will focus on the single-particle case. The elements of the overlap matrix within the non-orthogonal subspace of CLSs of the zero-energy FB, Sij = 〈Loc, iLoc, j〉, are given, using (15)–(16), by

$$\left\{\begin{array}{l}{S}_{jj}=1,\quad \hfill \\ {S}_{jj+1}={S}_{j+1j}=\frac{1}{2}\cos \frac{\phi }{2},\quad \\ {S}_{ij}=0,| i-j| > 1, \hfill \end{array}\right.$$
(17)

yielding a tridiagonal real and symmetric Toeplitz matrix,

$${{{\bf{S}}}}=\left(\begin{array}{ccccccc}1&a&&&&&\\ a&1&a&&&&\\ &a&1&\ddots &&&\\ &&\ddots &\ddots &&&\\ &&&&1&a&\\ &&&&a&1&a\\ &&&&&a&1\end{array}\right),$$
(18)

where the entries not shown are zeros and \(a:= \frac{1}{2}\cos \frac{\phi }{2}\). Notice how a = 0 for ϕ = π, such that S reduces to I, that is, the CLSs form an orthogonal basis, even though adjacent CLSs still have spatial overlap26. The formula for the elements of the inverse of a tridiagonal matrix is known37, and reduces, in our case of interest (that of S−1), to

$${S}_{nm}^{-1}=\left\{\begin{array}{l}{(-1)}^{n+m}\frac{1}{a}\frac{{U}_{n-1}(\frac{1}{2a}){U}_{N-m}(\frac{1}{2a})}{{U}_{N}(\frac{1}{2a})},\,\,n \, \le \, m,\quad \\ {(-1)}^{n+m}\frac{1}{a}\frac{{U}_{m-1}(\frac{1}{2a}){U}_{N-n}(\frac{1}{2a})}{{U}_{N}(\frac{1}{2a})},\,\,n \, > \, m,\quad \end{array}\right.$$
(19)

where Un(x) is the Chebyshev polynomial of the second kind, defined as

$${U}_{n}(x)=\frac{\sinh \left[(n+1)\theta \right]}{\sinh \theta },\,\,| x=\cosh \theta | \, > \, 1,$$
(20)

whose argument, for the case of (19), reads as

$$x=\cosh \theta =\frac{1}{2a}=\sec \frac{\phi }{2},$$
(21)

Substituting (20) and (21) in (19) leads to

$${S}_{nm}^{-1}={(-1)}^{n+m}2\coth \theta \frac{\sinh \left[n\theta \right]\sinh \left[(N-m+1)\theta \right]}{\sinh \left[(N+1)\theta \right]},$$
(22)

for nm, and

$${S}_{nm}^{-1}={(-1)}^{n+m}2\coth \theta \frac{\sinh \left[m\theta \right]\sinh \left[(N-n+1)\theta \right]}{\sinh \left[(N+1)\theta \right]},$$
(23)

for n > m, such that \({S}_{ij}^{-1}={S}_{ji}^{-1}\). Note that the tridiagonal and repeating structure of S in (18) is formally equivalent to that of an open linear chain with uniform couplings and a constant energy shift. The analytical solution of these types of linear 1D models has been recently derived38 and, therefore, one could alternatively find S−1 through the known eigenvalues and eigenvectors of S.

Impurity states

In this section, we will study the case, depicted in Fig. 1a, where impurities affect the local potentials at the top and bottom sites of a single plaquette in the middle of an open diamond chain with N + 1 unit cells (such that one can construct N zero-energy CLSs). The corresponding impurity operator has the general form

$$\hat{V}={\epsilon }_{B}\left\vert {B}_{q+1}\right\rangle \left\langle {B}_{q+1}\right\vert +{\epsilon }_{C}\left\vert {C}_{q+1}\right\rangle \left\langle {C}_{q+1}\right\vert ,$$
(24)

where ϵB and ϵC are local impurity potentials, left as free parameters, and \(q=\frac{N}{2}\), with N assumed even. We consider a finite flux per plaquette, ϕ ≠ 0, to have a finite Egap between the flat and dispersive bands, and also that ϵBϵCEgap, such that higher-order terms mediated by the dispersive bands can be neglected. Through (7), the projected impurity operator onto the non-orthogonal FB subspace is written as

$${\hat{V}}_{FB} = \, {\hat{P}}^{{{\dagger}} }\hat{V}\hat{P} \\ = \, {\sum}_{n,m=q}^{q+1}\left\vert \,{\mbox{Loc}}\,,{n}^{* }\right\rangle {V}_{nm}\left\langle \,{\mbox{Loc}}\,,{m}^{* }\right\vert ,$$
(25)

where \({V}_{nm}=\left\langle \,{\mbox{Loc}}\,,n\right\vert \hat{V}\left\vert \,{\mbox{Loc}}\,,m\right\rangle\) and the sums run only from q to q + 1 since, from the form of the CLSs in (15)–(16) and of \(\hat{V}\) in (24), only the CLSs with these indices are affected by the impurity potentials. One can readily evaluate all the relevant Vnm elements, which reduce to the {VqqVqq+1Vq+1qVq+1q+1} set, to obtain

$${\hat{V}}_{FB} = \, v {\sum}_{n=q}^{q+1}\left\vert \,{\mbox{Loc}}\,,{n}^{* }\right\rangle \left\langle \,{\mbox{Loc}}\,,{n}^{* }\right\vert +\\ \, + \left[w\left\vert \,{\mbox{Loc}}\,,q+{1}^{* }\right\rangle \left\langle \,{\mbox{Loc}},{q}^{* }\right\vert +{\mbox{H.c.}}\,\right],$$
(26)

with \(v=\frac{{\epsilon }_{B}+{\epsilon }_{C}}{4}\) acting as a local potential on the dual CLSs at q and q + 1, and \(w=({\epsilon }_{B}{e}^{-i\frac{\phi }{2}}+{\epsilon }_{C}{e}^{i\frac{\phi }{2}})/4\) a complex hopping term between the states.

At this point the reader might suspect of a circular reasoning being employed here. After all, the impurities placed at the midchain plaquette in (24) only affect two adjacent CLSs, with indices q and q + 1, which are part of the non-orthogonal set of CLSs. When we translate the system into the dual basis, we arrive at the effective dimer model of (26) which, again, only involves the two dual CLSs q and q + 1 that, in turn, are themselves also a part of the non-orthogonal set of dual CLSs. It appears that one can go back and forth between the original and dual basis indefinitely, without moving the problem forward.

What, then, is to be gained by this procedure? We can always restrict ourselves, in either basis, to the two states set \(\{\left\vert \,{\mbox{Loc}}\,,{q}^{(* )}\right\rangle ,\left\vert \,{\mbox{Loc}}\,,q+{1}^{(* )}\right\rangle \}\), and assume that the rest of the localized states \(\{\left\vert \,{\mbox{Loc}}\,,{l}^{(* )}\right\rangle \}\), where l ≠ qq + 1, are orthogonalized first with respect to the former two, and then between themselves. However, and crucially, orthogonalization of this residual set, in the original basis, produces states of varying spatial extension (without losing their localized nature39), i.e., that spread to more than two consecutive plaquettes. Due to this, several states in the orthogonalized set \(\{\left\vert \,{\mbox{Loc}}\,,l\right\rangle \}\) will have a finite weight at the q + 1 plaquette where the impurities are located, such that, from (24), we will have Vnm ≠ 0 at least for some nm ≠ qq + 1, and the effective model is not restricted to two states in the original basis. On the other hand, the impurity operator of the dual basis, given in (26), is not spatially defined, but instead directly couples the q and q + 1 dual CLSs. As such, regardless of the particular spatial profile of the dual states in the orthogonalized \(\{\left\vert \,{\mbox{Loc}}\,,{l}^{* }\right\rangle \}\) set, all effective impurity elements involving these states, computed from (26), will vanish, given that they are assumed orthogonal to the \(\{\left\vert \,{\mbox{Loc}}\,,{q}^{* }\right\rangle ,\left\vert \,{\mbox{Loc}}\,,q+{1}^{* }\right\rangle \}\) states appearing in \({\hat{V}}_{FB}\). Therefore, working in the dual basis greatly simplifies the problem, now reduced to the diagonalization of a dimer model defined in a two-state dual basis.

Since the two-state dual basis \(\{\left\vert \,{\mbox{Loc}}\,,{q}^{* }\right\rangle ,\left\vert \,{\mbox{Loc}}\,,q+{1}^{* }\right\rangle \}\) is itself non-orthogonal, we first need to orhogonalize it through the Löwdin transformation34,35, as outlined in the “Symmetric orthonormalization” subsection of the Results. The first step requires us to find the form of \({{{{\bf{S}}}}}_{* }^{-\frac{1}{2}}\), where S* is the overlap matrix written in this basis. Using (1), it is straightforward to show that the elements of S* can be expressed as

$${S}_{* ,nm} = \, \langle \,{\mbox{Loc}},{n}^{* }| {\mbox{Loc}}\,,{m}^{* }\rangle \\ = \, \sum\limits_{i,j}{S}_{ni}^{-1}\langle \,{\mbox{Loc}},i| {\mbox{Loc}}\,,j\rangle {S}_{jm}^{-1}\\ = \, \sum\limits_{j}\left(\sum\limits_{i}{S}_{ni}^{-1}{S}_{ij}\right){S}_{jm}^{-1}\\ = \, \sum\limits_{j}{\delta }_{nj}{S}_{jm}^{-1}\\ = \, {S}_{nm}^{-1},$$
(27)

where (4) was used in the fourth line. Using \(q=\frac{N}{2}\) and assuming the thermodynamic limit (N → ), such that \(\sinh \left[x(N)\right]\to \frac{{e}^{x(N)}}{2}\) in (22)–(23), we obtain the following expressions for some elements of the inverse overlap matrix,

$$\left\{\begin{array}{l}{S}_{q+\Delta q+\Delta }^{-1}=\coth \theta \hfill \\ {S}_{qq+\Delta }^{-1}={(-1)}^{\Delta }\coth \theta {e}^{-\Delta \theta }\quad \end{array}\right.,\,\,\Delta =0,1,2,\ldots ,$$
(28)

with \({S}_{qq+\Delta }^{-1}={S}_{q+\Delta q}^{-1}\). With the formulas of (28), we find the form of \({{{{\bf{S}}}}}_{* }^{-\frac{1}{2}}\),

$${{{{\bf{S}}}}}_{* }^{-\frac{1}{2}} = {\left(\begin{array}{cc}{S}_{qq}^{-1}&{S}_{qq+1}^{-1}\\ {S}_{qq+1}^{-1}&{S}_{q+1q+1}^{-1}\end{array}\right)}^{-\frac{1}{2}}\\ = {\left(\begin{array}{cc}\coth \theta &-\coth \theta {e}^{-\theta }\\ -\coth \theta {e}^{-\theta }&\coth \theta \end{array}\right)}^{-\frac{1}{2}}\\ = \frac{1}{2\sqrt{\coth \theta }}\left(\begin{array}{cc}{\alpha }_{-}+{\alpha }_{+}&{\alpha }_{-}-{\alpha }_{+}\\ {\alpha }_{-}-{\alpha }_{+}&{\alpha }_{-}+{\alpha }_{+}\end{array}\right),$$
(29)

with \({\alpha }_{\pm }=\frac{1}{\sqrt{1\pm {e}^{-\theta }}}\). Combining (8) and (29), we write the orthogonal two-state basis \(\{\vert {\tilde{\varphi }}_{q}\rangle ,\vert {\tilde{\varphi }}_{q+1}\rangle \}\) as

$$\left\vert {\tilde{\varphi }}_{q}\right\rangle = {\sum}_{j=q}^{q+1}{S}_{* ,qj}^{-\frac{1}{2}}\left\vert \,{\mbox{Loc}}\,,{j}^{* }\right\rangle \\ = {\sum}_{j=q}^{q+1}\sum\limits_{l}{S}_{* ,qj}^{-\frac{1}{2}}{S}_{jl}^{-1}\left\vert \,{\mbox{Loc}}\,,l\right\rangle ,$$
(30)
$$\left\vert {\tilde{\varphi }}_{q+1}\right\rangle = {\sum}_{j=q}^{q+1}{S}_{* ,q+1j}^{-\frac{1}{2}}\left\vert \,{\mbox{Loc}}\,,{j}^{* }\right\rangle \\ = {\sum}_{j=q}^{q+1}\sum\limits_{l}{S}_{* ,q+1j}^{-\frac{1}{2}}{S}_{jl}^{-1}\left\vert \,{\mbox{Loc}}\,,l\right\rangle .$$
(31)

In turn, the impurity matrix is constructed from (26) as

$${{{{\bf{V}}}}}_{FB}=\left(\begin{array}{cc}{V}_{* ,qq}&{V}_{* ,qq+1}\\ {V}_{* ,q+1q}&{V}_{* ,q+1q+1}\end{array}\right),$$
(32)

with \({V}_{* ,nm}=\left\langle \,{\mbox{Loc}}\,,{n}^{* }\right\vert {\hat{V}}_{FB}\left\vert \,{\mbox{Loc}}\,,{m}^{* }\right\rangle\) and

$${V}_{* ,qq}={V}_{* ,q+1q+1}=v\left[{({S}_{qq}^{-1})}^{2}+{({S}_{qq+1}^{-1})}^{2}\right]+(w+\bar{w}){S}_{qq}^{-1}{S}_{qq+1}^{-1},$$
(33)
$${V}_{* ,qq+1}={V}_{* ,q+1q}^{* }=\bar{w}{({S}_{qq}^{-1})}^{2}+w{({S}_{qq+1}^{-1})}^{2}+2v{S}_{qq}^{-1}{S}_{qq+1}^{-1},$$
(34)

where \(\bar{w}\) is the complex conjugate of w. According to (10), the effective impurity matrix is computed from (28), (29) and (32) and yields

$${\tilde{{{{\bf{V}}}}}}_{FB} = \, {{{{\bf{S}}}}}_{* }^{-\frac{1}{2}}{{{{\bf{V}}}}}_{FB}{{{{\bf{S}}}}}_{* }^{-\frac{1}{2}} \hfill \\ = \, \left(\begin{array}{cc}\frac{{\epsilon }_{B}+{\epsilon }_{C}}{4}&\frac{{\epsilon }_{B}+{\epsilon }_{C}}{4}{e}^{-\theta }+i\frac{{\epsilon }_{B}-{\epsilon }_{C}}{4}\sqrt{1-{e}^{-2\theta }}\\ \frac{{\epsilon }_{B}+{\epsilon }_{C}}{4}{e}^{-\theta }-i\frac{{\epsilon }_{B}-{\epsilon }_{C}}{4}\sqrt{1-{e}^{-2\theta }}&\frac{{\epsilon }_{B}+{\epsilon }_{C}}{4}\end{array}\right).$$
(35)

Diagonalization of this matrix yields, through (21), the flux-dependent energies E± = E±(ϕ) (which will be referred hereafter as the “energy bands”, with the flux taking the place of a synthetic momentum) of the two states \(\left\vert {\tilde{\varphi }}_{\pm }\right\rangle =\left\vert {\tilde{\varphi }}_{\pm }(\phi )\right\rangle\) within the zero-energy FB that are affected by the impurities at the q + 1 plaquette, which are determined as

$$\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{+}\right\rangle \\ \left\vert {\tilde{\varphi }}_{-}\right\rangle \end{array}\right)={{{\bf{U}}}}\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{q}\right\rangle \\ \left\vert {\tilde{\varphi }}_{q+1}\right\rangle \end{array}\right),$$
(36)

where U is the unitary matrix with eigenvectors as its rows, with elements [U]ij ≡ Uij, where ij = qq + 1. Using (30)-(31), we can express \(\left\vert {\tilde{\varphi }}_{\pm }\right\rangle\) in terms of the original CLSs,

$$\left\vert {\tilde{\varphi }}_{+}\right\rangle ={\sum}_{j=q}^{q+1}{\sum}_{l}\left[{U}_{qq}{S}_{* ,qj}^{-\frac{1}{2}}+{U}_{qq+1}{S}_{* ,q+1j}^{-\frac{1}{2}}\right]{S}_{jl}^{-1}\left\vert \,{\mbox{Loc}}\,,l\right\rangle ,$$
(37)
$$\left\vert {\tilde{\varphi }}_{-}\right\rangle ={\sum}_{j=q}^{q+1}{\sum}_{l}\left[{U}_{q+1q}{S}_{* ,qj}^{-\frac{1}{2}}+{U}_{q+1q+1}{S}_{* ,q+1j}^{-\frac{1}{2}}\right]{S}_{jl}^{-1}\left\vert \,{\mbox{Loc}}\,,l\right\rangle .$$
(38)

Let us address separately three representative choices for the ϵBϵC local impurities shown in the right insets of Fig. 2d–f and analyze their solutions.

Fig. 2: Impurity states.
figure 2

Analytical energy curves (green and yellow curves) obtained from diagonalization of the effective two-state system in (35), as a function of the magnetic flux ϕ for (a) opposite impurities ϵB = − ϵC = ϵ, (b) equal impurities ϵB = ϵC = ϵ, and (c) a single impurity, ϵB = ϵ and ϵC = 0, with ϵ = 0.1t. Blue and red dots correspond to the numerically obtained energies of the two states of the FB that are affected by the impurity, for an open diamond chain with 53 plaquettes pierced by a ϕ flux, with the impurities placed at the B and C sites of the midchain plaquette in (a, b), and at its B site in (c). df Probability amplitudes of the eigenstate marked by a blue circle in the corresponding cases above. Only the central part of the chain is shown. Golden bars (red dots) correspond to numerical (analytical) results. The left insets plot the same results in a semi-logarithmic scale and for a smaller portion of the chain. Sites without red dots are A sites where the CLSs forming the analytical subspace have zero weight. The right insets depict the impurities at the midchain plaquette, with green (purple) color indicating an ϵ ( − ϵ) value for the impurity at that site.

Opposite impurities

For opposite impurities, ϵB = − ϵC = ϵ, where the impurity strength ϵ is given in units of the hopping parameter t, the effective impurity matrix in (35) reduces to

$${\tilde{{{{\bf{V}}}}}}_{FB}=-\frac{\epsilon }{2}\sqrt{1-{e}^{-2\theta }}{\sigma }_{y},$$
(39)

with σμ (μ = xyz) the μ Pauli matrix. The respective eigenvalues and eigenvectors read as

$${E}_{\pm }=\pm \frac{\epsilon }{2}\sqrt{1-{e}^{-2\theta }},$$
(40)
$$\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{+}\right\rangle \\ \left\vert {\tilde{\varphi }}_{-}\right\rangle \end{array}\right)=\frac{1}{\sqrt{2}}\left(\begin{array}{cc}i&1\\ -i&1\end{array}\right)\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{q}\right\rangle \\ \left\vert {\tilde{\varphi }}_{q+1}\right\rangle \end{array}\right).$$
(41)

In Fig. 2a, we compare the analytical energies of (40) with numerical results as a function of the magnetic flux, for a chain with 53 plaquettes and opposite local impurities at the top and bottom sites of the midchain plaquette [depicted in the right inset of Fig. 2d]. Two states with opposite energies are lifted from the flat band for a finite magnetic flux per plaquette. Even though the perturbation is already quite large, ϵ = 0.1t, that is, away for all ϕ from the ϵEgap condition assumed in the projection of the impurity operator onto the flat band in (25), there is a nearly perfect match between analytical and numerical curves for the entire spectrum.

In Fig. 2d, we plot the spatial profile of the eigenstate corresponding to the encircled positive energy at \(\phi =\frac{\pi }{2}\) in Fig. 2a. The analytical amplitude at each site, depicted as red dots, was computed by applying the general expression in (37), with the U matrix for the opposite impurities case given in (41), and agrees very well with the numerical one, represented by the golden bar at the corresponding site. The inset shows the same results but in a semi-logarithmic scale. Sites without red dots correspond to A sites where the localized states have zero weight, according to (15)–(16). The negligible numerical weight at these sites, which is at least an order of magnitude smaller than the adjacent B and C sites with highest weight, comes from higher-order terms that couple the perturbed states with the top and bottom dispersive bands. Therefore, as the impurity value is decreased to approach the ϵEgap limit, the weight at the A sublattice decreases even further, relative to the weight at the BC sublattice.

Equal impurities

For equal impurities, ϵB = ϵC = ϵ, the effective impurity matrix in (35) reduces to

$${\tilde{{{{\bf{V}}}}}}_{FB}=\frac{\epsilon }{2}\left({\sigma }_{0}+{e}^{-\theta }{\sigma }_{x}\right),$$
(42)

where σ0 is the 2 × 2 identity matrix. The respective eigenvalues and eigenvectors read as

$${E}_{\pm }=\frac{\epsilon }{2}\left(1\pm {e}^{-\theta }\right),$$
(43)
$$\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{+}\right\rangle \\ \left\vert {\tilde{\varphi }}_{-}\right\rangle \end{array}\right)=\frac{1}{\sqrt{2}}\left(\begin{array}{cc}1&1\\ 1&-1\end{array}\right)\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{q}\right\rangle \\ \left\vert {\tilde{\varphi }}_{q+1}\right\rangle \end{array}\right).$$
(44)

In Fig. 2b, we compare the analytical energies of (43) with numerical results as a function of the magnetic flux for the impurity distribution depicted in the right inset of Fig. 2e. Two positive energy states are lifted from the FB for a finite magnetic flux per plaquette, and become degenerate with E = 0.5ϵ at ϕ = π. Since Egap → 0 when ϕ → 0(mod2π), near the edges of the spectrum higher-order couplings to the dispersive bands can no longer be safely neglected, and the analytical treatment breaks down in that region. However, this region is still very small for ϵ = 0.1t, and shrinks even further with decreasing ϵ. The spatial amplitudes of the eigenstate with the energy marked by the blue circle in Fig. 2b are depicted in Fig. 2e. As for the case of opposite impurities above, a very good agreement is found between the numerical and analytical results.

Having established numerically the validity of the analytical solutions considerably away from the ϵEgap limit assumed in their derivation (the impurity strength is ϵ = 0.1t in Fig. 2, and even higher values still yield good agreement with numerical results), one can study the effect of small disorder on the impurity states. More specifically, we will consider diagonal disorder on an open diamond chain with 101 plaquettes threaded by a ϕ flux, by setting the onsite potential at each site to a random value taken from a uniform distribution in the interval \([-\frac{\delta }{2},\frac{\delta }{2}]\), with δ = 0.02t the disorder strength, with a standard deviation given by \({\sigma }_{{{{\rm{ud}}}}}=\frac{\delta }{\sqrt{12}}\approx 5.8\times 1{0}^{-3}\). For the sites at the midchain plaquette hosting the impurities, the disorder is added on top of ϵ = 0.1t. We perform 20,000 disorder realizations for each flux value and track the energies of the impurity states, from where we construct their respective histograms, as exemplified for the higher one at \(\phi =\frac{9\pi }{20}\) in the inset of Fig. 4b. The underlying uniform distribution of the disorder generates a normal distribution for the energies of the impurity states, whose mean approaches their disorder-free values given in Fig. 2b with increasing disorder realizations. This result is consistent with the central limit theorem (CLT), i.e., for each realization the impurity states effectively feel an averaged disorder related to their localization length, that is, to their spatial extension, which is controlled by the flux, as illustrated in Fig. 3.

Fig. 3: Evolution of impurity states with flux.
figure 3

Snapshots of the amplitudes of the (a) higher and (b) lower impurity state at different flux values, indicated on top, for a partial section of an open diamond chain with 53 complete plaquettes, with equal impurities ϵ = 0.1t in the middle one. The energy of both states at each flux value is given in Fig. 2b.

In Fig. 4a, we plot the standard deviation of the Gaussian fit of the energy distributions of both impurity states as a function of the flux. The flux was taken in 0.05π increments and restricted to the [0.15π, 0.75π] interval, since near ϕ = 0, π the energy separation of the states is of the order of δ [see numerical results in Fig. 2b in these regions], which leads to a reordering of the states and to an overlap of their corresponding energy distributions, preventing their independent analysis. According to the CLT, the standard deviation of the normal distribution is related to the sample size, which in our case corresponds to the effective number of sites Ne over which the disorder is averaged for each impurity state, through \(\sigma =\frac{{\sigma }_{{{{\rm{ud}}}}}}{\sqrt{{N}_{e}}}\), with σud given above. With this formula, and from the σ values given in Fig. 4a, we plot in Fig. 4b the flux dependence of Ne for both impurity states. It can be seen that they follow opposite tendencies with increasing flux: while Ne decreases exponentially for the lower state, it increases monotonously for the higher state.

Fig. 4: Disorder effects in the impurity subspace.
figure 4

a Standard deviation, as a function of the flux, of the energy of both impurity states for an open diamond chain with 101 plaquettes, with equal impurities ϵ = 0.1t in the middle one, taken from 20,000 realizations of diagonal disorder at each point, with disorder strength δ = 0.02t. b Effective number of sites involved in the disorder averaging effect, computed from the corresponding standard deviation values in (a) in accordance with the CLT. The inset shows the energy histogram for the encircled higher-energy state at ϕ = 0.45π, with the dashed orange curve corresponding to the Gaussian fit from which the standard deviation is extracted.

The evolution of the spatial profile of the impurity states with flux, shown in Fig. 3, can be used to explain their different response to disorder. The lower state becomes globally more and more localized until it becomes a CLS at ϕ = π, which agrees with its decreasing Ne in Fig. 4b, since the disorder is being averaged over fewer sites, therefore generating a higher effective onsite disorder on the lower state. The higher state, on the other hand, has dominant contributions from the impurity sites at lower fluxes (see central peaks in the top panel of Fig. 3 with growing weight for decreasing flux). The weights at these sites are in an anti-symmetric configuration that becomes the full eigenstate (a CLS) at ϕ = 0, while they are in a symmetric configuration for the lower state. At zero flux, applying the same rotation to the B and C sites at each plaquette has been shown to decouple the anti-symmetric state, while the symmetric one connects with adjacent A sites to form a uniform chain40,41. As flux is increased, the anti-symmetric configuration of impurity sites couples to the uniform chain with growing strength42 and, as with the lower state, the higher state develops a spatially extended profile that becomes increasingly localized (see the evolution of the components at sites other than the central impurity ones in the top panel of Fig. 3). Conversely, the peaks at the impurity sites, which are the main contributors to the number of effective sites Ne of the averaged disorder, continuously decrease with increasing flux, that is, spread their weight to the other sites. This effect, which tends to increase Ne, overpowers the localization effect of the other components, which tends to decrease Ne (as for the lower state), leading to the net increase of Ne with flux seen in Fig. 4b.

While the normal distribution of the sample means expected from CLT is only exact, strictly speaking, in the limit of infinite sample size, Ne → , we have checked numerically that a Gaussian fit is in very good agreement with the energy histogram of all points in Fig. 4b, including for the higher state, as exemplified in the inset, where the effective number of sites responsible for the averaged disorder is small, ranging from Ne ≈ 2.5 to Ne ≈ 5.

The averaging of diagonal disorder on the impurity states, conjectured to be the mechanism behind the enhanced robustness to disorder displayed by certain domain wall states with similar localization properties43, is quantitatively confirmed here by the numerical results of Fig. 4. For the equal impurities case studied in this section, this enhanced robustness to disorder is greater for the lower impurity state at low flux values where, according to Fig. 4b, Ne is maximized. This is demonstrated in a follow up paper, where the response to disorder of effective systems of coupled impurity states is analyzed in greater detail44.

As for the finite energy impurity states studied in the “Opposite impurities” subsection above and in the “Single impurity” subsection below, we have checked numerically that this averaging effect is less pronounced. Under the same kind of diagonal disorder and for different flux values, the energy histogram of these other impurity states yields in general a cross between a Gaussian and a uniform distribution, signaling a number of effective sites involved in the averaging effect close to one, such that the CLT cannot be used to determine this number. This can be explained from the dominant weight that these states always have at one of the impurity sites [see the central peak in Fig. 2d, f], which is where the perturbative effects of disorder are felt the most by these states. Therefore, the CLT only provides an accurate description of the averaging effect of diagonal disorder for the equal impurities case.

Single impurity

Finally, let us address the case where a single impurity, ϵB = ϵ, is placed at the top site of the q + 1 plaquette. The effective impurity matrix in (35) reduces now to

$${\tilde{{{{\bf{V}}}}}}_{FB}=\frac{\epsilon }{4}\left({\sigma }_{0}+{e}^{-\theta }{\sigma }_{x}-\sqrt{1-{e}^{-2\theta }}{\sigma }_{y}\right).$$
(45)

The respective eigenvalues and eigenvectors read as

$${E}_{\pm }=\frac{\epsilon }{4}(1\pm 1),$$
(46)
$$\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{+}\right\rangle \\ \left\vert {\tilde{\varphi }}_{-}\right\rangle \end{array}\right)=\frac{1}{\sqrt{2}}\left(\begin{array}{cc}1&{e}^{-i\vartheta }\\ 1&-{e}^{-i\vartheta }\end{array}\right)\left(\begin{array}{c}\left\vert {\tilde{\varphi }}_{q}\right\rangle \\ \left\vert {\tilde{\varphi }}_{q+1}\right\rangle \end{array}\right),$$
(47)
$$\cos \vartheta := {e}^{-\theta }=\,{\mbox{Exp}}\,\left[-{\cosh }^{-1}\left[\sec \frac{\phi }{2}\right]\right],$$
(48)

where the formula for θ given in (21) was used in the last line. Both energy bands are flat (in ϕ) and, in particular, we have E = 0, as shown in Fig. 2c, meaning that, when a single impurity is present, the system can always rotate the subspace of dual localized states in order to generate a state, namely \(\left\vert {\tilde{\varphi }}_{-}\right\rangle\) in (47), with zero weight at the impurity site, \(\langle {B}_{q+1}| {\tilde{\varphi }}_{-}\rangle =0\), such that it remains degenerate with the other FB states. This is illustrated in Fig. 5, where a partial profile of the \(\left\vert {\tilde{\varphi }}_{+}\right\rangle\) and \(\left\vert {\tilde{\varphi }}_{-}\right\rangle\) eigenstates, computed through (47) for \(\phi =\frac{\pi }{2}\), is depicted [the complete profile of \(\left\vert {\tilde{\varphi }}_{+}\right\rangle\) is shown in Fig. 2f, which agrees very well with numerics]. It can be seen that the weight of the state at the impurity site is maximum for \(\left\vert {\tilde{\varphi }}_{+}\right\rangle\) and zero for \(\left\vert {\tilde{\varphi }}_{-}\right\rangle\).

Fig. 5: Midchain profile of impurity states.
figure 5

Partial profile of the \(\left\vert {\tilde{\varphi }}_{+}\right\rangle\) and \(\left\vert {\tilde{\varphi }}_{-}\right\rangle\) eigenstates at \(\phi =\frac{\pi }{2}\), where the radius of each circle represents the amplitude of the wavefunction at the respective site and the color represents its phase, coded by the color bar at the right. The arrow indicates the Bq+1 site where the ϵB = ϵ = 0.1t impurity is placed, and where \(\left\vert {\tilde{\varphi }}_{+}\right\rangle\) (\(\left\vert {\tilde{\varphi }}_{-}\right\rangle\)) has maximum (zero) amplitude.

We turn now to the topological characterization of the single-impurity case. But first let us summarize the usual approach to the topological characterization of gapped 1D two-band models. The relevant topological invariant for characterizing the energy gap is the Zak phase of the lower band, which can be expressed as

$$\gamma =i\oint \,dR\left\langle \tilde{\varphi }{(R)}_{-}\right\vert \frac{d}{dR}\left\vert \tilde{\varphi }{(R)}_{-}\right\rangle ,$$
(49)

where the integral traces a closed path along the dimensional parameter R. For the textbook Su-Schrieffer-Heeger (SSH) two-band model45, consisting of a chain with staggered hopping terms t1 and t2, with the former (latter) corresponding to the intracell (intercell) hopping parameter46, the lowest energy bulk eigenstate has the same form of \(\left\vert {\tilde{\varphi }}_{-}\right\rangle\) in (47) when written in its site state basis, \(\left\vert {\tilde{\varphi }}_{-}(k)\right\rangle =1/\sqrt{2}{(1,-{e}^{-i\vartheta (k)})}^{T}\), where k is the momentum and \(\cos \vartheta (k)=\frac{{t}_{1}}{{t}_{2}\sin k}+\cot k\)38,47. Inserting \(\left\vert {\tilde{\varphi }}_{-}(k)\right\rangle\) in (49), where R = k and the integral goes over the Brillouin zone (BZ), we get

$$\gamma =\frac{1}{2}\int_{\vartheta (0)}^{\vartheta (2\pi )}d\vartheta (k)=\frac{\Delta \vartheta }{2},$$
(50)

with Δϑ = ϑ(2π) − ϑ(0) yielding the total change in the ϑ(k) phase around the BZ. From the profile of ϑ(k) shown in Fig. 6, which has been experimentally confirmed recently in different platforms48,49, one readily obtains γ = 0(π) for the (non-)trivial phase. According to the bulk-boundary correspondence, an open SSH chain will have zero edge states in the trivial γ = 0 phase, and two edge states in the non-trivial γ = π phase, exponentially localized at opposite ends of the chain (up to hybridization effects stemming from finite size corrections).

Fig. 6: Phase of impurity state.
figure 6

Phase ϑ of the lowest energy eigenstate as a function of the magnetic flux ϕ (momentum k) for the single-impurity model (SSH model). The color of each curve matches the color of the corresponding horizontal axis. For the SSH model, the ratio t1/t2 = 2 (t1/t2 = 0.5) was used for the topologically (non-)trivial case.

Let us turn our attention to the single-impurity case, with the gapped effective two-band spectrum given by the solid curves in Fig. 2c. It is clear that the relevant parameter of integration is now, not the momentum k, but rather the reduced magnetic flux ϕ, as it changes by one flux quantum, that is, from ϕ = 0 to ϕ = 2π. By inserting \(\left\vert {\tilde{\varphi }}_{-}\right\rangle =\left\vert {\tilde{\varphi }}_{-}(\phi )\right\rangle\), given in (47), in (49) leads to (50) with k → ϕ. Therefore, the Zak phase depends on the total variation of ϑ(ϕ) in (48) over one flux quantum. The blue solid curve in Fig. 6 shows that Δϑ = π, leading to a Zak phase π-quantized to a half-integer value, \(\gamma =\frac{\pi }{2}\). Alternatively, after rewriting the effective impurity matrix in (45) as

$${\tilde{{{{\bf{V}}}}}}_{FB}=\frac{\epsilon }{4}{\sigma }_{0}+\left(\begin{array}{cc}0&h(\phi )\\ {h}^{* }(\phi )&0\end{array}\right),$$
(51)

where \(h(\phi )=\frac{\epsilon }{4}{e}^{i\vartheta (\phi )}\), one can compute the winding number46,50 as

$$W=\frac{1}{2\pi i}\int_{0}^{2\pi }d\phi \frac{d}{d\phi }\log h(\phi )=\frac{\Delta \vartheta }{2\pi }=\frac{\gamma }{\pi }=\frac{1}{2},$$
(52)

which similarly produces a half-integer value, meaning that ϕ needs to change adiabatically by two full cycles to produce one complete winding of h(ϕ) around the origin in the complex plane. Furthermore, from Fig. 6 and the form of the eigenvectors in (47), it can be seen that they are 4π-periodic in ϕ [since both energy bands are flat, see (46), the 4π-periodicity is not explicitly manifested there], and also that the eigenvectors exchange in multiples of 2π as

$$\left\vert {\tilde{\varphi }}_{\pm }(\phi )\right\rangle =\left\vert {\tilde{\varphi }}_{\mp }(\phi +2\pi )\right\rangle =\left\vert {\tilde{\varphi }}_{\pm }(\phi +4\pi )\right\rangle .$$
(53)

This behavior is similar to that observed in chiral-symmetric non-Hermitian 1D models where, due to the fact that each exceptional point (EP)51 carries a topological charge of ±1/2, the absolute value of the winding number, W, corresponds to half the number of times each EP is encircled as the momentum k traverses the BZ (assuming the wrapping around all EPs follows the same circulation, such that all individual contributions to W have the same sign). In particular, if a single EP is encircled once then one has W = 1/252,53,54 and, analogously, the eigenstates of both bands (assuming a two-band model) are also exchanged after traversing the BZ52,55. This non-Hermitian W = 1/2 case has been associated with the presence of a single edge state under open boundary conditions (OBC), and each 1/2 increment in W has been further associated with the appearance of an extra edge state56. Concerning the effective model for the single-impurity case studied in this section, it corresponds, to the best of our knowledge, to the first example of a Hermitian model with a half-integer winding number.

Regarding the Zak phase, on the other hand, the other known example of a 1D Hermitian model where it yields a half-integer value at its energy gaps is the diamond chain with π-flux per plaquette19,21 [where W is not well-defined since the off-diagonal block of the Hamiltonian in its chiral representation, corresponding here to the scalar h(ϕ) in (51), is not a square matrix]. The \(\gamma =\frac{\pi }{2}\) value for the finite-energy bands of this model is a consequence of having a noncentered inversion-axis within the unit cell57, such that the inversion operator picks up a k-dependence over one of the sublattices. Accordingly, a modified bulk-boundary correspondence is manifested by this system, one that matches a half-quantized Zak phase at a given energy gap with the presence of a single edge state at that gap, when open boundaries are considered16,17,19,21.

From the examples mentioned above, the same pattern seems to emerge both for Hermitian and non-Hermitian models, namely that a half-integer bulk topological invariant is connected to the presence of a single edge state under OBC. The question now becomes: given that the same half-integer invariants (winding number and Zak phase) are observed for our single-impurity case, is there a physical signature of this non-trivial behavior? Recall that the “bulk” bands in Fig. 2c are defined over the reduced flux ϕ, and not over a momentum variable k. Therefore, the concept of OBC does not directly apply here. Note that the bulk-boundary correspondence relates quantized bulk invariants defined for the momentum-space with the presence of edge states under OBC in the complementary real-space, since position and momentum are conjugate variables. The conjugate variable of the (reduced) magnetic flux is the (reduced) electric charge, a central relation in the study of quantum electrical circuits58. However, and for our purposes, it is not clear what the meaning of OBC in a “charge-space” could be, if any, and what would correspond to an edge state in this quantized charge-space. To circumvent this limitation, we adopt a strategy based on an exact mapping as follows. First, we consider the modified Lieb lattice depicted in Fig. 7a, with a line of impurity sites at every other site along the y-direction (red sites), positioned at the center of the x coordinate. Then, assuming PBC (OBC) in the y-direction (x-direction), we Fourier transform the lattice along the y-direction (with lattice constant set to unity) using the supercell represented in Fig. 7a, obtaining the open diamond chain in Fig. 7b. As a result, this chain becomes the same as the single-impurity case of Fig. 1a, with ky taking the place of ϕ, and up to an inconsequential gauge transformation that accumulates all the ky “flux” in a single hopping term within each plaquette. Therefore, for a small value of ϵ we expect the effective low-energy subspace to behave as in Fig. 2c, with ϕ → ky. The same half integer invariants γ and W in (50) and (52), respectively, are obtained when integrating now over the Brillouin zone in ky. In order to test if this translates into the appearance of a gapped edge state in real-space, we impose OBC along the y-direction also, i.e., we consider the Lieb lattice in Fig. 7a with OBC for both directions. In Fig. 8a, we plot the energy spectrum for a chain Nx = 41 (Ny = 200) unit cells in the x (y) direction, with impurities ϵ = 0.1t placed along unit cell 21 in x according to the pattern in Fig. 7a. The overall features of the spectrum in Fig. 8a are the expected ones for a Lieb lattice, namely a gapless system of two continua of dispersive states above and below the localized states of the zero-energy flat band. However, a closer look at the states with energies around \(0\le E\lesssim \frac{\epsilon }{2}\) [notice how these limits correspond to the energies of the flat bands of the effective system in Fig. 2c], shown in the zoomed region of Fig. 8b, reveals the presence of an energy gap. As expected, an isolated edge state is seen to appear within this gap, with the spatial profile depicted in Fig. 8c. Conversely, when PBC are imposed in the y-direction, the in-gap state disappears, as shown in the inset of Fig. 8b, which further corroborates its topological origin.

Fig. 7: Mapping between Lieb lattice and diamond chain.
figure 7

a Lieb lattice with a mid-length line of onsite impurity potentials ϵ at every other site (red dots) along the y-direction. All hopping terms are given by t. b Diamond chain obtained from Fourier transforming the lattice in (a) along the periodic y-direction, using the indicated supercell. The y-momentum ky becomes the equivalent of a flux per plaquette. The dashed hoppings pick up a positive ky phase in the clockwise direction within each plaquette.

Fig. 8: Lieb lattice with central impurity line.
figure 8

a Energy spectrum, with t as the energy unit, of the impurity decorated open Lieb lattice, with Nx = 41 (Ny = 200) unit cells in the x (y) direction and impurities ϵ = 0.1t placed along unit cell 21 in x according to the pattern in Fig. 7a. b Zoomed energy spectrum of the region delimited by the orange dashed box in (a). The inset shows the energy spectrum of the zoomed region for the same Lieb lattice, only with PBC in the y-direction. Depiction of the amplitude distribution, normalized by the maximum value for each case, of the eigenstate with index (c) n = 16,201, (d) n = 16,202, and (e) n = 16,396, with energies given by the corresponding encircled states in (b).

The presence of an energy gap was not guaranteed a priori since, loosely speaking, the spectrum sweeps all the ky values allowed by the OBC, and the gap between the dispersive and flat bands closes as ky → 059. Moreover, contrary to the analytical results for the effective model, the numerical results of Fig. 2c also show that the gap between the two bands closes at the edges (see the descending blue dots tending towards the red ones near ϕ → ky = 0, 2π). But since this gap closing region is very sharp, getting narrower as ϵ → 0, few solutions are expected to appear in this region under OBC. Indeed, some states at the left edge of the top band in Fig. 8b are bending towards the zero-energy band, while nonetheless keeping close to the top flat band at \(E=\frac{\epsilon }{2}=0.05\), such that the gap remains open and the edge state fully gapped. In Fig. 8d, we show the spatial profile of the leftmost state of this subset. It can be seen that, while consisting mostly of a bulk state along the impurity line, there is still a finite weight on the region of the right edge state, which gradually shrinks as the state index increases, eventually vanishing once the flat band states at E = 0.05 are reached [see the profile of the state in Fig. 8e]. We attribute the right edge component for this subset of states to a perturbative hybridization with the gapped edge state that further sharpens their energy bending.

The results of this exact mapping provide another example where the half-integer topological bulk invariants, \(\gamma =\pi W=\frac{\pi }{2}\), have a correspondence with the presence of a single gapped edge state under OBC. In turn, this provides indirect evidence that the topologically non-trivial nature of the single-impurity case studied in this section can be related to specific physical manifestations. We note that this bulk-boundary correspondence should also be observed upon switching the single impurity from the B site of the midchain plaquette, as in Fig. 7b, to its C site. In terms of the Lieb lattice in Fig. 7a, this corresponds to shifting the impurities along the impurity line, exchanging its red and green sites. As we detail in Supplementary Note 1, this shift leads to a physically distinct configuration that produces small changes to the low-energy spectrum in Fig. 8b. However, as we show in Supplementary Fig. 1, the validity of this mapping is not affected, as a single in-gap state is still present.

Discussion

We studied a diamond chain with a gapped FB in its energy spectrum upon introducing a finite magnetic flux per plaquette, whose states can be described as CLSs spanning a non-orthogonal basis subspace. After outlining the mathematical formalism required for the analytical treatment of such non-orthogonal bases, we applied it to the general solutions of the impurity states that are lifted from the FB by small local potentials placed at the midchain plaquette. For the two equal, two opposite, and single-impurity cases, the numerical results were shown to closely follow the analytical predictions, except for flux values very close to the critical gap closing point between flat and dispersive bands, corresponding to the expected breakdown region of the theory.

Disorder studies were conducted for the case of equal impurities. By applying small disorder following a uniform distribution to the diamond chain, the energy histogram of both impurity states was seen to follow a normal distribution for a wide range of flux values. These findings were connected to the CLT, such that, from relating the standard deviations of the normal and uniform distributions, an effective number of sites involved in a disorder averaging effect43 was computed for each impurity state. We discussed how this effect translates into an enhanced robustness of the states to diagonal disorder, which is one of the most common kinds of disorder present in real systems.

A topological characterization of the impurity levels was carried out, where the flux was interpreted as a synthetic momentum. While the equal and opposite impurity cases were characterized as topologically trivial, the single-impurity case manifested a peculiar type of non-trivial topology, namely one defined by half-integer invariants such as the Zak phase and winding number. The latter corresponds, as far as we know, to the first of its kind in the context of Hermitian models. Given that the invariants are computed by considering the reduced magnetic flux as the “bulk” variable of integration, and the variation of the flux by a flux quantum as the “Brillouin zone”, the bulk-boundary correspondence cannot be directly checked. However, an indirect way of circumventing this limitation was formulated, based on an exact mapping between the diamond chain with a single impurity and a two-dimensional Lieb lattice with a central line of impurities. The mapped lattice displays the same low-energy effective impurity bulk bands, classified by the same half-integer invariants. For fully open boundaries, its energy spectrum reveals the presence of a single edge state within the gap of this low-energy subspace, providing an indirect evidence of the unconventional bulk-boundary correspondence associated with the topology of the single-impurity case.

Regarding the realization of the model studied here, shown in Fig. 1a, we highlight two platforms. One is electrical circuits60, whose flexibility and plasticity allows one to recreate most tight-binding models simply by coupling nodes with capacitors or inductors in the desired geometry61. By incorporating negative impedance converters with current inversion (INICs)62,63 in phase-control units, it has been shown64 that arbitrary phase factors can be associated to the couplings, enabling the generation of a synthetic flux at each plaquette, as required by the target model of Fig. 1a. The impurity potentials at the central nodes can be simulated by adding extra capacitors, with small capacitance values, to the grounding schemes of these nodes. Preliminary numerical studies should be undertaken to determine the optimal parameters of the circuit since, on the one hand, the admittance elements of the impurity nodes should be small, compared to the admittance gap between flat and dispersive bands, and, on the other hand, they should be sufficiently higher than the tolerance of the other components, so as to not have its effects washed way by this inherent disorder. As such, very low tolerance components should be considered. After feeding the circuit with an alternated current with the eigenfrequency of the impurity states, standard voltage, and two-point impedance measurements can be used to detect them.

The other strong possibility consists in implementing the diamond chain in photonic lattices. Three different options can be considered: (i) photonic waveguide arrays, where the synthetic flux can be generated by an appropriate bending of the lattice along its longitudinal direction15, while the impurity potentials are controlled by the index of refraction of the corresponding waveguides (which in turn depends on the difference in lasing speed that is used to write them65); (ii) microring resonator arrays, where the synthetic flux can be controlled by displacing or modifying the optical path of the auxiliary rings used to effectively couple the main ones66,67,68, and the impurities can be introduced by locally perturbing the resonance condition of the main lattice rings69 (through slightly modifying their size, width or refractive index); (iii) arrays of coupled multiorbital waveguides20,70,71,72 guiding staggered orbital angular momentum (OAM) modes of order l = 0, ±1 where, in analogy with systems of ultracold atoms73,74,75, the synthetic flux can be produced by geometrical manipulation of the waveguide pattern of the excited OAM modes76,77, while local potentials can again be introduced via changes to their radii or refractive index.

Our work provides a conceptual frame within which future studies on systems with non-orthogonal bases can be carried out. In particular, we discuss in greater detail in a companion piece to this paper44 how one can, using the implementation platform (iii) above, and by decorating the diamond chain with impurities placed at regular intervals, extract impurity subspaces realizing different effective models from the FB, including topological ones hosting edge states.