This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Improved quantum error correction with randomized compiling

Aditya Jain Department of Applied Mathematics, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada. Institute for quantum computing, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada. Keysight Technologies Canada Inc., Mississauga, Ontario L5N 2M2, Canada.    Pavithran Iyer Department of Applied Mathematics, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada. Institute for quantum computing, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada. Xanadu, Toronto, Ontario M5G 2C8, Canada.    Stephen D. Bartlett Centre for Engineered Quantum Systems, School of Physics, University of Sydney, Sydney, New South Wales 2006, Australia.    Joseph Emerson Department of Applied Mathematics, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada. Institute for quantum computing, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada. Keysight Technologies Canada Inc., Mississauga, Ontario L5N 2M2, Canada.
Abstract

Current hardware for quantum computing suffers from high levels of noise, and so to achieve practical fault-tolerant quantum computing will require powerful and efficient methods to correct for errors in quantum circuits. Here, we explore the role and effectiveness of using noise tailoring techniques to improve the performance of error correcting codes. Noise tailoring methods such as randomized compiling (RC) convert complex coherent noise processes to effective stochastic noise. While it is known that this can be leveraged to design efficient diagnostic tools, we explore its impact on the performance of error correcting codes. Of particular interest is the important class of coherent errors, arising from control errors, where RC has the maximum effect – converting these into purely stochastic errors. For these errors, we show here that RC delivers an improvement in performance of the concatenated Steane code by several orders of magnitude. We also show that below a threshold rotation angle, the gains in logical fidelity can be arbitrarily magnified by increasing the size of the codes. These results suggest that using randomized compiling can lead to a significant reduction in the resource overhead required to achieve fault tolerance.

I Introduction

Noise is pervasive in present-day quantum computation. The theory of fault tolerance was developed to guarantee reliable computations in the presence of noise. However, fault tolerant constructions demand a large overhead in terms of additional resources required to encode a logical computation in a way that is resilient to errors. Achieving the target logical error rates as required by various applications with the limited amount of resources in terms of the number of physical qubits is a challenging task. Along with designing better error correcting codes, decoders and high quality hardware components of a quantum computer, there are other ways of reducing logical error rates. Active noise tailoring by randomized compiling (RC) [1] is a potential candidate for two key reasons. First, RC significantly simplifies the form of the noise on the encoded quantum information. Second, RC can be used to transform an unknown error model into one that is adapted to the error correction capabilities of a particular code.

Randomized compiling tools were leveraged to accurately predict the performance of quantum error correction schemes in Ref. [2]. Although simplifying the form of the noise makes the performance more predictable, it was observed that RC can sometimes degrade the performance of an error correcting code. We can understand this effect by using the χ\chi-representation [3] of a physical noise process. In this representation, the action of noise on a quantum state ρ\rho is given by: (ρ)=i,jχi,jPiρPj\mathcal{E}(\rho)=\sum_{i,j}\chi_{i,j}P_{i}\rho P_{j} where PiP_{i} denote Pauli matrices in the nn-qubit Pauli group 𝒫n\mathcal{P}_{n} without phases, i.e., Pi𝒫n/{±1,±i}P_{i}\in\mathcal{P}{n}/\{\pm 1,\pm i\}. Noise tailoring methods such as RC can transform the elements of the χ\chi-matrix, for example by removing off-diagonal elements χi,jij\chi_{i,j}\thickspace\forall\thickspace i\neq j. This mathematical transformation is commonly referred to as twirling [4, 5, 6]. If one were to remove the contribution of χi,j\chi_{i,j} corresponding to Pauli errors that are correctable by the decoder, this could have a negative impact of the code’s performance. In general, noise tailoring methods are oblivious to the details of what error terms are relevant for quantum error correction.

The impact of twirling the noise on the performance of error correction schemes has been explored in the literature under various settings. The performance of surface codes under coherent and incoherent error models have been compared in Ref. [7], and using numerical studies it was noted that while the threshold is similar in both cases, the subthreshold performance of the twirled channel is significantly better than the original coherent error model. In another setting, analytical calculations of the logical error rate of repetition codes under rotation errors reveal that coherent errors can accumulate faster, leading to worse logical error rates than their corresponding Pauli approximations [8]. The necessity of active coherence-suppression methods for codes with large distances was also noted, but their impact on the code’s performance was not explored. For the Toric code under coherent error models, a laborious analysis has shown that the effective logical channel approaches an incoherent channel provided the noise decreases with increasing code size [9]. However, in the scenario where the error rate remains constant independent of the code size, there are several challenges to arriving at a similar conclusion. In Ref. [10], the poor predictability of the logical error rate and the code’s pseudo threshold under coherent errors provided by their twirled counterparts was identified, reinforcing the need for active noise tailoring. The impact of twirling the noise for complex error models, such as combinations of stochastic errors and rotations around an arbitrary non-Pauli axis, is unknown. The scaling of the potential gains from twirling with increased code-concatenation levels remains unexplored.

In this paper, we analyze the impact of RC on the performance of quantum error correction. In particular, we show that RC improves the performance of a concatenated Steane code under a coherent noise model (specifically, a tensor product of arbitrary identical unitary errors). This positive result demonstrates that RC tools can play a key role in achieving fault tolerance. We present a detailed study of the performance gains with respect to changes in the axis of rotation and the number of levels of concatenation. We identify a special axis of rotation for a given concatenation level where maximum gains from RC are achieved. We note that this axis can be different from the axes of rotation for which the best pseudo-threshold for the code is achieved. It has been observed, in previous studies, that randomized compiling can also degrade logical performance [11]. Our study shows that a wide class of physically motivated error models do not exhibit such behaviour. However, we identify some complex noise models where such degradation can occur and provide numerical results for the same.

The paper is structured as follows. In section II, we introduce the necessary background material including noise processes, randomized compiling and quantum error correction. Section III discusses the methods used to study the impact of randomized compiling on the logical performance. In section IV, we present analytical studies for gains offered by randomized compiling using realistic error models. Finally, in section V we provide concluding remarks and describe some interesting open problems.

II Background

In this section, we review the mathematical description of noise processes in quantum circuits as well as the formalism of stabilizer quantum error correction.

II.1 Noise in quantum circuits

The interaction of a quantum system with its environment manifests as errors on the stored quantum information. While the system and its environment together undergo unitary time evolution, the system’s reduced dynamics is often a non-unitary map. Markovian noise processes are described by completely positive trace preserving (CPTP) maps :ρ(ρ)\mathcal{E}:\rho\mapsto\mathcal{E}(\rho). One of the common ways to represent a CPTP map is using the χ\chi-matrix: χ()\chi(\mathcal{E}), a 4×44\times 4 matrix where: (ρ)=i,jχi,jPiρPj\mathcal{E}(\rho)=\sum_{i,j}\chi_{i,j}P_{i}\rho P_{j}, where Pi,PjP_{i},P_{j} are Pauli matrices.

A special subclass of noise processes that are widely analyzed in developing fault-tolerant protocols is Pauli channels. They correspond to the probabilistic action of Pauli matrices on the input state, i.e., (ρ)=i,jχi,iPiρPi\mathcal{E}(\rho)=\sum_{i,j}\chi_{i,i}P_{i}\rho P_{i}, where χi,i\chi_{i,i} can be interpreted as the probability of the Pauli error PiP_{i}.

While it is easy to study quantum error correction on Pauli error models, unfortunately realistic noise is often poorly approximated by Pauli error models. This causes a severe disparity between error models that can be accurately analyzed in theory and those that occur in experiments. Noise tailoring, achieved through Randomized compiling [1], is a promising tool that helps resolve this disparity. With RC, the average logical performance of a QEC scheme over several compilations with random Pauli gates can be well approximated by the performance of the QEC scheme under an effective Pauli error model. The effective Pauli error model is nothing but the Pauli twirl of the underlying CPTP noise process \mathcal{E}, denoted by 𝒯()\mathcal{T}(\mathcal{E}) defined as

𝒯()(ρ)=P𝒫nP(PρP)P.\displaystyle\mathcal{T}(\mathcal{E})(\rho)=\sum_{P\in\mathcal{P}_{n}}P\mathcal{E}(P\rho P)P\thickspace. (1)

We will use the notation T\mathcal{E}^{T} to denote the Pauli Twirl of the CPTP map \mathcal{E}: 𝒯()\mathcal{T}(\mathcal{E}).

II.2 Quantum Error Correction

An [[n,k]][[n,k]] stabilizer code 𝒞\mathcal{C} is a 2k2^{k} dimensional space defined as: 𝒞={|ψ:Si|ψ=|ψ, 1ink}\mathcal{C}=\{|\psi\rangle\thinspace:\thinspace S_{i}|\psi\rangle=|\psi\rangle\thinspace,\thinspace 1\leq i\leq n-k\}, where SiS_{i} are stabilizer generators. See Ref. [12] for an introduction to stabilizer codes and fault tolerance. Concatenated codes are a family of codes where we encode the physical qubits at level \ell using the code at level 1\ell-1. This is a way of constructing larger codes from smaller ones and these codes are typically used to guarantee error suppression in fault tolerance proofs [13, 14].

