Introduction

In quantum information processing, high-fidelity control and error correction are vital, as superconducting architectures often suffer from leakage out of the logical subspace or relaxation to lower-energy states. A promising path to address these issues is converting leakage or relaxation events into erasure errors, which explicitly flag themselves for correction1,2. Recent studies on dual-rail qubits encode information in a single photon-number excitation distributed across two resonantly coupled transmons, enabling efficient leakage detection and improving error-correction thresholds3,4,5,6,7,8,9,10. Despite these advances in error detection capabilities, a critical gap persists in developing universal quantum logical gates that inherently preserve the dual-rail encoding during operation. This fundamental limitation currently constrains the practical implementation of fault-tolerant quantum computation using this promising architecture.

In parallel, continuous-time quantum walks (CTQW) provide a powerful framework that preserves the total number of excitations, making them a natural match for dual-rail encoding. By confining the walker–a single excitation–to a well-defined subspace, CTQW safeguards against leakage while enabling potential quantum speedups in hitting and mixing processes11,12,13,14. These features have spurred experimental demonstrations across various integrated qubit systems, such as superconducting qubits15,16,17. Beyond single-particle dynamics, interactions between multiple walkers introduce richer correlated behavior18,19 and can support robust quantum search20,21,22,23 and error correction24. From a theoretical standpoint, multi-walkers CTQW can construct universal quantum logic25,26, supported by proposals demonstrating high-fidelity controlled-phase (CPhase) gates27 or leveraging two internal states of the walker on a directed graph28. A controlled-NOT (CNOT) gate has been constructed for both non-interacting bosons–realized by photons in waveguide lattices–and for interacting bosons using ultra-cold atoms29. All these advancements highlight the potential of CTQW in universal quantum computing.

By integrating the dual-rail transmon encoding with CTQW, it is possible to harness the advantages of both methodologies: robust error management via erasure conversion and the preservation of photon-number properties inherent to CTQW. This integration enhances the efficiency of erasure error correction in quantum computing architectures built upon this framework. In this study, we propose a foundational framework to implement universal quantum logic based on the operation of correlated CTQW within the structure of dual-rail encoded qubit arrays. We present explicit constructions of single- and two-qubit gates, such as the controlled-Z (CZ) and iSWAP gates, alongside three-qubit gates, maintaining the dual-rail encoding by the end of the quantum evolution. Our analysis encompasses both transverse and longitudinal connections within a superconducting qubit array, deriving parameter regimes that align with current experimental methodologies utilizing tunable transmon couplers. Additionally, we investigate the behavior of these gate constructions under realistic noise conditions, including dephasing, relaxation, and imperfections in coupler strengths or detunings. Our results suggest that the intrinsic properties of dual-rail transmons, in conjunction with the excitation-conserving attributes of CTQW, render this approach not only feasible but potentially robust against prevalent hardware imperfections. This comprehensive perspective holds promise for advancing early efforts in fault-tolerant quantum computation by providing both practical means for gate synthesis and a stable encoding architecture for superconducting circuits.

Results

Continuous-time quantum walks on the extended Bose-Hubbard model

The extended Bose-Hubbard model (EBHM) serves as a nontrivial model for studying quantum walks. There is no additional interaction energy when there is a single walker on graphs; when multiple walkers are on the same graphs, they interact with each other and exhibit correlated quantum walks29. These quantum walks go beyond simple hopping, incorporating local phase shifts, on-site interactions, and nearest-neighbor correlations associated with EBHM. This subsection introduces the EBHM and its graph-based interpretation as a platform for describing such nontrivial CTQWs.

The EBHM incorporates additional interactions beyond the standard Bose-Hubbard framework, enabling the study of diverse quantum phenomena30. It has been experimentally realized in ultracold atoms in optical lattices31, Rydberg atom arrays32,33, superconducting circuits5,34, and dipolar excitons35.

In this work, we implement the EBHM using a two-dimensional superconducting circuit composed of transmons and tunable couplers, as illustrated in Fig. 1(a). Starting from the full circuit Hamiltonian, we derive an effective Hamiltonian by decoupling the coupler. This effective Hamiltonian is then transformed into the rotating frame. The full description of the superconducting circuit and technical details are provided in the Methods section. As a result, we obtain the EBHM Hamiltonian36,37:

$$\widehat{H}=-J\mathop{\sum }\limits_{\langle i,j\rangle }{\widehat{c}}_{i}^{\dagger }{\widehat{c}}_{j}+\frac{U}{2}\mathop{\sum }\limits_{i}{\widehat{n}}_{i}({\widehat{n}}_{i}-1)-\mathop{\sum }\limits_{i}{\mu }_{i}{\widehat{n}}_{i}+V\mathop{\sum }\limits_{i}{\widehat{n}}_{i}{\widehat{n}}_{i+1},$$
(1)

where \({\widehat{c}}_{i}^{(\dagger )}\) annihilates (creates) a boson at site i, \({\widehat{n}}_{i}\equiv {\widehat{c}}_{i}^{\dagger }{\widehat{c}}_{i}\) is the number operator. The parameters J, U, μi, and V denote the tunneling amplitude, on-site interaction strength, chemical potential, and nearest-neighbor interaction strength, respectively.

Fig. 1: Illustration of the dual-rail encoded qubit array and logical operations.
Fig. 1: Illustration of the dual-rail encoded qubit array and logical operations.
Full size image

a A building block of a 4 × 2 logical qubits array. Each logical qubit (dashed boxes) consists of two transmons (blue boxes) and one coupler (gray boxes). The coupling scheme is illustrated in the inset dashed box. b Quantum walks on various graphs represent different logical operations on the 1-D logical qubit array, with corresponding gates marked above the solid boxes. Each vertex corresponds to a transmon, while a pair of transmons in the dashed box indicates an encoded logical qubit. Blue, orange, and red edges signify translational, loop-back, and collision walks, respectively.

In this context, a graph G = (VG, E) is defined, where VG represents the lattice sites (vertices) and E denotes the edges that correspond to specific Hamiltonian terms. To visually represent the physical processes described by the Hamiltonian, we employ the following color coding:

  • Blue edges: Correspond to the tunneling term (\(-J{\sum }_{\langle i,j\rangle }{\widehat{c}}_{i}^{\dagger }{\widehat{c}}_{j}\)) and describe particle hopping between neighboring sites.

  • Orange edges: Represent the chemical potential term (\(-\mu {\sum }_{i}{\widehat{n}}_{i}\)) and capture local phase accumulation or energy shifts.

  • Red edges: Represent the nearest-neighbor interaction term (\(V{\sum }_{i}{\widehat{n}}_{i}{\widehat{n}}_{i+1}\)), modeling interactions between particles at adjacent sites.

To align with superconducting circuit implementations, we will henceforth refer to these terms as the coupling, frequency shift (detuning), and ZZ interaction terms, respectively. The detailed settings on the superconducting circuit are elaborated in Section I of the Supplementary Note.

In the language of CTQWs, these edges describe distinct types of quantum walks, as depicted in Fig. 1(b):

  • Translational walk: (blue edges) A walker hops from one site to another.

  • Loop-back walk: (orange edges) A walker remains confined to a single site and accumulates phase, analogous to self-loops in a graph.

  • Collision walk: (blue + red edges) Neighboring walkers exchange sites with interaction, resulting in a correlated quantum walk.

  • Collision: (red edges) Neighboring walkers interact, resulting in pure interaction.

Each graph G can be transformed into a dual graph, which encodes the structure of couplings and interactions among the Fock states governed by the Hamiltonian. This dual graph provides an intuitive graphical representation of the transitions facilitated by the Hamiltonian terms, illustrating how quantum states interact and evolve.

This graph-based approach opens pathways for studying many-body quantum dynamics and correlations in a controlled experimental setting.

Dual-rail encoding on a graph

In this subsection, we describe a dual-rail encoding scheme in the EBHM, where single microwave-photonic excitations (“walkers”) propagate on a graph G. This encoding exploits the spatial delocalization of the walker to represent logical qubits across pairs of adjacent transmons. We introduce the logical and complementary subspaces, discuss the total Hilbert space dimension, and explain the default system configuration used for qubit initialization.

As depicted in Fig. 1, a single walker occupying two longitudinally adjacent transmons constitutes a logical qubit. The logical states \({| 0\rangle }_{L}\) and \({| 1\rangle }_{L}\) are defined by the excitation (walker) being localized in the upper or lower site, respectively. In a superposition, the walker delocalizes across these two sites, enabling qubit encoding without additional degrees of freedom.

We now describe how to encode logical qubits using a Hamiltonian graph G composed of 2n transmons arranged in a 2 × n array. We label the transmon vertices as vi,x, where i {1, …, n} indexes the columns and x {0, 1} indexes the rows. In each column i, the vacuum state is defined as

$$| {\text{vac}}_{i}\rangle =| {0}_{i,0}{0}_{i,1}\rangle .$$
(2)

A single walker created at vertex vi,x is represented by \({\widehat{c}}_{i,x}^{\dagger }| {vac}_{i}\rangle\). We encode a logical qubit in the i-th column by using the presence of exactly one walker, with the logical basis states defined as

$$\begin{array}{ll}{| {0}_{i}\rangle }_{L} \equiv | {1}_{i,0}{0}_{i,1}\rangle \equiv {\widehat{c}}_{i,0}^{\dagger }| {\text{vac}}_{i}\rangle ,\\ {| {1}_{i}\rangle }_{L}\equiv| {0}_{i,0}{1}_{i,1}\rangle \equiv {\widehat{c}}_{i,1}^{\dagger }| {\text{vac}}_{i}\rangle .\end{array}$$
(3)

Any logical state in the i-th column can then be written as

$$| {\psi }_{i}\rangle =\alpha \,{| {0}_{i}\rangle }_{L}+\beta \,{| {1}_{i}\rangle }_{L}.$$
(4)

Extending this to n columns, the logical Hilbert space \({{\mathcal{H}}}_{L}\) for n qubits is defined as the tensor products of single logical qubit

$$\begin{array}{rcl}{{\mathcal{H}}}_{{\rm{L}}} &=& {\text{span}}\left\{{| {0}_{1}\rangle}_{L}{| {0}_{2}\rangle}_{L}\cdots {| {0}_{n}\rangle}_{L},\,{| {0}_{1}\rangle}_{L}{| {0}_{2}\rangle}_{L}\cdots {| {1}_{n}\rangle}_{L},\right.\\ && \left.\ldots ,\,{| {1}_{1}\rangle}_{L}{| {1}_{2}\rangle}_{L}\cdots {| {1}_{n}\rangle}_{L}\right\}.\end{array}$$
(5)

A valid n-walker state \(| \psi \rangle \in {{\mathcal{H}}}_{L}\) satisfies the condition that each column contains exactly one walker:

$$\mathop{\sum }\limits_{x=0}^{1}\langle \psi | {\widehat{c}}_{i,x}^{\dagger }{\widehat{c}}_{i,x}| \psi \rangle =1,\,\forall \,i\in \{1,\ldots ,n\}.$$
(6)

Placing n independent bosonic walkers on 2n vertices generates a full Hilbert space

$${\mathcal{H}}={\text{span}}\left\{\mathop{\bigotimes }\limits_{i=1}^{n}| {{{m}}}_{{{i}},0}{{{m}}}_{{{i}},1}\rangle ,{{{m}}}_{{{i}},{{x}}}\in [0,{{n}}],\mathop{\sum }\limits_{{{i}},{{x}}}{{{m}}}_{{{i}},{{x}}}={{n}}\right\},$$
(7)

