Error-Mitigated Quantum Routing on Noisy Devices
Abstract
With sub-threshold quantum error correction on quantum hardware still out of reach, quantum error mitigation methods are currently deemed an attractive option for implementing certain applications on near-term noisy quantum devices. One such application is quantum routing - the ability to map an incoming quantum signal into a superposition of paths. In this work, we use a 7-qubit IBM quantum device to experimentally deploy two promising quantum error mitigation methods, Zero-Noise Extrapolation (ZNE) and Probabilistic Error Cancellation (PEC), in the context of quantum routing. Importantly, beyond investigating the improved performance of quantum routing via ZNE and PEC separately, we also investigate the routing performance provided by the concatenation of these two error-mitigation methods. Our experimental results demonstrate that such concatenation leads a very significant performance improvement relative to implementation with no error mitigation. Indeed, an almost perfect performance in terms of fidelity of the output entangled paths is found. These new results reveal that with concatenated quantum error-mitigation embedded, useful quantum routing becomes feasible on current devices without the need for quantum error correction - opening up a potential implementation pathway to other applications that utilize a superposition of communication links.
I Introduction
Quantum routers111The concept of the quantum router in this work should not be confused with classical-routing decisions for entanglement distribution [1], but rather a quantum-only phenomenon where an input signal is routed into a coherent superposition of multiple-output communication paths. are devices that can route quantum signals in superposition over multiple paths and are considered important elements for increasing functionality in quantum networks [2, 3], for the implementation of quantum-enabled memory access [4], for the delivery of superposed quantum error mitigation [5], and in assisting quantum machine learning [6]. A quantum router has to satisfy six key requirements [7, 8]: (i) Both signal and control information are stored in qubits. (ii) The signal information is preserved after the routing process. (iii) The signal should be routed to a coherent superposition of both output paths. (iv) No post-selection for signal qubits. (v) Only one control qubit is utilized for routing one signal qubit. (vi) Entanglement between control and signal qubits is generated after the quantum routing.
The work of [9] provided the first proof-of-principle experimental demonstration of a probabilistic quantum router using entangled photons. However, this quantum router collapsed the signal information, therefore not meeting the requirement (ii). A proposal for an all-linear-optical quantum router with success probability was given in [10], and an implementation of this proposal was demonstrated in [11]. Nevertheless, two control qubits were required for routing one signal qubit in this demonstration, therefore not meeting the requirement (v). In [7], an all-linear-optical quantum router meeting the requirements (i)-(v) was experimentally demonstrated, although the success probability was only . The work of [8] proposed an optical quantum router meeting all six requirements. This router was deterministic but challenging for experimental implementation - only a probabilistic version of the router was illustrated. In [12], a deterministic quantum router using superconducting qubits was designed and experimentally demonstrated.
Near-term quantum devices, the so called Noisy Intermediate-Scale Quantum (NISQ) devices are now widely available [13]. The high error rates of these current quantum devices usually prevent the realization of quantum applications, and straightforward implementation of quantum error correction is generally not possible on them. As such, quantum error mitigation provides a potential alternate pathway to application deployment - a possibility that has recently attracted widespread attention. Quantum error mitigation methods aim to reduce the effects (e.g. magnitude) of system errors rather than completely eliminate them [14]. Two well-known quantum error mitigation methods are Zero-Noise Extrapolation (ZNE) [15, 16, 17] and Probabilistic Error Cancellation (PEC) [18, 19], which utilize classical post-processing approaches to mitigate errors [20].