Measuring stabilizer generators yields a signature of the error that occurred called a syndrome. Inferring the error from the syndrome is called decoding. There are several ways to define a decoder, the simplest of which is the minimum weight decoder. It selects a Pauli error of minimum Hamming weight consistent with the observed syndrome. While some errors on the encoded states can be undone by quantum error correction, there are uncorrectable errors that cause unwanted logical operations on the encoded states under a quantum error correction routine. These uncorrectable errors determine the logical error rate. A valuable tool to define the logical error rate is the effective channel, which encapsulates the effect of a physical noise process and a quantum error correction protocol on the encoded quantum information.

Besides the error-correcting code and the underlying physical noise process, the effective channel is a function of the measured error syndrome ss. We will use the notation 1s\mathcal{E}^{s}_{1} to denote the effective channel where the subscript “1” refers to one encoding level. The relevance of the subscript becomes crucial for concatenated codes [12], where s\mathcal{E}^{s}_{\ell} refers to the effective channel for a level-\ell concatenated code. A particularly useful quantity is the average of logical channels s\mathcal{E}^{s}_{\ell} over all syndrome outcomes, denoted by ¯\overline{\mathcal{E}}_{\ell}:

¯=ssPr(s),\displaystyle\overline{\mathcal{E}}_{\ell}=\sum_{s}\mathcal{E}^{s}_{\ell}\Pr(s)\thickspace, (2)

where Pr(s)\Pr(s) is the probability of observing the outcome ss [15, 7, 16]. The average logical channel ¯\overline{\mathcal{E}}_{\ell} indicates how quantum error correction suppresses the effect of physical errors, on average. We will use logical infidelity r(¯)r(\overline{\mathcal{E}}_{\ell}) [15, 10] as a measure of the logical error rate.

The average logical infidelity for a code under a noise process \mathcal{E} is calculated using the following equation: [2]

r(¯1)=1E,ECs(E)=s(E),E¯=E¯ϕ(E)ϕ(E)χE,E,\displaystyle r(\overline{\mathcal{E}}_{1})=1-\sum_{\begin{subarray}{c}E,E^{\prime}\in\mathcal{E}_{C}\\ s(E)=s(E^{\prime})\thinspace,\thinspace\overline{E}=\overline{E}^{\prime}\end{subarray}}\phi(E)\thickspace\phi^{\star}(E^{\prime})\thickspace\chi_{E,E^{\prime}}\thickspace, (3)

where χi,j\chi_{i,j} represents the (i,j)th(i,j)^{th} entry of the χ\chi-matrix of \mathcal{E}, C\mathcal{E}_{C} is the set of correctable errors, E¯\overline{E} is the logical component in the decomposition of EE with respect to the Stabilizer group and ϕ(E)\phi(E) is specified by Rs(E)E=ϕ(E)SR_{s(E)}E=\phi(E)\thickspace S for any Pauli error EE and some stabilizer SS. We use this expression at various points to calculate the logical infidelity. To calculate the entries of the χ\chi-matrix of the effective logical channel we use the following general expression: [2]

χ(¯1)l,m=E,ECs(E)=s(E),E¯=E¯ϕ(E,l)ϕ(E,m)χEP¯l,P¯mE.\displaystyle\chi(\overline{\mathcal{E}}_{1})_{l,m}=\sum_{\begin{subarray}{c}E,E^{\prime}\in\mathcal{E}_{C}\\ s(E)=s(E^{\prime})\thinspace,\thinspace\overline{E}=\overline{E}^{\prime}\end{subarray}}\!\!\!\phi(E,l)\thickspace\phi^{\star}(E^{\prime},m)\thickspace\chi_{E\overline{P}_{l},\overline{P}_{m}E^{\prime}}\thickspace. (4)

where Rs(E)|EP¯l|=ϕ(E,l)S|P¯l|R_{s(E)}\thickspace|E\thickspace\overline{P}_{l}|=\phi(E,l)\thickspace S\thickspace|\overline{P}_{l}|, for l{0,1,2,3}l\in\{0,1,2,3\}, any Pauli error EE and some stabilizer SS. Here |P||P| stands for the bare Pauli without any associated global phase.

We calculate the χ\chi-matrix for logical channels at higher levels i.e, for >1\ell>1 by recursing the expression in Eq.(4) and using the entries of χ(¯1)\chi(\overline{\mathcal{E}}_{\ell-1}) in the right hand side to evaluate χ(¯)\chi(\overline{\mathcal{E}}_{\ell}).

III Methods

The goal of this paper is twofold. First, we want to identify important scenarios for physical errors wherein RC can be leveraged to improve the performance of quantum error correcting codes. Second, identify settings under which such performance gains cannot be guaranteed. For the first goal, we study the performance of concatenated Steane code under realistic error models. We start off by simple rotations about ZZ-axis and progressively move to arbitrary rotations followed by a combination of coherent and stochastic error models. For the second goal, we generate numerical results for a large ensemble of noise processes belonging to more complex noise models which involve random rotations on different qubits and arbitrary CPTP maps. All the performance metrics in this paper are derived in the memory model and assume perfect syndrome extraction. Simulations with gate dependent errors can be pursued in the future.

For both the goals, it is crucial to understand how RC can be applied alongside quantum error correction in practice. We follow the methods of Ref. [2]. The main idea can be summarized as follows. Recall that noise tailoring by randomized compiling is achieved by inserting random Pauli gates in a circuit such that its net effect does not change the logical output of the circuit. Consequently, the average output distribution of the circuit over all possible Pauli random gates can be understood by studying the response of the original circuit against Pauli noise on the individual components. In the same spirit, we insert random Pauli gates around all the individual components of a quantum error correction circuit. There is no need to account for sources of noise in the extra Pauli random gates because they can be absorbed into the original elements of the quantum error correcting circuit. The theory of RC prescribes exponentially many compilations of the underlying circuit to achieve perfect twirling. However, in practice, only a handful compilations can be realized [17]. Despite this practical limitation, we assume the ideal application of RC in this paper for simplicity. We leave the details of this procedure to the appendix section D.

We now have two variations of the average fidelity. First, the standard notion – average fidelity over all syndrome outcomes, r(¯1)r(\overline{\mathcal{E}}_{1}), defined in Eq. (3). Second, the average fidelity over syndrome outcomes as well as logically equivalent compilations of the quantum error correction circuit, which we will denote rrcr_{\mathrm{rc}}. Note that the number of random compilations for a circuit with nn elements grows as 𝒪(4n)\mathcal{O}(4^{n}). In the ideal case, where we have considered all of these compilations in rrc(¯1)r_{\mathrm{rc}}(\overline{\mathcal{E}}_{1}), it reduces to r(¯1T)r(\overline{\mathcal{E}}^{T}_{1}).

While Eq. (3) addresses the logical channel of a block code, we can easily extend these definitions for a concatenated code assuming a hard decoder [16, 10]. In this case, the logical channel at level-\ell can be recursively defined in as a function whose input physical channels are the logical channels at level(1)-(\ell-1). We will use the notation r(¯)r(\overline{\mathcal{E}}_{\ell}) and r(¯T)r(\overline{\mathcal{E}}^{T}_{\ell}) to denote the logical channels of a level-\ell concatenated code without RC and with RC, respectively. Their ratio, denoted by δ\delta_{\ell}, where

δ=r(¯)r(T¯),\delta_{\ell}=\frac{r(\overline{\mathcal{E}}_{\ell})}{r(\overline{\mathcal{E}^{T}}_{\ell})}\thickspace, (5)

is an indicator of the performance gain due to RC, which we will estimate for various error models. Note that δ>1\delta_{\ell}>1 indicates a performance gain whereas δ<1\delta_{\ell}<1 denotes a performance loss.

IV Results and discussion

This section is devoted to case studies of performance gains from RC for the concatenated Steane code, under various interesting classes of error models, and inferences we can draw from these studies. Markovian errors can be broadly classified into unital and non-unital maps. Since non-unital components of a noise map do not impact the error rate significantly [18, 8], we restrict our attention to unital maps in this paper. In particular, we choose coherent rotations which form an important class of unital maps. In practice, these typically arise from imperfect pulses used to implement quantum gates in the hardware. Interestingly, these are also the class of errors on which randomized compiling has the maximum effect of turning them into purely incoherent noise.

IV.1 Rotation about ZZ-axis

While we ideally want to study the impact of RC on the performance of a quantum error correcting code under general coherent errors, let us first start with a simple yet interesting model – rotations about the ZZ-axis. Although the RC process tailors the underlying physical noise, irrespective of the choice of the code, through this example we show that in fact the gains produced from RC can be arbitrarily increased by choosing codes of increasing distances.

Recall that the rotation about ZZ-axis is specified by ρRZ(ω)ρRZ(ω)\rho\rightarrow R_{Z}(\omega)\rho R_{Z}(-\omega) where

RZ(ω)=cos(ω/2)I+isin(ω/2)Z.\displaystyle R_{Z}(\omega)=\cos(\omega/2)\thickspace I+i\sin(\omega/2)\thickspace Z\thickspace. (6)

Applying the rotation independently across all n=7n=7 the physical qubits of the Steane code, is specified by the map

(ρ¯)=RZn(ω)ρ¯RZn(ω).\mathcal{E}(\bar{\rho})=R^{\otimes n}_{Z}(\omega)\thickspace\bar{\rho}\thickspace R^{\otimes n}_{Z}(-\omega). (7)

