1 Introduction

Quantum computers hold the promise of being one of the next major technological developments in the field of information technology [11, 19, 20]. Quantum phenomena, such as entanglement and superposition of states, provide quantum computers with the ability to potentially solve some hard computational problems and to simulate quantum systems in a more efficient way than their classical counterparts [1, 5, 8, 24]. However, one of the current limitations of this technology relies on the number of qubits that can be allocated in a single chip [7, 18]. The impact of this issue can be alleviated by connecting different chips or registers through a quantum bus [7, 25]. When these interconnections are relatively short, it is desirable to use the same physical platform and avoid using hybrid systems due to the associated inter-conversion from and to different encoding degrees of freedom (e.g. states of light in optical links) [7, 18]. For that purpose, arrangements (chains or graphs) of solid-state qubits are good candidates for short-range communication [6, 7, 18, 25]. In addition to their application as quantum buses, spin chains and graphs are also able to perform other quantum information processing tasks, such as the creation and distribution of an entangled state [14, 23, 26].

The use of direct physical links is not the only way of transferring quantum states and, for example, the teleportation protocol proposed by Bennett [3] uses entanglement to communicate quantum information. Entanglement is also present in a wide range of other applications, such as one-way quantum computer architectures [21, 27] or quantum key distribution [4, 12, 15]. Given that entanglement is a useful resource for many applications, a reliable way to generate distributed entangled states on demand is paramount.

In this paper, we explore the dynamics and entanglement generation/distribution capabilities of a spin graph formed by two interconnected \(3\times 3\) square graphs. This is engineered to present an ‘ABC-coupling’ configuration [14] with different coupling ratios. We use the methods of graph partitioning from Refs. [2, 17] to simplify such graph into a quotient graph and a quotient linear chain. In Sect. 2, we explain in detail the spin graph model. We also present the structure of the spin graph under study and explain the partitioning theory that allows its simplification. In addition, we introduce the measure used to assess the quality of entanglement (the entanglement of formation, or EOF). In Sect. 3 we present our results. For different coupling ratios, we compare the values of EOF obtained in a short period of time (something relevant for experiments on hardware with short decoherence times) against the maximum EOF values over a larger time window. We then investigate the effects that fabrication errors have on the entanglement generation. We analyse both the effects of errors on the couplings between qubits (non-diagonal disorder) and of errors on the on-site qubits’ energies (diagonal disorder). Finally, our conclusions are included in Sect. 4.

2 The model

Let us now explain the main concepts behind our spin graphs and the techniques that are here being used to analyse their entanglement generation properties. In the following subsections, we provide a general introduction to spin graphs and explain the details on the partitioned graph theory. We then focus on the graph structure under study and introduce the ‘ABC-coupling’ configuration. We show that with this structure and coupling scheme, and the right tuning of the coupling parameters, the natural dynamics of the system can generate a distributed highly entangled state.

Fig. 1
figure 1

Diagram of a spin chain of 6 qubits. \(J_{i,i+1}\) are the coupling energies between two adjacent qubits. Tilted arrows pictorially represent superpositions of up and down spin states

2.1 The spin graph formalism

We describe generic spin graph systems with the XY (sometimes also called XX) Heisenberg Hamiltonian. With \(\mathinner {|{0}\rangle }\) and \(\mathinner {|{1}\rangle }\) as our \(\sigma _{z}\) basis states, we write the Hamiltonian as

$$\begin{aligned} H_{XY}= & {} \sum _{i=1}^{N-1}\sum _{{\begin{array}{c} j>i \end{array}}}^{N}J_{i,j}[\mathinner {|{1}\rangle }\mathinner {\langle {0|_i\otimes |0}\rangle }\mathinner {\langle {1|_{j}+|0}\rangle }\mathinner {\langle {1|_i\otimes |1}\rangle }\mathinner {\langle {0}|}_{j}]\nonumber \\&\quad +\, \sum _{i=1}^N \epsilon _i\mathinner {|{1}\rangle }\mathinner {\langle {1}|}_i, \end{aligned}$$
(1)

where N is the number of qubits of the graph and \(J_{i,j}\) is the coupling energy between qubit i and qubit j. We will consider all the energies \(\epsilon _i\) to be equal, time-independent and scaled to zero unless otherwise stated. An example of a simple spin graph is the one-dimensional spin chain illustrated in Fig. 1.

As already noted, some particular arrangements of spin graphs present good quantum state transfer properties [7, 10, 13, 16], meaning that a quantum state can be reliably transmitted from a specific qubit of the graph (sender) to another (receiver).

2.2 Partitioned graph theory

