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

Feed-Forward Probabilistic Error Cancellation with Noisy Recovery Gates

Leo Kurosawa
Xinwei Lee
Ningyi Xie
Jungpil Shin
Graduate School of Computer Science and Engineering
University of Aizu
Aizu-Wakamatsu, Fukushima, Japan
[email protected]
School of Computing and Information Systems
Singapore Management University
80 Stamford Rd, Singapore
[email protected]
Graduate School of Science and Technology
University of Tsukuba
Tsukuba, Ibaraki, Japan
[email protected]
School of Computer Science and Engineering
University of Aizu
Aizu-Wakamatsu, Fukushima, Japan
[email protected]
   Yoshiyuki Saito
Xinjian Yan
Dongsheng Cai
Nobuyoshi Asai
Graduate School of Computer Science and Engineering
University of Aizu
Aizu-Wakamatsu, Fukushima, Japan
[email protected]
Graduate School of Science and Technology
University of Tsukuba
Tsukuba, Ibaraki, Japan
[email protected]
Faculty of Engineering, Information and Systems
University of Tsukuba
Tsukuba, Ibaraki, Japan
[email protected]
School of Computer Science and Engineering
University of Aizu
Aizu-Wakamatsu, Fukushima, Japan
[email protected]
Abstract

Probabilistic Error Cancellation (PEC) aims to improve the accuracy of expectation values for observables. This is accomplished using the probabilistic insertion of recovery gates, which correspond to the inverse of errors. However, the inserted recovery gates also induce errors. Thus, it is difficult to obtain accurate expectation values with PEC since the estimator of PEC has a bias due to noise induced by recovery gates. To address this challenge, we propose an improved version of PEC that considers the noise resulting from gate insertion, called Feed-Forward PEC (FFPEC). FFPEC provides an unbiased estimator of expectation values by cancelling out the noise induced by recovery gates. We demonstrate that FFPEC yields more accurate expectation values compared to the conventional PEC method through analytical evaluations. Numerical experiments are used to evaluate analytical results.

Index Terms:
Quantum Error Mitigation, Probabilistic Error Cancellation, Quantum Algorithm

I Introduction

Fascinated by the possibilities of high-speed computing with quantum computers, many quantum algorithms have been proposed to tackle problems that require a lot of calculation time even in classical computers, such as quantum chemical calculations [1, 2] and combinatorial optimization problems [3, 4]. These algorithms require expectation values of some observables to obtain a solution. However, since a Noisy Intermediate-Scale Quantum (NISQ) computer [5] is not equipped with error correction systems for noises, the accuracy of an expectation value obtained from measurement outcomes of a quantum computer is inevitably degraded by the noises. To obtain a meaningful result from a NISQ computer, quantum error mitigation (QEM) techniques without additional qubits have been proposed to suppress the effects of noises [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19].

Probabilistic Error Cancellation (PEC) is one of the most well-known QEM techniques used to reduce noises caused by quantum gate operations [6, 8, 13, 16, 14]. The key idea of PEC is to cancel out noise Λ\Lambda induced by a quantum gate operation by adding an operation corresponding to the inverse of the noise. This operation to cancel the noise is represented as a linear combination of quantum gates. To cancel out the noise in this way, PEC requires a full characterization of the noise such as its probability to occur and its inverse. If we have the full knowledge of the noise, it is possible to obtain an unbiased estimator for the expectation value of an ideal quantum circuit, through statistical post-processing of measurement outcomes.

Using PEC, an unbiased estimator for an ideal expectation value can be obtained with a variance of O(γ2)O(\gamma^{2}), where γ1\gamma\geq 1 is a factor that increases exponentially with the number of quantum gates in a quantum circuit. To obtain an expectation value with a high accuracy, a large number of shots is essential to reduce the variance. So, this γ\gamma is called thesampling overhead. From a practical standpoint, it is important to reduce the value of γ\gamma. Some methods have been proposed to minimize the sampling overhead γ\gamma by decomposing a quantum circuit with a set of gate operations that a quantum computer supports [20, 21].

The characterization of noise and the reduction of sampling overhead described above are necessary to obtain more accurate expectation values with the PEC. However, in practice, there is a limit to the accuracy of expectation values that can be obtained even if the noise can be well-characterized because recovery gates (gates inserted to cancel noise) induce noise again. Thus, the PEC estimator has a bias due to noise induced by applying the recovery gate [22, 23]. Since recovery gates are also run on noisy quantum computers, it is difficult to reduce this bias to zero. Exploring methods to reduce the bias of the PEC estimator to zero is necessary to obtain an accurate expectation value, while reluctantly accepting noises caused by recovery gates.

In this paper, we study a method to achieve zero bias in the PEC estimator even with noises induced by the recovery gate applied. We propose an error mitigation method, named Feed-Forward PEC (FFPEC), which addresses noises induced by recovery gate operations in the PEC process to reduce the bias to zero. The key idea of FFPEC is to cancel out noises induced by the recovery gates by defining an inverse map of noise including these noises. Although the sampling cost γ\gamma of FFPEC is slightly larger than that of the standard PEC, the expectation values for the FFPEC estimator are expected to be closer to an exact expectation value than for the standard PEC. FFPEC can be viewed as a concrete implementation of noise cancellation maps for practical PEC, which is also considered in [23]. We demonstrate the performance of FFPEC by comparing the standard PEC using analytical and numerical results with the depolarizing noise [24], which is studied in some error mitigation methods [25, 26, 6, 23].