In this work we focus on NISQ devices manufactured by IBM - superconducting quantum devices made accessible to the research community [21]. On such devices, our previous work [22] experimentally realized the quantum router with a quantum error-correcting code of [23]. However, the results of [22] demonstrated that such error correction is, in general, ineffective on the current IBM quantum devices in the context of quantum routing. In this work, we apply, for the first time, two quantum error mitigation techniques (ZNE and PEC) in a concatenated form to the quantum routing problem. We shall see that these quantum error mitigation techniques significantly improve the entanglement fidelity of the quantum router - to the point that quantum applications based on quantum routing become effective on current devices.
Although our work focuses on the IBM devices, we believe that superconducting-based quantum routers can be generalized for use in future large-scale quantum communication networks via interface techniques which convert photons to superconducting qubits and vice versa [24, 25]. As such, we believe the new results reported here will have wider implications beyond routing within the computer hardware itself - important as that is. The rest of this paper is organized as follows. Section II introduces the working principles of ZNE and PEC. Section III presents the quantum routing protocol as well as the experimental results. A brief discussion on the use of quantum routing in a related application is also given there. Section IV concludes this work.
II Quantum Error Mitigation
II-A Overview of ZNE
Suppose that is a Hermitian operator that has discrete eigenvalues with associated eigenstates , where represents the number of eigenvalues. These eigenstates form a complete and orthonormal set such that any state can be written as . The probability of measuring to be in the state via a measurement of is Here, is the number of copies of and represents the number of these that become upon measurement of . In most calculations presented here, the eigenstates will be the three-qubit states , where .
As one of the main quantum error mitigation techniques, ZNE extrapolates to the zero-noise limit of a quantum device by scaling the strength of noise [17, 15]. ZNE estimates an ideal (noiseless) expectation value from a group of noisy measurements by extrapolating to the zero-noise case. The denotes the expected result in a measurement, i.e., . The strength of the noise is represented by a noise scale factor, , and the expectation value of for that is represented as .
Generally, three noise-scaling methods can be utilized: (i) pulse stretching, (ii) local folding, and (iii) global folding. (i) Pulse stretching is an analog method that amplifies the noise of the quantum device by stretching microwave gate pulses to longer time intervals. (ii) Local folding maps unitary gates in a quantum circuit with a mapping logic of , where represents an implementable gate and is a positive integer influenced by . With a given , one could fold some or all gates in a quantum circuit with . The total number of quantum gates of a folded circuit is approximately times of the number of gates of the unmitigated circuit ( circuit). Three methods can be utilized for inserting the folding gates locally, namely, from the left, from the right, or at random (see Fig. 1). (iii) Global folding utilizes the same mapping logic but folds a collection of unitary gates together, i.e., , where is used to represent a circuit [26].