with \({m}_{i,x}\in {\mathbb{N}}\) and dimension38

$${\mathcal{D}}=\left(\begin{array}{c}{3n-1}\\{n}\end{array}\right)=\frac{(3n-1)!}{n!(2n-1)!}\approx 2.{6}^{n},$$
(8)

which is substantially larger than the 2n-dimensional logical space \({{\mathcal{H}}}_{{\rm{L}}}\) defined by the presence of exactly one walker per column. Consequently, the full Hilbert space can be decomposed as

$${\mathcal{H}}={{\mathcal{H}}}_{L}\oplus {{\mathcal{H}}}_{\perp },$$
(9)

where \({{\mathcal{H}}}_{\perp }\) denotes the complementary subspace. Any state \(| \Psi \rangle\) with support in \({{\mathcal{H}}}_{\perp }\) does not encode valid qubit information. Although a physical Hamiltonian may couple \({{\mathcal{H}}}_{L}\) to \({{\mathcal{H}}}_{\perp }\) and allow the walker to transiently explore \({\mathcal{H}}\), a well-defined gate time T ensures that the resulting unitary remains block-diagonal:

$$U={U}_{L}\oplus {U}_{\perp }.$$
(10)

Hence, any state initially in \({{\mathcal{H}}}_{L}\) returns to the logical subspace at the end of the evolution—despite possible temporary transitions into \({{\mathcal{H}}}_{\perp }\). This mechanism leverages the larger Hilbert space to generate entanglement, aided by bosonic indistinguishability39.

By tuning the couplers’ frequencies far from the transmons (Δ1/2π ≈ 3 GHz), the system’s default configuration consists of isolated transmons with both the coupling and ZZ interaction set to zero40,41. Additionally, we set μi = 0. In this default configuration without other operations, the system Hamiltonian is

$${\widehat{H}}_{0}=\frac{U}{2}\mathop{\sum }\limits_{i=1}^{n}\mathop{\sum }\limits_{x=0}^{1}{\widehat{n}}_{i,x}({\widehat{n}}_{i,x}-1),$$
(11)

resulting in a disconnected graph of 2n vertices with no edges. Initializing the system in \(| \psi \rangle {=\bigotimes }_{i=1}^{n}{| {0}_{i}\rangle }_{L}\) yields a zero-energy eigenstate of \({\widehat{H}}_{0}\), ensuring no dynamics occur in the absence of applied operations.

Single-qubit gates

To provide a comprehensive overview, we begin with a brief introduction to single-qubit gate implementation before proceeding to the construction of two-qubit gates. Here, we demonstrate the implementation of single-qubit gates X, Z with arbitrary rotation angles, in addition to the Hadamard gate. The associated quantum walk graphs are illustrated in Fig. 1(b).

The Hamiltonian for the X gate applied to the i-th logical qubit is:

$${\widehat{H}}_{X,i}=-{J}_{X}({\widehat{c}}_{i,1}^{\dagger }{\widehat{c}}_{i,0}+{\text{H}}.{\text{c}}.)+{\mu }_{X}({\widehat{n}}_{i,0}+{\widehat{n}}_{i,1})+{\widehat{H}}_{0},$$
(12)

where JX is the coupling strength and μX is the frequency shift of the two physical qubits. When restricted to the two logical states \({| {0}_{i}\rangle }_{L}\) and \({| {1}_{i}\rangle }_{L}\), the Hamiltonian simplifies to \(-{J}_{X}{\widehat{\sigma }}_{x}\), where \({\widehat{\sigma }}_{x}\) is the Pauli X operator. The corresponding gate time for the X-gate is:

$${T}_{X}=\frac{\pi }{2{J}_{X}}.$$
(13)

The global phase induced by the coupling term can be canceled by setting μX = JX.

For the Z gate on the j-th logical qubit, the Hamiltonian becomes:

$${\widehat{H}}_{Z,j}=-{\mu }_{Z}{\widehat{n}}_{j,1}+{\widehat{H}}_{0},$$
(14)

where μZ represents the detuning applied to the site (j, 1). The Hamiltonian in the logical subspace is:

$${\widehat{H}}_{Z,j}=\left(\begin{array}{cc}0 & 0\\ 0 & -{\mu }_{Z}\end{array}\right).$$
(15)

This Hamiltonian induces a phase shift on \({| {1}_{j}\rangle }_{L}\) at a rate − μZ. The gate time for the Z-gate is:

$${T}_{Z}=\frac{\pi }{{\mu }_{Z}}.$$
(16)

Since both X and Z gates do not couple states in \({{\mathcal{H}}}_{C}\) to those in \({{\mathcal{H}}}_{\perp }\), they can be easily extended to arbitrary X-rotations \({\widehat{R}}_{X}(\theta )={e}^{-i{\widehat{\sigma }}_{x}\theta }\), with gate time:

$${T}_{X}(\theta )=\frac{2\pi -\theta }{{J}_{X}},$$
(17)

and phase gates

$$P(\theta )=\left(\begin{array}{cc}1 & 0\\ 0 & {e}^{i\theta }\end{array}\right),$$
(18)

with gate time:

$${T}_{P}(\theta )=\frac{\theta }{{\mu }_{Z}}.$$
(19)

Arbitrary single-qubit gates can thus be implemented by decomposing rotations on the Bloch sphere using Euler angles42.

The Hadamard gate can be directly implemented on the k-th qubit using the Hamiltonian:

$${\widehat{H}}_{H,k}={\mu }_{H}{\widehat{n}}_{k,1}-{J}_{H}({\widehat{c}}_{k,0}^{\dagger }{\widehat{c}}_{k,1}+{\text{H}}.{\text{c}}.)+{\widehat{H}}_{0}.$$
(20)

For μH/JH = 2, this Hamiltonian results in a Hadamard gate with a gate time:

$${T}_{H}=\frac{\pi }{2\sqrt{2}{J}_{H}}.$$
(21)

This is more efficient than applying three separate decomposed single-qubit gates. The overall phase can be eliminated by adding a detuning term to both sites, with \(\mu /{J}_{H}=\sqrt{2}-1\).

CPhase gate for transverse connections

The realization of two-qubit gates involves activating one or two couplings in the system, thereby transiently linking the logical subspace \({{\mathcal{H}}}_{L}\) with its orthogonal complement \({{\mathcal{H}}}_{\perp }\). A pivotal challenge is the precise determination of the gate duration T and the selection of an appropriate Hamiltonian, ensuring that by the conclusion of the operation, the state evolution remains confined to the logical subspace. As depicted in Fig. 1(a), the dual-rail encoded qubits positioned in a two-dimensional array showcase anisotropic interconnections. Transverse connections accommodate two coupling channels, whereas longitudinal connections possess a solitary coupling channel. This anisotropy necessitates distinct strategies for gate implementation, customized to the specific type of connection.

This subsection discusses the construction of the CPhase gate in transverse connections, leaving the longitudinal case for the next subsection. In particular, we show how a weak ZZ interaction can be utilized to implement a CZ gate in a superconducting circuit.

We begin by considering a 2 × 2 physical qubit block in a transverse connection for logical qubits, as shown in Fig. 1(b). In this subsection, we label the four vertices as vi,0, vi+1,0, vi,1, and vi+1,1. There are two available coupling channels between adjacent qubits: one between vi,0 and vi+1,0, and another between vi,1 and vi+1,1. These couplings are distinct from the longitudinal connection, which supports only a single coupling.

For the CPhase gate, we consider a system of two bosonic walkers on four lattice sites, resulting in a 10-dimensional Fock space \({\mathcal{H}}\). As shown in Fig. 2(a), the logical subspace \({{\mathcal{H}}}_{L}\) is spanned by the following four Fock states:

$$\begin{array}{rcl}{\widehat{c}}_{i,0}^{\dagger }{\widehat{c}}_{i+1,0}^{\dagger }| 00;00\rangle & = & | 10;10\rangle \leftrightarrow {| 0;0\rangle }_{L},\\ {\widehat{c}}_{i,0}^{\dagger }{\widehat{c}}_{i+1,1}^{\dagger }| 00;00\rangle & = & | 10;01\rangle \leftrightarrow {| 0;1\rangle }_{L},\\ {\widehat{c}}_{i,1}^{\dagger }{\widehat{c}}_{i+1,0}^{\dagger }| 00;00\rangle & = & | 01;10\rangle \leftrightarrow {| 1;0\rangle }_{L},\\ {\widehat{c}}_{i,1}^{\dagger }{\widehat{c}}_{i+1,1}^{\dagger }| 00;00\rangle & = & | 01;01\rangle \leftrightarrow {| 1;1\rangle }_{L},\end{array}$$
(22)

where semicolons separate different logical columns. The remaining six states span the non-logical subspace (also given in Fig. 2)

$$\begin{array}{rcl}{{\mathcal{H}}}_{\perp } & = & {\text{span}}\left\{| 20;00\rangle ,| 00;20\rangle ,| 11;00\rangle ,\right.\\ & & \left.| 00;11\rangle ,| 02;00\rangle ,| 00;02\rangle \right\}.\end{array}$$
(23)
Fig. 2: Dual graph and evolutions of the CPhase gate on dual-rail encoded qubits.
Fig. 2: Dual graph and evolutions of the CPhase gate on dual-rail encoded qubits.
Full size image

a The graph describing the couplings and interactions among Fock states under the Hamiltonian \({\widehat{H}}_{\rm{CP}}\). The blue edges represent allowed couplings, the red self-loop denotes the ZZ interaction, and the green self-loops represent on-site interactions. b Population evolution of states within the dashed boxes in (a). The x-axis represents time in units of the gate time TCP, and the y-axis shows the population of each state. The logical basis states return to their original population by the end of the gate time.

The CPhase gate is implemented by activating the coupling between the sites (i, 1) and (i + 1, 1) along with the ZZ interaction. Specifically, the frequency of the coupler between the two sites is tuned to be around Δ1/2π ~ 1 GHz. The system Hamiltonian is given by:

$${\widehat{H}}_{\text{CP}}=-{J}_{{\text{CP}}}\left({\widehat{c}}_{i,1}^{\dagger }{\widehat{c}}_{i+1,1}+{\rm{H}}.{\rm{c}}.\right)+{V}_{{\text{CP}}}{\widehat{n}}_{i,1}{\widehat{n}}_{i+1,1}+{\widehat{H}}_{0},$$
(24)

where \({\widehat{H}}_{0}\) is the default Hamiltonian of the system. Due to the nature of the ZZ interaction, the logical basis state \({| 1;1\rangle }_{L}\) experiences this interaction while the other three do not.

The evolution of the system is governed by the unitary operator \({\widehat{U}}_{{\text{CP}}}(t)=\exp (-i{\widehat{H}}_{{\text{CP}}}t)\). Since the logical state \({| 0;0\rangle }_{L}\) is decoupled from all other states, its evolution is trivial:

$${\widehat{U}}_{{\text{CP}}}(t)| 10;10\rangle =| 10;10\rangle .$$
(25)

For the second logical state \({| 0;1\rangle }_{L}\), we find that it couples to the non-logical state \(| 11;00\rangle\). The evolution is given by:

$${\widehat{U}}_{{\text{CP}}}(t)| 10;01\rangle ={\text{cos}}({J}_{{\text{CP}}}t)| 10;01\rangle +i{\text{sin}}({J}_{\text{CP}}t)| 11;00\rangle .$$
(26)