Here, we consider the theory of graph partitioning based on [17]. This allows reducing the complexity of a graph by collapsing several similar sites into a single effective site that will be referred to as a node. The obtained graph is called the partitioned graph. After also readjusting the new interaction strengths one then obtains the quotient graph. The purpose of our use of partitioned graph theory is to find and study different graph structures with equivalent dynamics. This is not merely to provide a simpler calculation, but rather to present different graphs with the same entanglement generation properties. This would allow experimentalists to be able to choose between different graph topologies and find the most suitable to the characteristics of the available hardware. We will refer to the original graph, for which the complexity will be reduced by partitioning, as the full graph and call its sites fg-sites. All coupling energies in this graph are equal. In [17], a partitioned graph G comprising a set of nodes is defined such that:

  • The first node comprises a single fg-site of the full graph.

  • All fg-sites collapsed in node i are equidistant from the first node.

  • For any pair of nodes, ij, every fg-site collapsed in node i connects to the same number of fg-sites collapsed in node j.

  • No edges join fg-sites collapsed in the same node.

Once the first node is defined, we will group the remaining fg-sites together to form the other nodes of the partitioned graph. These remaining fg-sites are grouped if and only if they all have the same distance to the first node and the same coupling degree to the fg-sites collapsed into a different node. Note that the distance between two sites is defined by the number of edges connecting them on the shortest path.

Fig. 2
figure 2

Example of a partitioned graph consisting of two nodes. Node 1 is connected to \(d_1\) fg-sites of node 2, and similarly node 2 is connected to \(d_2\) fg-sites of node 1. Node 1 comprises \(M_1\) fg-sites, and node 2 comprises \(M_2\) fg-sites [17]

In Fig. 2, we show two nodes, where each fg-site of the full graph in node 1 is coupled to \(d_1\) fg-sites in node 2 and each fg-site in node 2 is coupled to \(d_2\) fg-sites in node 1. Here, \(M_1\) (\(M_2\)) is the number of fg-sites collapsed into node 1 (2). It is always required that \(M_1d_1=M_2d_2\), or more generally

$$\begin{aligned} M_id_i=M_jd_j \end{aligned}$$
(2)

for any coupled pair of nodes i,j. In a nutshell, partitioned graphs, as the one shown in Fig. 2, are graphical constructions that group together in a node the fg-sites that fulfil the same connection properties (see the conditions listed above).

Fig. 3
figure 3

The \(3\times 3\) square graph a together with the corresponding partitioned graph b and the quotient graph c. The numbers drawn on top of the edges in the partitioned graph describe the coupling degrees of each node, \(d_i\), and the numbers on top of the edges in the quotient graph denote the effective coupling strengths, \(J_{i,j}\). Note that for the initial full \(3\times 3\) square graph all coupling strengths are \(J_{i,j}=1\). The red numbers at the bottom of each circle are labelling the sites of the graphs (a) and (c) and the nodes of the partitioned graph (b)

Once the partitioned graph is obtained, the quotient graph can be easily defined. The locations of the qubits in the quotient graph are determined by its site structure, and this site structure is identical to the node structure of the partitioned graph. We will refer to the qubit sites of the quotient graph as qg-sites, to distinguish these from the qubit locations in the full graph which are determined by the fg-sites. While in the full graph all the fg-sites were uniformly coupled with \(J=1\), in the quotient graph each qg-site is now interacting with the adjacent qg-sites through an effective coupling strength \(J_{1,2}=\sqrt{d_1d_2}\). The quotient graph and the full graph present the same dynamics and therefore the quantum transfer abilities of both graphs are identical.

We now move to the network arrangement considered in this work. First let us introduce the basic unit of our system: a single \(3\times 3\) square graph, as shown in Fig. 3a. In [9], Christandl et al. showed that this structure has perfect state transfer (PST) properties. The PST property entails that an excitation injected at the first fg-site is perfectly transferred to its mirror position (here, fg-site 9) by the natural dynamics of the system. Here, by ’injected excitation’ we mean the creation of a spin up state, \(\vert \uparrow \rangle \), in a system that has all spins down, \(\vert \downarrow \downarrow \ldots \downarrow \rangle \). The complexity of the \(3\times 3\) structure can be reduced by applying the aforementioned process of graph partitioning as shown in Fig. 3b, c. We note that for the presented quotient graph, Bachmann et al. introduced an additional lift-and-quotient reduction [2] allowing for a further simplification of the graph to a linear chain, as shown in Fig. 4. Therefore, we do have some freedom in the way we perform that partition, as partitioning only the grey coloured sub-graph at the top of Fig. 4 results in the bottom left graph, and if we partition everything, but the edges we get the bottom right graph. The bottom right graph is a linear chain, for which the qubit sites will be referred to as lc-sites. Importantly, when the full graph is initialised in a normalised equal superposition between the fg-sites that correspond to the initially excited qg-sites of the quotient graph and, in turn, to the initially excited lc-sites of the quotient linear chain, the three graphs present the same dynamics.