If one chooses , then ancillary quantum circuits would be constructed accordingly. After executing these ancillary circuits on the quantum device, values of can be collected. Extrapolation is implemented as a post-processing method acting on the collected . Multiple extrapolation methods, such as linear extrapolation, polynomial extrapolation, and exponential extrapolation, can be considered. These methods fit the curve plotted by as a function of . Based on the fitted curve, can be found via extrapolation to .
II-B Overview of PEC
Different from ZNE, PEC attempts to represent noiseless gates (non-implementable) with noisy gates (implementable). The working principle of PEC is illustrated in Fig. 2. Assume that a unitary circuit is applied to qubits initially prepared as , and is composed of noiseless gates , where . Suppose that also indicates the specific qubits that are to be applied. This noiseless circuit, , can be expressed as , which is a noiseless version of .
The first core step of PEC is the representation of each , by a set of noisy, but implementable, gates in the form of
(1) |
where are real coefficients and satisfy the trace-preserving condition, i.e., . The number of gates, , required to represent at any time is a variable between 1 and . Note that varies gate by gate and is dependent on . The method of deriving the noisy representation of a specific noiseless gate in our experiments is detailed in Section III-B.
The second core step of PEC is the estimation of by sampling from the noisy representations via a Monte Carlo average [15, 27]. If the noisy representation of each noiseless gate in is known, then can be estimated as a Monte Carlo average over different noisy circuits, where each noisy circuit is sampled according to the noisy representations. In principle, with full tomographic knowledge of and sufficiently large number of samples, one could cancel all hardware noise [28]. Replacing each in with its noisy representation, can be expressed as
(2) |
where is the initial state, , of ,
(3) |
(4) |
(5) |
Again, are real coefficients, satisfying [18]. Note that represents the unitary of a noisy quantum circuit that is sampled from the noisy representations of the noiseless gates and is regarded as an ancillary circuit of PEC. The number of is the number of samples, and we denote this number as . All can be obtained from the NISQ devices since the only require implementable gates. With sufficient and a suitable linear combination of , one can obtain an unbiased estimate of .
III Experiments
III-A Quantum Routing with Error Mitigation
We now apply the mitigation methods to quantum routing realized on the ibmq_jakarta superconducting quantum device - a device which has seven physical qubits with a horizontal H shape [21]. We use the quantum routing protocol utilized in [22] as the application to benchmark the performance of the mitigation methods. This routing protocol requires three qubits: a signal qubit , a control qubit , and a null qubit , which is an ancillary qubit of the quantum router. We define representing the transmitted signal information, and note can be prepared by sequentially implementing the Hadamard gate and the T phase gate (which introduces a phase). We prepare via the Hadamard gate, where stands for the control information directing the path of . The signal qubit is injected into the quantum router via path , and the null qubit is initially prepared at path . The input of the quantum router is thus given by , where the subscripts and represent the paths and , respectively. The quantum router routes the signal qubit to the paths and simultaneously since the control qubit is in a superposition state. Therefore, the output of the quantum router is , which is an entanglement between the control qubit and the two paths.
We build a quantum circuit to realize the quantum routing protocol, and then execute this quantum circuit via a transpiled version of the circuit - see Fig. 3. The quantum gates in the transpiled circuit can be implemented directly on the quantum device. The construction of the quantum circuit and the implementation of the transpilation are realized via IBM’s open-source software development kit—the Quantum Information Science toolKit (Qiskit) [29]. We choose three physically connected qubits with relatively low quantum gate error rates to act as the three qubits of the transpiled circuit. Note that the quantum gate error rates may change over time - the ibmq_jakarta is calibrated daily.
III-B Experimental Setups
The two quantum error mitigation methods, ZNE and PEC, mainly focus on quantum gate errors, decoherence errors, and cross-talk errors - they cannot mitigate measurement errors. Measurement errors mistakenly read a qubit in the state as the state, and vice versa. We choose a measurement error mitigation protocol [30] provided by Qiskit to reduce measurement errors. This protocol requires ancillary quantum circuits, which we call calibration circuits. One needs calibration circuits to construct a calibration matrix , where is the number of qubits that are measured. Each calibration circuit prepares the qubits to one of Z-basis states before using the Z-basis measurements to measure them, where the Z-basis states are and . The measurement results of the calibration circuits determine , and is then applied to the experimental results to eliminate measurement errors. Typically, fidelity improvements of order are found via elimination of measurement errors. Henceforth by the term “unmitigated” we will mean without any ZNE or PEC included in the results - measurement error mitigation is by default included in all results we show here. The term “error mitigation” will henceforth refer only to ZNE and/or PEC.
To investigate the experimental performance of the quantum routing protocol with quantum error mitigation, we utilize an open-source package named Mitiq [28] to implement ZNE and PEC. Although Qiskit recently released built-in functions for employing quantum error mitigation methods (twirled readout error extinction, ZNE, and PEC) [31], one cannot implement these methods step by step and obtain detailed data. Another reason why we choose Mitiq instead of Qiskit’s built-in functions is that we can concatenate multiple mitigation methods through Mitiq. For implementing ZNE, we set the noise scale factor , and we choose local folding at random to scale the noise. Seven noise-scaled circuits are generated based on the seven values of , and each noise-scaled circuit is executed times (this number of executions applied to all experiments). We choose polynomial extrapolation with order to extrapolate to .
In principle, we need to acquire full tomographic knowledge of the quantum gates in the transpiled circuit to implement PEC. However, to simplify our experiments, we make two assumptions: (i) We assume we can neglect single-qubit gate errors and only focus on two-qubit gate errors since the two-qubit gate error rates are an order of magnitude higher. (ii) We assume that the two-qubit gates are followed by a global depolarizing noise. The transpiled circuit only has one type of two-qubit gate, the CX gate. Based on assumption (ii), we have
(6) |
where is the implementable CX gate that we assumed, is the noiseless CX gate, and is a Pauli trace-preserving completely positive map. Note that
(7) |
represents the two-qubit depolarizing channel, where stands for the input state of this channel and is the noise level of the CX gate [15]. For each CX gate in the transpiled circuit, we acquire the associated CX gate error , which varies over time, from the calibration data reported in [21]. Based on Eqs. (6) and (7), and with known , can be represented by a group of noisy gates in the form of Eq. (1). Then, using noisy representation of the noiseless CX gate, we conduct a Monte Carlo sampling process via Mitiq with ( ancillary circuits are generated for PEC). From the many executions, the measurement results of the ancillary circuits are collected to calculate .
To concatenate ZNE and PEC, we first fold gates (from the left) of the transpiled circuit with , generating five noise-scaled circuits. We then apply PEC to each noise-scaled circuit with , which means that we represent each CX gate in the noise-scaled circuits by its noisy representation that we derived before. From the many executions, the error-mitigated data of the noise-scaled circuits are collected, the data will be utilized for extrapolating to , again by polynomial extrapolation with order .