The present paper is organized as follows. First, we give a background for the standard PEC technique and depolarizing noise model in Sec. II. In Sec. III, we present the Feed-Forward PEC. Then, numerical experiments are conducted to evaluate the performance of FFPEC by comparing it with the standard PEC in Sec. IV. Finally, we conclude about FFPEC in Sec. V.

II Background

We first briefly introduce the Probabilistic Error Cancellation (PEC) [6, 27]. We also introduce a commonly used noise model, depolarizing, and its inverse for PEC.

II-A Probabilistic Error Cancellation

We first introduce the notations required to explain the PEC procedure. We consider an nn qubits system. Let 𝒬\mathcal{Q} denote a unitary trace-preserving completely positive (TPCP) map of an ideal quantum circuit on the nn qubits system, ρin\rho_{\text{in}} denote the input quantum state to this circuit 𝒬\mathcal{Q} and ρout\rho_{\text{out}} denote the output quantum state after applying the circuit 𝒬\mathcal{Q} to the input state ρin\rho_{\text{in}} with a noisy quantum computer. The circuit 𝒬\mathcal{Q} can be represented as 𝒬(ρ)=QρQ\mathcal{Q}(\rho)=Q\rho Q^{\dagger} with a corresponding unitary matrix QQ for any quantum state ρ\rho. In addition, the quantum circuit 𝒬\mathcal{Q} consists of NGN_{G} ideal quantum gates as follows:

𝒬:=𝒰NG𝒰NG1𝒰2𝒰1,\mathcal{Q}:=\mathcal{U}_{N_{G}}\circ\mathcal{U}_{N_{G}-1}\circ\cdots\mathcal{U}_{2}\circ\mathcal{U}_{1}, (1)

where \circ represents a composition of TPCP maps, and each 𝒰i\mathcal{U}_{i} is a unitary TPCP map corresponding to a quantum gate UiU_{i}. Suppose that a quantum circuit 𝒬\mathcal{Q} is executed on a noisy quantum computer and that each noise channel Λi\Lambda_{i} is induced for each gate 𝒰i\mathcal{U}_{i}, where noise channel Λi\Lambda_{i} can be assumed as a Pauli channel [28, 8]. The output quantum state ρout\rho_{\text{out}} is written as:

ρout=ΛNG𝒰NGΛNG1𝒰NG1Λ1𝒰1(ρin).\rho_{\text{out}}=\Lambda_{N_{G}}\circ\mathcal{U}_{N_{G}}\circ\Lambda_{N_{G}-1}\circ\mathcal{U}_{N_{G}-1}\cdots\Lambda_{1}\circ\mathcal{U}_{1}(\rho_{\text{in}}). (2)

We denote an ideal output quantum state as ρoutideal:=𝒬(ρin)\rho_{\text{out}}^{\text{ideal}}:=\mathcal{Q}(\rho_{\text{in}}), then an ideal expectation value of an observable MM is written as Mideal:=Tr[Mρoutideal]\expectationvalue{M}_{\text{ideal}}:=\Tr[M\rho_{\text{out}}^{\text{ideal}}].

The objective of PEC is to provide an expectation value with good accuracy while executing a quantum circuit on a noisy quantum computer. The key idea of PEC is to cancel out noises Λi\Lambda_{i} which occurs after UiU_{i} is executed by adding its inverse Λi1\Lambda_{i}^{-1}. By cancelling out noises in such a way, PEC can provide an expectation value M𝒬\expectationvalue{M}_{\mathcal{Q}} via statistical post-processing. To simplify, we describe the PEC process using a single quantum gate UU. After that, the PEC process is explained for a general quantum circuit. First of all, let Λ\Lambda be a noise induced by operating a quantum gate 𝒰\mathcal{U}. We assume that there exists a gate set {i}\{\mathcal{R}_{i}\} that is implemented on a quantum computer so that the inverse map of noise Λ1\Lambda^{-1} can be represented as a linear combination with elements of this set as a basis:

Λ1=iqii,\Lambda^{-1}=\sum_{i}q_{i}\mathcal{R}_{i}, (3)

where each qiq_{i} is a real number (pseudo-probability) and satisfies iqi=1\sum_{i}q_{i}=1 [6]. Then we have

𝒰=Λ1Λ𝒰=iqiiΛ𝒰=γiσisgn(qi)iΛ𝒰,\mathcal{U}=\Lambda^{-1}\Lambda\mathcal{U}=\sum_{i}q_{i}\mathcal{R}_{i}\Lambda\mathcal{U}=\gamma\sum_{i}\sigma_{i}{\rm sgn}(q_{i})\mathcal{R}_{i}\Lambda\mathcal{U}, (4)

with γ=i|qi|\gamma=\sum_{i}\absolutevalue{q_{i}} and σi=|qi|/γ\sigma_{i}=\absolutevalue{q_{i}}/\gamma. Factor γ\gamma is the sampling overhead, and each σi\sigma_{i} is the insertion probability of gate i\mathcal{R}_{i}, and sgn(qi)=±1{\rm sgn}(q_{i})=\pm 1 means a parity corresponding to gate i\mathcal{R}_{i}.

Using γ\gamma, the expectation value of observable MM can be expressed as follows:

M𝒰=γiσiμieff,\expectationvalue{M}_{\mathcal{U}}=\gamma\sum_{i}\sigma_{i}\expectationvalue{\mu^{\text{eff}}_{i}}, (5)