To keep the state within the logical subspace, the evolution must be constrained by a specific gate time TCP, which we define as:

$${T}_{{\rm{C}}{\rm{P}}}=\frac{2\pi }{| {J}_{{\text{CP}}}| }.$$
(27)

Similar dynamics hold for the third logical state \({| 1;0\rangle }_{L}\). For the fourth state \({| 1;1\rangle }_{L}\), additional complexities arise as it couples to the non-logical states \(| 02;00\rangle\) and \(| 00;02\rangle\). These states will accumulate additional phases, either due to the on-site interaction or the ZZ interaction.

In summary, the evolution operator \({\widehat{U}}_{\text{CP}}{(t)}\) can be decomposed into block diagonal form, with the Hamiltonian being block-diagonal within four invariant subspaces. We define these subspaces as:

$$\begin{array}{lll}{{\mathcal{H}}}_{1}=\{{| 0;0\rangle }_{L}\},\\ {{\mathcal{H}}}_{2}={\rm{s}}{\rm{p}}{\rm{a}}{\rm{n}}\{{| 0;1\rangle }_{L},| 11;00\rangle \},\\ {{\mathcal{H}}}_{3}={\rm{s}}{\rm{p}}{\rm{a}}{\rm{n}}\{{| 1;0\rangle }_{L},| 00;11\rangle \},\\ {{\mathcal{H}}}_{4}={\rm{s}}{\rm{p}}{\rm{a}}{\rm{n}}\{{| 1;1\rangle }_{L},| 02;00\rangle ,| 00;02\rangle \}.\end{array}$$
(28)

We have ensured that the evolution acts as an identity on the first three subspaces (\({{\mathcal{H}}}_{1}\) to \({{\mathcal{H}}}_{3}\)). The derivation within the fourth subspace, responsible for generating the CPhase gate, is more involved; interested readers are referred to Section II of the Supplementary Note for a detailed treatment.

Here, we summarize the key constraints and the accumulated phase. The requirement that the state remains in the logical subspace at TCP imposes the following condition on the system parameters:

$$\frac{U-{V}_{CP}}{{J}_{CP}}=\pm \sqrt{{m}^{2}-16},\,m\in {\mathbb{N}},m\ge 4.$$
(29)

Under this constraint, the accumulated phase at TCP is given by

$${\varphi }_{m}=-\pi \left(\frac{2{V}_{\mathrm{CP}}}{{J}_{\mathrm{CP}}}-\sqrt{{m}^{2}-16}-m\right).$$
(30)

Thus, the unitary evolution operator \({\widehat{U}}_{\text{CP}}({T}_{\text{CP}})\) can be expressed as a block diagonal matrix, with contributions from the logical subspace and the orthogonal subspace \({{\mathcal{H}}}_{\perp }\):

$${\widehat{U}}_{{\text{CP}}}({T}_{{\text{CP}}})={\widehat{U}}_{{\text{CP}}}\oplus {\widehat{U}}_{\perp }={\text{diag}}(1,1,1,\exp (i{\varphi }_{m}))\oplus {\widehat{U}}_{\perp },$$
(31)

where \({\widehat{U}}_{\perp }\) acts on \({{\mathcal{H}}}_{\perp }\), the non-logical subspace. For integers m 4, the desired phase φm can be achieved by selecting an appropriate value for m and tuning the ratio VCP/JCP.

Next, we apply this framework to a practical parameter set for the CZ gate. Typically, the effective ZZ strength VCP is much smaller than the coupling strength JCP. We choose m = 8, leading to a ratio VCP/JCP ≈ − 0.036. Under this condition, the restriction in Eq. (29) simplifies to:

$$U={V}_{{\text{CP}}}\pm 4\sqrt{3}{J}_{{\text{CP}}}.$$
(32)

Since the anharmonicity of a transmon is negative, we select the minus sign, yielding U ≈ − 6.964JCP. We adopt JCP as the unit of energy, and for a typical coupling strength JCP/2π = 40 MHz, we estimate:

$${V}_{{\rm{C}}{\rm{P}}}/2\pi \approx -1.44\,{\text{MHz}},\,U/2\pi \approx -278.6\,{\text{MHz}}.$$
(33)

These values lie within the practical regime for the transmon and tunable coupling scheme, corresponding to a gate time of TCP = 25 ns.

The small ratio VCP/JCP can be increased by employing an alternative coupling scheme, as proposed in ref. 34, where the coupler consists of a parallel combination of a capacitor and a Josephson junction, potentially allowing for V/J ratios greater than one.

We show the population evolution for the CZ gate in Fig. 2(b), using parameters m = 8, \({V}_{\text{CP}}=(-7/2+2\sqrt{3}){J}_{\text{CP}}\), and \(U=-(7/2+2\sqrt{3}){J}_{\text{CP}}\). The initial states are chosen from the logical subspace \({{\mathcal{H}}}_{L}\), with \(| \psi (0)\rangle ={| 0;1\rangle }_{L}\) in Fig. 2(b1) or \({| 1;1\rangle }_{L}\) in Fig. 2(b2). The population of each logical basis state returns to unity at the gate time TCP, and the population of \({| 1;1\rangle }_{L}\) remains large throughout the evolution, maximizing the effect of the ZZ interaction.

We further present the numerical evolution of the basis state \({| 1;1\rangle }_{L}\) in Fig. 3. It evolves under the Hamiltonian H4. In Fig. 3(a), we show the trajectory of the complex coefficient of \({| 1;1\rangle }_{L}\). Initialized at (x = 1, y = 0) (green dot), the state evolves into the target point (− 1, 0) (blue dot) at the gate time TCP, corresponding to \(| \psi ({T}_{\text{CP}})\rangle =-{| 1;1\rangle }_{L}\). Figure 3(b) illustrates the phase accumulation of the coefficient of \({| 1;1\rangle }_{L}\), which decreases with small oscillations, reaching − π at the gate time.

Fig. 3: Evolution of the state \({| 1;1\rangle }_{L}\) for implementing a CZ gate.
Fig. 3: Evolution of the state 
                        $${| 1;1\rangle }_{L}$$
                        
                          
                            
                              
                                 ∣
                                
                                  1
                                  ;
                                  1
                                
                                〉
                              
                            
                            
                              L
                            
                          
                        
                       for implementing a CZ gate.
Full size image

a Coefficient trajectory (solid red line) of \({| 1;1\rangle }_{L}\) in the complex plane. The black dashed curve shows the unit circle. The x-axis and y-axis represent the real and imaginary parts, respectively. The state starts at (1, 0) (green dot) and ends at the target point (− 1, 0) (blue dot). b Phase evolution. The phase decreases continuously with small oscillations, reaching − π at the gate time.

In conclusion, both analytical calculations and numerical simulations verify that the logical basis states return to themselves, while the state \({| 1;1\rangle }_{L}\) acquires an additional phase of − π, confirming the successful implementation of the CZ gate.

CPhase gate for longitudinal connections

As shown in Fig. 1(a), longitudinally connected logical qubits are restricted to a single coupling between sites (i, 0) and (i + 1, 1), limiting the available two-qubit gate operations. However, similar to the transverse connection, the CPhase gate can still be implemented by utilizing a single coupling, with additional single-qubit operations. This process is illustrated in Fig. 4.

Fig. 4: Implementation of the CPhase gate with longitudinally connected logical qubits.
Fig. 4: Implementation of the CPhase gate with longitudinally connected logical qubits.
Full size image

Since the coupling between logical qubits is restricted to \({| {0}_{i}\rangle }_{L}\) and \({| {1}_{i+1}\rangle }_{L}\), a basis transformation is required to swap \({| {0}_{i}\rangle }_{L}\) into \({| {1}_{i}\rangle }_{L}\). We first perform an X gate on the i-th logical qubit. The second step follows the same procedure as outlined in the previous subsection. Finally, another X gate is applied to revert the basis back to its original form.

The implementation proceeds in three steps. First, a local X-gate is applied to the i-th logical qubit, transforming \({| {1}_{i}\rangle }_{L}\) into \({| {0}_{i}\rangle }_{L}\). This operation takes a time t1 = π/(2JX), where JX is the coupling strength for the X-gate. The second step involves applying a CPhase operation, following the procedure from the previous subsection, with a duration t2 = 2π/JCP, where JCP is the coupling strength for the CPhase gate. After this step, the state \({| {0}_{i}{1}_{i+1}\rangle }_{L}\) acquires an additional phase. Finally, a second X-gate is applied to return the basis state to its original form, taking a time t3 = t1.

Thus, the total gate time for the longitudinal CPhase gate is:

$${T}_{{\rm{C}}{\rm{P}}{\rm{L}}}=\pi \left(\frac{1}{{J}_{X}}+\frac{2}{{J}_{\mathrm{CP}}}\right).$$
(34)

It is important to note that the coupling strengths vary for different operations. The X-gate demands a zero ZZ interaction strength VX = 0, while the CPhase gate requires a specific ratio between VCP and JCP to ensure the correct phase accumulation.

iSWAP gate for transverse connections

The iSWAP gate is another maximally entangling gate and, when combined with single-qubit gates, forms a universal gate set for quantum computation43. In the transverse connection mode, the iSWAP gate can readily be implemented using the ZZ interaction. To achieve this, we consider implementing an iSWAP operation with a global phase i, denoted by \({\widehat{U}}_{S}\), whose matrix representation is:

$${\widehat{U}}_{{{S}}}=i\cdot {\widehat{U}}_{\text{iSWAP}}=i\left(\begin{array}{cccc}1 & 0 & 0 & 0\\ 0 & 0 & i & 0\\ 0 & i & 0 & 0\\ 0 & 0 & 0 & 1\end{array}\right)=\left(\begin{array}{cccc}i & 0 & 0 & 0\\ 0 & 0 & -1 & 0\\ 0 & -1 & 0 & 0\\ 0 & 0 & 0 & i\end{array}\right).$$
(35)

A straightforward implementation of this gate involves simultaneously opening the couplings between adjacent logical qubits \({| {x}_{i}\rangle }_{L}\) and \({| {x}_{i+1}\rangle }_{L}\) for each x {0, 1}, as shown in Fig. 1(b). The additional global phase i is compensated by applying a frequency shift \({\mu }_{S}\widehat{n}\) to each of the four physical qubits until their phase accumulations reach − π/2.

For simplicity, we focus on the \({\widehat{U}}_{S}\) operation. Denoting the coupling and interaction strengths as JS and VS, the system Hamiltonian is:

$$\begin{array}{rcl}{\widehat{H}}_{{{S}}} & = & -{J}_{{{S}}}({\widehat{c}}_{i,0}^{\dagger }{\widehat{c}}_{i+1,0}+{\widehat{c}}_{i,1}^{\dagger }{\widehat{c}}_{i+1,1}+{\text{H}}.{\text{c}}.)\\ & & +{V}_{{\text{CP}}}({\widehat{n}}_{i,0}{\widehat{n}}_{i+1,0}+{\widehat{n}}_{i,1}{\widehat{n}}_{i+1,1})+{\widehat{H}}_{0},\end{array}$$
(36)

where \({\widehat{H}}_{0}\) is the default Hamiltonian. The evolution operator is \({\widehat{U}}_{S}(t)=\exp (-i{\widehat{H}}_{S}t)\). As in previous subsections, we derive conditions for unitary evolution within the logical subspace \({{\mathcal{H}}}_{L}\) and examine the system’s action on the logical basis states, as shown in Fig. 5(a). The dashed boxes can be classified into two scenarios, marked by orange or blue colors.