Fig. 4
figure 4

Sketch of the lift-and-quotient reduction [2]

Fig. 5
figure 5

Graph of two interconnected \(3\times 3\) square graphs

Fig. 6
figure 6

Quotient linear chain for the two interconnected \(3\times 3\) square graphs from Fig. 5

Given that the \(3 \times 3\) square graph can be collapsed to a linear chain (see Fig. 4) whilst ensuring PST properties, we have chosen it as our basic unit to build a more complex system. For our entanglement generation protocol we interconnect two of these units (as shown in Fig. 5). If we apply the partitioning method and the lift-and-quotient reduction to the two coupled \(3\times 3\) square graphs, we obtain a linear chain, as shown in Fig. 6. This can in turn be approximated to a trimer, a well-known structure capable of generating entanglement, as we will introduce in Sect. 2.4.

2.3 Unitary transformation perspective

An alternative and more physical perspective on the graph partition and quotient combined operation is to consider this operation as due to a unitary transformation. The reduction of the complexity of a graph to a simpler graph (with fewer coupled sites), or even a simple chain (with still fewer coupled sites), can be viewed as due to a unitary transformation. As we are considering the single excitation subspace of our system, the Hamiltonian has the same dimensionality as the site basis and the transformation redefines the definitions of (some of) the sites to superpositions of the original site basis. There are two criteria for the transformation. First, it should decouple some of the sites, to simplify the graph. Second, it should leave alone the definitions of the sites between which we seek identical dynamics in the reduced graph.

Clearly this perspective also works in reverse, in the sense that we could start with a simple graph or chain, and augment this with some additional uncoupled sites (which could be at zero energy or nonzero energy, dependent upon the form of the more complicated graph sought). Then, a unitary transformation can be chosen to redefine the site basis and involve the uncoupled sites in a more complex graph. If in this reverse approach the objective is again a network with identical dynamics between certain sites, these sites should be invariant under the transformation.

In both cases (graph simplification and graph expansion) where the sites of interest for the dynamics are not invariant under the transformation, there are clearly still equivalent dynamics in the two graphs. However, these will involve site superposition states, as related by the transformation.

We will refer to this unitary perspective in relation to the specific examples discussed in this paper.

2.4 ABC configuration

We now extend what in [14] is called ABC configuration to our specific graph structure. This configuration is attained by imposing a coupling distribution of two different energies, \(\Delta \) and \(\delta \), that results in having three sites (named A, B and C) distributed symmetrically and weakly coupled (\(\delta \)) to the rest of the system, such that they appear to be defects in an otherwise strongly coupled (\(\Delta \)) graph. The reason that makes this particular configuration interesting is that it can be approximated to a tunable trimer chain, which has the ability to dynamically create a maximally entangled Bell state between the edge sites when the system is initialised by injecting an excitation in the middle site [14, 28]. Figure 7 shows the result of applying this configuration in our full graph and its two quotient structures.

Fig. 7
figure 7

ABC configuration of the full two interconnected \(3\times 3\) square graphs (top), the quotient graph (middle) and the quotient linear chain (bottom)

From the unitary transformation perspective, the ABC system has seventeen single-excitation eigenstates, with eigenenergies as given in Fig. 8. The first partition and quotient operation is effected by a transformation that acts only on the black sites in Fig. 7 and leaves A, B and C invariant. This decouples six sites (two at positive energy \(\sqrt{2} \Delta \), two at equal magnitude negative energy \(-\sqrt{2} \Delta \) and two at zero energy), clearly without changing the overall spectrum of the system. The resultant non-trivial network is the 11-site quotient graph shown. A further unitary transformation, again acting on only the black sites and leaving A, B and C invariant, can decouple a further two zero energy sites to leave the final 9-site chain, with the spectrum given in Fig. 8.

Fig. 8
figure 8

The seventeen single-excitation eigenenergies of the network shown in Fig. 7, identifying those that decouple with the reductions

2.5 Entanglement-of-formation as a measure of graph performance

To determine the effectiveness of any particular spin chain or graph to generate entangled states, a quantitative measurement of bipartite entanglement is needed. For this, we will use the entanglement of formation (EOF) [29]. The EOF between qubits A, C is defined by,

$$\begin{aligned} \mathrm{EOF}_{AC}=-x\log _{2}x-(1-x)\log _{2}(1-x), \end{aligned}$$
(3)