The performance of the Steane code under the above error model, can be inferred from Eq. (3), where the correctable errors 𝒞\mathcal{E}_{\mathcal{C}} can be defined with respect to the minimum weight decoder. Explicitly enumerating all correctable errors, we find that there are 2222 correctable errors of weight at most one, and 4242 two-qubit ones. Since we are confined to rotations about the ZZ-axes, we can limit ourselves to the correctable errors of ZZ-type. Reserving the details of our derivation to Appendix A, we find

r(¯1)63(ω/2)4476(ω/2)6+𝒪(ω8).\displaystyle r(\overline{\mathcal{E}}_{1})\approx 63\thickspace(\omega/2)^{4}-476\thickspace(\omega/2)^{6}+\mathcal{O}(\omega^{8})\thickspace. (8)

In comparison, the logical infidelity for quantum error correction with randomized compiling is

r(T¯1)21(ω/2)4112(ω/2)6+𝒪(ω8).\displaystyle r(\overline{\mathcal{E}^{T}}_{1})\approx 21\thickspace(\omega/2)^{4}-112\thickspace(\omega/2)^{6}+\mathcal{O}(\omega^{8})\thickspace. (9)

Finally, the performance gain from RC quantified using the metric δ1\delta_{1} defined in eq. 5 can now be estimated as

δ1=r(¯1)r(T¯1)353(ω)2+𝒪(ω4).\displaystyle\delta_{1}=\frac{r(\overline{\mathcal{E}}_{1})}{r(\overline{\mathcal{E}^{T}}_{1})}\approx 3-\frac{5}{3}\thickspace(\omega)^{2}+\mathcal{O}(\omega^{4})\thickspace. (10)

We now show that the above modest performance gains can be made arbitrarily large by concatenating the Steane code with itself. It is possible to extend the analysis above via recursion to approximate the effective logical channel for a level \ell concatenated Steane code for >1\ell>1. The details of this procedure can be found in Appendix B. The approximate logical channel allows us to estimate the performance of level \ell concatenated Steane code and study the impact of randomized compiling on it. To understand the impact of RC with the number of levels, we can do a leading order analysis of the recursive relations used to construct the average logical channel, described in Appendix B. We find that for small rotation angle ω\omega, the average infidelity of the logical channel scales as

r(¯)\displaystyle r(\overline{\mathcal{E}}_{\ell}) 6321(ω/2)2+1,\displaystyle\approx 63^{2^{\ell}-1}(\omega/2)^{2^{\ell+1}}\thickspace,
r(T¯)\displaystyle r(\overline{\mathcal{E}^{T}}_{\ell}) 2121(ω/2)2+1.\displaystyle\approx 21^{2^{\ell}-1}(\omega/2)^{2^{\ell+1}}\thickspace. (11)

Subsequently, the scaling of gain δ\delta_{\ell} with the levels of concatenation is given by

δ321(5×2l1×32l3)ω2+O(ω4).\displaystyle\delta_{\ell}\approx 3^{2^{\ell}-1}-(5\times 2^{l-1}\times 3^{2^{l}-3})\omega^{2}+O(\omega^{4})\thickspace. (12)

Figure 1 corroborates this scaling law for the exact value of the logical error rates of the concatenated Steane code, in other words, showing that log(log(δ)))\log(\log(\delta_{\ell}))) is approximately a linear function of \ell. Note that the above analysis is accurate for small rotation angles.

Refer to caption
Figure 1: The above figure shows that the gain at level \ell and the gain δ\delta_{\ell} scales doubly exponentially with \ell. The rotation angle used here is ω=π/20\omega=\pi/20.

Varying the rotation angles leads us to another important discovery. Figure 2 shows the gains from randomized compiling for a range of rotation angles for levels 151\leq\ell\leq 5. The gains from RC grow significantly with increase in number of levels of the code. The figure suggests the presence of a threshold rotation angle ω\omega_{\star} below which arbitrary gains from RC can be achieved by increasing the size of the code (levels of concatenation). On the contrary, for rotations ω>ω\omega>\omega_{\star}, the trend reverses.

We now turn to more general noise models, where we will find that the presence of a threshold in the case of rotations about the ZZ-axis, extends to the general case.

Refer to caption
Figure 2: Gains in logical performance, δ\delta_{\ell}, of a level \ell concatenated Steane code for rotations by angle ω\omega about the ZZ-axis. The common crossover point lies at ω0.51\omega_{\star}\approx 0.51, which corresponds to a rotation angle of about 1515^{\circ}, below which gains from RC can be amplified by increasing the number of levels of concatenation.

IV.2 Rotation about an arbitrary axis

While the above analysis considered coherent error models described by rotations about the ZZ-axis, it is straightforward to apply these ideas to rotations about any of the Pauli axes. We now investigate average gains due to RC for a rotation about an arbitrary axis.

We consider a general error model where the physical qubits of a code undergo rotations about an arbitrary axes of the Bloch sphere, described by the unitary matrix UU, i.e., (ρ¯)=Unρ¯(U)n\mathcal{E}(\bar{\rho})=U^{\otimes n}\bar{\rho}(U^{\dagger})^{\otimes n}. The following parameterization for UU [19] is useful for our analysis:

(cos(ω/2)+isin(ω/2)cos(θ)ieiϕsin(ω/2)sin(θ)ieiϕsin(ω/2)sin(θ)cos(ω/2)isin(ω/2)).\begin{pmatrix}\cos(\omega/2)+i\sin(\omega/2)\cos(\theta)&ie^{-i\phi}\sin(\omega/2)\sin(\theta)\\ ie^{-i\phi}\sin(\omega/2)\sin(\theta)&\cos(\omega/2)-i\sin(\omega/2)\end{pmatrix}. (13)

where 0θπ0\leq\theta\leq\pi and 0ϕ2π0\leq\phi\leq 2\pi define the axis (in polar angles) about which each qubit is rotated, and ω\omega gives the magnitude of the rotation. For example, θ=ϕ=0\theta=\phi=0 can be identified with rotations about the ZZ-axis. The performance gain from RC can be defined following Eq. 10, as a function of the parameters δ(θ,ϕ,ω)\delta(\theta,\phi,\omega). The average gain for an unknown axis is computed as

δ¯(ω)=12π02π𝑑ϕ0πsin(θ)𝑑θδ(θ,ϕ,ω),\displaystyle\overline{\delta}_{\ell}(\omega)=\frac{1}{2\pi}\int_{0}^{2\pi}d\phi\int_{0}^{\pi}\sin(\theta)\thickspace d\theta\thickspace\delta_{\ell}(\theta,\phi,\omega)\thickspace, (14)

for =1\ell=1. Likewise, for concatenated codes, δ¯\overline{\delta}_{\ell} denotes the average gain in performance for level \ell. This is similar to the conclusion drawn for the case of rotations about the ZZ-axis. First of all we see that for all coherent errors RC improves the performance of the Steane code. Furthermore, performance gains are largest for coherent errors that correspond to rotations about the X,YX,Y or ZZ axes.

Using the general techniques developed in the appendix to approximate the effective logical channel of a level-\ell concatenated code, we can estimate the gains δ¯\overline{\delta}_{\ell} in average performance due to RC over the various rotation axes. Similar to the case of ZZ-rotations, Fig. 3 suggests the presence of a threshold ω¯\overline{\omega}_{\star} wherein for rotation angles ωω¯\omega\leq\overline{\omega}_{\star} the gains can be arbitrarily increased by choosing codes of larger distance, whereas the trend reverses for ω>ω¯\omega>\overline{\omega}_{\star}.

Refer to caption
Figure 3: The average gain in performance from RC, using the Haar average over all axes of rotation, for the level \ell concatenated Steane code. The average gains are larger for small magnitudes of rotation. We observe that the gains increase significantly with the number of levels for ωω¯0.65\omega\leq\overline{\omega}_{\star}\approx 0.65, which corresponds to a rotation angle of about 1919^{\circ}.

Note that threshold angle ω¯\overline{\omega}_{\star} for rotations about an unknown axis is higher the threshold for rotations about the ZZ-axes, i.e., ω¯>ω\overline{\omega}_{\star}>\omega_{\star}. This can be explained as follows. In the case of a generic non-Pauli axis, the twirled noise model, i.e., is in the presence of RC, is composed of a probabilistic mixture of X,YX,Y and ZZ type errors. Whereas, in the case of a fixed Pauli axis, we only have errors of one type (either X,YX,Y or ZZ). For a fixed error budget, specified by fidelity, the case of a non-Pauli axis results in the error strength spread over a larger number of correctable errors than the case of a fixed Pauli axis which would include relatively higher weight Pauli errors of one type. Hence, the Steane code has better error correction capability. Figure 4 provides evidence to our argument by showing that the threshold angle for performance gains from RC under rotations about various axes, is higher for non-Pauli axes compares to the Pauli ones. As a consequence, we also note that for rotation angles ω<ω<ω¯\omega_{\star}<\omega<\overline{\omega}_{\star}, the largest gains from RC are achieved for rotations axes that lie between the X,YX,Y and ZZ axes as opposed to the individual Pauli axes.