where μieff=sgn(qi)mi\mu_{i}^{\text{eff}}={\rm sgn}(q_{i})m_{i} and mim_{i} is the measurement outcome of the state iΛ𝒰(ρin)\mathcal{R}_{i}\Lambda\mathcal{U}(\rho_{\text{in}}), which is generated by applying the gate i\mathcal{R}_{i} with probability σi\sigma_{i} after applying gate 𝒰i\mathcal{U}_{i}. Multiplying the outcome μi\mu_{i} by the parity sgn(qi){\rm sgn}(q_{i}) corresponding to i\mathcal{R}_{i} gives μieff\mu_{i}^{\text{eff}}. The expectation value of the random variable γμeff\gamma\mu^{\text{eff}} is approximately an unbiased estimator of M𝒰\expectationvalue{M}_{\mathcal{U}}.

To obtain an expectation value M𝒬\expectationvalue{M}_{\mathcal{Q}} of an observable MM with a quantum circuit 𝒬\mathcal{Q}, we apply the process stated above for 𝒬\mathcal{Q}. Applying the above process to the quantum circuit 𝒬=k=1NG𝒰k\mathcal{Q}=\prod_{k=1}^{N_{G}}\mathcal{U}_{k}, we have

k=1NG𝒰k=k=1NGγ(k)i1,,iNGk=1NGsgn(qik)k=1NGσikk=1NGikΛk𝒰k,\prod_{k=1}^{N_{G}}\mathcal{U}_{k}=\prod_{k=1}^{N_{G}}\gamma^{(k)}\sum_{i_{1},\cdots,i_{N_{G}}}\prod_{k=1}^{N_{G}}{\rm sgn}(q_{i_{k}})\prod_{k=1}^{N_{G}}\sigma_{i_{k}}\prod_{k=1}^{N_{G}}\mathcal{R}_{i_{k}}\Lambda_{k}\mathcal{U}_{k}, (6)

with 𝒰k=γ(k)iksgn(qik)σikikΛk𝒰k\mathcal{U}_{k}=\gamma^{(k)}\sum_{i_{k}}\mathrm{sgn}(q_{i_{k}})\sigma_{i_{k}}\mathcal{R}_{i_{k}}\Lambda_{k}\mathcal{U}_{k}. We can obtain a random variable μeff\mu^{\text{eff}} by executing a circuit modified by operation ik\mathcal{R}_{i_{k}} added with probability σik\sigma_{i_{k}} and multiplying sign k=1NGsgn(qik)\prod_{k=1}^{N_{G}}{\rm sgn}(q_{i_{k}}) to measurement outcome. The expectation value μeff\expectationvalue{\mu^{\text{eff}}} is obtained by repeating this process, and finally we obtain the expectation value M𝒬=γtotμeff\expectationvalue{M}_{\mathcal{Q}}=\gamma^{\text{tot}}\expectationvalue{\mu^{\text{eff}}}, where γtot=k=1NGγ(k)\gamma^{\text{tot}}=\prod_{k=1}^{N_{G}}\gamma^{(k)}. The estimator M𝒬\expectationvalue{M}_{\mathcal{Q}} is unbiased for the exact expectation value Mideal\expectationvalue{M}_{\text{ideal}}.

Here, operation \mathcal{R} added to cancel noise is called recovery gate in this paper. Note that the recovery gate \mathcal{R} can sometimes introduce noises. To avoid this noise, the recovery \mathcal{R} can be merged with the neighboring gate. However, the gate merging would break the consistency with the PEC process in practical uses. Thus, the gate merging is not performed in PEC.

II-B Depolarizing noise

We introduce depolarizing [24], which is used in our experiments. To explain the noise channel, we denote ,𝒳,𝒴\mathcal{I},\mathcal{X},\mathcal{Y}, and 𝒵\mathcal{Z} as trace-preserving and completely positive (TPCP) maps corresponding to the Pauli matrices I,X,YI,X,Y, and ZZ, respectively. Similarly, ,𝒳,,𝒵𝒵\mathcal{II},\mathcal{IX},\ldots,\mathcal{ZZ} also represent TPCP maps corresponding to couples of Pauli matrices II,IX,,ZZII,IX,\ldots,ZZ. In addition, a single qubit state and a two qubits state are denoted as ρ\rho and ρ\rho^{\prime}, respectively. The error rate is denoted as pp.

II-B1 Depolarizing for single qubit state

Let 𝒟1\mathcal{D}_{1} denote a TPCP map of the depolarizing noise on a single qubit state ρ\rho as follows:

𝒟1(ρ)=(13p4)(ρ)+p4(𝒳(ρ)+𝒴(ρ)+𝒵(ρ)).\mathcal{D}_{1}(\rho)=\left(1-\frac{3p}{4}\right)\mathcal{I}(\rho)+\frac{p}{4}(\mathcal{X}(\rho)+\mathcal{Y}(\rho)+\mathcal{Z}(\rho)). (7)

The inverse map of 𝒟1\mathcal{D}_{1} is written as follows [29]:

𝒟11(ρ)=(13q4)(ρ)+q4(𝒳(ρ)+𝒴(ρ)+𝒵(ρ)),\mathcal{D}_{1}^{-1}(\rho)=\left(1-\frac{3q}{4}\right)\mathcal{I}(\rho)+\frac{q}{4}(\mathcal{X}(\rho)+\mathcal{Y}(\rho)+\mathcal{Z}(\rho)), (8)

where

q=p1p.q=\frac{-p}{1-p}. (9)

The sampling cost is γ=(1+p/2)/(1p)\gamma=(1+p/2)/(1-p), which gives that the insertion probabilities of Pauli gates (recovery gates) X,YX,Y, and ZZ are all the same value p/(4+2p)p/(4+2p).

II-B2 Depolarizing for two qubits state

Let 𝒟2\mathcal{D}_{2} denote a TPCP map of the depolarizing noise on two qubits state ρ\rho^{\prime} as follows:

𝒟2(ρ)=(115p16)(ρ)+p16(𝒳(ρ)++𝒵𝒵(ρ)).\mathcal{D}_{2}(\rho^{\prime})=\left(1-\frac{15p}{16}\right)\mathcal{II}(\rho^{\prime})+\frac{p}{16}(\mathcal{IX}(\rho^{\prime})+\cdots+\mathcal{ZZ}(\rho^{\prime})). (10)

The inverse map of 𝒟2\mathcal{D}_{2} is written as follows [29]:

𝒟21(ρ)=(115q16)(ρ)+q16(𝒳(ρ)+𝒴(ρ)++𝒵𝒵(ρ)),\begin{split}\mathcal{D}_{2}^{-1}\left(\rho^{\prime}\right)=&\left(1-\frac{15q}{16}\right)\mathcal{II}(\rho^{\prime})\\ &+\frac{q}{16}(\mathcal{IX}(\rho^{\prime})+\mathcal{IY}(\rho^{\prime})+\cdots+\mathcal{ZZ}(\rho^{\prime})),\end{split} (11)

where

q=p1p.q=\frac{-p}{1-p}. (12)

The sampling cost is γ=(1+7p/8)/(1p)\gamma=(1+7p/8)/(1-p), which gives that the insertion probabilities of Pauli gates (recovery gates) IX,IY,IX,IY,\ldots, and ZZZZ are all the same value p/(16+14p)p/(16+14p).

III Feed-Forward PEC

We introduce Feed-Forward Probabilistic Error Cancellation (FFPEC) to obtain a more accurate expectation value by defining a new inverse map of noise taking a noise induced by recovery gate insertion. The calculation process of FFPEC is the same as the PEC calculation process with the new inverse map instead of a conventional inverse map of noise. In the following, we give the idea of FFPEC how to determine a new inverse map of noise with a well-known noise model, depolarizing. Moreover, we show insertion probabilities of recovery gates and sampling costs for depolarizing for FFPEC. Here, we assume that the noise caused by the gate operation and the probability pp of its occurrence are given and small p0.5p\ll 0.5. Since the recovery gate added is also gate operation, the probability of noise induced by the recovery gate is required to be the same as pp.

Refer to caption
Figure 1: Conceptual diagram of FFPEC: a recovery gate RFFPECR_{\text{FFPEC}} of FFPEC can correct a noise Λ\Lambda even when the noise occurs after the recovery gate is performed unlike the standard PEC.

III-A Depolarizing for single qubit state

We explain how to determine an inverse map of depolarizing on a single qubit state for FFPEC. Let 𝒟~11\tilde{\mathcal{D}}_{1}^{-1} denote a noisy version of 𝒟11\mathcal{D}_{1}^{-1} as follows:

𝒟~11(ρ)=(13q4)(ρ)+q4(𝒳~(ρ)+𝒴~(ρ)+𝒵~(ρ)),\mathcal{\tilde{D}}_{1}^{-1}(\rho)=\left(1-\frac{3q}{4}\right)\mathcal{I}(\rho)+\frac{q}{4}(\tilde{\mathcal{X}}(\rho)+\tilde{\mathcal{Y}}(\rho)+\tilde{\mathcal{Z}}(\rho)), (13)

where 𝒳~,𝒴~\tilde{\mathcal{X}},\tilde{\mathcal{Y}}, and 𝒵~\tilde{\mathcal{Z}} are noisy version of 𝒳,𝒴\mathcal{X},\mathcal{Y}, and 𝒵\mathcal{Z} for depolarizing, respectively. These are represented as follows:

𝒳~(ρ)\displaystyle\tilde{\mathcal{X}}(\rho) =(13p4)𝒳(ρ)+p4((ρ)+𝒵(ρ)+𝒴(ρ)),\displaystyle=\left(1-\frac{3p}{4}\right)\mathcal{X}(\rho)+\frac{p}{4}(\mathcal{I}(\rho)+\mathcal{Z}(\rho)+\mathcal{Y}(\rho)), (14)
𝒴~(ρ)\displaystyle\tilde{\mathcal{Y}}(\rho) =(13p4)𝒴(ρ)+p4(𝒵(ρ)+(ρ)+𝒳(ρ)),\displaystyle=\left(1-\frac{3p}{4}\right)\mathcal{Y}(\rho)+\frac{p}{4}(\mathcal{Z}(\rho)+\mathcal{I}(\rho)+\mathcal{X}(\rho)), (15)
𝒵~(ρ)\displaystyle\tilde{\mathcal{Z}}(\rho) =(13p4)𝒵(ρ)+p4(𝒴(ρ)+𝒳(ρ)+(ρ)).\displaystyle=\left(1-\frac{3p}{4}\right)\mathcal{Z}(\rho)+\frac{p}{4}(\mathcal{Y}(\rho)+\mathcal{X}(\rho)+\mathcal{I}(\rho)). (16)

To obtain the parameter qq for FFPEC, equation 𝒟~11(𝒟1(ρ))=ρ\mathcal{\tilde{D}}_{1}^{-1}(\mathcal{D}_{1}(\rho))=\rho is solved. Then we have

q=4p45p+p2=4p(1p)(4p).q=\frac{-4p}{4-5p+p^{2}}=\frac{-4p}{(1-p)(4-p)}. (17)

The sampling cost is γ=(4+p+p2)/[(1p)(4p)]\gamma=(4+p+p^{2})/[(1-p)(4-p)] and the insertion probabilities of pauli gates XX, YY, and ZZ are all the same value 4p/(4+p+p2)4p/(4+p+p^{2}).

III-B Depolarizing for two qubits state

