Improved quantum error correction with randomized compiling
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 -representation [3] of a physical noise process. In this representation, the action of noise on a quantum state is given by: where denote Pauli matrices in the qubit Pauli group without phases, i.e., . Noise tailoring methods such as RC can transform the elements of the -matrix, for example by removing off-diagonal elements . This mathematical transformation is commonly referred to as twirling [4, 5, 6]. If one were to remove the contribution of 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 . One of the common ways to represent a CPTP map is using the -matrix: , a matrix where: , where 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., , where can be interpreted as the probability of the Pauli error .
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 , denoted by defined as
(1) |
We will use the notation to denote the Pauli Twirl of the CPTP map : .
II.2 Quantum Error Correction
An stabilizer code is a dimensional space defined as: , where 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 using the code at level . 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 . We will use the notation 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 refers to the effective channel for a level concatenated code. A particularly useful quantity is the average of logical channels over all syndrome outcomes, denoted by :
(2) |
where is the probability of observing the outcome [15, 7, 16]. The average logical channel indicates how quantum error correction suppresses the effect of physical errors, on average. We will use logical infidelity [15, 10] as a measure of the logical error rate.
The average logical infidelity for a code under a noise process is calculated using the following equation: [2]
(3) |
where represents the entry of the matrix of , is the set of correctable errors, is the logical component in the decomposition of with respect to the Stabilizer group and is specified by for any Pauli error and some stabilizer . We use this expression at various points to calculate the logical infidelity. To calculate the entries of the matrix of the effective logical channel we use the following general expression: [2]
(4) |
where , for , any Pauli error and some stabilizer . Here stands for the bare Pauli without any associated global phase.
We calculate the matrix for logical channels at higher levels i.e, for by recursing the expression in Eq.(4) and using the entries of in the right hand side to evaluate .
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 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, , 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 . Note that the number of random compilations for a circuit with elements grows as . In the ideal case, where we have considered all of these compilations in , it reduces to .
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 can be recursively defined in as a function whose input physical channels are the logical channels at level. We will use the notation and to denote the logical channels of a level concatenated code without RC and with RC, respectively. Their ratio, denoted by , where
(5) |
is an indicator of the performance gain due to RC, which we will estimate for various error models. Note that indicates a performance gain whereas 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 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 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 axis is specified by where
(6) |
Applying the rotation independently across all the physical qubits of the Steane code, is specified by the map
(7) |
The performance of the Steane code under the above error model, can be inferred from Eq. (3), where the correctable errors can be defined with respect to the minimum weight decoder. Explicitly enumerating all correctable errors, we find that there are correctable errors of weight at most one, and two-qubit ones. Since we are confined to rotations about the axes, we can limit ourselves to the correctable errors of type. Reserving the details of our derivation to Appendix A, we find
(8) |
In comparison, the logical infidelity for quantum error correction with randomized compiling is
(9) |
Finally, the performance gain from RC quantified using the metric defined in eq. 5 can now be estimated as
(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 concatenated Steane code for . The details of this procedure can be found in Appendix B. The approximate logical channel allows us to estimate the performance of level 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 , the average infidelity of the logical channel scales as
(11) |
Subsequently, the scaling of gain with the levels of concatenation is given by
(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 is approximately a linear function of . Note that the above analysis is accurate for small rotation angles.
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 . 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 below which arbitrary gains from RC can be achieved by increasing the size of the code (levels of concatenation). On the contrary, for rotations , 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 axis, extends to the general case.
IV.2 Rotation about an arbitrary axis
While the above analysis considered coherent error models described by rotations about the 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 , i.e., . The following parameterization for [19] is useful for our analysis:
(13) |
where and define the axis (in polar angles) about which each qubit is rotated, and gives the magnitude of the rotation. For example, can be identified with rotations about the axis. The performance gain from RC can be defined following Eq. 10, as a function of the parameters . The average gain for an unknown axis is computed as
(14) |
for . Likewise, for concatenated codes, denotes the average gain in performance for level . This is similar to the conclusion drawn for the case of rotations about the 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 or axes.
Using the general techniques developed in the appendix to approximate the effective logical channel of a level concatenated code, we can estimate the gains in average performance due to RC over the various rotation axes. Similar to the case of rotations, Fig. 3 suggests the presence of a threshold wherein for rotation angles the gains can be arbitrarily increased by choosing codes of larger distance, whereas the trend reverses for .
Note that threshold angle for rotations about an unknown axis is higher the threshold for rotations about the axes, i.e., . 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 and type errors. Whereas, in the case of a fixed Pauli axis, we only have errors of one type (either or ). 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 , the largest gains from RC are achieved for rotations axes that lie between the and axes as opposed to the individual Pauli axes.
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.,
(15) |
where
(16) |
and 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 . This expectation is supported by the numerical simulations presented in Fig. 5, where we present numerical estimates of for several depolarizing strengths . Here, is defined analogous to Eq. (14) as
(17) |
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 4, 10.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 axis, i.e. where
(18) |
Recall that the Steane code is a quantum code with , whose encoded states are fixed by the Stabilizer group generated by generators:
(19) |
The effect of the unitary noise in eq. 6 on each of the qubits in the encoded state can be written as
(20) |
where is the Hamming weight of the binary sequence .
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 type errors, it suffices to consider the effect of correctable errors and that are purely type, besides the identity. In other words, . 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 matrix element of a particular form, labelled by for .
Condition on and | ||||
= | ||||
, | = | |||
, | = | |||
, , | = |
Condition on and | ||||
= | ||||
= | ||||
= | ||||
, | = |
Table 1(b) provides all the ingredients necessary to compute the logical infidelity of the Steane code under the RC setting:
(21) | ||||
(22) |
Note that the coefficient appearing alongside each in eq. 21 corresponds to its multiplicity, i.e., the number of combinations of errors that result in the same value of . In the absence of RC, the logical infidelity can be calculated using both tables 1(a) and 1(b):
(23) |
The above expressions describe the logical infidelities for level concatenated Steane code in the RC and non-RC settings. The gain 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 concatenated Steane code followed by the computation of the different metrics at level.
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 concatenated Steane code under rotations about the 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 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 level logical channel to arrive at the level logical channel. We will achieve this in two broad steps:
-
1.
Computation of level logical channel.
-
2.
Establish a recursion to compute level from level logical channel.
For a given noise process , we refer to its matrix as and the corresponding logical matrix as . The following equation prescribes a way to calculate the entries of from [15].
(24) |
where refers to the set of correctable errors, denotes the logical version of Pauli , and , for , any Pauli error and some stabilizer . Here stands for the bare Pauli without any associated global phase. Note that, since the error model is a rotation about the axis, we have . Here refers to a single qubit error on qubit and .
It is easy to see that the average logical channel for the level concatenated Steane code takes the form [22]:
(25) |
where denotes the complex conjugate of .
First, we compute the entries for the level matrix . Using Table 1(a), we have
(26) |
Condition on and | ||||
= | ||||
= | ||||
= | ||||
, | = | |||
= | ||||
, | = | |||
, | = | |||
, , | = |
Table 2 provides all the ingredients necessary to compute . Taking into account the multiplicities of terms of each kind, we have
(27) | ||||
(28) |
In the second step, we establish a recursion to compute the individual entries of from the entries of under hard-decoding algorithm. After massaging the expressions in equations 26 and 28, we observe that
(29) | ||||
(30) |
where
(31) |
Combining the above two steps, we compute all the entries of .
For small rotation angle , we observe from equations 26 and 31 that upto leading order
(32) |
Note that with increase in number of levels , for small angle , and . 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 faster than the diagonal entry approaches . This is a consequence of the process of error correction decohering the physical channel [11].
Now, we compute the logical matrix corresponding to the noise process under RC i.e. . The matrix in this case takes the form:
(33) |
Similar to the nonRC case, we first compute the entries for the level matrix . Using the ingredients from table 1(b), we have
The recursive relation to calculate the above quantity for higher levels is given by:
where
For small rotation angle , upto leading order
The above expression indicates that with increase in number of concatenation levels provided the angle of rotation is below the threshold.
Having arrived at an expression for the average logical channel for a level 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:
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 coordinate is used to denote the physical error rate, its coordinate denotes the ratio between the performance in the non-RC setting and the RC setting, measured by in eq. 5. Note that RC can either improve or degrade the code’s performance. We have used a dashed line at 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 .
The first complex error model is a unitary model where each qubit experiences a different random rotation about an arbitrary non-Pauli axis , specified by of the form
(34) |
where is the angle of rotation. Hence, the qubit unitary errors in our model are of the form , where in prescribed by eq. 34. We control the noise strength by setting the rotation angles drawn from the normal distribution: , where . 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 x, as well as others where RC causes a performance degradation of x.


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 on a Hilbert space of three qubits [15]. The unitary matrix is generated form a random Hermitian matrix using , where provides a handle on the strength of noise described by the resulting CPTP map. We vary the noise strength by controlling in the range . 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.


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 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 , which is derived from the largest eigenvector of its Choi matrix [20]. Furthermore, in an i.i.d physical error model, can be expressed as a tensor product. In terms of , the leading contributions to infidelity come from chi-matrix entries expressed as:
(35) |
where is a single qubit of one type (X, Y or Z), and for some stabilizer , is a three-qubit error of the same type as . In the low noise regime, the off-diagonal entries of are small, especially for incoherent CPTP maps, where is close to a Positive sem-definite matrix [20]. Using the fact that the trace inner product between and the Pauli matrix is a real number given by , we can conclude that in eq. 35 for type errors and of weights 1 and 3 respectively, is always positive. In other words, the for some . Removing such terms should degrade the performance of the code. On the contrary, removal of for uncorrectable errors leads to performance gains. The largest of these chi-matrix entries can be identified with two type Pauli errors , 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 for these uncorrectable errors, also scale as for some . 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 is sandwiched between quantum error correction () routines. Similar to Ref. [1], we divide logical gates into two sets: and , calling them easy and hard gates respectively. A requirement for and is
(36) |
for all easy logical gates , qubit Pauli gates and hard gates . Here refers to the compilation of the Pauli gate in the 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 -th clock cycle is composed of an easy gate and a hard gate , sandwiched between routines. Noise processes affecting easy and hard gates are denoted by and respectively. These complex processes can be tailored to Pauli errors by inserting Pauli gates 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 and are compiled into following , resulting in . Secondly, is propagated across , and compiled with , resulting in a dressed gate defined by
(37) |
Using eq. 36, it is easy to see that 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 averaged over the different choices of Pauli gates . This is what we refer to as 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 routines. In this paper, we have used the performance of the routine under the twirled noise process as a proxy to the performance of in the RC setting, for the analytical and numerical studies.