Refer to caption
Figure 4: The threshold angle ω\omega_{\star} for which δ2<δ1\delta_{2}<\delta_{1} for rotations about an axis parameterized by θ,ϕ\theta,\phi. Each point on the sphere has coordinates {sin(θ)cos(ϕ),sin(θ)sin(ϕ),cos(θ)}\{\sin(\theta)\cos(\phi),\sin(\theta)\sin(\phi),\cos(\theta)\} and the color denotes the threshold value of angle ω\omega for which the above condition holds. It shows that the cardinal axes do not have the highest threshold.

IV.3 Composition of coherent and stochastic map

So far, we have shown that RC always improves the performance of quantum error correcting codes under coherent errors. Generic unital maps can be approximately described as a composition of a coherent error and a Pauli error model [20, 21]. In what follows, we consider a more general unital map where we model coherent errors in a similar fashion as in the previous section and for Pauli errors, we choose the depolarizing error model, i.e.,

(depcoh)n,\mathcal{E}\simeq(\mathcal{E}_{\textit{dep}}\circ\mathcal{E}_{\textit{coh}})^{\otimes n}, (15)

where

coh(ρ)\displaystyle\mathcal{E}_{\textit{coh}}(\rho) =UρU,\displaystyle=U\rho U^{\dagger},
dep(ρ)\displaystyle\mathcal{E}_{\textit{dep}}(\rho) =(1p)ρ+p2𝕀.\displaystyle=(1-p)\rho+\frac{p}{2}\mathbb{I}. (16)

and UU can be parameterized using Eq. (13). In what follows, we will study the impact of RC under the approximation given by Eq. (15). Note that both the coherent as well as the incoherent parts of the error model contribute to the strength of noise, for instance, the average gate fidelity. While RC only affects the coherent part of the error process, we expect that for a fixed noise strength, the performance gain due to RC under the error model described above will diminish with increasing pp. This expectation is supported by the numerical simulations presented in Fig. 5, where we present numerical estimates of δ¯(ω,p)\overline{\delta}_{\ell}(\omega,p) for several depolarizing strengths pp. Here, δ¯(ω,p)\overline{\delta}_{\ell}(\omega,p) is defined analogous to Eq. (14) as

δ¯(ω,p)=12π02π0πδ(θ,ϕ,ω,p)sin(θ)𝑑θ𝑑ϕ.\displaystyle\overline{\delta}_{\ell}(\omega,p)=\frac{1}{2\pi}\int_{0}^{2\pi}\int_{0}^{\pi}\thickspace\delta_{\ell}(\theta,\phi,\omega,p)\thickspace\sin(\theta)\thickspace d\theta\thickspace d\phi\thickspace. (17)
Refer to caption
Figure 5: The impact of the depolarizing component on the gains from RC. We fix the average infidelity per qubit to be r0.003r\approx 0.003 and increase the value of the depolarizing strength from p=104p=10^{-4} to p=103p=10^{-3}. The value of ω\omega corresponding to each value of pp is chosen such that the total physical infidelity of the qubit remains constant. We observe that the gains from RC diminish with increase in depolarizing strength. This is because RC does not impact the stochastic component of the noise model.

Note that in all of the error models considered so far, we have only observed gains in performance due to RC. However, amongst the most general CPTP maps including the unital as well as non-unital types, we have identified cases under which RC can lead to a loss in the performance. Some examples of these maps are mentioned in Appendix C.

V Conclusion

The application of randomized compiling in fault tolerance is attractive for two reasons. First, amongst the exponentially growing number of parameters controlling a physical noise process, RC effectively eliminates the impact of most of them on a QEC scheme. Second, since RC removes multiple noise sources, we expect the code to perform better. This paper provides concrete evidence to show that RC improves the performance of quantum error correction under a wide class of coherent errors. We have identified noise regimes where gains are drastic for the case of concatenated Steane codes. In particular, it grows doubly exponentially with the number of levels, under small rotations about a Pauli axis. Our results can be extended to guarantee performance gains under generic unital noise processes, leveraging tools from [20, 21] that approximate a unital noise process as a composition of a coherent and an incoherent error model. These observations strengthen the need for active noise tailoring methods as a crucial component of a fault tolerant scheme.

Performance gains offered by RC also depend on the strength of errors affecting the physical qubits. We stumbled upon an interesting observation that indicates gains decrease when the amount of coherent rotation error passes beyond a threshold value. To the best of our knowledge a threshold of this nature hasn’t been reported in earlier works. The threshold helps estimate the maximum possible noise that can be alleviated on a hardware device by leveraging RC tools. We also carried out extensive studies to analyze the variation of this threshold with the features of the underlying coherent error model.

Beyond the paradigm of identical unital maps across all physical qubits, we argue that unilateral conclusions about performance gains due to RC cannot be made, i.e., it depends strongly on the microscopic details of the underlying physical noise process. Our arguments are strengthened by numerical studies of complex physical noise processes that revealed some cases where the code’s performance can also degrade in the presence of RC. In Ref. [16], it was shown that twirled noise processes may improve or degrade thresholds depending on the decoding algorithm used. In this paper we arrive at a similar conclusion by exploring different error models for the minimum weight decoder.

Obtaining efficiently computable estimates for performance gains due to RC in different experimental setups would be crucial to optimizing fault tolerance resources in near-term applications. In the absence of exact values, it would be useful to provide bounds for the impact of RC on the code’s performance. Although RC’s impact on performance depends strongly on the underlying noise process, it is still interesting to see that it can provide significant gains for a wide variety of realistic error models and relevant error regimes.

To ensure a performance gain from a noise tailoring technique, such as RC, ideally, we want to cancel the impact of those terms in the underlying noise process, which correspond to uncorrectable errors – since these add to the logical infidelity. It would be worthwhile to explore ways of controlling physical noise sources to ensure that RC always offers a gain in performance. It would also be interesting to explore different Twirling gate sets that can tailor the noise process to suppress terms that contribute negatively to the logical channel’s fidelity. Although we identified a handful of cases where a performance loss is observed, it will be noteworthy to develop cheap experimental protocols to ascertain whether performing error correction with RC will be significantly beneficial for a given device.

Acknowledgements.
This research was undertaken thanks in part to funding from the Canada First Research Excellence Fund. Research was partially sponsored by the ARO and was accomplished under Grant Number: W911NF-21-1-0007. SDB acknowledges support from the Australian Research Council (ARC) via the Centre of Excellence in Engineered Quantum Systems (EQuS) project number CE170100009.

References

  • Wallman and Emerson [2016] J. J. Wallman and J. Emerson, Noise tailoring for scalable quantum computation via randomized compiling, Phys. Rev. A 94, 052325 (2016).
  • Iyer et al. [2022] P. Iyer, A. Jain, S. D. Bartlett, and J. Emerson, Efficient diagnostics for quantum error correction, Phys. Rev. Res. 4, 043218 (2022).
  • Wood et al. [2015] C. J. Wood, J. D. Biamonte, and D. G. Cory, Tensor networks and graphical calculus for open quantum systems, Quant. Inf. Comp 11, 0579 (2015).
  • Bennett et al. [1996a] C. H. Bennett, D. P. DiVincenzo, J. A. Smolin, and W. K. Wootters, Mixed-state entanglement and quantum error correction, Phys. Rev. A 54, 3824 (1996a).
  • Bennett et al. [1996b] C. H. Bennett, G. Brassard, S. Popescu, B. Schumacher, J. A. Smolin, and W. K. Wootters, Purification of noisy entanglement and faithful teleportation via noisy channels, Phys. Rev. Lett. 76, 722 (1996b).
  • Cai and Benjamin [2019] Z. Cai and S. C. Benjamin, Constructing Smaller Pauli Twirling Sets for Arbitrary Error Channels, Scientific Reports 9, 11281 (2019).
  • Bravyi et al. [2018] S. Bravyi, M. Englbrecht, R. König, and N. Peard, Correcting coherent errors with surface codes, npj Quantum Information 410.1038/s41534-018-0106-y (2018).
  • Greenbaum and Dutton [2017] D. Greenbaum and Z. Dutton, Modeling coherent errors in quantum error correction, Quantum Science and Technology 3, 015007 (2017).
  • Iverson and Preskill [2020] J. K. Iverson and J. Preskill, Coherence in logical quantum channels, New Journal of Physics 22, 073066 (2020).
  • Gutiérrez et al. [2016] M. Gutiérrez, C. Smith, L. Lulushi, S. Janardan, and K. R. Brown, Errors and pseudothresholds for incoherent and coherent noise, Phys. Rev. A 94, 042338 (2016).
  • Beale et al. [2018] S. J. Beale, J. J. Wallman, M. Gutiérrez, K. R. Brown, and R. Laflamme, Quantum error correction decoheres noise, Phys. Rev. Lett. 121, 190501 (2018).
  • Gottesman [1997] D. E. Gottesman, Stabilizer Codes and Quantum Error Correction, Ph.D. thesis, California Institute of Technology, arXiv:quant-ph/9705052 (1997).
  • Aliferis et al. [2007] P. Aliferis, D. Gottesman, and J. Preskill, Accuracy threshold for postselected quantum computation, Quantum Information and Computation 8, 0181 (2007).
  • Campbell et al. [2017] E. T. Campbell, B. M. Terhal, and C. Vuillot, Roads towards fault-tolerant universal quantum computation, Nature 549, 172 (2017).
  • Iyer and Poulin [2018] P. Iyer and D. Poulin, A small quantum computer is needed to optimize fault-tolerant protocols, Quantum Science and Technology 3, 030504 (2018).
  • Chamberland et al. [2017] C. Chamberland, J. Wallman, S. Beale, and R. Laflamme, Hard decoding algorithm for optimizing thresholds under general markovian noise, Phys. Rev. A 95, 042332 (2017).
  • Hashim et al. [2021] A. Hashim, R. K. Naik, A. Morvan, J.-L. Ville, B. Mitchell, J. M. Kreikebaum, M. Davis, E. Smith, C. Iancu, K. P. O’Brien, I. Hincks, J. J. Wallman, J. Emerson, and I. Siddiqi, Randomized Compiling for Scalable Quantum Computing on a Noisy Superconducting Quantum Processor, Physical Review X 11, 041039 (2021).
  • Wallman [2015] J. J. Wallman, Bounding experimental quantum error rates relative to fault-tolerant thresholds (2015).
  • Bartlett et al. [2009] S. D. Bartlett, T. Rudolph, R. W. Spekkens, and P. S. Turner, Quantum communication using a bounded-size quantum reference frame, New Journal of Physics 11, 063013 (2009).
  • Carignan-Dugas et al. [2019a] A. Carignan-Dugas, M. Alexander, and J. Emerson, A polar decomposition for quantum channels (with applications to bounding error propagation in quantum circuits), Quantum 3, 173 (2019a).
  • Carignan-Dugas et al. [2019b] A. Carignan-Dugas, J. J. Wallman, and J. Emerson, Bounding the average gate fidelity of composite channels using the unitarity, New Journal of Physics 21, 053016 (2019b).
  • Huang et al. [2019] E. Huang, A. C. Doherty, and S. Flammia, Performance of quantum error correction with coherent errors, Phys. Rev. A 99, 022313 (2019).