A modified inverse of depolarizing for two qubits is also determined by a similar way as for a single qubit state explained in the previous section. Let 𝒟~21\tilde{\mathcal{D}}_{2}^{-1} denote a noisy version of 𝒟21\mathcal{D}_{2}^{-1} as follows:

𝒟~21(ρ)=(115q16)(ρ)+q16(𝒳~(ρ)+𝒴~(ρ)++𝒵𝒵~(ρ)),\begin{split}\mathcal{\tilde{D}}_{2}^{-1}(\rho^{\prime})=&\left(1-\frac{15q}{16}\right)\mathcal{II}(\rho^{\prime})\\ &+\frac{q}{16}(\widetilde{\mathcal{IX}}(\rho^{\prime})+\widetilde{\mathcal{IY}}(\rho^{\prime})+\cdots+\widetilde{\mathcal{ZZ}}(\rho^{\prime})),\end{split} (18)

where 𝒳~,𝒴~,,𝒵𝒵~\widetilde{\mathcal{IX}},\widetilde{\mathcal{IY}},\ldots,\widetilde{\mathcal{ZZ}} are noisy versions of Pauli maps corresponding to 𝒳,𝒴,,𝒵𝒵\mathcal{IX},\mathcal{IY},\ldots,\mathcal{ZZ}. Assuming that each 𝒳~,𝒴~,,𝒵𝒵~\widetilde{\mathcal{IX}},\widetilde{\mathcal{IY}},\ldots,\widetilde{\mathcal{ZZ}} is exposed to two qubits depolarizing noise, they can be represented as follows:

𝒳~(ρ)\displaystyle\widetilde{\mathcal{IX}}(\rho^{\prime}) =(115p16)𝒳(ρ)+p16\smashoperator[r]𝒫{,𝒳,𝒴,𝒵}2\{𝒳}𝒫(ρ),\displaystyle=\left(1-\frac{15p}{16}\right)\mathcal{IX}(\rho^{\prime})+\frac{p}{16}\smashoperator[r]{\sum_{\mathcal{P}\in\{\mathcal{I},\mathcal{X},\mathcal{Y},\mathcal{Z}\}^{\otimes 2}\backslash{\mathcal{\{IX\}}}}}\mathcal{P}(\rho^{\prime}), (19)
𝒴~(ρ)\displaystyle\widetilde{\mathcal{IY}}(\rho^{\prime}) =(115p16)𝒴(ρ)+p16\smashoperator[r]𝒫{,𝒳,𝒴,𝒵}2\{𝒴}𝒫(ρ),\displaystyle=\left(1-\frac{15p}{16}\right)\mathcal{IY}(\rho^{\prime})+\frac{p}{16}\smashoperator[r]{\sum_{\mathcal{P}\in\{\mathcal{I},\mathcal{X},\mathcal{Y},\mathcal{Z}\}^{\otimes 2}\backslash{\mathcal{\{IY\}}}}}\mathcal{P}(\rho^{\prime}), (20)
\displaystyle\vdots
𝒵𝒵~(ρ)\displaystyle\widetilde{\mathcal{ZZ}}(\rho^{\prime}) =(115p16)𝒵𝒵(ρ)+p16\smashoperator[r]𝒫{,𝒳,𝒴,𝒵}2\{𝒵𝒵}𝒫(ρ).\displaystyle=\left(1-\frac{15p}{16}\right)\mathcal{ZZ}(\rho^{\prime})+\frac{p}{16}\smashoperator[r]{\sum_{\mathcal{P}\in\{\mathcal{I},\mathcal{X},\mathcal{Y},\mathcal{Z}\}^{\otimes 2}\backslash{\mathcal{\{ZZ\}}}}}\mathcal{P}(\rho^{\prime}). (21)

To obtain the parameter qq, equation 𝒟~21(𝒟2(ρ))=ρ\tilde{\mathcal{D}}_{2}^{-1}(\mathcal{D}_{2}(\rho^{\prime}))=\rho^{\prime} is solved. Then we have

q=16p1617p+p2=16p(1p)(16p).q=\frac{-16p}{16-17p+p^{2}}=\frac{-16p}{(1-p)(16-p)}. (22)

The sampling cost is γ=(16+13p+p2)/[(1p)(16p)]\gamma=(16+13p+p^{2})/[(1-p)(16-p)] and the insertion probabilities of Pauli gates IX,IX,\ldots, and ZZZZ are all the same value p/(16+13p+p2)p/(16+13p+p^{2}). Note that the identity II included in IX,IY,,IX,IY,\ldots, and ZIZI gates is inserted as a recovery gate in this model as well as the standard PEC.

IV Numerical Experiments

We show some numerical experiments to investigate the accuracy of expectation values obtained by FFPEC. To run noisy simulations, we use Qiskit (version 1.1.1)[30].

IV-A Problem Settings

The depolarizing noise model is used with error rates {0.001,0.0015,0.002}\{0.001,0.0015,0.002\} for single qubit gates and {0.01,0.015,0.02}\{0.01,0.015,0.02\} for two qubits gates, which are close to the error rates of current quantum computers. The insertion probabilities of recovery gates for each error rate are summarized in Table I. For each error rate, the insertion probabilities in the FFPEC are slightly larger than those in the PEC, about 0.025%,0.038%0.025\%,0.038\% and 0.05%0.05\% for a single qubit gate, and 0.061%,0.091%0.061\%,0.091\% and 0.12%0.12\% for a two qubits gate. To investigate these effects of the insertion probabilities on the accuracy of expectation values, experiments listed below are addressed using three types of quantum circuits consisting of basic gates as shown in Fig. 2:

  • (a)

    investigation of the accuracy of expectation values with error rates {0.001,0.0015,0.002}\{0.001,0.0015,0.002\} for the XX gate with circuit [2],

  • (b)

    investigation of the accuracy of expectation values with error rates {0.01,0.015,0.02}\{0.01,0.015,0.02\} for the CNOT gate with circuit [2] and,

  • (c)

    investigation of the accuracy of expectation values using a circuit consisting of XX gates and CNOT gates [2] with error rates {(0.001,0.01),(0.0015,0.015),(0.002,0.02)}\{(0.001,0.01),(0.0015,0.015),(0.002,0.02)\} for the XX gate and the CNOT gate.