III-C Experimental Results
We define that is the “theoretical” density matrix of the quantum router’s output, i.e., the final state of the transpiled circuit executed on a noiseless quantum device. We define as the “experimental” density matrix of the quantum router’s output obtained from the quantum device. Instead of using the expectation values, we utilize as one of our performance metrics. In this quantum routing experiment, is the probability of measuring to be in one of the eigenstates with the measurement operator .
The values of as a function of using ZNE are demonstrated in Fig. 4. In the noiseless situation, the probability of observing one of the , , , and states is , and the probability of observing one of the remaining states is . We see that the noise grows with increasing , and the extrapolated results are closer to (or even the same as) the noiseless results, indicating that ZNE is an effective method to mitigate quantum errors. The unmitigated and mitigated using different error mitigation methods are demonstrated in Fig. 5. One can observe that are closer to the noiseless results after introducing an error mitigation method. However, some over-correction can be noticed, especially when the concatenation of ZNE and PEC is applied.
Beyond , we choose entanglement fidelity as our main performance metric, where is expressed as . Note that is reconstructed by quantum state tomography, which requires at least copies of the transpiled circuits (since there are three qubits in the circuit) to apply measurements of operators , which are tensor products of Pauli operators. For each transpiled circuit with a distinct measurement operator, we apply ZNE or/and PEC to improve its corresponding values of . One can reconstruct with and the corresponding operators via the quantum state tomography.
The values of determined with different error mitigation methods are plotted in the main part of Fig. 6. For comparison, in the inset of Fig. 6 we also demonstrate the unmitigated values determined from other IBM’s quantum devices, namely, the ibmq_belem, ibm_oslo, and ibm_lagos. These inset values show that the machine we use here, the ibm_jakarta, offers the best performance in terms of unmitigated results and therefore forms the best starting point to apply mitigation methods to. Reverting back to the main part of the figure, we can see the fidelity results for singular use of ZNE and PEC are similar, showing a minor improvement in compared to the unmitigated result obtained from the ibm_jakarta. However, interestingly the concatenation method demonstrates , representing an almost-perfect performance. We should note this improvement does come at a cost - the concatenation method has a higher resource requirement and demands a longer execution time compared to singular use of ZNE or PEC. The almost-unity fidelity outcome of Fig. 6 represents the main result of this work.