Appendix A Logical fidelity calculation for rotation about Z-axis

In this appendix section, we will derive the logical performance of Steane code under a unitary noise process described by a small over-rotation about the ZZ-axis, i.e. (ρ)=RZ(ω)ρRZ(ω)\mathcal{E}(\rho)=R_{Z}(\omega)\rho R_{Z}(-\omega) where

RZ(ω)=cos(ω/2)I+isin(ω/2)Z.\displaystyle R_{Z}(\omega)=\cos(\omega/2)\thickspace I+i\sin(\omega/2)\thickspace Z\thickspace. (18)

Recall that the Steane code is a [[n,k]][[n,k]] quantum code with n=7,k=1n=7,k=1, whose encoded states are fixed by the Stabilizer group 𝒮\mathcal{S} generated by nkn-k generators:

𝒮=ZZZZIII,ZZIIZZI,ZIZIZIZ,XXXXIII,XXIIXXI,XIXIXIX.\displaystyle\mathcal{S}=\langle ZZZZIII,ZZIIZZI,ZIZIZIZ,XXXXIII,XXIIXXI,XIXIXIX\rangle\thickspace. (19)

The effect of the unitary noise in eq. 6 on each of the nn qubits in the encoded state can be written as

n(ρ¯)\displaystyle\mathcal{E}^{\otimes n}(\bar{\rho}) =RZn(ω)ρ¯RZn(ω)\displaystyle=R^{\otimes n}_{Z}(\omega)\thickspace\bar{\rho}\thickspace R^{\otimes n}_{Z}(-\omega)
=w22n(1)j=n+12nwj(cos(ω/2))2n|w|(isin(ω/2))|w|(j=1nZwj)ρ¯(j=n+12nZwj).\displaystyle=\sum_{w\thinspace\in\thinspace\mathbb{Z}^{2n}_{2}}(-1)^{\sum_{j=n+1}^{2n}w_{j}}(\cos(\omega/2))^{2n-|w|}(i\sin(\omega/2))^{|w|}\left(\otimes_{j=1}^{n}Z^{w_{j}}\right)\bar{\rho}\left(\otimes_{j=n+1}^{2n}Z^{w_{j}}\right)\thickspace. (20)

where |w||w| is the Hamming weight of the binary sequence w22nw\in\mathbb{Z}^{2n}_{2}.

To understand the effect of RC on performance, we need to estimate the total contribution to logical fidelity from terms in the noise process whose effect is rendered useless by RC. Since the noise model in eq. 20 only applies ZZ-type errors, it suffices to consider the effect of correctable errors EE and EE^{\prime} that are purely ZZ-type, besides the identity. In other words, E,EZ1,Z2,,ZnE,E^{\prime}\in\langle Z_{1},Z_{2},\ldots,Z_{n}\rangle. Table 1(a) shows the contribution to the logical fidelity that is eliminated by RC. Each of the four rows in the table is associated with a χ\chi-matrix element of a particular form, labelled by γi\gamma_{i} for 1i41\leq i\leq 4.

EE EE^{\prime} Condition on EE and EE^{\prime} χE,E\chi_{E,E^{\prime}}
I7I^{\otimes 7} SS S𝒮\{𝕀}S\in\mathcal{S}\thinspace\backslash\thinspace\{\mathbb{I}\} cos10(ω/2)sin4(ω/2)\cos^{10}(\omega/2)\sin^{4}(\omega/2) = γ1\gamma_{1}
ZiZ_{i} ZiSZ_{i}S S𝒮\{𝕀}S\in\mathcal{S}\thinspace\backslash\thinspace\{\mathbb{I}\} , 1i71\leq i\leq 7 cos8(ω/2)sin4(ω/2)(3sin2(ω/2)4cos2(ω/2))\cos^{8}(\omega/2)\sin^{4}(\omega/2)\thickspace(3\sin^{2}(\omega/2)-4\cos^{2}(\omega/2)) = γ2\gamma_{2}
SS SS^{\prime} S,S𝒮\{𝕀}S,S^{\prime}\in\mathcal{S}\thinspace\backslash\thinspace\{\mathbb{I}\} , SSS\neq S^{\prime} cos6(ω/2)sin8(ω/2)\cos^{6}(\omega/2)\sin^{8}(\omega/2) = γ3\gamma_{3}
ZiSZ_{i}S ZiSZ_{i}S^{\prime} S,S𝒮\{𝕀}S,S^{\prime}\in\mathcal{S}\thinspace\backslash\thinspace\{\mathbb{I}\} , SSS\neq S^{\prime} , 1i71\leq i\leq 7 6cos8(ω/2)sin6(ω/2)12cos6(ω/2)sin8(ω/2)6\cos^{8}(\omega/2)\sin^{6}(\omega/2)-12\cos^{6}(\omega/2)\sin^{8}(\omega/2) +3cos4(ω/2)sin10(ω/2)+3\cos^{4}(\omega/2)\sin^{10}(\omega/2) = γ4\gamma_{4}
(a)
EE EE^{\prime} Condition on EE and EE^{\prime} χE,E\chi_{E,E^{\prime}}
I7I^{\otimes 7} I7I^{\otimes 7} cos14(ω/2)\cos^{14}(\omega/2) = κ1\kappa_{1}
SS SS S𝒮\{𝕀}S\in\mathcal{S}\thinspace\backslash\thinspace\{\mathbb{I}\} cos6(ω/2)sin8(ω/2)\cos^{6}(\omega/2)\sin^{8}(\omega/2) = κ2\kappa_{2}
ZiZ_{i} ZiZ_{i} 1i71\leq i\leq 7 cos12(ω/2)sin2(ω/2)\cos^{12}(\omega/2)\sin^{2}(\omega/2) = κ3\kappa_{3}
ZiSZ_{i}S ZiSZ_{i}S S𝒮\{𝕀}S\in\mathcal{S}\thinspace\backslash\thinspace\{\mathbb{I}\}, 1i71\leq i\leq 7 4cos8(ω/2)sin6(ω/2)+3cos4(ω/2)sin10(ω/2)4\cos^{8}(\omega/2)\sin^{6}(\omega/2)+3\cos^{4}(\omega/2)\sin^{10}(\omega/2) = κ4\kappa_{4}
(b)
Table 1: The above table describes the contribution to logical fidelity from different types of elements of the physical channel. While table 1(b) describes the contribution to the logical infidelity from the diagonal (Pauli) terms, table 1(a) specifies that from the off-diagonal terms in the physical channel. In each of the tables, the total contribution to logical infidelity is divided into four categories: (i) labelled γ1,γ2,γ3\gamma_{1},\gamma_{2},\gamma_{3} and γ4\gamma_{4} for the off-diagonal terms and (ii) κ1,κ2,κ3\kappa_{1},\kappa_{2},\kappa_{3} and κ4\kappa_{4} for the diagonal terms.

Table 1(b) provides all the ingredients necessary to compute the logical infidelity of the Steane code under the RC setting:

r(T¯1)\displaystyle r(\overline{\mathcal{E}^{T}}_{1}) =1(κ1+7κ2+7κ3+7κ4),\displaystyle=1-(\kappa_{1}+7\kappa_{2}+7\kappa_{3}+7\kappa_{4})\thickspace, (21)
=1512(256231cos(ω)49cos(3ω)+21cos(5ω)+3cos(7ω)).\displaystyle=\frac{1}{512}(256-231\cos(\omega)-49\cos(3\omega)+21\cos(5\omega)+3\cos(7\omega))\thickspace. (22)