TABLE I: Insertion probabilities of recovery gates for one noisy gate for each error rate.
Type Error Rate PEC FFPEC
Relative
difference
Single qubit gate 0.0010 0.0007496 0.0007498 0.0002497
0.0015 0.0011242 0.0011246 0.0003743
0.0020 0.0014985 0.0014993 0.0004988
Two qubits gate 0.0100 0.0092937 0.0092994 0.0006138
0.0150 0.0138803 0.0138930 0.0009123
0.0200 0.0184275 0.0184497 0.0012054

In the experiments, initial state |08\ket{0}^{\otimes 8} and the observable Z8Z^{\otimes 8} are used. The exact expectation values of the observable for each circuit are all 11 to verify the influence of noise for expectation values obtained using the PEC and FFPEC. 10310^{3} of expectation values are sampled with 10610^{6} shots to evaluate the accuracies (averages and standard deviations) of sampled expectation values using the PEC and FFPEC.

To more precisely evaluate the performance of the PEC and FFPEC, their analytical expectation values are used for each circuit in Fig. 2. The analytical expectation values are obtained using the following TCPC map, which is included the noise Λ\Lambda to the recovery gate \mathcal{R} based on Eq. (6):

k=1NGγ(k)i1,,iNGk=1NGsgn(qik)k=1NGσikk=1NGΛkikΛk𝒰k.\prod_{k=1}^{N_{G}}\gamma^{(k)}\sum_{i_{1},\cdots,i_{N_{G}}}\prod_{k=1}^{N_{G}}{\rm sgn}(q_{i_{k}})\prod_{k=1}^{N_{G}}\sigma_{i_{k}}\prod_{k=1}^{N_{G}}\Lambda_{k}\mathcal{R}_{i_{k}}\Lambda_{k}\mathcal{U}_{k}. (23)
Refer to caption
(a)
Refer to caption
(b)
Refer to caption
(c)
Figure 2: Three types of 8 qubits quantum circuits used in experiments. The circuit 2 consists of 1600 XX gates. The circuit 2 consists of 8 layers, where one layer has 8 CNOT gates. The circuit 2 consists of 8 layers, where one layer has 16 XX gates and 8 CNOT gates.

Table II shows the sampling overhead of the PEC and FFPEC for each error rate with respect to single qubit gates, two qubits gates, and circuits 2, 2, and 2. The sampling overhead corresponds to the standard deviation, where both PEC and FFPEC have almost the same standard deviation.

TABLE II: Sampling overheads with each error rate.
Type Error Rate PEC FFPEC
γ\gamma for single qubit gate 0.0010 1.0015015 1.0015019
0.0015 1.0022534 1.0022542
0.0020 1.0030060 1.0030075
γ\gamma for two qubits gate 0.0100 1.0189394 1.0189512
0.0150 1.0285533 1.0285801
0.0200 1.0382653 1.0383132
γtot\gamma^{\text{tot}} of (a) 0.0010 11.029799 11.036417
0.0015 36.647750 36.697239
0.0020 121.80298 122.09551
γtot\gamma^{\text{tot}} of (b) 0.0100 3.3227265 3.3251994
0.0150 6.0605956 6.0707082
0.0200 11.059460 11.092156
γtot\gamma^{\text{tot}} of (c)
single 0.0010
two 0.0100
4.0262432 4.02943305
single 0.0015
two 0.0150
8.0842381 8.09860145
single 0.0020
two 0.0200
16.240019 16.2911568
TABLE III: Expectation values under the depolarising noise of circuits 2, 2, and 2 without the PEC and FFPEC
Type Error Rate Expectation value
(a) 0.0010 0.2017
0.0015 0.0906
0.0020 0.0406
(b) 0.0100 0.5256
0.0150 0.3801
0.0200 0.2745
(c)
single 0.0010
two 0.0100
0.4832
single 0.0015
two 0.0150
0.3351
single 0.0020
two 0.0200
0.2320

IV-B Experimental results and Discussions

Figures 3, 4, and 5 show mitigation results for circuits 2, 2, and 2, respectively. The horizontal axis represents error rates, and the vertical axis represents expectation values obtained using the PEC and FFPEC. The red lines show the numerical results of PEC and the green lines show those of FFPEC by samplings. The blue line represents analytical expectation values obtained by PEC, while the black dashed line represents those of FFPEC. Although the analytical expectation values of PEC do not match the exact expectation value of 11 due to the influence of noise by inserting the recovery gate, the analytical expectation value of FFPEC matches the exact one. Here, the scale on the vertical axis of all results in three figures is consistent to allow comparison of analytical expectation values with those of numerical ones. In Fig. 3, the standard deviations are 0.036800.03680 at error rate 0.00150.0015 and 0.12310.1231 at error rate 0.0020.002. In all results, the standard deviations of the PEC and FFPEC are almost the same because they have the same sampling overhead summarized in Table II. In addition, both the PEC and FFPEC can provide improved expectation values as shown in Figs. 3, 4, and 5, where expectation values without mitigation are summarized in Table III.