III-D QRAM with Error Mitigation
It is perhaps useful to close this work with a short discussion on another application that uses quantum-routing-like functionality. Quantum Random Access Memory (QRAM) is an analogy of classical RAM - a critical element of a classical computing architecture. Different from classical RAM, however, QRAM allows one to query a superposition of memory addresses that store either classical or quantum information [32]. A QRAM query is given by
(8) |
where is a superposition of queried addresses and stands for the quantum or classical data stored in address . This illustrates the similarities of QRAM with quantum routing. One of the most efficient QRAM schemes is the bucket brigade scheme, which employs a binary-tree-based query architecture [33]. Based on this scheme, we construct a bucket-brigade style QRAM circuit, as shown in Fig. 7. The qubit in this QRAM circuit represents an address qubit, including the query information (addresses that one wants to query). The qubits and stand for the binary tree and and are data stored at the memory cells. We define that is a random qubit storing quantum information and stores classical information. The last qubit in the QRAM circuit is regarded as the output of the QRAM and stores all of the data queried by the address qubit. For this QRAM circuit, , since we define the address qubit as .
We again chose the entanglement fidelity as our performance metric but with the theoretical density matrix and the experimental density matrix reconstructed by applying quantum state tomography on the first (count from the top) and the last qubits of the QRAM circuit illustrated. However, from our QRAM experiments we find the maximum increase in fidelity due to error mitigation is only (maximum fidelity found being 0.76). This phenomenon is caused by the complexity of the transpiled circuits, relative to the transpiled quantum routing application discussed earlier. In particular, one can observe that the QRAM circuit includes two controlled-swap gates (see Fig. 7), while the quantum routing circuit requires one such gate. The increase in the number of controlled-swap gates leads to a longer time and a higher complexity for the execution of QRAM. The longer execution time amplifies the decoherence errors, and the increase of the number of gates in the execution accumulates the gate errors. Future work for implementing QRAM on the NISQ devices should focus on the improvement of the quantum error mitigation methods designed for complicated quantum circuits.