Fig. 5: Dual graph and evolution of the iSWAP Gate on dual-rail encoded qubits.
Fig. 5: Dual graph and evolution of the iSWAP Gate on dual-rail encoded qubits.
Full size image

a The graph illustrates the couplings and interactions between Fock states under the Hamiltonian \({\widehat{H}}_{S}\). It consists of 10 vertices, each representing a basis state in the Fock space \({\mathcal{H}}\) of two bosons distributed over four sites. The four selected states span the logical subspace \({{\mathcal{H}}}_{L}\). Blue edges correspond to allowed couplings, red self-loops represent ZZ interactions, and green self-loops correspond to on-site interactions. b1 Coefficient trajectory of the state \({| 0;0\rangle }_{L}\) on the complex plane. The state begins at (1, 0) (green dot) and evolves to (0, 1) (blue dot) at the gate time TS. At the final time, the population of \({| 0;0\rangle }_{L}\) is unity, and the accumulated phase is i. b2 Evolution of the state \({| 0;1\rangle }_{L}\) swapping to \({| 1;0\rangle }_{L}\). The x-axis shows the evolution time in units of TS, while the y-axis indicates the population of the involved states. Despite the non-logical states being populated during the evolution, their populations diminish by the time TS, confirming a perfect swap process.

In the first scenario, the Hamiltonian \({\widehat{H}}_{S}\) couples the logical states \(| 10;01\rangle\) and \(| 01;10\rangle\), along with non-logical states \(| 11;00\rangle\) and \(| 00;11\rangle\). Their dynamics are governed by two simultaneous Rabi oscillations. Assuming an initial state \(| 10;01\rangle\), the evolutions for the upper and lower rows are, respectively:

$$\begin{array}{rcl}{\widehat{U}}_{S}(t)| 10\rangle & = & \cos ({J}_{S}t)| 10\rangle +i\sin ({J}_{S}t)| 01\rangle ,\\ {\widehat{U}}_{S}(t)| 01\rangle & = & \cos ({J}_{S}t)| 01\rangle +i\sin ({J}_{S}t)| 10\rangle .\end{array}$$
(37)

Thus, the evolution of the two-qubit state \(| 10;01\rangle\) becomes:

$$\begin{array}{rcl}{\widehat{U}}_{S}(t)| 10;01\rangle & = & {\cos }^{2}({J}_{S}t)| 10;01\rangle -{\sin }^{2}({J}_{S}t)| 01;10\rangle \\ & & +\frac{i}{2}\sin (2{J}_{S}t)(| 11;00\rangle +| 00;11\rangle ).\end{array}$$
(38)

To achieve a perfect swap of the logical states \(| 10;01\rangle\) and \(| 01;10\rangle\), the gate time must satisfy:

$${T}_{S}=\frac{(2k+1)\pi }{2{J}_{S}},\,k\in {\mathbb{N}}.$$
(39)

At this time, the evolution is:

$${\widehat{U}}_{S}({T}_{S})| 10;01\rangle =-| 01;10\rangle ,\,\,{\widehat{U}}_{S}({T}_{S})| 01;10\rangle =-| 10;01\rangle .$$
(40)

Due to the symmetry of \({\widehat{H}}_{S}\), the evolutions and restrictions for the state \(| 01;10\rangle\) are identical.

In the second scenario, the evolution of the states \(| 10;10\rangle\) and \(| 01;01\rangle\) proceeds similarly to that described in Section II of the Supplementary Note, differing only in the gate time. We defer the detailed restrictions to Section III of the Supplementary Note and present here a viable set of system parameters:

$${V}_{S}\approx 0.1\,{J}_{S},\,U\approx -3.4\,{J}_{S},$$
(41)

which corresponds to a total iSWAP gate time of

$${T}_{S}=\frac{5\pi }{2{J}_{S}}.$$
(42)

Within this interval, the detuning on each physical qubit is set to μS = − 0.2 JS to ensure the accumulation of a global phase of − i.

In Fig. 5(b), we show the numerical evolution of the basis states during the iSWAP gate operation with the parameters described above. In Fig. 5(b1), we present the trajectory of the complex coefficient for \({| 0;0\rangle }_{L}\) (equivalently \({| 1;1\rangle }_{L}\)). Starting with \(| \psi (0)\rangle =c(0){| 0;0\rangle }_{L}\) and c(0) = 1 (green dot), the evolution leads back to \({| 0;0\rangle }_{L}\) at TS, with c(TS) = i (blue dot), completing the desired operation. In Fig. 5(b2), we show the swapping dynamics between \({| 0;1\rangle }_{L}\) and \({| 1;0\rangle }_{L}\). The x-axis represents the evolution time, and the y-axis indicates the population of the involved states. The populations follow \({\cos }^{4}({J}_{S}t)\) and \({\sin }^{4}({J}_{S}t)\) curves during the evolution, demonstrating smooth transitions between the two states. This suggests potential robustness against fluctuations in the coupling strength JS, which could be advantageous for practical implementations.

CCPhase gate for transverse connections

The CCPhase gate is a crucial operation for three neighboring logical qubits, requiring precise control of phase accumulation across logical basis states. This subsection introduces the implementation of the CCPhase gate using a two-step approach, ensuring phase cancellation for all states except \({| 1;1;1\rangle }_{L}\), which accumulates the desired phase shift. We illustrate the quantum walk dynamic diagram for implementing the CCPhase gate in Fig. 6. In each step, a CZ gate is applied to the first two qubits in the x = 1 row while alternately enabling ZZ interactions V2 and − V2 between the latter two qubits.

Fig. 6: Implementation of the CCPhase Gate with three neighboring logical qubits.
Fig. 6: Implementation of the CCPhase Gate with three neighboring logical qubits.
Full size image

The gate operation consists of two steps. In each step, a CZ gate is applied to the first two qubits in the x = 1 row while alternately enabling ZZ interactions V2 and − V2 between the latter two qubits. This ensures zero phase accumulation for \({| 1;1;0\rangle }_{L}\), \({| 1;0;1\rangle }_{L}\), and \({| 0;1;1\rangle }_{L}\), while a nonzero phase is accumulated exclusively on \({| 1;1;1\rangle }_{L}\).

The dynamics are confined to states involving at least one walker in the x = 1 row. For states with one walker in the x = 1 row (\({| 1;0;0\rangle }_{L}\), \({| 0;1;0\rangle }_{L}\), and \({| 0;0;1\rangle }_{L}\)), the Rabi oscillation between the first two states requires a time identical to TCP, while the last state is stationary. Thus, the two-step approach sets up the gate time TCCP = 2TCP.

There are three two-walker states, \({| 1;0;1\rangle }_{L}\), \({| 0;1;1\rangle }_{L}\), and \({| 1;1;0\rangle }_{L}\). The first two states are coupled due to the coupling between \({| {1}_{i}\rangle }_{L}\) and \({| {1}_{i+1}\rangle }_{L}\), while the dynamics of the third state are the same as in CPhase gate.

The Hamiltonian acting on the states \({| 1;0;1\rangle }_{L}\) and \({| 0;1;1\rangle }_{L}\) is described as

$${\widehat{H}}_{1}=\left(\begin{array}{cc}0 & -J\\ -J & {V}_{2} \,\end{array}\right).$$
(43)

The eigenvalues and eigenstates are:

$$\begin{array}{rcl}{\lambda }_{1,2} & = & \frac{1}{2}\left({V}_{2}\pm \sqrt{4{J}^{2}+{V}_{2}^{2}}\right),\\ | {\phi }_{1,2}\rangle & = & {\alpha }_{1,2}{\left(\frac{{V}_{2}\pm \sqrt{4{J}^{2}+{V}_{2}^{2}}}{2J},1\right)}^{{\rm{T}}}.\end{array}$$
(44)

To ensure \({| 1;0;1\rangle }_{L}\) and \({| 0;1;1\rangle }_{L}\) return to their original states after TCP, the interaction strength must satisfy:

$$\frac{{V}_{2}}{J}=\pm \sqrt{{k}^{2}-4},\,k\ge 2,\,k\in {\mathbb{N}}.$$
(45)

Under this restriction, the accumulated phase on \({| 1;0;1\rangle }_{L}\) reads

$${\varphi }_{101}({V}_{2})=-\pi \left(\frac{{V}_{2}}{J}+k\right).$$
(46)

Thus, the phase accumulation cancels over two steps:

$${\varphi }_{101}({V}_{2})+{\varphi }_{101}(-{V}_{2})=0.$$
(47)

These arguments apply to the state \({| 0;1;1\rangle }_{L}\) as well.

On the other hand, the dynamics of \({| 1;1;0\rangle }_{L}\) mimic those of \({| 1;1\rangle }_{L}\) in the CPhase gate. To prevent leakage, the condition is:

$$\frac{U-{V}_{1}}{J}=\pm \sqrt{{m}^{2}-16},\,m\ge 4,\,m\in {\mathbb{Z}}.$$
(48)

Zero accumulated phase requires:

$$\frac{{V}_{1}}{J}=\frac{1}{2}(\sqrt{{m}^{2}-16}+m+k),\,k\in {\mathbb{Z}}.$$
(49)

Finally, for three walkers, \({| 1;1;1\rangle }_{L}\) couples to non-logical states \({| 2;0;1\rangle }_{L}\) and \({| 0;2;1\rangle }_{L}\), described by the Hamiltonian:

$${\widehat{H}}_{2}=\left(\begin{array}{rcl}{V}_{1}+{V}_{2} & -\sqrt{2}J & -\sqrt{2}J\\ -\sqrt{2}J & U & 0\\ -\sqrt{2}J & 0 & U+2{V}_{2}\end{array}\right).$$
(50)

For small V2/J, we find the resulting phase accumulation is negligibly small by applying perturbative calculations. When V2/J is large, we can search possible parameters to ensure \({| 1;1;1\rangle }_{L}\) return to itself after TCP, while V2 being around the value given in Eq. (45).

If setting k = 5, the parameters achieving fidelity F 0.99 are:

$$\begin{array}{rcl} & & \frac{{V}_{2}}{J}\approx \sqrt{21},\,m\ge 17,\,\frac{{V}_{1}}{J}\approx 0.25,\\ & & U={V}_{1}-\sqrt{{m}^{2}-16}.\end{array}$$
(51)

The large values of V1 and V2 require a different coupling scheme as proposed in ref. 34. We find that the maximum phase on \({| 1;1;1\rangle }_{L}\) is − 0.078π, as shown in Section IV of the Supplementary Note. The total gate time is TCCP = 2TCP.

Noise analysis on the CZ gate

In this subsection, we analyze the effects of various noise sources on the performance of the CZ gate in superconducting circuits. The CZ gate serves as a representative example due to its practical implementation within a single step under realistic parameters. The primary noise sources considered are:

  • Dephasing. Fluctuations in qubit energy levels lead to loss of coherence and degrade gate fidelity.

  • Relaxation. Energy relaxation from the excited to the ground state during gate operation reduces the population of the logical subspace, introducing errors.

  • Inaccurate Hamiltonian parameters. Deviations in coupling strength J and interaction strength V can cause the system’s evolution to diverge from the ideal unitary operation.

  • Detuning errors. Misalignment in detuning between adjacent logical qubit sites affects phase accumulation, potentially inducing leakage into non-logical subspaces.