where \(x=\frac{1+\sqrt{1-\tau }}{2}\) and \(\tau =(\text {max}\{0,\lambda _1-\lambda _2-\lambda _3-\lambda _4\})^2\). \(\lambda _i\) is the square root of the \(i^{th}\) eigenvalue of the matrix \(\rho _{AC}\widetilde{\rho _{AC}}=\rho _{AC}[(\sigma ^{A}_{y}\otimes \sigma ^{C}_{y})\rho ^*_{AC}(\sigma ^{A}_{y}\otimes \sigma ^{C}_{y})]\), ordered such that \(\lambda _1>\lambda _2>\lambda _3>\lambda _4\). \(\rho _{AC}\) is the reduced density matrix for sites A and C that result from tracing out the rest of the system, such that \(\rho _{AC}=tr_\mathrm{rest}(\rho )\).

The EOF ranges between 0 and 1, with \(\mathrm{EOF}=1\) indicating that the state comprising two qubits is maximally entangled. In our work, the EOF magnitude allows us to quantitatively assess how good is the entangled state generated from the natural dynamics of the graph. The EOF has also been used to assess the quality of other entangled state generation protocols in spin chains [14, 28]

3 Results

In order to study the dynamics of the system, we solve the time-independent Schrödinger equation through exact diagonalisation of the Hamiltonian matrix [13]. Note that, as already mentioned, the three structures (full graph, quotient graph and quotient linear chain) will have the same dynamics for injection and extraction at sites A, B and C. For that, we initialise the system to a spin up, \(\vert 1\rangle \), at site B and all spins down, \(\vert 0\rangle \), in the rest of the graph. We then let the state evolve through its natural dynamics and calculate the EOF versus time. Because we based our structure on the trimer chain, the dynamics of the EOF will look like a Rabi oscillation which corresponds to the entangling and disentangling of the state comprising sites A and C. In the remaining of this section, we study how the amplitude and period of such oscillations depend on the chosen coupling ratio, \(\frac{\delta }{\Delta }\), and how such ratio affects the time one needs to wait to obtain the maximum EOF peak. We also investigate how the presence of random fabrication errors (diagonal and off-diagonal disorder) affects differently the dynamics of the three graph structures, giving different results in terms of robustness. We will use natural units, so that \(\hbar =1\).

3.1 Entanglement generation

In Fig. 9, we show the EOF dynamics for two different coupling ratios, \(\frac{\delta }{\Delta }= 0.1\) and \(\frac{\delta }{\Delta }=1\). The peaks for each of the two scenarios present different periodicity and related amplitudes. In Fig. 9, it is also apparent that the larger the coupling ratio, the faster the oscillations, meaning that the entangled state is generated earlier. For \(\frac{\delta }{\Delta }=1\), the first EOF peak happens at \(t_1\cdot \Delta = {1.97}\) and for \(\frac{\delta }{\Delta }= 0.1\), at \(t_1\cdot \Delta = 18.02\).

Fig. 9
figure 9

Dynamics of the EOF between sites A and C for the coupling ratios \(\frac{\delta }{\Delta }= 0.1\) (top) and \(\frac{\delta }{\Delta }=1\) (bottom). A coupling ratio of \(\frac{\delta }{\Delta }=1\) corresponds to the case with uniform couplings

3.1.1 EOF at the first peak

Our first approach to compare the effect of the different coupling ratios in our protocol is to investigate the first EOF peak. From an experimental point of view, the evaluation of the first peak is a useful metric as it will be most likely to fall ahead of the decoherence times of the experimental realisation. The dependence of the time when the first entanglement operation happens can be analytically approximated from the reduced trimer as done in [28]. From that, we obtain

$$\begin{aligned} t_P\cdot \Delta =\frac{\pi }{\sqrt{3+\left( \frac{\delta }{\Delta }\right) ^2-\sqrt{9+\left( \frac{\delta }{\Delta }\right) ^4}}} \end{aligned}$$
(4)

as the estimate of the period of the EOF oscillation and of the time needed for an excitation injected at site B to propagate to the edges and return to its initial state. Thus, the entangled state will be formed for the first time at approximately \(t_P\cdot \Delta /2\). Also, in our calculations we have numerically obtained the exact time, \(t_1\), at which the first EOF peaks occurs within a time window equal to \(t_P\).

Fig. 10
figure 10

Orange dashed Curve: EOF at \(t_1\) plotted against the coupling ratio \(\frac{\delta }{\Delta }\). This value is obtained as the highest entanglement found in a time window of \(t_P\). Green solid curve: Maximum EOF in a time window of \(100 \cdot t_P\), \(\mathrm{EOF}_{t_{100}}\), against the coupling ratio \(\frac{\delta }{\Delta }\). In the left inset, the time \(t_{100}\) when the maximal entanglement within \(100\cdot t_P\) occurs is plotted against the coupling ratio. In the right inset, the time \(t_1\) when the first entanglement peak occurs is plotted against the coupling ratio