Refer to caption
Figure 3: Results with circuit 2. The standard deviations are 0.036800.03680 at an error rate of 0.00150.0015 and 0.12310.1231 at an error rate of 0.0020.002.
Refer to caption
Figure 4: Results with circuit 2.
Refer to caption
Figure 5: Results with circuit 2.

The results from the PEC and FFPEC shown in Fig. 3 show that, as the error rate increases, the standard deviations increase and the averages shift away from the exact expectation value 1. This is because 10610^{6} shots are not enough for convergence of expectation values of the circuit 2 with large sampling overheads. For the error rate 0.0010.001, which is approximately that of current quantum computers of single qubit gate, both the PEC and FFPEC have the almost same absolute error from the exact value of 11, which is 9.256×1049.256\times 10^{-4}. This observation implies that the performance of FFPEC is the same as that of the PEC. If more than 10610^{6} shots are used, FFPEC can provide a more accurate expectation value than the PEC.

In the results shown in Fig. 4, the average values obtained using both the PEC and FFPEC converge to their analytical expectation values, respectively. Focusing on the error rate 0.010.01, which is approximately that of current quantum computers of two qubits gate (e.g. CNOT gate), the absolute error between the exact expectation value and the average one is 3.858×1043.858\times 10^{-4} for the PEC and 5.847×1055.847\times 10^{-5} for FFPEC. Thus, FFPEC can provide a more accurate expectation value than the PEC when circuits like Fig. 2 are used.

In the results shown in Fig. 5, the average values obtained using PEC converge to their analytical expectation values. The average values of FFPEC also converge to the analytical expectation values, except for the result at the error rate (0.002,0.02)(0.002,0.02). The reason why the result at the error rate does not converge to the analytical expectation value is the shortage of shots. Focusing on the error rate (0.001,0.01)(0.001,0.01), which is approximately that of current quantum computers of single and two qubits gate, the absolute error between the exact expectation value and the average value is 2.743×1042.743\times 10^{-4} for the PEC and 1.084×1041.084\times 10^{-4} for FFPEC. Thus, FFPEC can provide a slightly more accurate expectation value than the PEC.

Since practical quantum circuits consist of single qubit gates and CNOT gates, as shown in the circuit 2, the results of the error rate (0.001,0.01)(0.001,0.01) in Fig. 5 are expected results on current quantum computers, although thermal relaxation errors and readout errors exist. FFPEC can provide slightly more accurate expectation values than the PEC as stated above. The error mitigation capability of the PEC is limited due to the noise induced by inserting recovery gates, but FFPEC has no such limitation. Thus, the more shots are taken to obtain a highly accurate expectation value, FFPEC can provide a more accurate one than the PEC. For the practical implementation of FFPEC, there are challenges: (i) to address other errors such as thermal relaxation errors and readout errors, (ii) to improve error inverse maps based on the working of gates on real hardware such as the identity gate is not executed, a two qubits gate is executed as per single qubit gate if the two qubits gate can be decomposed to its tensor product, the ZZ gate can be performed as virtual [31], and (iii) to reduce the number of shots to provide expectation values with the required accuracy. In addition, both the PEC and FFPEC can sometimes yield expectation values that exceed the range [1,1][-1,1], as shown in the numerical experiments For algorithms utilizing the PEC and FFPEC, it would be unsuitable to use values outside this range. Accordingly, it would be better to correct to 11 or 1-1 when such values are obtained.

V Conclusion

We explore an improved version of the PEC to achieve zero bias for the estimator of expectation values even with recovery gates inducing noises that is a realistic situation. We propose Feed-Forward Probabilistic Error Cancellation (FFPEC) method, which can provide a zero bias estimator even in such a situation. The key idea of FFPEC is to define a new inverse map of noise to cancel out noises induced by recovery gates. This idea would be a simple way for quantum error mitigation techniques such as the PEC, which utilize the insertion of recovery gates.

To demonstrate the idea of FFPEC, new versions of inverse maps for the depolarizing noise on single qubit and two qubits gates are provided, and analytical evaluation is carried out. Moreover, numerical experiments are also carried out and compared with analytical results. Experimental results show that FFPEC can provide more accurate expectation values than the PEC on depolarizing noise. When the error rate is small, the performance of FFPEC is the same as the PEC. In situations where a high accuracy is required, FFPEC can be a promising tool. However, in practice, it is important to construct FFPEC considering not only depolarizing noises but also other noises and actual operations. We focus on constructing practical inverse maps that take these factors into account.