Strategies to mitigate these effects include parameter optimization, error correction, and noise-resilient designs for superconducting circuits. We will quantify the impact of these noise sources on the CZ gate. The Hamiltonian parameters for the CZ gate implementation are set as follows: m = 8, \({V}_{\text{CP}}=(-7/2+2\sqrt{3}){J}_{\text{CP}}\), \(U=-(7/2+2\sqrt{3}){J}_{\text{CP}}\), and μ = 0.

In the following, we focus on dephasing and relaxation. The representation of Fock states permits the modeling of decoherence utilizing methodologies analogous to those employed for individual transmons. This is in contrast to the scenario described in ref. 5, where the utilization of dressed states within the encoded logical basis modifies the decoherence rates. To explain the main noise mechanisms, dephasing and relaxation, we use the standard Lindblad-form Markovian master equation.

$$\frac{\text{d}\rho}{\text{d}t}=-\frac{i}{\hslash}\left[\widehat{H},\rho \right]+\mathop{\sum }\limits_{k}\left({\widehat{L}}_{k}\,\rho \,{\widehat{L}}_{k}^{\dagger}-\frac{1}{2}\left\{{\widehat{L}}_{k}^{\dagger}{\widehat{L}}_{k},\rho \right\}\right),$$
(52)

where ρ is the density matrix of the system, \(\widehat{H}\) is the system Hamiltonian, and \({\widehat{L}}_{k}\) are the Lindblad operators that describe the interaction between the system and its environment. This framework, which is widely used for modeling decoherence in transmon systems (see, e.g., ref. 44), allows us to efficiently analyze the impact of environmental noise on our logical qubits.

Dephasing noise leads to coherence loss without altering population distributions in the logical basis. For a homogeneous dephasing rate γ, the Lindblad operator associated with each logical basis state \(| k\rangle\) is:

$${\widehat{L}}_{k}=\sqrt{\gamma }| k\rangle \langle k| .$$
(53)

Relaxation involves energy dissipation and is characterized by the relaxation rate Γ. The Lindblad operators for relaxation on each physical qubit are given by:

$${\widehat{L}}_{\downarrow ,i,x}=\sqrt{\Gamma }\mathop{\sum }\limits_{k=0,1}| k\rangle \langle k+1| ,$$
(54)

where i and x index the qubit in a 2 × n array of physical qubits.

We use a state-of-the-art relaxation time T1 = 100 μs1, corresponding to Γ = J/5000 when the coupling strength J/2π = 50 MHz. The dephasing rate is set to γ = Γ, consistent with typical experimental conditions. Notably, dual-rail qubits encoded in resonantly coupled transmons have demonstrated coherence times exceeding milliseconds5, highlighting their potential for quantum information processing.

The numerical simulation results are presented in Fig. 7, showcasing the effects of dephasing and relaxation noise on the population dynamics of selected initial states: \({| 0;0\rangle }_{L}\), \({| 0;1\rangle }_{L}\), and \({| 1;1\rangle }_{L}\). The simulations were performed using the ode45 solver in MATLAB to solve the Lindblad master equation, with the evolution time extending up to 15 times the CPhase gate duration.

Fig. 7: Population dynamics of basis states under relaxation and dephasing Noise.
Fig. 7: Population dynamics of basis states under relaxation and dephasing Noise.
Full size image

The logical basis states are represented by the red lines. a The population of the state \({| 0;0\rangle }_{L}\) decreases due to relaxation, while the populations of the leakage states \(| 10;00\rangle\) (blue dashed) and \(| 00;10\rangle\) (green circle) increase. b The population of the logical state \({| 0;1\rangle }_{L}\) decreases, accompanied by a decay in the leakage state \(| 11;00\rangle\) (blue dashed). c The population of the logical state \({| 1;1\rangle }_{L}\) decreases due to relaxation, whereas the leakage states \(| 02;00\rangle\) (blue dashed) and \(| 00;02\rangle\) (green circle) show negligible decay.

In Fig. 7(a), the initial state \({| 0;0\rangle }_{L}\) experiences a population decay to 0.963 by the end of the evolution, accompanied by a population growth in the leakage states \(| 10;00\rangle\) and \(| 00;10\rangle\), which together account for 0.037 of the total population. These leakage events, which can be detected and converted into erasure errors, highlight the importance of error mitigation strategies.

Figure 7 (b) shows the evolution of the state \({| 0;1\rangle }_{L}\), which exhibits Rabi oscillations with the leakage state \(| 11;00\rangle\). By the end of the evolution, the population of \({| 0;1\rangle }_{L}\) decreases to 0.959, while the leakage states \(| 10;00\rangle\) and \(| 00;01\rangle\) acquire populations of 0.0183 and 0.0137, respectively. This behavior underscores the need for an effective error correction scheme tailored to this subspace.

Finally, Fig. 7(c) examines the dynamics of the initial state \({| 1;1\rangle }_{L}\), which decays to a population of 0.960. The associated leakage states \(| 02;00\rangle\) and \(| 00;02\rangle\), critical for phase accumulation, exhibit negligible population changes, with their combined population decreasing marginally from 0.125 to 0.121. The remaining population loss is primarily accounted for by the leakage states \(| 00;01\rangle\) and \(| 01;00\rangle\), which together contribute 0.035. These results suggest that the phase deviation introduced by the leakage states \(| 02;00\rangle\) and \(| 00;02\rangle\) is minor, maintaining the robustness of the phase-sensitive operations.

We next analyze parameter deviations on the CZ gate. Understanding the robustness of the CZ gate to parameter deviations is crucial for reliable quantum computation. Variations in the coupling strength J and interaction strength V, caused by flux noise or crosstalk, can alter the effective Hamiltonian and introduce leakage or fidelity loss. This section examines the impact of such deviations and quantifies their effects on gate performance, including leakage and fidelity.

The coupler frequency determines both J and V, making the system sensitive to flux noise. Additionally, crosstalk can induce residual ZZ interactions45. Typical deviations in superconducting circuits include shifts in the coupling strength of approximately 5 kHz × 2π and residual ZZ interactions up to 10 kHz × 2π. These deviations can prevent the system from fully returning to the logical subspace at the end of the gate operation, leading to true leakage events.

The fidelity of the CZ gate is defined using the expression46:

$$F=\frac{1}{n(n+1)}[{\text{Tr}}(M{M}^{\dagger })+{| {\text{Tr}}(M)| }^{2}],$$
(55)

where n is the dimension of the logical subspace, \(M=P{U}_{\text{CZ}}^{\dagger }UP\), and UCZ = diag(1, 1, 1, − 1) is the ideal CZ gate unitary. Here, U is the unitary operation under noise, and P projects onto the logical subspace \({{\mathcal{H}}}_{L}\). This formula is particularly useful in quantum information theory for assessing the performance of quantum operations, especially in the presence of imperfections or noise. It allows for the quantification of how closely an implemented operation approximates the intended operation, averaged over all possible input states. The first term in F quantifies leakage, while the second term measures the deviation from the ideal operation.

Figure 8 illustrates the effects of deviations in J and V on the fidelity and leakage of the CZ gate. The x-axis represents variations in J (in units of JCP), and the y-axis shows deviations in V (in units of VCP). The left panels present a broad deviation range, highlighting uncontrollable behaviors for large parameter variations. The right panels focus on a narrower region around the optimal values J = JCP and V = VCP, corresponding to realistic noise levels in superconducting circuits.

Fig. 8: Impact of parameter imperfections on CZ gate performance.
Fig. 8: Impact of parameter imperfections on CZ gate performance.
Full size image

The results are shown via (a) fidelity and (b) leakage. The x-axis represents deviations in the coupling strength, measured in units of JCP, while the y-axis corresponds to the ZZ interaction strength, expressed in units of VCP. The right panels provide a magnified view of the region near the optimal parameters J = JCP and V = VCP. Owing to the large value of U, variations in J have a more pronounced effect compared to deviations in V. Nevertheless, the impact of both parameters remains within acceptable bounds under typical experimental noise conditions.

For a typical coupling strength J/2π = 40 MHz, deviations of δJ/2π = 0.01J/2π ≈ 0.4 MHz and δV/2π ≈ 0.4 MHz well capture realistic experimental noise. Due to the large value of U, rapid phase accumulation by the states \(| 00;20\rangle\) and \(| 00;02\rangle\) significantly contributes to the − π phase, while contributions from ZZ interaction is much weaker. Consequently, deviations in J have a greater impact on gate fidelity than those in V. Leakage is even more sensitive to J, as deviations hinder the return to the logical subspace.

In conclusion, implementing the two-qubit CZ gate is feasible when considering the parameter deviations present in superconducting circuits.

Another relevant error mechanism arises from the detuning of neighboring transmons. Superconducting qubits often exhibit inhomogeneities due to fabrication precision limitations. One significant source of errors in gate operations is detuning between adjacent qubits. This subsection explores the impact of detuning on the implementation of a CZ gate between the i-th and i + 1-th logical qubits, particularly focusing on the influence of detuning noise between the second rows of the two columns. The detuning is defined as:

$$\Delta \equiv {\mu }_{i+1,1}-{\mu }_{i,1}.$$
(56)

This leads to a modified Hamiltonian:

$${\widehat{H}}_{{\rm{C}}{\rm{P}},{\text{detuned}}}={\widehat{H}}_{{\rm{C}}{\rm{P}}}+\Delta {\widehat{n}}_{i+1,1}.$$
(57)

Due to the detuning, we expect imperfect evolution, resulting in leakage from the logical subspace. Specifically, the final state may have nonzero support in the orthogonal subspace, and we quantify the gate performance by examining both fidelity and leakage.

Given that the relevant subspaces are of dimension 2 or 3, we can analytically compute the average gate fidelity under detuning noise without additional assumptions. For simplicity, we assume a small detuning Δ, such that Δ/J 1, and investigate the fidelity dependence on Δ.

We begin by recalling the four subspaces from Eq. (28) and analyze each subspace in turn. The action of \({\widehat{H}}_{{\text{CP}},{\text{detuned}}}\) in the space \({{\mathcal{H}}}_{1}\) remains unchanged, identical to that of \({\widehat{H}}_{\text{CP}}\).

In \({{\mathcal{H}}}_{2}\), the modified Hamiltonian is:

$${\hat{H}}_{2}^{{\prime} }=\left(\begin{array}{cc}\Delta & -J\\ -J & 0\end{array}\right).$$
(58)

The eigenvalues are:

$${\lambda }_{\pm }=\frac{\Delta \pm \sqrt{{\Delta }^{2}+4{J}^{2}}}{2},$$
(59)

and the corresponding eigenstates are:

$$| {\phi }_{\pm }\rangle ={\alpha }_{\pm }\left(\begin{array}{l}{\lambda }_{\pm }/J\\ -1\end{array}\right),$$
(60)

where \({\alpha }_{\pm }=1/\sqrt{1+{\lambda }_{\pm }^{2}/{J}^{2}}\) are normalization coefficients. The state \({| 0;1\rangle }_{L}\) should be invariant under the perfect operation \({\widehat{U}}_{\text{CZ}}\). Initializing the state \({| 0;1\rangle }_{L}\) and evolving it under \({H}_{2}^{{\prime} }\), the coefficient of \({| 0;1\rangle }_{L}\) at the gate time TCP becomes:

$${c}_{2}={\left(\frac{{\alpha }_{+}{\lambda }_{+}}{J}\right)}^{2}{e}^{-i{\lambda }_{+}{T}_{{\rm{C}}{\rm{P}}}}+{\left(\frac{{\alpha }_{-}{\lambda }_{-}}{J}\right)}^{2}{e}^{-i{\lambda }_{-}{T}_{{\rm{C}}{\rm{P}}}}.$$
(61)