The coupling ratio dependence of the first EOF peak for the two interconnected \(3\times 3\) square graphs is shown from the orange (dashed) curve of Fig. 10. This dependence is identical for the three structures (full graph, quotient graph and quotient chain). This curve shows an oscillatory behaviour, with amplitude increasing and frequency decreasing with the coupling ratio. We observe that the highest EOF attained is \(\mathrm{EOF}= 0.8745\) for a coupling ratio of \(\frac{\delta }{\Delta }= 0.828\,46\). In the right inset of Fig. 10 we show how the time \(t_1\) decays as the coupling ratio increases, a result that is in agreement with its analytical approximation. The dependence of \(t_1\) on the coupling ratio has a staircase-like profile; the quick vertical drops occur at the ratios corresponding to the minima of the orange dashed curve in the main panel. This behaviour can be understood if we look at a few consecutive slices of the dynamics for the region close to those minima. Figure 11 shows three nearby points to the minimum close to \(\frac{\delta }{\Delta }=0.5\). From the lower \(\frac{\delta }{\Delta }\) to the higher, we observe how the EOF curve goes from having a clear maximum to reach a plateau, and then the maximum can be distinguished again. This transition results in a \(t_1\) step (note how the maximum that was initially at the right-hand side appears at the left side after reaching the flat plateau), as seen in the right inset in Fig. 10. This behaviour can be observed at all of the minima of the orange dashed curve in Fig. 10.

Fig. 11
figure 11

EOF for ratios around the orange dashed curve minimum at \(\frac{\delta }{\Delta }=0.50446\) in Fig. 10. The shifting of the maximum from the right hand side of the peak to the left hand side explains the staircase like profile of the left inset in Fig. 10. Orange dashed: EOF vs. time for a coupling ratio slightly smaller than the rightmost minimum of the orange dashed curve in Fig. 10. Green solid: EOF vs. time for a coupling ratio equal to the rightmost minimum of the orange dashed curve in Fig. 10. Blue dotted: EOF vs. time for a coupling ratio slightly larger than the rightmost minimum of the orange dashed curve in Fig. 10

3.1.2 Comparison to ‘normal’ linear chain

When changing the coupling ratio of the quotient linear chain in Fig. 7 from \(\sqrt{2}\delta /\sqrt{3}\Delta \) to \(\delta /\Delta \) we find that the dynamics is the same, but with a rescaled factor \(\sqrt{3}/\sqrt{2}\). In particular, the first EOF peak is reached later, at a time longer by \(\sqrt{3}/\sqrt{2}\). So if one has only two specific couplings \(\delta \) and \(\Delta \) available due to experimental constraints, then using the full graph generates faster dynamics (a shorter \(t_1\)) than a coupled linear chain generated by those same two couplings. In this sense, the dynamics of the full graph is equivalent to the dynamics of an ‘enhanced’ spin chain with coupling ratio increased by a factor \(\sqrt{3}/\sqrt{2}\).

3.1.3 Entanglement within a longer time

A different approach to compare the coupling ratio dependence is to use the maximum entanglement generated over a larger time window. We denote \(t_{100}\) the time at which the highest entanglement \(\mathrm{EOF}_{t_{100}}\) occurs in a time window of 100 \(t_p\) periods (note that \(t_P\) will depend on the coupling ratio). Figure 10 shows the dependence of \(\mathrm{EOF}_{t_{100}}\) (green solid profile) with the coupling ratio. For this scenario and a coupling ratio of \(\delta /\Delta = 0.720\,18\) we get the highest maximum entanglement, \(\mathrm{EOF}_{t_{100}}= 0.8787\). The left-hand inset in Fig. 10 shows the time \(t_{100}\) when the maximal entanglement occurs. The upper limit is given by the time window \(t=100\cdot t_P\) and is decreasing with the coupling ratio. We will later have a more detailed look at this time behaviour.

The green solid line in Fig. 10 outlines an upper limit with respect the orange dashed curve, but it also displays a few downward outliers. For such cases, the highest possible entanglement occurs at a time out of the selected time frame due to the presence of secondary oscillations of a large period (examples of secondary oscillations can be seen in Fig. 9). We will call these outliers ‘downwards peaks’. Note that the ‘downwards peaks’ are very sharp so we need a high precision in the coupling ratio to identify them. The sharpness of the ‘downwards peaks’ also underlines the quick change in the secondary oscillations just by slightly modifying the coupling ratio.

3.1.4 Ratios for perfect periodicity