IV Conclusions
In this work, we experimentally tested the performance of two quantum error mitigation methods, ZNE and PEC, implemented in the context of a quantum routing protocol. Our results indicated that utilizing ZNE or PEC helped improve the performance of the near-term quantum devices. More importantly, we found concatenating ZNE and PEC impressively increased the entanglement fidelity of the quantum router to effectively one. This result reveals the capacity of concatenating quantum error mitigation methods as applied to NISQ devices. Although quantum error mitigation methods require additional executions of ancillary quantum circuits, our results show the critical role such methods can have for applications run on current NISQ devices. More specifically, our results provide an overview of what can be anticipated for an error-mitigated quantum router in practice - illustrating that full-blown quantum error correction processes need not be implemented on current devices for this important quantum application.
References
- [1] M. Pant et al., “Routing entanglement in the quantum internet,” NPJ Quantum Inf., vol. 5, no. 1, p. 25, 2019.
- [2] L.-M. Duan and C. Monroe, “Colloquium: Quantum networks with trapped ions,” Rev. Mod. Phys., vol. 82, pp. 1209–1224, 2010.
- [3] S. Wehner, D. Elkouss, and R. Hanson, “Quantum internet: A vision for the road ahead,” Science, vol. 362, no. 6412, 2018.
- [4] V. Giovannetti, S. Lloyd, and L. Maccone, “Quantum random access memory,” Phys. Rev. Lett., vol. 100, no. 16, 160501, 2008.
- [5] J. Miguel-Ramiro et al., “SQEM: Superposed quantum error mitigation,” arXiv:2304.08528, 2023.
- [6] S. J. Nawaz et al., “Quantum machine learning for 6G communication networks: State-of-the-art and vision for the future,” IEEE Access, vol. 7, pp. 46 317–46 350, 2019.
- [7] K. Lemr et al., “Resource-efficient linear-optical quantum router,” Phys. Rev. A, vol. 87, no. 6, 062333, 2013.
- [8] X. X. Yuan et al., “Experimental demonstration of a quantum router,” Sci. Rep., vol. 5, no. 1, 12452, 2015.
- [9] X. Y. Chang et al., “Experimental demonstration of an entanglement-based quantum router,” arXiv:1207.7265, 2013.
- [10] K. Lemr and A. Černoch, “Linear-optical programmable quantum router,” Opt. Commun., vol. 300, pp. 282–285, 2013.
- [11] K. Bartkiewicz et al., “Implementation of an efficient linear-optical quantum router,” Sci. Rep., vol. 8, no. 1, 13480, 2018.
- [12] B. K. Behera, T. Reza, A. Gupta, and P. K. Panigrahi, “Designing quantum router in IBM quantum computer,” Quantum Inf. Process., vol. 18, no. 11, p. 328, 2019.
- [13] J. Preskill, “Quantum computing in the NISQ era and beyond,” Quantum, vol. 2, p. 79, 2018.
- [14] A. Lowe et al., “Unified approach to data-driven quantum error mitigation,” Phys. Rev. Res., vol. 3, no. 3, 033098, 2021.
- [15] K. Temme, S. Bravyi, and J. M. Gambetta, “Error mitigation for short-depth quantum circuits,” Phys. Rev. Lett., vol. 119, no. 18, 180509, 2017.
- [16] A. Kandala et al., “Error mitigation extends the computat. reach of a noisy quantum processor,” Nat., vol. 567, no. 7749, pp. 491–495, 2019.
- [17] Y. Li and S. C. Benjamin, “Efficient variational quantum simulator incorporating active error minimization,” Phys. Rev. X, vol. 7, no. 2, 021050, 2017.
- [18] A. Mari, N. Shammah, and W. J. Zeng, “Extending quantum probabilistic error cancellation by noise scaling,” Phys. Rev. A, vol. 104, no. 5, 052607, 2021.
- [19] Z. Cai et al., “Quantum error mitigation,” arXiv:2210.00921, 2022.
- [20] D. Bultrini et al., “Simple mitigation strategy for a systematic gate error in IBMQ,” arXiv:2012.00831, 2020.
- [21] “IBM Quantum,” ibm.com. https://quantum-computing.ibm.com.
- [22] W. Shi and R. Malaney, “Entanglement of signal paths via noisy superconducting quantum devices,” Entropy, vol. 25, no. 1, p. 153, 2023.
- [23] R. Laflamme et al., “Perfect quantum error correcting code,” Phys. Rev. Lett., vol. 77, no. 1, pp. 198–201, 1996.
- [24] L. Fan et al., “Superconducting cavity electro-optics: A platform for coherent photon conversion between superconducting and photonic circuits,” Sci. Adv., vol. 4, no. 8, eaar4994, 2018.
- [25] M. Mirhosseini et al., “Superconducting qubit to optical photon transduction,” Nature, vol. 588, no. 7839, pp. 599–603, 2020.
- [26] T. Giurgica-Tiron et al., “Digital zero noise extrapolation for quantum error mitigation,” in 2020 IEEE International Conference on Quantum Computing and Engineering (QCE), 2020, pp. 306–316.
- [27] S. Endo, S. C. Benjamin, and Y. Li, “Practical quantum error mitigation for near-future applications,” Phys. Rev. X, vol. 8, no. 3, 031027, 2018.
- [28] R. LaRose et al., “Mitiq: A software package for error mitigation on noisy quantum computers,” Quantum, vol. 6, p. 774, 2022.
- [29] M. S. Anis et al., “Qiskit: An open-source framework for quantum computing,” doi.org. https://doi.org/10.5281/zenodo.2573505.
- [30] “Measurement error mitigation,” qiskit.org. https://qiskit.org/textbook/ ch-quantum-hardware/measurement-error-mitigation.html.
- [31] “Error suppression and error mitigation with Qiskit Runtime,” qiskit.org. https://qiskit.org/documentation/partners/qiskit_ibm_runtime/tutorials/ Error-Suppression-and-Error-Mitigation.html.
- [32] O. D. Matteo, V. Gheorghiu, and M. Mosca, “Fault-tolerant resource estimation of quantum random-access memories,” IEEE Transactions on Quantum Engineering, vol. 1, pp. 1–13, 2020.
- [33] S. Arunachalam et al., “On the robustness of bucket brigade quantum RAM,” New J. Phys., vol. 17, no. 12, 123010, 2015.