Note that the coefficient appearing alongside each ϕi\phi_{i} in eq. 21 corresponds to its multiplicity, i.e., the number of combinations of errors E,EE,E^{\prime} that result in the same value of ϕi\phi_{i}. In the absence of RC, the logical infidelity can be calculated using both tables 1(a) and 1(b):

r(¯1)\displaystyle r(\overline{\mathcal{E}}_{1}) =1(κ1+7κ2+7κ3+7κ4+14γ1+14γ2+42γ3+14γ4),\displaystyle=1-(\kappa_{1}+7\kappa_{2}+7\kappa_{3}+7\kappa_{4}+14\gamma_{1}+14\gamma_{2}+42\gamma_{3}+14\gamma_{4})\thickspace,
=164(3221cos(ω)14cos(3ω)+3cos(7ω)).\displaystyle=\frac{1}{64}(32-21\cos(\omega)-14\cos(3\omega)+3\cos(7\omega))\thickspace. (23)

The above expressions describe the logical infidelities for level1-1 concatenated Steane code in the RC and non-RC settings. The gain δ1\delta_{1} can be calculated as the ratio of the above quantities. The appendix section B discusses the recursion to compute the average logical channel for level-\ell concatenated Steane code followed by the computation of the different metrics at level-\ell.

Appendix B Logical channel for the concatenated Steane code

In this appendix section, we will describe the computation of the average logical channel for the level-\ell concatenated Steane code under rotations about the ZZ-axis described in section IV. Ideally, we would like to take an exact average over conditional channels corresponding to all possible syndromes of the level-\ell concatenated Steane code. However, the number of syndromes and hence the number of conditional channels grow exponentially with the number of physical qubits and the analysis becomes intractable beyond a few levels. Instead, in this section we compute an approximation wherein we recurse over the individual entries of the level1-1 logical channel to arrive at the level-\ell logical channel. We will achieve this in two broad steps:

  1. 1.

    Computation of level1-1 logical channel.

  2. 2.

    Establish a recursion to compute level(+1)-(\ell+1) from level-\ell logical channel.

For a given noise process \mathcal{E}, we refer to its χ\chi-matrix as χ()\chi(\mathcal{E}) and the corresponding logical χ\chi-matrix as χ(¯1)\chi(\overline{\mathcal{E}}_{1}). The following equation prescribes a way to calculate the entries of χ(¯)\chi(\overline{\mathcal{E}}) from χ(){\chi}(\mathcal{E}) [15].

χ(¯1)l,m=E,ECs(E)=s(E),E¯=E¯ϕ(E,l)ϕ(E,m)χEP¯l,P¯mE.\displaystyle\chi(\overline{\mathcal{E}}_{1})_{l,m}=\sum_{\begin{subarray}{c}E,E^{\prime}\in\mathcal{E}_{C}\\ s(E)=s(E^{\prime})\thinspace,\thinspace\overline{E}=\overline{E}^{\prime}\end{subarray}}\phi(E,l)\thickspace\phi^{\star}(E^{\prime},m)\thickspace\chi_{E\overline{P}_{l},\overline{P}_{m}E^{\prime}}\thickspace. (24)

where C\mathcal{E}_{C} refers to the set of correctable errors, P¯i\overline{P}_{i} denotes the logical version of Pauli PiP_{i}, and Rs(E)|EP¯l|=ϕ(E,l)S|P¯l|R_{s(E)}\thickspace|E\thickspace\overline{P}_{l}|=\phi(E,l)\thickspace S\thickspace|\overline{P}_{l}|, for l{0,1,2,3}l\in\{0,1,2,3\}, any Pauli error EE and some stabilizer SS. Here |P||P| stands for the bare Pauli without any associated global phase. Note that, since the error model is a rotation about the ZZ-axis, we have C={SjZi: 1in,Sj𝒮Z}\mathcal{E}_{C}=\langle\{S_{j}Z_{i}\thinspace:\thinspace 1\leq i\leq n\thinspace,\thinspace S_{j}\in\mathcal{S}_{Z}\}\rangle. Here ZiZ_{i} refers to a single qubit ZZ error on qubit ii and 𝒮Z=ZZZZIII,ZZIIZZI,ZIZIZIZ\mathcal{S}_{Z}=\langle ZZZZIII,ZZIIZZI,ZIZIZIZ\rangle.

It is easy to see that the average logical channel for the level-\ell concatenated Steane code χ(¯)\chi(\overline{\mathcal{E}}_{\ell}) takes the form [22]:

χ(¯)=([χ(¯)]0,000[χ(¯)]0,300000000([χ(¯)]0,3)001[χ(¯)]0,0),\chi(\overline{\mathcal{E}}_{\ell})=\begin{pmatrix}&[\chi(\overline{\mathcal{E}}_{\ell})]_{0,0}&0&0&[\chi(\overline{\mathcal{E}}_{\ell})]_{0,3}\\ &0&0&0&0\\ &0&0&0&0\\ &([\chi(\overline{\mathcal{E}}_{\ell})]_{0,3})^{*}&0&0&1-[\chi(\overline{\mathcal{E}}_{\ell})]_{0,0}\end{pmatrix}, (25)

where ([χ(¯)]0,3)([\chi(\overline{\mathcal{E}}_{\ell})]_{0,3})^{*} denotes the complex conjugate of [χ(¯)]0,3[\chi(\overline{\mathcal{E}}_{\ell})]_{0,3}.

First, we compute the entries for the level1-1 matrix χ(¯1)\chi(\overline{\mathcal{E}}_{1}). Using Table 1(a), we have

[χ(¯1)]0,0\displaystyle[\chi(\overline{\mathcal{E}}_{1})]_{0,0} =κ1+7i=13ϕi+28χ3+14j=14χj,\displaystyle=\kappa_{1}+7\sum_{i=1}^{3}\phi_{i}+28\thickspace\chi_{3}+14\sum_{j=1}^{4}\chi_{j}\thickspace,
=164(21cos(ω)+14cos(3ω)3cos(7ω)+32).\displaystyle=\frac{1}{64}(21\cos(\omega)+14\cos(3\omega)-3\cos(7\omega)+32)\thickspace. (26)
EE Z¯E\overline{Z}E^{\prime} Condition on EE and EE^{\prime} χE,Z¯E\chi_{E,\overline{Z}E^{\prime}}
I7I^{\otimes 7} Z¯\overline{Z} isin7(ω/2)cos7(ω/2)i\sin^{7}(\omega/2)\cos^{7}(\omega/2) = ζ1\zeta_{1}
I7I^{\otimes 7} Z¯S\overline{Z}S S𝒮Z\{𝕀}S\in\mathcal{S}_{Z}\thinspace\backslash\thinspace\{\mathbb{I}\} isin3(ω/2)cos11(ω/2)i\sin^{3}(\omega/2)\cos^{11}(\omega/2) = ζ2\zeta_{2}
SS Z¯\overline{Z} S𝒮Z\{𝕀}S\in\mathcal{S}_{Z}\thinspace\backslash\thinspace\{\mathbb{I}\} isin11(ω/2)cos3(ω/2)i\sin^{11}(\omega/2)\cos^{3}(\omega/2) = ζ3\zeta_{3}
SS Z¯S\overline{Z}S^{\prime} S,S𝒮Z\{𝕀}S,S^{\prime}\in\mathcal{S}_{Z}\thinspace\backslash\thinspace\{\mathbb{I}\} , SSS\neq S^{\prime} isin7(ω/2)cos7(ω/2)i\sin^{7}(\omega/2)\cos^{7}(\omega/2) = ζ4\zeta_{4}
ZiZ_{i} Z¯Zi\overline{Z}Z_{i} 1i71\leq i\leq 7 isin7(ω/2)cos7(ω/2)-i\sin^{7}(\omega/2)\cos^{7}(\omega/2) = ζ5\zeta_{5}
ZiZ_{i} Z¯ZiS\overline{Z}Z_{i}S S𝒮Z\{𝕀}S\in\mathcal{S}_{Z}\thinspace\backslash\thinspace\{\mathbb{I}\}, 1i71\leq i\leq 7 4isin5(ω/2)cos9(ω/2)3isin3(ω/2)cos11(ω/2)4i\sin^{5}(\omega/2)\cos^{9}(\omega/2)-3i\sin^{3}(\omega/2)\cos^{11}(\omega/2) = ζ6\zeta_{6}
ZiSZ_{i}S Z¯Zi\overline{Z}Z_{i} S𝒮Z\{𝕀}S\in\mathcal{S}_{Z}\thinspace\backslash\thinspace\{\mathbb{I}\}, 1i71\leq i\leq 7 4isin9(ω/2)cos5(ω/2)3isin11(ω/2)cos3(ω/2)4i\sin^{9}(\omega/2)\cos^{5}(\omega/2)-3i\sin^{11}(\omega/2)\cos^{3}(\omega/2) = ζ7\zeta_{7}
ZiSZ_{i}S Z¯ZiS\overline{Z}Z_{i}S^{\prime} S,S𝒮Z\{𝕀}S,S^{\prime}\in\mathcal{S}_{Z}\thinspace\backslash\thinspace\{\mathbb{I}\} , SSS\neq S^{\prime}, 1i71\leq i\leq 7 12isin5(ω/2)cos9(ω/2)25isin7(ω/2)cos7(ω/2)12i\sin^{5}(\omega/2)\cos^{9}(\omega/2)-25i\sin^{7}(\omega/2)\cos^{7}(\omega/2) +12isin9(ω/2)cos5(ω/2)+12i\sin^{9}(\omega/2)\cos^{5}(\omega/2) = ζ8\zeta_{8}
Table 2: The above table describes the contribution to χ¯0,3()\overline{\chi}_{0,3}(\mathcal{E}) from different types of elements of the physical channel. Note that none of these contributions come from the diagonal part of χ()\chi(\mathcal{E}).