In Fig. 10, for certain ratios, the green solid curve shows ‘downwards peaks’ touching the orange dashed curve; this behaviour implies that that no EOF peak is higher than the first peak in the specified time frame of \(100\cdot t_P\). However, many of these downward peaks remain when considering an arbitrarily large time window, suggesting that no EOF peak is higher than the first peak. This either means that the first EOF peak is the highest or that all EOF peaks have the same height (periodic system). We shall see first through inspection of one of these ‘downward peaks’ and then analytically that the latter is true.

Fig. 12
figure 12

Green solid: EOF at the coupling ratio of one of the ‘downwards peaks’ (corresponding to the rightmost minimum of the orange dashed curve in Fig. 10). Red dashed: fidelity against the initial state. EOF and fidelity show that the system returns periodically to its initial state

As shown in Fig. 12, the state of the system at those specific coupling ratios is fully periodic. The system returns exactly to its initial state, and the second and consecutive EOF peaks have the same shape as the first. We conclude that all the peaks are the same for the specific coupling ratios showing ‘downwards peaks’.

There are multiple coupling ratios for which this is true, and the reason for this, as well as the precise values of these ratios, can be discovered through the analysis of the fidelity against the initial state. For an initial state \(\mathinner {|{\psi _0}\rangle }\), the fidelity against a state \(\mathinner {|{\psi _f}\rangle }\), is defined as

$$\begin{aligned} \mathcal {F}(t)=|\mathinner {\langle {\psi _f}|}e^{-it\mathcal {H}}\mathinner {|{\psi _0}\rangle }|^2 \end{aligned}$$
(5)

where \(\mathcal {H}\) is the time-independent system’s Hamiltonian. By diagonalising \(\mathcal {H}\) one can obtain its eigenvalues and eigenvectors \(\{E_i\}\) and \(\{\mathinner {|{\phi _i}\rangle }\}\), and the fidelity can be written as

$$\begin{aligned} \mathcal {F}(t)=\sum _{i,j}\alpha _{ij}e^{it(E_j-E_i)}, \end{aligned}$$
(6)

where we have defined \(\alpha _{ij}=\mathinner {\langle {\phi _j|\psi _f}\rangle }\mathinner {\langle {\psi _f|\phi _i}\rangle }\mathinner {\langle {\phi _i|\psi _0}\rangle }\mathinner {\langle {\psi _0|\phi _j}\rangle }\). By noting that \(\alpha _{ij}=\alpha _{ji}^*\), and \(e^{it(E_j-E_i)}=(e^{it(E_i-E_j)})^*\), we can see that the imaginary part of the ij term cancels with the imaginary part of the ji term. Therefore, as the diagonal terms, \(\alpha _{ii}e^{it(E_i-E_i)}\) are real, the fidelity can be written as a sum of cosines:

$$\begin{aligned} \mathcal {F}(t)=\sum _{i,j}\alpha _{ij}\cos ((E_j-E_i)t). \end{aligned}$$
(7)

The dynamics we are interested in is the same for the full, seventeen fg-sites graph, the quotient graph and the quotient linear chain. We shall focus our analysis here on the simpler case of the quotient linear chain (with an initial injection in the centre lc-site B). For this system, there are nine eigenvectors, five even under reflection about lc-site B and four odd under this reflection. There are thus five eigenvectors which are not orthogonal to the (even) initial state. These eigenvectors correspond to the eigenenergies (taken from Fig. 8)

$$\begin{aligned} \pm E&:= \pm \sqrt{3\delta ^2+3\Delta ^2+\sqrt{\delta ^4+9\Delta ^4}} \end{aligned}$$
(8)
$$\begin{aligned} \pm E'&:= \pm \sqrt{3\delta ^2+3\Delta ^2-\sqrt{\delta ^4+9\Delta ^4}} \end{aligned}$$
(9)
$$\begin{aligned} E_0&:= \; 0 \;. \end{aligned}$$
(10)

As \(\alpha _{ij}=0\) when either \(\mathinner {|{\phi _i}\rangle }\) or \(\mathinner {|{\phi _j}\rangle }\) is orthogonal to the initial state \(\mathinner {|{\psi _0}\rangle }\), these are the only eigenvalues that affect the time dependence of \(\mathcal {F}(t)\). We need to consider all combinations of these five eigenvalues in the term \(\cos ((E_j-E_i)t)\). By noting that cosine is an even function, it can be shown that in order to equal unity (and therefore for the fidelity to return to its initial state) the following must be satisfied:

$$\begin{aligned} Et&= 2\pi n_1 \\ E't&= 2\pi n_2 \\ 2Et&= 2\pi n_3 \\ 2E't&= 2\pi n_4 \\ 2(E-E')t&= 2\pi n_5 \\ 2(E+E')t&= 2\pi n_6 \\ \end{aligned}$$