References

  • [1] A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, “A variational eigenvalue solver on a photonic quantum processor,” Nature Communications, vol. 5, no. 1, p. 4213, Jul. 2014.
  • [2] D. A. Fedorov, B. Peng, N. Govind, and Y. Alexeev, “VQE method: A short survey and recent developments,” Materials Theory, vol. 6, no. 1, p. 2, Dec. 2022.
  • [3] E. Farhi, J. Goldstone, and S. Gutmann, “A Quantum Approximate Optimization Algorithm,” Nov. 2014.
  • [4] A. Bärtschi and S. Eidenbenz, “Grover Mixers for QAOA: Shifting Complexity from Mixer Design to State Preparation,” in 2020 IEEE International Conference on Quantum Computing and Engineering (QCE), Oct. 2020, pp. 72–82.
  • [5] J. Preskill, “Quantum Computing in the NISQ era and beyond,” Quantum, vol. 2, p. 79, Aug. 2018.
  • [6] K. Temme, S. Bravyi, and J. M. Gambetta, “Error mitigation for short-depth quantum circuits,” Physical Review Letters, vol. 119, no. 18, p. 180509, Nov. 2017.
  • [7] E. van den Berg, Z. K. Minev, and K. Temme, “Model-free readout-error mitigation for quantum expectation values,” Physical Review A, vol. 105, no. 3, p. 032620, Mar. 2022.
  • [8] E. van den Berg, Z. K. Minev, A. Kandala, and K. Temme, “Probabilistic error cancellation with sparse Pauli-Lindblad models on noisy quantum processors,” Nature Physics, vol. 19, no. 8, pp. 1116–1121, Aug. 2023.
  • [9] S. Endo, S. C. Benjamin, and Y. Li, “Practical Quantum Error Mitigation for Near-Future Applications,” Physical Review X, vol. 8, no. 3, p. 031027, Jul. 2018.
  • [10] R. Hicks, B. Kobrin, C. W. Bauer, and B. Nachman, “Active readout-error mitigation,” Physical Review A, vol. 105, no. 1, p. 012419, Jan. 2022.
  • [11] F. B. Maciejewski, Z. Zimborás, and M. Oszmaniec, “Mitigation of readout noise in near-term quantum devices by classical post-processing based on detector tomography,” Quantum, vol. 4, p. 257, Apr. 2020.
  • [12] S. Bravyi, S. Sheldon, A. Kandala, D. C. Mckay, and J. M. Gambetta, “Mitigating measurement errors in multi-qubit experiments,” Physical Review A, vol. 103, no. 4, p. 042605, Apr. 2021.
  • [13] Y. Guo and S. Yang, “Quantum Error Mitigation via Matrix Product Operators,” PRX Quantum, vol. 3, no. 4, p. 040313, Oct. 2022.
  • [14] R. S. Gupta, E. van den Berg, M. Takita, D. Riste, K. Temme, and A. Kandala, “Probabilistic error cancellation for dynamic quantum circuits,” Dec. 2023.
  • [15] C. Kim, K. D. Park, and J.-K. Rhee, “Quantum Error Mitigation With Artificial Neural Network,” IEEE Access, vol. 8, pp. 188 853–188 860, 2020.
  • [16] B. Koczor, J. Morton, and S. Benjamin, “Probabilistic Interpolation of Quantum Rotation Angles,” Physical Review Letters, vol. 132, no. 13, p. 130602, Mar. 2024.
  • [17] R. Majumdar and C. J. Wood, “Error mitigated quantum circuit cutting,” Nov. 2022.
  • [18] P. D. Nation, H. Kang, N. Sundaresan, and J. M. Gambetta, “Scalable mitigation of measurement errors on quantum computers,” PRX Quantum, vol. 2, no. 4, p. 040326, Nov. 2021.
  • [19] H.-C. Nguyen, “Information theoretic approach to readout error mitigation for quantum computers,” Physical Review A, vol. 108, no. 5, p. 052419, Nov. 2023.
  • [20] C. Piveteau, D. Sutter, and S. Woerner, “Quasiprobability decompositions with reduced sampling overhead,” npj Quantum Information, vol. 8, no. 1, pp. 1–9, Feb. 2022.
  • [21] R. Takagi, “Optimal resource cost for error mitigation,” Physical Review Research, vol. 3, no. 3, p. 033178, Aug. 2021.
  • [22] Z. Cai, R. Babbush, S. C. Benjamin, S. Endo, W. J. Huggins, Y. Li, J. R. McClean, and T. E. O’Brien, “Quantum Error Mitigation,” Reviews of Modern Physics, vol. 95, no. 4, p. 045005, Dec. 2023.
  • [23] T.-R. Jin, K. Xu, Y.-R. Zhang, and H. Fan, “Noisy Probabilistic Error Cancellation and Generalized Physical Implementability,” no. arXiv:2409.01000, Sep. 2024.
  • [24] M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th ed.   Cambridge ; New York: Cambridge University Press, 2010.
  • [25] J. Vovrosh, K. E. Khosla, S. Greenaway, C. Self, M. S. Kim, and J. Knolle, “Simple mitigation of global depolarizing errors in quantum simulations,” Physical Review E, vol. 104, no. 3, p. 035309, Sep. 2021.
  • [26] M. Urbanek, B. Nachman, V. R. Pascuzzi, A. He, C. W. Bauer, and W. A. de Jong, “Mitigating Depolarizing Noise on Quantum Computers with Noise-Estimation Circuits,” Physical Review Letters, vol. 127, no. 27, p. 270502, Dec. 2021.
  • [27] Y. Suzuki, S. Endo, K. Fujii, and Y. Tokunaga, “Quantum Error Mitigation as a Universal Error Reduction Technique: Applications from the NISQ to the Fault-Tolerant Quantum Computing Eras,” PRX Quantum, vol. 3, no. 1, p. 010345, Mar. 2022.
  • [28] J. J. Wallman and J. Emerson, “Noise tailoring for scalable quantum computation via randomized compiling,” Physical Review A, vol. 94, no. 5, p. 052325, Nov. 2016.
  • [29] Y. Guo and S. Yang, “Noise effects on purity and quantum entanglement in terms of physical implementability,” npj Quantum Information, vol. 9, no. 1, p. 11, Feb. 2023.
  • [30] Qiskit contributors, “Qiskit: An open-source framework for quantum computing,” 2023.
  • [31] D. C. McKay, C. J. Wood, S. Sheldon, J. M. Chow, and J. M. Gambetta, “Efficient zz gates for quantum computing,” Phys. Rev. A, vol. 96, p. 022330, Aug 2017. [Online]. Available: https://link.aps.org/doi/10.1103/PhysRevA.96.022330