Assuming a small δ = Δ/J, we obtain c2eiπδ.

In \({{\mathcal{H}}}_{3}\), the Hamiltonian is:

$${\hat{H}}_{3}^{{\prime} }=\left(\begin{array}{cc}0 & -J\\ -J & \Delta \end{array}\right),$$
(62)

which is related to \({\hat{H}}_{2}^{{\prime} }\) by a basis permutation. The coefficient of the logical state \({| 10\rangle }_{L}\) is:

$${c}_{3}={\alpha }_{+}^{2}{e}^{-i{\lambda }_{+}{T}_{\text{CP}}}+{\alpha }_{-}^{2}{e}^{-i{\lambda }_{-}{T}_{\text{CP}}},$$
(63)

which simplifies to c3eiπδ.

Finally, in \({{\mathcal{H}}}_{4}\), after extensive derivations (see Section V of the Supplementary Note for details), the coefficient for the state \({| 11\rangle }_{L}\) at the gate time is given by

$${c}_{4}\approx -\left(1+\frac{{\delta }^{2}}{4}\,{e}^{i4\sqrt{3}\pi }\right){e}^{-2\pi i\delta }.$$
(64)

The projected matrix is PUP = diag(1, c2, c3, c4). The fidelity F(Δ) and leakage L(Δ) are:

$$\begin{array}{lll}F(\Delta )\;=\;1+\frac{\cos (4\sqrt{3}\pi ){\delta }^{2}}{10}-\frac{2{\pi }^{2}{\delta }^{2}}{5},\\\,L(\Delta )\;=\;-\frac{\cos (4\sqrt{3}\pi ){\delta }^{2}}{16}.\end{array}$$
(65)

The quadratic dependence of fidelity and leakage on Δ demonstrates the robustness of the CZ gate against detuning noise. For a typical detuning of Δ/2π = 0.1 MHz and J/2π = 40 MHz, we obtain δ = 0.0025, leading to an infidelity of approximately 2.5 × 10−5, confirming the applicability of the CZ gate under detuning noise.

Numerical results in Fig. 9 validate the quadratic dependence of fidelity and leakage on Δ, in good agreement with the perturbation analysis.

Fig. 9: Performance of the CZ gate under detuning noise.
Fig. 9: Performance of the CZ gate under detuning noise.
Full size image

The x-axis represents the detuning strength Δ, expressed in units of JCP. The left and right y-axes correspond to the CZ gate’s infidelity and leakage, respectively. The solid lines depict the results from exact numerical simulations, while the squares and circles represent the second-order perturbation theory. The close agreement between the exact and perturbation results confirms a quadratic dependence of both infidelity and leakage on Δ.

Circuit example: preparation of a GHZ state

The Greenberger-Horne-Zeilinger (GHZ) state is a highly entangled quantum state involving multiple qubits and is an essential example of multi-qubit entanglement. For three qubits, the GHZ state is expressed as

$$| {\text{GHZ}}\rangle =\frac{1}{\sqrt{2}}(| 000\rangle +| 111\rangle ).$$
(66)

The preparation and manipulation of GHZ states are important benchmarks for quantum hardware performance and are crucial for the development of scalable quantum technologies.

As shown in Fig. 10, a 3-qubit GHZ state can be efficiently prepared using dual-rail encoded qubits. Figure 10(a) presents the logic circuit for generating the state, which involves a Hadamard gate on Q2, followed by two CNOT gates, one between Q1 and Q2, and another between Q2 and Q3. Figure 10(b) shows the corresponding quantum walk graphs at each step. The preparation process requires two Hadamard gates and one CZ gate to implement the CNOT gate. Notably, single-qubit gates can be applied simultaneously on different logic qubits. In total, the GHZ state can be prepared in five steps for dual-rail encoded qubits: the first step involves a Hadamard gate on Q2, followed by the implementation of the CNOT gate between Q1 and Q2 from steps 1 to 3, and the final CNOT gate between Q2 and Q3 from steps 3 to 5.

Fig. 10: GHZ state preparation.
Fig. 10: GHZ state preparation.
Full size image

a Logic circuit diagram for preparing a 3-qubit GHZ state, consisting of a Hadamard gate on Q2, followed by two CNOT gates on Q1, Q2 and Q2, Q3, respectively. b Hamiltonian graphs for preparing the GHZ state using dual-rail encoding. Steps 1 and 3 involve dual-role Hadamard gates, while steps 1 to 3 implement the CNOT gate on Q1, Q2 and steps 3 to 5 implement the second CNOT gate on Q2, Q3.

Discussion

The following key points merit further discussion regarding this framework:

  • Bosons hopping on a lattice described by the extended Bose-Hubbard model can be interpreted as multiple quantum walkers on a graph whose vertices and edges encode the sites and couplings, respectively. Multiple walkers on 2 × n vertices provide exponentially growing resources to accommodate dual-rail encoding, establishing a scalable architectural framework for quantum computation. After introducing a controlled ZZ interaction, this model enables the implementation of maximally entangling gates and a universal gate set for dual-rail encoded qubits.

  • This system enables perfect adiabatic control and leverages the ability to access the non-logical subspace during evolution while being entirely confined to the logical subspace by the end of the evolution. Therefore, our photon-number-conserving gate operations maintain the parity structure of the dual-rail encoding, ensuring that when relaxation errors or leakage errors occur, they remain detectable with established measurement protocols for dual-rail encoded qubits5,6,7. This integration of control operations with existing measurement schemes provides a complete pathway to error-detectable quantum computation without requiring new measurement techniques–a significant advancement toward fault tolerance.

  • On the 2-dimensional dual-rail encoded qubit array, we demonstrate schemes for implementing single-qubit gates, two-qubit CPhase and iSWAP gates, and a three-qubit CCPhase gate in transverse connections, along with a CPhase gate in longitudinal connections. Using parameters compatible with current tunable coupling schemes in superconducting circuits, two-qubit gates achieve theoretical fidelity of unity, while the CCPhase gate demonstrates phases up to − 0.078π with fidelity 0.99. Our numerical and analytical analyses confirm robust performance against dephasing, relaxation, coupling imperfections, and ZZ interaction variations, with the CZ gate exhibiting first-order insensitivity to inter-qubit detuning.

  • Our proposed architecture is hardware-efficient because it requires fewer hardware modifications, lower resource costs, and straightforward integration with today’s superconducting qubit technologies. Specifically: 1. It aligns with existing transmon and tunable coupler designs. Dual-rail encoding can be realized by pairs of transmons and a flux-tunable coupler, both of which are standard elements in many superconducting quantum devices. 2. It avoids reliance on large numbers of ancillary qubits or intricate multi-level control schemes. By encoding a single photon-number excitation across two transmons and employing CTQW, the architecture stays relatively simple and utilizes hardware components that are already typical in current experiments. 3. It naturally converts leakage and relaxation into erasure events, simplifying error detection and correction rather than requiring extra measurement circuitry or feedback control and correction.

  • While our analysis focuses on superconducting circuits, the framework is extensible to other physical platforms supporting coherent bosonic excitations and controllable interactions, including neutral atoms in optical lattices, trapped ions, or photonic waveguide arrays, as experimentally demonstrated with both transmons and superconducting cavities.

In conclusion, we have demonstrated how combining dual-rail qubit encoding with continuous-time quantum walks in superconducting architectures offers a hardware-efficient route toward robust and scalable quantum computation. We harnessed photon-number-conserving dynamics to suppress population leakage and enable high-fidelity single-, two-, and three-qubit gate operations, thereby matching the goal of dual-rail encoded qubits to convert erasure errors. Our theoretical and numerical results indicate that this synergy not only mitigates conventional sources of decoherence (e.g., dephasing and relaxation) but also remains tolerant to coupling imperfections, underscoring the resilience of the dual-rail framework.

Beyond the immediate gains in gate fidelity and error correction, this approach can serve as a foundation for early fault-tolerant quantum computing. Since erasure errors are more tractable in quantum error-correcting codes, adopting a dual-rail strategy may simplify the overhead associated with representative fault-tolerant protocols. Moreover, by exploiting tunable coupler strengths–already feasible in present-day superconducting devices–our method aligns well with current experimental capabilities, paving the way for near-term demonstrations of larger-scale quantum systems.

Methods

Transmons connected with tunable couplers

We begin with a 2-D superconducting circuit consisting of transmons and tunable couplers, as depicted in Fig. 1(a). To optimize coherence and facilitate experimental control, each coupler is also implemented using a tunable transmon47,48. These transmons can be accurately approximated as Duffing oscillators, which is a common model for anharmonic multilevel qubit systems and also applies to capacitively shunted flux qubits49,50.

A versatile tunable coupling scheme–illustrated in the inset of Fig. 1(a)–has been both theoretically proposed and experimentally demonstrated40,41. This architecture consists of a three-body quantum system with pairwise interactions: the leftmost and rightmost anharmonic oscillators act as the sites of EBHM, while the central oscillator serves as a tunable coupler that mediates interactions between the two distant transmons. All three elements are coupled via exchange-type interactions, characterized by coupling strengths g1, g2, and g12, respectively. The Hamiltonian describing this three-body system is given by:

$$\begin{array}{rcl}\widehat{H} & = & \mathop{\sum }\limits_{i\in \{1,2,c\}}\left({\omega }_{i}{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}+\frac{{\beta }_{i}}{2}{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}{\widehat{b}}_{i}\right)-{g}_{12}\,\left({\widehat{b}}_{1}-{\widehat{b}}_{1}^{\dagger }\right)\left({\widehat{b}}_{2}-{\widehat{b}}_{2}^{\dagger }\right)\\ & & -\mathop{\sum }\limits_{j\in \{1,2\}}{g}_{j}\,\left({\widehat{b}}_{j}-{\widehat{b}}_{j}^{\dagger }\right)\left({\widehat{b}}_{c}-{\widehat{b}}_{c}^{\dagger }\right),\end{array}$$
(67)

where ωi are the oscillator frequencies, and βi denote the anharmonicity of the oscillators. The operators \({\widehat{b}}_{i}^{\dagger }\) and \({\widehat{b}}_{i}\) are the creation and annihilation operators, respectively, defined in the eigenbasis of the corresponding oscillator. We note that the coupler-transmon interactions are significantly stronger than the direct transmon-transmon interaction, i.e., g1, g2 g12, which corresponds to the practical parameter regime for tunable couplers40.

The three-body system serves as a unit cell for encoding a logical qubit, defined inside the system’s first excitation subspace. Before proceeding, we derive an effective two-transmon system by applying a block diagonalization transformation to decouple the coupler. We assume that both transmons are far detuned from the coupler and the coupling is dispersive: Δiωiωc ≠ 0, \({g}_{i}\,\ll \,| {\Delta }_{i}| \,(i=1,2)\). Additionally, we assume that the coupler mode always remains in its ground state, with its excitations not participating in the system dynamics34,40,51.

To a good approximation, the physics of the two-transmon building block is well captured by the EBHM. In the qubit regime, this reduces to a Heisenberg XXZ spin model. For the sake of implementing two-qubit logical gates, we have made a three-level cut-off approximation in deriving the effective Hamiltonian, and the third level will be utilized as a resource for phase accumulation. Fixing the description in the Fock basis and renormalizing the parameters, the effective two-transmon Hamiltonian is derived from Bloch’s theory52:

$$\begin{array}{lll}{\widehat{H}}^{{\rm{e}}\mathrm{ff}}\,=\,\mathop{\sum }\limits_{i=1,2}\left({\widetilde{\omega }}_{i}{\widehat{n}}_{i}+\frac{{\widetilde{\beta }}_{i}}{2}{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}{\widehat{b}}_{i}\right)+\widetilde{g}\left({\widehat{b}}_{1}^{\dagger }{\widehat{b}}_{2}+{\widehat{b}}_{1}{\widehat{b}}_{2}^{\dagger }\right)\\ & & +\,\zeta {\widehat{n}}_{1}{\widehat{n}}_{2},\end{array}$$
(68)

where \({\widehat{n}}_{i}={\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}\) are the excitation number operators, \({\widetilde{\omega }}_{i}={\omega }_{i}+{g}_{i}^{2}/{\Delta }_{i}\) are the Lamb-shifted frequencies, \({\widetilde{\beta }}_{i}={\beta }_{i}+2{g}_{i}^{2}(1/({\Delta }_{i}+{\beta }_{i})-1/{\Delta }_{i})\) are the shifted anharmonicities, \(\widetilde{g}={g}_{1}{g}_{2}/\Delta +{g}_{12}\) is the effective coupling strength, \(1/\Delta =(1/{\Delta }_{1}+1/{\Delta }_{2})/2\), and when Δ1 = Δ2, β1 = β2,

$$\begin{array}{lll}\zeta\,=\,4{g}_{1}{g}_{2}{g}_{12}\left[\frac{1}{{\Delta }_{1}^{2}}-\frac{1}{{\Delta }_{1}({\Delta }_{1}+{\beta }_{1})}\right]\\ & & +\,4{g}_{1}^{2}{g}_{2}^{2}\left[\frac{2}{{\Delta }_{1}^{2}(2{\Delta }_{1}-{\beta }_{c})}-\frac{1}{{\Delta }_{1}^{2}({\Delta }_{1}+{\beta }_{1})}\right]\end{array}$$
(69)

represents the ZZ interaction strength. A detailed derivation and the mapping of Eq. (68) to the EBHM Hamiltonian are given in the subsequent subsections. This interaction primarily arises from virtual processes in which two excitations occupy the same transmon or coupler. Typically, the ZZ interaction is an order of magnitude smaller than the coupling strength \(\widetilde{g}\). This formalism can be readily extended to model a one-dimensional chain or a two-dimensional array.

The effective exchange coupling g and ZZ interaction ζ between the two transmons can be engineered by appropriately tuning the frequency of the intermediate coupler. As demonstrated in ref. 40, the destructive interference between the direct transmon-transmon coupling and the coupler-mediated virtual processes enables precise control over the net coupling strength. In particular, by tuning the coupler frequency ωc, the effective coupling can be selectively switched on or off. Similarly, the ZZ interaction can also be modulated via Eq. (69), as discussed in Section I of the Supplementary Note. Furthermore, the exact results of the effective Hamiltonian can be determined from the method based on the least action principle53. The rich interaction structure of the EBHM enables various types of CTQWs, thereby paving the way for the implementation of logical multiple-qubit gates.

Effective Hamiltonian derivation

In this subsection, we start from a system of three capacitively coupled transmons with the Hamiltonian Eq. (67) introduced in the last subsection, and aim to derive the effective two-body Hamiltonian Eq. (68) by decoupling the coupler. Specifically, most effective parameters are derived in second order in perturbation theory, whereas the effective ZZ coupling is calculated in fourth order.

We now introduce perturbative block diagonalization via Bloch theory. Effective Hamiltonians are essential for capturing low-energy dynamics in complex quantum systems. The Bloch method54,55,56 is a well-established perturbative approach for deriving such Hamiltonians. A refined version by Takayanagi52, which we refer to as perturbative block diagonalization (PBD), systematically incorporates block diagonalization techniques while naturally aligning with the least action principle53. Compared to the Schrieffer-Wolff transformation (SWT)57, PBD offers direct parameterization of effective interactions, lower computational complexity, and a flexible formalism that accounts for all transition paths between states.

Consider a Hamiltonian H on a D-dimensional Hilbert space \({\mathcal{H}}\), decomposed as

$$H={H}_{0}+V,$$
(70)

where H0 is the unperturbed Hamiltonian and V is the perturbation. We decompose \({\mathcal{H}}\) into the computational subspace \({{\mathcal{H}}}_{C}\) (of dimension d) and its complement \({{\mathcal{H}}}_{NC}\) (of dimension Dd), so that an effective Hamiltonian can be constructed within \({{\mathcal{H}}}_{C}\).

Projectors onto these subspaces are defined by the eigenstates of H0:

$$P=\mathop{\sum }\limits_{i=1}^{d}| i\rangle \langle i| ,\,Q=\mathop{\sum }\limits_{I=d+1}^{D}| I\rangle \langle I| ,$$
(71)

with \({H}_{0}| i\rangle ={\varepsilon }_{i}| i\rangle\) and \({H}_{0}| I\rangle ={\varepsilon }_{I}| I\rangle\), \(| i\rangle \in {{\mathcal{H}}}_{C}\) and \(| I\rangle \in {{\mathcal{H}}}_{NC}\). For eigenstates \(| {\Psi }_{k}\rangle\) of H with eigenvalues Ek (for k = 1, …, d), we decompose

$$| {\Psi }_{k}\rangle =P| {\Psi }_{k}\rangle +Q| {\Psi }_{k}\rangle \equiv | {\phi }_{k}\rangle +| {\Phi }_{k}\rangle .$$
(72)

Since this construction does not explicitly enforce unitarity, the states \(\{| {\phi }_{k}\rangle \}\) may not be orthonormal, and Heff can be non-Hermitian. To restore Hermiticity while preserving the essential physics, a symmetrization is applied58:

$${H}_{{\text{eff}}}^{{\text{Herm}}}=\frac{1}{2}({H}_{{\text{eff}}}+{H}_{{\text{eff}}}^{\dagger }).$$
(73)

The effective Hamiltonian is expressed as

$${H}_{{\text{eff}}}=P{H}_{0}P+{V}_{{\text{eff}}},$$
(74)

with Veff = PVeffP representing effective interactions. Up to fourth order52, the expansion is given by

$$\begin{array}{lll}{V}_{{\rm{eff}}}^{(1)}&=& PVP,\\ {V}_{{\rm{eff}}}^{(2)}&=&P[V(V)]P,\\{V}_{{\rm{eff}}}^{(3)}&=&P[V(V(V))-V((V)V)]P,\\{V}_{{\rm{eff}}}^{(4)}&=& P\left[V(V(V(V)))-V(V((V)V))-V((V(V))V)\right.\\&&+\,\left. V(((V)V)V)-V((V)V(V)) \right]P.\end{array}$$
(75)

In this notation, the superoperator (V) is defined as

$${[(V)]}_{Ii}=\frac{1}{{\varepsilon }_{i}-{\varepsilon }_{I}}\langle I| V| i\rangle ,$$
(76)

where \(| i\rangle\) and \(| I\rangle\) are eigenstates of H0 with energies εi and εI, respectively.

To go beyond the rotating-wave approximation (RWA), we first derive a second-order effective Hamiltonian that systematically incorporates the leading contributions from counter-rotating terms. These contributions are absorbed into renormalized mode frequencies and interaction strengths. The full results are provided in Section VI of the Supplementary Note.

The resulting effective Hamiltonian takes the form

$$\begin{array}{lll}{\widehat{H}}_{{\text{eff}}}\,=\,\mathop{\sum }\limits_{i\in \{1,2,c\}}\left({\widetilde{\omega }}_{i}\,{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}+\frac{{\beta }_{i}}{2}\,{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}{\widehat{b}}_{i}\right)+{\widetilde{g}}_{12}\,\left({\widehat{b}}_{1}{\widehat{b}}_{2}^{\dagger }+{\widehat{b}}_{1}^{\dagger }{\widehat{b}}_{2}\right)\\ & & +\mathop{\sum }\limits_{j\in \{1,2\}}{\widetilde{g}}_{j}\,\left({\widehat{b}}_{j}{\widehat{b}}_{c}^{\dagger }+{\widehat{b}}_{j}^{\dagger }{\widehat{b}}_{c}\right),\end{array}$$
(77)

where the tilded parameters \({\widetilde{\omega }}_{i},{\widetilde{g}}_{j},{\widetilde{g}}_{12}\) encode renormalizations due to virtual counter-rotating processes. For simplicity of notation, we drop the tilde in what follows.

Next, we detail the second step in deriving the effective two-transmon Hamiltonian: the decoupling of the coupler mode. By operating in the dispersive regime (i.e., gjj 1 with Δjωjωc for j {1, 2}) and noting that the direct transmon-transmon coupling g12 is typically much smaller than the transmon-coupler couplings gj, we can perform a block-diagonalization to isolate the low-energy subspace in which the coupler remains in its ground state. This procedure yields an effective two-transmon Hamiltonian that retains only the relevant interactions.

We begin by decomposing the full Hilbert space into excitation-number subspaces, \({\mathcal{H}}{=\bigoplus }_{i}{{\mathcal{H}}}_{i},\) where \({{\mathcal{H}}}_{i}\) denotes the i-excitation subspace. We then partition the full Hamiltonian into an unperturbed part and a perturbation. Specifically, we define

$${\widehat{H}}_{0}=\mathop{\sum }\limits_{i\in \{1,2,c\}}\left({\omega }_{i}\,{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}+\frac{{\beta }_{i}}{2}\,{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}{\widehat{b}}_{i}\right)+{g}_{12}\,\left({\widehat{b}}_{1}{\widehat{b}}_{2}^{\dagger }+{\widehat{b}}_{1}^{\dagger }{\widehat{b}}_{2}\right),$$
(78)

which contains the local energies, anharmonicities, and the direct transmon-transmon coupling, and

$$V=\mathop{\sum }\limits_{j\in \{1,2\}}{g}_{j}\,\left({\widehat{b}}_{j}{\widehat{b}}_{c}^{\dagger }+{\widehat{b}}_{j}^{\dagger }{\widehat{b}}_{c}\right),$$
(79)

which describes the transmon-coupler interactions.

We perform a perturbative block-diagonalization transformation that retains only the low-energy sector with the coupler in its ground state. Let Heff denote the resulting effective Hamiltonian in this reduced Hilbert space \({{\mathcal{H}}}_{C}\). We then define the effective hopping and ZZ interaction strengths by

$$\begin{array}{lll}\widetilde{g}\,=\,\langle 100| {{\text{H}}}_{{\text{eff}}}| 001\rangle ,\\ \zeta\,=\,\langle 101| {{\text{H}}}_{{\text{eff}}}| 101\rangle -\langle 100| {{\text{H}}}_{{\text{eff}}}| 100\rangle -\langle 001| {{\text{H}}}_{{\text{eff}}}| 001\rangle \\ & & +\,\langle 000| {{\text{H}}}_{{\text{eff}}}| 000\rangle .\end{array}$$
(80)

In these expressions, the labels on the kets (e.g., \(| 100\rangle\)) denote the occupation numbers of the two transmons and the coupler as \(| {Q}_{1},C,{Q}_{2}\rangle\).

The one-excitation manifold is decomposed as \({{\mathcal{H}}}_{1}={{\mathcal{H}}}_{1,\text{C}}\oplus {{\mathcal{H}}}_{1,\text{NC}}\)