for some integers \(n_i\). Of course, these equations are not independent, if the first two are satisfied, then so are the rest. Therefore, when \(E'n_1=En_2\), \(\mathcal {F}(t)=1\) at time \(t=\frac{2\pi n_1}{E}=\frac{2\pi n_2}{E'}\).

Using this integer condition, and the formulae for the energies, we can derive a formula which will tell us, for given \(n_1, n_2\), what coupling ratio ensures that the condition \(E'n_1=En_2\) is true. When this condition is satisfied for integers \(n_1,n_2\), the system exhibits periodic dynamics. When \(n_2=1\), the system returns to its initial state after a single peak in EOF, implying that every EOF peak will be the same height. For example, the dynamics shown in Fig. 12, for a ratio \(\frac{\delta }{\Delta }=0.504469524022\), is produced when \(n_2=1\) and \(n_1=3\).

Fig. 13
figure 13

Time behaviour around the coupling ratio corresponding to the absolute minimum of the orange dashed curve in Fig. 10. Every point stands for the time \(t_E\) when the highest EOF is observed in a time window of \(t\cdot \Delta =4000\). To be sure that the overall shape of the plot was not due to the sampling of the coupling ratios, we have chosen 2000 random coupling ratios in the range [0.50, 0.51]

3.1.5 Time behaviour around ‘flat coupling ratios’

Here, we consider coupling ratios within a small interval around the minima of the orange dashed curve of Fig. 10 that coincide with the downwards peaks of the green solid curve of Fig. 10. We investigate the time when the highest EOF occurs by considering a fixed time window. In Fig. 13, we show the highest EOF within \(0\le t\cdot \Delta \le 4000\) for small variations of the coupling ratios around \(\delta /\Delta =0.505\). The period of the secondary oscillations becomes longer if we get closer to the minimum of the orange dashed curve in Fig. 10, therefore, the number of the EOF maxima from the secondary oscillations within the observed time window decreases. This behaviour is confirmed in Fig. 13. Here, each of the blue curves tracks the evolution of one EOF maxima as the coupling ratio \(\frac{\delta }{\Delta }\) varies and \(0\le t\cdot \Delta \le 4000\). By considering vertical cuts at specific coupling ratios (the red lines), we can see that the number of blue curves intersecting each cut decreases as we get closer to the coupling ratio \(\frac{\delta }{\Delta }=0.504469524022\) (minimum of the orange curve in Fig . 10). More details are in Appendix where we show the dynamics of the EOF for the specific coupling ratios corresponding to the vertical lines in Fig. 13. Close to this coupling ratio, the highest EOF within the chosen time window occurs just before \(t\cdot \Delta =4000\), but the absolute highest EOF (a maxima of the secondary oscillation) occurs outside the time window. As the coupling ratio approaches the minimum of the orange dashed curve in Fig. 10 the time when the absolute highest EOF occurs goes to infinity. Then, we cannot observe any secondary oscillations. We call all the coupling ratios which lead to an infinite long period of the secondary oscillations ‘flat coupling ratios’.

Fig. 14
figure 14

Stability against disorder. Top: \(\frac{\delta }{\Delta }=0.109\); Bottom: \(\frac{\delta }{\Delta }=0.828\). Left: Full graph; Middle: Quotient graph; Right: linear chain. Off-diagonal disorder is shown in blue with dots, and diagonal disorder is shown in black with crosses. The shaded areas represent the standard deviation. The three graph structures display a very similar response to both disorders

3.2 Stability against errors: random static disorder

So far we have discussed the behaviour of an ideal system, with no errors in the coupling strengths between sites and where all of the on-site energies are precisely equal and scaled to zero. This is of course an unrealistic situation and a consideration of how robust a system is to errors in manufacturing is critical to determining its practical feasibility. Following [22], to study our systems’ robustness we introduce two types of static disorder. The first, diagonal disorder, consists of adding random perturbations to the diagonal terms of the Hamiltonian and represents random differences between the on-site energies of the qubits. The second type of disorder we apply, off-diagonal disorder, represents random errors in the couplings between qubits. This is incorporated into the simulation by adding random perturbations to the nonzero off-diagonal terms of the Hamiltonian. These two types of perturbation encompass a wide range of potential fabrication defects; however, we leave the study of other sources of errors or decoherence for a follow-up work. To see the effect of these errors on the dynamics of the system, we apply these perturbations to two different coupling scenarios: a coupling ratio of \(\frac{\delta }{\Delta }=0.828\) (corresponding to the rightmost maximum of the orange dashed curve in Fig. 10) and a coupling ratio of \(\frac{\delta }{\Delta }=0.109\) (corresponding to the left-most minimum of the orange dashed curve in Fig. 10). We scale the errors via a disorder scale, D, ranging from \(0\%\) to \(50\%\) of the strong coupling, \(\Delta \). D is then included into the couplings or energies as a dimensionless parameter such that \(\overline{\epsilon }_i=\epsilon _i+Dr_i\Delta \) and \(\overline{J}_{i,i+1}=J_{i,i+1}+Dr_i\Delta \), where \(r_i\) is a random number generated from a uniform distribution between 0 and 1. For both types of added disorder, we perform 1000 random realisations for each value of D, and for each realisation we obtain the EOF at the time of the first peak in the unperturbed system, \(t_1\), and then calculate the average.

In Fig. 14, we compare the robustness of the graph structure of Fig. 5 to its quotient graph and quotient linear chain. We find that the three graph structures show a quick decay of the averaged EOF for the coupling ratio \(\frac{\delta }{\Delta }=0.109\), especially for the off-diagonal disorder (top panel). However, for the case of the coupling ratio \(\frac{\delta }{\Delta }=0.828\) (bottom panel) we observe an excellent robustness, especially in the case of diagonal disorder. Hence, there is a strong dependence of the robustness of our protocol on the chosen coupling ratio. In addition to this, there is a significant difference between the effects of diagonal and off-diagonal disorder, with the latter being much more damaging for both coupling ratio scenarios. While the three graph structures show similar robustness, the linear chain is slightly more robust than the quotient graph which in turn is slightly more robust than the full graph. It is important to note that the off-diagonal disorder simulates errors in the coupling between sites and therefore high levels of this disorder significantly change the level of connectivity within the graph. This has an impact on how the wavefunction evolves in space. For example, a negligible coupling can become much larger due to error, losing the required strong/weak coupling pattern of the system and, de facto, resulting in the opening of new channels for the wavefunction to diffuse.

4 Conclusions

Using a graph formed by two interconnected \(3\times 3\) square graphs, we have shown that one can efficiently generate bipartite entanglement by preparing an initial state with an excitation in the middle site of the graph. We engineered the graph couplings with a strong and weak coupling distribution such that we obtain an ABC configuration that can be approximated to the trimer chain, known to generate Bell pairs. We analysed the spin dynamics dependent on the ratio of the weak and strong coupling and found specific coupling ratios where the entanglement shows a perfect periodic behaviour. This behaviour, however, can be rapidly lost by a slight change on the coupling ratio. In such cases, we encounter secondary oscillations causing the entanglement peaks to have a different height and therefore showing a different EOF.

We used graph partition theory to derive two additional related graphs and showed that the above findings are identical for the three graphs. In addition, we discussed the partitioning from the physical perspective of unitary transformations applied to redefine some of the graph sites. All three graphs depicted in Fig. 7 show the same dynamics after an excitation is injected in the middle. Moreover, the three graphs show the same dynamics if the initial state of the full graph is a normalised superposition between the fg-sites which correspond to the initially excited qg-sites of the quotient graph and, in turn, the initially excited lc-sites of the quotient linear chain. This gives experimentalists flexibility in their system’s topology; for example, for certain hardware, a full graph could be more favourable to implement than a linear chain, or it could offer additional functionalities. In addition, if the set of available couplings is limited, the full graph is advantageous as it corresponds to a spin chain with faster dynamics than a spin chain constructed from the same available couplings.

Finally, we considered the robustness of the three systems. We found that there is a significant dependence on the ratio \(\frac{\delta }{\Delta }\), as the systems with a ratio \(\frac{\delta }{\Delta }=0.828\) are significantly more robust than the ones with ratio \(\frac{\delta }{\Delta }=0.109\). These two ratio correspond to a maximum and a minimum, respectively, of the curve describing how the height of the first entanglement peak varies with the coupling ratio. This suggests that ratios corresponding to a maximum of this curve lead to more robust devices, but a systematic analysis should be conducted to support this conclusion, which is beyond the scope of this work. We also noted that errors affecting the coupling between sites (‘off-diagonal disorder’) are more damaging to the entanglement generation protocol than errors affecting the on-site energies of the sites (‘diagonal disorder’). The three graph structures show similar robustness, although the linear chain is slightly more robust than the quotient graph which in turn is slightly more robust than the full graph. These results suggest that a physical realisation of the systems shown in Fig. 7 should aim for a ratio of \(\frac{\delta }{\Delta }=0.828\), as it not only produces a high EOF in a shorter time, but is also extremely robust.

We conclude that graph structures with only two different couplings \(\delta \) and \(\Delta \) can be used to generate robust bipartite entanglement. While a linear chain with the same dynamics as the graph is slightly more robust to errors, a linear chain with the same coupling as the graph displays a slower dynamics. We show that, depending on the experimental demands, one has the freedom to choose between graphs or chains for the design of different quantum technology applications.