Table 2 provides all the ingredients necessary to compute [χ(¯1)]0,3[\chi(\overline{\mathcal{E}}_{1})]_{0,3}. Taking into account the multiplicities of terms of each kind, we have

[χ(¯1)]0,3\displaystyle[\chi(\overline{\mathcal{E}}_{1})]_{0,3} =ζ1+42ζ4+7i=28ζi,\displaystyle=\zeta_{1}+42\thickspace\zeta_{4}+7\sum_{i=2}^{8}\zeta_{i}\thickspace, (27)
=18isin3(ω)(9cos(2ω)+3cos(4ω)+2).\displaystyle=-\frac{1}{8}i\sin^{3}(\omega)(9\cos(2\omega)+3\cos(4\omega)+2)\thickspace. (28)

In the second step, we establish a recursion to compute the individual entries of χ(¯)\chi(\overline{\mathcal{E}}_{\ell}) from the entries of χ¯1()\overline{\chi}_{\ell-1}(\mathcal{E}) under hard-decoding algorithm. After massaging the expressions in equations 26 and 28, we observe that

[χ(¯+1)]0,0\displaystyle[\chi(\overline{\mathcal{E}}_{\ell+1})]_{0,0} =f0,0([χ(¯)]0,0),and\displaystyle=f_{0,0}([\chi(\overline{\mathcal{E}}_{\ell})]_{0,0}),\text{and} (29)
[χ(¯+1)]0,3\displaystyle[\chi(\overline{\mathcal{E}}_{\ell+1})]_{0,3} =f0,3([χ(¯)]0,3),\displaystyle=f_{0,3}([\chi(\overline{\mathcal{E}}_{\ell})]_{0,3}), (30)

where

f0,0(z)\displaystyle f_{0,0}(z) =z2(63434z+1260z21848z3+1344z4384z5),and\displaystyle=z^{2}(63-434z+1260z^{2}-1848z^{3}+1344z^{4}-384z^{5}),\text{and}
f0,3(z)\displaystyle f_{0,3}(z) =2z3(7+84z2+192z4).\displaystyle=-2z^{3}(7+84z^{2}+192z^{4}). (31)

Combining the above two steps, we compute all the entries of [χ(¯+1)][\chi(\overline{\mathcal{E}}_{\ell+1})].

For small rotation angle ω\omega, we observe from equations 26 and 31 that upto leading order

[χ(¯)]0,0\displaystyle[\chi(\overline{\mathcal{E}}_{\ell})]_{0,0} 16321(ω/2)2+1,and\displaystyle\approx 1-63^{2^{\ell}-1}\thickspace(\omega/2)^{2^{\ell+1}},\text{and}
[χ(¯)]0,3\displaystyle[\chi(\overline{\mathcal{E}}_{\ell})]_{0,3} i14312(ω/2)3.\displaystyle\approx-i14^{\frac{3^{\ell}-1}{2}}\thickspace(\omega/2)^{3^{\ell}}. (32)

Note that with increase in number of levels \ell, for small angle ω\omega, [χ(¯)]0,01[\chi(\overline{\mathcal{E}}_{\ell})]_{0,0}\rightarrow 1 and [χ(¯)]0,30[\chi(\overline{\mathcal{E}}_{\ell})]_{0,3}\rightarrow 0. This is expected because for small angles, the channel is close to the identity channel and the error correction procedures is able to correct all the errors. Also, note that the off diagonal entry approaches 0 faster than the diagonal entry approaches 11. This is a consequence of the process of error correction decohering the physical channel [11].

Now, we compute the logical χ\chi-matrix corresponding to the noise process under RC i.e. χ(T¯)\chi(\overline{\mathcal{E}^{T}}_{\ell}). The matrix in this case takes the form:

χ(T¯)=([χ(T¯)]0,0000000000000001[χ(T¯)]0,0).\displaystyle\chi(\overline{\mathcal{E}^{T}}_{\ell})=\begin{pmatrix}&[\chi(\overline{\mathcal{E}^{T}}_{\ell})]_{0,0}&0&0&0\\ &0&0&0&0\\ &0&0&0&0\\ &0&0&0&1-[\chi(\overline{\mathcal{E}^{T}}_{\ell})]_{0,0}\end{pmatrix}. (33)

Similar to the nonRC case, we first compute the entries for the level1-1 matrix χ(T¯1)\chi(\overline{\mathcal{E}^{T}}_{1}). Using the ingredients from table 1(b), we have

[χ(T¯1)]0,0=1512(256+231cos(ω)+49cos(3ω)21cos(5ω)3cos(7ω)).\displaystyle[\chi(\overline{\mathcal{E}^{T}}_{1})]_{0,0}=\frac{1}{512}(256+231\cos(\omega)+49\cos(3\omega)-21\cos(5\omega)-3\cos(7\omega))\thickspace.

The recursive relation to calculate the above quantity for higher levels is given by:

[χ(T¯+1)]0,0=g0,0([χ(T¯)]0,0),\displaystyle[\chi(\overline{\mathcal{E}^{T}}_{\ell+1})]_{0,0}=g_{0,0}([\chi(\overline{\mathcal{E}^{T}}_{\ell})]_{0,0})\thickspace,

where

g0,0(z)=z2(2198z+210z2252z3+168z448z5).\displaystyle g_{0,0}(z)=z^{2}(21-98z+210z^{2}-252z^{3}+168z^{4}-48z^{5})\thickspace.

For small rotation angle ω\omega, upto leading order

[χ(T¯)]0,012121(ω/2)2+1.\displaystyle[\chi(\overline{\mathcal{E}^{T}}_{\ell})]_{0,0}\approx 1-21^{2^{\ell}-1}\thickspace(\omega/2)^{2^{\ell+1}}\thickspace.

The above expression indicates that [χ(T¯)]0,01[\chi(\overline{\mathcal{E}^{T}}_{\ell})]_{0,0}\rightarrow 1 with increase in number of concatenation levels \ell provided the angle of rotation is below the threshold.

Having arrived at an expression for the average logical channel for a level-\ell concatenated code, we can now define the logical error rate using the infidelity and diamond distance metrics. The logical infidelity takes the simple closed form:

r¯=1[χ(¯)]0,0.\displaystyle\overline{r}_{\ell}=1-[\chi(\overline{\mathcal{E}}_{\ell})]_{0,0}\thickspace.

Appendix C Numerical results for complex noise models

In this appendix section, we will present numerical studies of the performance of concatenated Steane codes under two distinct models of general Markovian noise. The results are presented as scatter plots formatted as follows. Each point is associated to the performance of a physical noise process. While the XX- coordinate is used to denote the physical error rate, its YY-coordinate denotes the ratio between the performance in the non-RC setting and the RC setting, measured by δ\delta_{\ell} in eq. 5. Note that RC can either improve or degrade the code’s performance. We have used a dashed line at δ=1\delta_{\ell}=1 to identify the breakeven region where RC has no impact on the performance. Points that lie below the dashed line, coloured in red, identify physical channels where a degradation in performance is observed. On the other hand, points in green that lie above the dashed line identify physical channels where RC provides a performance gain. The points in grey, that lie close to the dashed line should be ignored since they correspond to cases where the relative difference between the logical error rates for the non-RC and RC cases is negligible: less than 10%10\%.

The first complex error model is a unitary model where each qubit experiences a different random rotation about an arbitrary non-Pauli axis n^\hat{n}, specified by UU of the form

U=eiπ2δn^σ,\displaystyle U=e^{-i\frac{\pi}{2}\delta\hat{n}\cdot\vec{\sigma}}, (34)

where δ\delta is the angle of rotation. Hence, the nn-qubit unitary errors in our model are of the form i=1nUi\otimes_{i=1}^{n}U_{i}, where UiU_{i} in prescribed by eq. 34. We control the noise strength by setting the rotation angles δi\delta_{i} drawn from the normal distribution: 𝒩(μδ,μδ)\mathcal{N}(\mu_{\delta},\mu_{\delta}), where 103μδ10110^{-3}\leq\mu_{\delta}\leq 10^{-1}. Fig. 6 shows the performance gain metric under this error model. It demonstrates that there exist some instances where RC provides a performance gain of 1010x, as well as others where RC causes a performance degradation of 1010x.

Refer to caption
(a)
Refer to caption
(b)
Figure 6: The above figures highlight the strong dependence of the impact of RC on the details of the physical noise process, for concatenated Steane codes. The ensemble of noise processes considered here comprises of 1600016000 samples of unitary rotations about a fixed random axis. Red and green points are used to identify physical noise processes that lead to a performance gain and a performance loss, respectively, in the presence of RC. The magnitude of performance gains and losses are measured by the ratio of logical error rates in the non-RC and RC settings, i.e., δ1\delta_{1} for level-1 concatenated Steane code in fig. 6(a), and δ2\delta_{2} for level-2 in fig. 6(b).