$${{\mathcal{H}}}_{1,\text{C}}=\text{span}\{| 100\rangle ,| 001\rangle \},\,{{\mathcal{H}}}_{1,\text{NC}}=| 010\rangle .$$
(81)

There is only a single virtual transition mediated by the coupler

$$| 100\rangle \mathop{\leftrightarrow }\limits^{{g}_{1}}| 010\rangle \mathop{\leftrightarrow }\limits^{{g}_{2}}| 001\rangle$$

[contribute to the effective hopping. Following the second-order result in Eq. (75), we have

$$\widetilde{g}={g}_{12}+\frac{{g}_{1}{g}_{2}}{2}\left(\frac{1}{{\Delta }_{1}}+\frac{1}{{\Delta }_{2}}\right).$$
(82)

If taking into account the counter-rotating terms,

$$\widetilde{g}={g}_{12}+\frac{{g}_{1}{g}_{2}}{2}\left(\frac{1}{{\Delta }_{1}}+\frac{1}{{\Delta }_{2}}\right)-\frac{{g}_{1}{g}_{2}}{2}\left(\frac{1}{{\Sigma }_{1}}+\frac{1}{{\Sigma }_{2}}\right),$$
(83)

where Σi = ωi + ωc, i {1, 2}.

In addition, there is a virtual transition mediated by the coupler to renormalize the transmon frequency up to second-order:

$$| 100\rangle \mathop{\leftrightarrow }\limits^{{g}_{1}}| 010\rangle \mathop{\leftrightarrow }\limits^{{g}_{1}}| 100\rangle ,$$

giving a frequency shift \({g}_{1}^{2}/{\Delta }_{1}\) and \({\widetilde{\omega }}_{1}={\omega }_{1}+{g}_{1}^{2}/{\Delta }_{1}\). Similar reasoning gives \({\widetilde{\omega }}_{2}={\omega }_{2}+{g}_{2}^{2}/{\Delta }_{2}\). Therefore,

$${\widetilde{\omega }}_{j}={\omega }_{j}+\frac{{g}_{j}^{2}}{{\Delta }_{j}},j\in \{1,2\}.$$
(84)

The double-excitation manifold is decomposed as \({{\mathcal{H}}}_{2}={{\mathcal{H}}}_{2,\text{C}}\oplus {{\mathcal{H}}}_{2,\text{NC}}\), with

$$\begin{array}{rcl}{{\mathcal{H}}}_{2,{\rm{C}}} & = & {\text{span}}\{| 200\rangle ,| 101\rangle ,| 002\rangle \},\\ {{\mathcal{H}}}_{2,{\rm{N}}{\rm{C}}} & = & {\text{span}}\{| 110\rangle ,| 020\rangle ,| 011\rangle \}.\end{array}$$
(85)

The main part of ZZ coupling arises from the third- and the fourth-order. We have identified four representative virtual processes involving the frequency shift of \(| 101\rangle\), and they are not seen from the states \(| 100\rangle\) and \(| 001\rangle\).

  1. (1)

    \(| 101\rangle \mathop{\to }\limits^{{g}_{1}}| 011\rangle \mathop{\to }\limits^{{g}_{12}}| 110\rangle \mathop{\to }\limits^{{g}_{2}}| 101\rangle\),

  2. (2)

    \(| 101\rangle \mathop{\to }\limits^{\sqrt{2}{g}_{12}}| 200\rangle \mathop{\to }\limits^{\sqrt{2}{g}_{1}}| 110\rangle \mathop{\to }\limits^{{g}_{2}}| 101\rangle\),

  3. (3)

    \(| 101\rangle \mathop{\to }\limits^{{g}_{2}}| 110\rangle \mathop{\to }\limits^{\sqrt{2}{g}_{1}}| 020\rangle \mathop{\to }\limits^{\sqrt{2}{g}_{1}}| 110\rangle \mathop{\to }\limits^{{g}_{2}}| 101\rangle\),

  4. (4)

    \(| 101\rangle \mathop{\to }\limits^{{g}_{2}}| 110\rangle \mathop{\to }\limits^{\sqrt{2}{g}_{1}}| 200\rangle \mathop{\to }\limits^{\sqrt{2}{g}_{1}}| 110\rangle \mathop{\to }\limits^{{g}_{2}}| 101\rangle\).

Similar to the one-excitation case, we can calculate the values of each process using Eq. (75), giving

  1. (1)

    \(\frac{{g}_{1}{g}_{2}{g}_{12}}{{\Delta }_{1}{\Delta }_{2}}\),

  2. (2)

    \(-\frac{2{g}_{1}{g}_{2}{g}_{12}}{({\Delta }_{1}+{\beta }_{1}){\Delta }_{2}}\),

  3. (3)

    \(\frac{2{g}_{1}^{2}{g}_{2}^{2}}{({\Delta }_{1}+{\Delta }_{2}-{\beta }_{c}){\Delta }_{2}^{2}}\),

  4. (4)

    \(-\frac{2{g}_{1}^{2}{g}_{2}^{2}}{({\Delta }_{1}+{\beta }_{1}){\Delta }_{2}^{2}}\).

Finally, summarizing all the possible processes, we obtain

$$\begin{array}{rcl}\zeta\,=\,{g}_{1}{g}_{2}{g}_{12}\left(\frac{4}{{\Delta }_{1}{\Delta }_{2}}-\frac{2}{({\Delta }_{1}+{\beta }_{1}){\Delta }_{2}}-\frac{2}{{\Delta }_{1}({\Delta }_{2}+{\beta }_{2})}\right)\\ & & +\,{g}_{1}^{2}{g}_{2}^{2}\left(\left(\frac{4}{{\Delta }_{1}{\Delta }_{2}}+\frac{2}{{\Delta }_{1}^{2}}+\frac{2}{{\Delta }_{2}^{2}}\right)\frac{1}{{\Delta }_{1}+{\Delta }_{2}-{\beta }_{c}}\right)\\ & & -\,{g}_{1}^{2}{g}_{2}^{2}\left(\frac{2}{({\Delta }_{1}+{\beta }_{1}){\Delta }_{2}^{2}}+\frac{2}{({\Delta }_{2}+{\beta }_{2}){\Delta }_{1}^{2}}\right).\end{array}$$
(86)

In addition, there is a virtual transition mediated by the coupler to renormalize the energy of state \(| 200\rangle\) up to the second-order:

$$| 200\rangle \mathop{\leftrightarrow }\limits^{\sqrt{2}{g}_{1}}| 110\rangle \mathop{\leftrightarrow }\limits^{\sqrt{2}{g}_{1}}| 200\rangle ,$$

which give rise to \({\widetilde{\beta }}_{1}={\beta }_{1}+2{g}_{1}^{2}(\frac{1}{{\Delta }_{1}+{\beta }_{1}}-\frac{1}{{\Delta }_{1}})\). Similar reasoning gives \({\widetilde{\beta }}_{2}\), and they together indicate

$${\widetilde{\beta }}_{j}={\beta }_{j}+2{g}_{j}^{2}\left(\frac{1}{{\Delta }_{j}+{\beta }_{j}}-\frac{1}{{\Delta }_{j}}\right),j\in \{1,2\}.$$
(87)

Derivation of the extended Bose-Hubbard model in a rotating frame

In this subsection, we map the effective Hamiltonian Eq. (68) to the form of the EBHM Eq. (1) by employing a rotating frame transformation. Starting from an effective two-body Hamiltonian that includes on-site energies, anharmonicities, hopping, and ZZ interactions, we remove the large energy scales associated with the oscillator frequencies. This transformation yields a Hamiltonian where the remaining terms are on the order of MHz.

We begin with the effective Hamiltonian for the two-body system:

$$\begin{array}{rcl}{\widehat{H}}^{{\text{eff}}}\,=\,\mathop{\sum }\limits_{i=1,2}\left({\widetilde{\omega }}_{i}\,{\widehat{n}}_{i}+\frac{{\widetilde{\beta }}_{i}}{2}\,{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}{\widehat{b}}_{i}\right)+\widetilde{g}\left({\widehat{b}}_{1}^{\dagger }{\widehat{b}}_{2}+{\widehat{b}}_{1}{\widehat{b}}_{2}^{\dagger }\right)\\ & & +\,\zeta \,{\widehat{n}}_{1}{\widehat{n}}_{2},\end{array}$$
(88)

where \({\widetilde{\omega }}_{i}\) (of order GHz) are the effective mode frequencies, \({\widetilde{\beta }}_{i}\) are the anharmonicities, \(\widetilde{g}\) is the effective hopping strength, and ζ denotes the ZZ interaction strength. Since the interactions are much smaller (order MHz) than the mode frequencies, we employ a rotating frame transformation to eliminate these large energy scales.

Defining the unitary operator

$${\widehat{U}}_{R}(t)={e}^{-i{\widetilde{\omega }}_{1}({\widehat{n}}_{1}+{\widehat{n}}_{2})t},$$
(89)

the Hamiltonian in the rotating frame is given by

$${\widehat{H}}_{R}={\widehat{U}}_{R}^{\dagger }{\widehat{H}}^{{\text{eff}}}{\widehat{U}}_{R}+i\,\frac{d{\widehat{U}}_{R}^{\dagger }}{dt}\,{\widehat{U}}_{R}.$$
(90)

Carrying out this transformation, we obtain

$$\begin{array}{l}\begin{array}{lll}{\widehat{H}}_{R}\,=\,{\Delta }_{21}\,{\widehat{n}}_{2}+\mathop{\sum }\limits_{i=1,2}\frac{{\widetilde{\beta }}_{i}}{2}\,{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}^{\dagger }{\widehat{b}}_{i}{\widehat{b}}_{i}+\widetilde{g}\left({\widehat{b}}_{1}^{\dagger }{\widehat{b}}_{2}+{\widehat{b}}_{1}{\widehat{b}}_{2}^{\dagger }\right)\end{array}\\ \,\,\,\,\,\,\,\,+\,\zeta \,{\widehat{n}}_{1}{\widehat{n}}_{2},\end{array}$$
(91)

where \({\Delta }_{21}={\widetilde{\omega }}_{2}-{\widetilde{\omega }}_{1}\) is on the order of MHz.

To express the Hamiltonian in the conventional EBHM form, we rewrite it as

$$\widehat{H}=-J\mathop{\sum }\limits_{\langle i,j\rangle }{\widehat{c}}_{i}^{\dagger }{\widehat{c}}_{j}+\frac{U}{2}\mathop{\sum }\limits_{i}{\widehat{n}}_{i}({\widehat{n}}_{i}-1)-\mathop{\sum }\limits_{i}{\mu }_{i}{\widehat{n}}_{i}+V\mathop{\sum }\limits_{i}{\widehat{n}}_{i}{\widehat{n}}_{i+1},$$
(92)

with the parameter identifications:

$$J=-\widetilde{g},\,U={\widetilde{\beta }}_{1}={\widetilde{\beta }}_{2},\,{\mu }_{1}=0,\,{\mu }_{2}=-{\Delta }_{21},\,V=\zeta .$$
(93)

Thus, the effective Hamiltonian in the rotating frame maps directly onto the EBHM, with all parameters now on the energy scale of MHz.

This derivation highlights how a rotating frame transformation can effectively remove large mode energies and reveal the low-energy interactions relevant for quantum simulation, thereby providing a clear pathway to implementing the EBHM with superconducting transmon systems.