The second error model is described by the i.i.d action of a random single qubit CPTP map, on each of the physical qubits of the code. The random CPTP map on a single qubit is derived from unitary dynamics UU on a Hilbert space of three qubits [15]. The unitary matrix UU is generated form a random Hermitian matrix HH using U=eiHtU=e^{-iHt}, where 0t10\leq t\leq 1 provides a handle on the strength of noise described by the resulting CPTP map. We vary the noise strength by controlling tt in the range [0.001,0.1][0.001,0.1]. Figure 7 shows RC’s impact on the performance of concatenated Steane codes under physical CPTP maps. The absence of a clear trend showing a performance gain or degradation is evident for level-2 in fig. 7(b). Even across physical CPTP maps with similar fidelity, while for one instance, RC induces a performance gain of up to three orders of magnitude, for another, it inflicts a loss in performance of similar magnitude.

Refer to caption
(a)
Refer to caption
(b)
Figure 7: The above figures highlight the strong dependence of the impact of RC on the details of the physical noise process, for concatenated Steane codes. The ensemble of noise processes considered here comprises of 1800018000 random CPTP maps. Red and green points are used to identify physical noise processes that lead to a performance gain and a performance loss, respectively, in the presence of RC. The magnitude of performance gains and losses are measured by the ratio of logical error rates in the non-RC and RC settings, i.e., δ1\delta_{1} for level-1 concatenated Steane code in fig. 7(a), and δ2\delta_{2} for level-2 in fig. 7(b).

The case of level-1 performance under physical CPTP maps in fig. 7(a) is rather different from the level-2 case in 7(b). Over the large ensemble of 1800018000 physical CPTP maps, we observe that RC always leads to performance gains for the level-1 Steane code. These performance gains can be explained as follows. First of all, a CPTP map can be well approximated by its leading Kraus operator KK, which is derived from the largest eigenvector of its Choi matrix [20]. Furthermore, in an i.i.d physical error model, KK can be expressed as a tensor product. In terms of KK, the leading contributions to infidelity come from chi-matrix entries χi,j\chi_{i,j} expressed as:

χi,j=𝗍𝗋(KPi)𝗍𝗋(KPj),\displaystyle\chi_{i,j}=\mathsf{tr}(KP_{i})\mathsf{tr}(K^{\dagger}P_{j})\thickspace, (35)

where PiP_{i} is a single qubit of one type (X, Y or Z), and Pj=PiSP_{j}=P_{i}S for some stabilizer SS, is a three-qubit error of the same type as PiP_{i}. In the low noise regime, the off-diagonal entries of KK are small, especially for incoherent CPTP maps, where KK is close to a Positive sem-definite matrix [20]. Using the fact that the trace inner product between KK and the Pauli matrix ZZ is a real number dd given by d=K1,1K2,2d=K_{1,1}-K_{2,2}, we can conclude that χi,j\chi_{i,j} in eq. 35 for ZZ-type errors PiP_{i} and PjP_{j} of weights 1 and 3 respectively, is always positive. In other words, the χi,jd4\chi_{i,j}\sim d^{4} for some d1d\ll 1. Removing such terms should degrade the performance of the code. On the contrary, removal of χi,j\chi_{i,j} for uncorrectable errors Pi,PjP_{i},P_{j} leads to performance gains. The largest of these chi-matrix entries can be identified with two ZZ-type Pauli errors Pi,PjP_{i},P_{j}, each having weight two. This property can be associated with the fact that the Steane code is degenerate: there exists a logical operator whose weight is smaller than that of a stabilizer. Repeating a similar analysis as before, we find that the corresponding χi,j\chi_{i,j} for these uncorrectable errors, also scale as d4d^{4} for some d1d\ll 1. Their removal leads to performance gains. Note that there are more uncorrectable errors than correctable ones and the corresponding chi-matrix elements have comparable magnitudes. Hence, we find that RC is more likely to induce performance gains. Note that higher concatenation levels of the Steane code do not correspond to degenerate codes. Hence, we cannot guarantee a performance gain or degradation in those cases, as shown in fig. 7(b)

Appendix D Applying RC in a Fault tolerance scheme

Randomized compiling [1] is a technique that tailors a general Markovian noise process into an effective Pauli noise process. In this appendix section, we will briefly review how we can apply randomized compiling in a fault-tolerant setting. This procedure was first described in Ref. [2].

In fault tolerant circuits, each logical gate G¯\overline{G} is sandwiched between quantum error correction (𝖰𝖤𝖢\mathsf{QEC}) routines. Similar to Ref. [1], we divide logical gates into two sets: 𝒮1\mathcal{S}_{1} and 𝒮2\mathcal{S}_{2}, calling them easy and hard gates respectively. A requirement for 𝒮1\mathcal{S}_{1} and 𝒮2\mathcal{S}_{2} is

G¯TG¯𝖰𝖤𝖢=𝖰𝖤𝖢(T)C¯\displaystyle\overline{G}~{}T~{}\overline{G}^{\dagger}~{}\mathsf{QEC}=\mathsf{QEC}(T)~{}\overline{C}\thickspace (36)

for all easy logical gates C¯𝒮1\overline{C}\in\mathcal{S}_{1}, nn-qubit Pauli gates TT and hard gates G¯\overline{G}. Here 𝖰𝖤𝖢(T)\mathsf{QEC}(T) refers to the compilation of the Pauli gate TT in the 𝖰𝖤𝖢\mathsf{QEC} routine. The above requirement can be proven to be true using results from standard randomized compiling [2].

Figure 8(a) shows a canonical presentation of a quantum circuit, where the kk-th clock cycle is composed of an easy gate C¯k\overline{C}_{k} and a hard gate G¯k\overline{G}_{k}, sandwiched between 𝖰𝖤𝖢\mathsf{QEC} routines. Noise processes affecting easy and hard gates are denoted by 1,k\mathcal{E}_{1,k} and 2,k\mathcal{E}_{2,k} respectively. These complex processes can be tailored to Pauli errors by inserting Pauli gates T1,k,T1,k,T2,k,T2,kT_{1,k},T^{{\dagger}}_{1,k},T_{2,k},T^{{\dagger}}_{2,k} as shown in fig. 8(b). However, to guarantee that they be applied in a noiseless fashion, we compile them into the existing gates in the fault tolerant circuit. This is achieved as follows. First T1,kT^{\dagger}_{1,k} and T2,kT_{2,k} are compiled into 𝖰𝖤𝖢\mathsf{QEC} following 1,k\mathcal{E}_{1,k}, resulting in 𝖰𝖤𝖢(T1,kT2,k)\mathsf{QEC}(T^{\dagger}_{1,k}T_{2,k}). Secondly, T2,kT^{\dagger}_{2,k} is propagated across G¯k\overline{G}_{k}, and compiled with 𝖰𝖤𝖢C¯k+1Tk+1\mathsf{QEC}~{}\overline{C}_{k+1}T_{k+1}, resulting in a dressed gate Ck+1D¯\overline{C^{D}_{k+1}} defined by

Ck+1D¯=G¯kTkG¯k𝖰𝖤𝖢C¯k+1Tk+1.\displaystyle\overline{C^{D}_{k+1}}=\overline{G}_{k}~{}T_{k}~{}\overline{G}_{k}^{\dagger}\thickspace\mathsf{QEC}\thickspace\overline{C}_{k+1}\thickspace T_{k+1}. (37)

Using eq. 36, it is easy to see that Ck+1D¯\overline{C^{D}_{k+1}} is equivalent to quantum error correction followed by an easy gate.

Figure 8(c) shows the result of compiling all of the twirling gates into the easy gates and quantum error correction routines. Note that the compiled circuit is logically equivalent to the original circuit in the absence of noise. However, in the presence of noise, the average output of the circuit is dictated by the performance of 𝖰𝖤𝖢(T)\mathsf{QEC}(T) averaged over the different choices of Pauli gates TT. This is what we refer to as 𝖰𝖤𝖢\mathsf{QEC} in the RC setting. In practice, this average performance can be achieved by repeating every iteration (shot) of the algorithm with a different Pauli operation compiled into the constituent 𝖰𝖤𝖢\mathsf{QEC} routines. In this paper, we have used the performance of the 𝖰𝖤𝖢\mathsf{QEC} routine under the twirled noise process as a proxy to the performance of 𝖰𝖤𝖢\mathsf{QEC} in the RC setting, for the analytical and numerical studies.

Refer to caption
(a)
Refer to caption
(b)
Refer to caption
(c)
Figure 8: Figure 8(a) shows the noisy gates in the kk-th clock cycle of a fault tolerant quantum algorithm presented in the standard form prescribed in Ref. [1]. Twirling gates are inserted in fig. 8(b) to tailor the noise processes to Pauli errors. These gates are compiled into existing gates by replacing easy gates by their dressed versions, in fig. 8(c). The compiled circuit contains modified 𝖰𝖤𝖢\mathsf{QEC} routines with the twirling operators compiled into them.