Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2024 Mar 13;14:6077. doi: 10.1038/s41598-024-52485-7

Quantum error mitigation via quantum-noise-effect circuit groups

Yusuke Hama 1,, Hirofumi Nishi 1,2
PMCID: PMC11636875  PMID: 38480717

Abstract

Near-term quantum computers have been built as intermediate-scale quantum devices and are fragile against quantum noise effects, namely, NISQ devices. Traditional quantum-error-correcting codes are not implemented on such devices and to perform quantum computation in good accuracy with these machines we need to develop alternative approaches for mitigating quantum computational errors. In this work, we propose quantum error mitigation (QEM) scheme for quantum computational errors which occur due to couplings with environments during gate operations, i.e., decoherence. To establish our QEM scheme, first we estimate the quantum noise effects on single-qubit states and represent them as groups of quantum circuits, namely, quantum-noise-effect circuit groups. Then our QEM scheme is conducted by subtracting expectation values generated by the quantum-noise-effect circuit groups from those obtained by the quantum circuits for the quantum algorithms under consideration. As a result, the quantum noise effects are reduced, and we obtain approximately the ideal expectation values via the quantum-noise-effect circuit groups and the numbers of elementary quantum circuits composing them scale polynomial with respect to the products of the depths of quantum algorithms and the numbers of register bits. To numerically demonstrate the validity of our QEM scheme, we run noisy quantum simulations of qubits under amplitude damping effects for four types of quantum algorithms. Furthermore, we implement our QEM scheme on IBM Q Experience processors and examine its efficacy. Consequently, the validity of our scheme is verified via both the quantum simulations and the quantum computations on the real quantum devices. Our QEM scheme is solely composed of quantum-computational operations (quantum gates and measurements), and thus, it can be conducted by any type of quantum device. In addition, it can be applied to error mitigation for many other types of quantum noise effects as well as noisy quantum computing of long-depth quantum algorithms.

Subject terms: Atomic and molecular physics, Condensed-matter physics, Information theory and computation, Quantum physics

Introduction

The research and development of quantum computers are currently an important and active field of quantum information science and technology113. On the one side, quantum computer devices have been engineered with state-of-the-art technologies using various kinds of elements including superconducting circuits711,14,15,16,17 and trapped ions7,12,13,1822. On the other side, toward the application to, for example, material science, quantum chemistry, optimization problems, and quantum machine learning, many new kinds of quantum algorithms have been recently developed such as Variational Quantum Eigensolver (VQE)2327, Quantum Approximate Optimization Algorithm (QAOA)2733, and hybrid quantum-classical machine learning algorithms27,3436. These algorithms have characteristics such that they are constructed by the hybridization between quantum and classical computational procedures. Recently, in the task of sampling random quantum circuits, quantum supremacy has been demonstrated using the superconducting circuit device37. All these facts are implying important milestones for the advancement of the research and development of the quantum computers and the broadening of quantum-computing applications to many fields of science and engineering.

While the above successful results of the research and development of quantum computers have been reported, near-term quantum computers based on circuit models have been built as intermediate-scale quantum devices yet and are fragile against quantum noise effects: they are called noisy intermediate-scale quantum (NISQ) devices10,12,38. Quantum noise effects (decoherence) are major obstacles for performing quantum computation and historically many great efforts have been made on reducing such effects39,40. One of the traditional and representative schemes for this is the quantum-error-correction (QEC) coding5,8,10,11,17,4144. Another important one is the dynamical decoupling which plays fundamental role in extending coherence times of qubits9,12,17,43,4549. The QEC codes are, however, not implemented on NISQ devices and to obtain quantum computational results in good accuracy with NISQ devices we need to search for alternative approaches for mitigating quantum noise effects. This research field is called quantum error mitigation (QEM), and these days, it is one of the important themes of the research and development of quantum computation26,27,5076. The difficulty of the treatment of quantum noises (e.g., amplitude damping, phase damping (dephasing), depolarizing channel) is that we cannot directly construct their inverse processes by quantum gates due to their non-unitarity. On the other hand, it is possible to formulate quantum noise effects as quantum circuits by using ancilla bits and measurements on them5,7784. By utilizing the quantum circuits representing the quantum noise effects under consideration, we expect that we can establish QEM schemes for reducing such effects. If this is established, we become able to mitigate the quantum noise effects by the gate operations and measurements, i.e., QEM conducted by all-quantum-computational operations. In other words, we become able to programmably run quantum algorithms with mitigating the quantum noise effects solely by the quantum computational operations and realize high-accurate quantum computation.

In this work, we propose our QEM schemes for quantum computational errors which occur owing to couplings with environments (decoherence) during gate operations: errors of state preparation (initialization) and measurement, imperfections of quantum gates, and cross talks among qubits are not taken into account. In particular, we make detailed analysis on quantum computational errors generated by amplitude damping (AD) of single-qubit states. We show the schematic representation of our QEM scheme in Fig. 1 and it consists of two elements, the quantum circuit for the quantum algorithm under consideration (original circuit) represented by the blue rectangle and the ensemble of quantum circuits which yields the theoretical value of the quantum computational error due to the quantum noise effect, namely, quantum-noise-effect circuit group and is represented by the orange rectangles. By utilizing the quantum-noise-effect circuit groups, we formulate our QEM scheme as a perturbation theory with respect to a strength(s) of quantum noise(s) and perform it by subtracting the expectation values given by the quantum-noise-effect circuit groups from those generated by the quantum circuits for the quantum algorithms under consideration as expressed by the formula in the green rectangle; see also the right-hand side of the first line in Eq. (8). As a result, the quantum noise effects are mitigated and we approximately obtain the ideal expectation values. Then, we discuss the numbers of elementary quantum circuits which compose the quantum-noise-effect circuit groups and show that they scale polynomial (linear) with respect to the products of the numbers of register bits and the depths of the quantum algorithms (circuit depths or the numbers of unitary gates composing the quantum algorithm). Finally, we numerically demonstrate the validity of our QEM scheme by running noisy quantum simulators of qubits under the AD effects for four types of quantum algorithms in the linear-order perturbation regime. Furthermore, we examine the effectiveness of our QEM scheme by using IBM Q Experience processors86. The detailed explanation on how to extend our QEM scheme to other kinds of quantum noise effects including phase damping, generalized amplitude damping (thermalization), and depolarizing channel, and extension of our QEM scheme to higher-order quantum noise effects are given in Supplementary Information.

Figure 1.

Figure 1

Schematic of our proposed QEM method. The original circuit represented by the blue rectangle (left side) describes the quantum circuit for the quantum algorithm to be run and is composed of the unitary operations Uk with k=1,,d and d denotes the depth of the quantum algorithm. It yields the expectation value O^ρd1real. On the other hand, the quantum-noise-effect circuit group, which is represented by the orange rectangles (right side), is constructed from the original circuit by inserting an additional operation between Uk and Uk+1 (gray box). It yields the theoretically-estimated quantum computational error O^(Δ1ADρd1)real. By using these two expectation values, we obtain the equation for our QEM scheme in the green rectangle. Here we have taken d=3.

The structure of this paper is given as follows. It begins by “QEM schemes” with our modeling of the quantum computation under the influence of the quantum noise effect. After then we explain the formalisms of our QEM scheme. In “Numerical simulations”, which presents our main results, we demonstrate numerically our QEM schemes for the noisy quantum simulations for four types of quantum algorithms. These simulations are done by both our original numerical code and Qiskit85. In “QEM scheme implementation”, we discuss our quantum computation results for our QEM scheme run on the IBM Q Experience processors86. In “Comparison with other methods”, we make comparisons between our scheme and other QEM methods. Section “Conclusion and outlook” is devoted to the conclusion of this paper.

QEM schemes

Modeling and formulation

Let us explain our modeling of quantum computation under the influence of quantum noise effects26,27,50,60,61,85. In the following, we focus on the amplitude damping (AD) effect: generalized-amplitude-damping (GAD) effect at zero temperature. As discussed later, it is straightforward to generalize the argument for the AD effect to other quantum noise effects such as phase damping (PD) and stochastic Pauli noises. We schematically represent such a circumstance as a quantum circuit and show it in Fig. 2.

Figure 2.

Figure 2

Illustration of quantum computation under AD effects represented as a quantum circuit. Here we show it for d=3 and Nq=2. The symbol ErjAD expresses the occurrence of AD effect on the register bit Qrj (the j-th register bit).

There are Nq register bits and the quantum algorithm to be run is represented by the unitary transformation UQC. It is comprised of d unitary transformations described by UQC=k=1dUk=Ud·Ud-1U2·U1. The unitary transformation Uk (k=1,2,,d) is composed of single- and two-qubit gates. We assume that the duration time (gate operation time) of the unitary transformation Uk is Δt for any k. During the time interval Δt, the register bits are influenced by the AD effects due to couplings with environments, e.g., electromagnetic field in the vacuum, phonons in solids, etc. The quantum master equation describing the AD process in the interaction picture is given by5,8789

ρ(t)t=γLAD[ρ(t)]=γj=0Nq-1σ~j-ρ(t)σ~j+-12{σ~j+σ~j-,ρ(t)}, 1

where ρ(t) is the density matrix of the Nq register bits at time t and γ is the decay rate. The symbol LAD denotes the Lindblad superoperator of the AD process and the operators σ~j±=XjiYj2 are the ladder (raising and lowering) operators acting on the register bit Qrj. Xj and Yj are X and Y gates acting on Qrj, respectively. {A,B} is the anti-commutator between the operators A and B. In our model, we assume that the Nq register bits experience homogeneously the AD effect of single-qubit state given by the decay rate γ. At the initial time t=0, all the register bits are in |0 state (ground state), namely, ρ(0)=|00|Nq. Let us write the total amount of quantum computational time (running time of the quantum algorithm under consideration) by T(=d·Δt) while we introduce the dimensionless time τ=γΔt. By assuming τ1, in the following let us evaluate the density matrix at the time T, ρ(T), by using the quantum master equation (1) and express it as a perturbation series with respect to τ given by

ρ(T)=p=0τpp!·ΔpADρd1=ρd1+τ·Δ1ADρd1+O(τ2). 2

here ρd1=UQC·ρ(0)·(UQC) describes the noise-free (ideal) quantum state of the register bits. In other words, it is the ideal output quantum state generated by the quantum algorithm given by UQC. The quantity ΔpADρd1 (p1) is the theoretically-evaluated p-th-order AD effect. Let us focus on the first-order AD effect Δ1ADρd1 which has the form

Δ1ADρd1=k=1dΔ1,kADρd1,Δ1,kADρd1=l=k+1dUl·ρ~k1AD·l=k+1dUl, 3

where

ρ~k1AD=LAD[ρk1]=j=0Nq-1σ~j-ρk1σ~j+-12{Pj1,ρk1},ρk1=l=1kUl·ρ(0)·l=1kUl, 4

with l=k+1dUl=Ud·Ud-1Uk+2·Uk+1 and l=1kUl=Uk·Uk-1U2·U1. In the above equation we have used l=d+1dUl=1, where 1 denotes the identity operator. The operator Pj1=σ~j+σ~j-=1j-Zj2 describes the projection onto the quantum state |1j with 1j and Zj denoting the identity operator and the Z gate acting on Qrj, respectively: On the other hand, the projection operator of the quantum state |0j is given by Pj0=σ~j-σ~j+=1j+Zj2.

QEM scheme

Since we have evaluated the single-qubit-state AD effect, next we discuss our quantum error mitigation (QEM) scheme. We denote the operator of which we are aiming to take an expectation value by O^. When we implement the quantum state ρ on a real device what we actually obtain is a quantum state which is different from ρ due to quantum noise effects: note again that hereinafter we only consider the AD effect. Let us write it by ρreal. We represent the density matrix ρreal in terms of ρ (ideal state) as ρreal=ρ+δADρ, where δADρ represents the deviation from ρ owing to the AD effect on a real device. Note that we use the symbol δAD to describe the AD effect on a real device while we use ΔAD to describe the theoretically-estimated AD effect like Eq. (2). Namely, a quantum computational error occurs due to the deviation δADρ. QEM is a prescription for mitigating the error coming from the deviation δADρ. Mathematically, this is a task to make the value of Tr(O^δADρ) as small as possible. In our scheme, we mitigate the error Tr(O^δADρ) by perturbatively treating the deviation δADρ with respect to τ and using the theoretically-estimated AD effect ΔpADρ. In the following we show such a perturbative analysis up to the first order in τ. The extension of our QEM scheme to higher-order AD effect is discussed in Sect. I in the Supplementary Information. The key procedure of our QEM scheme is to construct quantum circuits for computing the quantity Tr(O^Δ1ADρd1), which describes the theoretically-estimated quantum computational error of the expectation value Tr(O^ρ) in the first order of τ. For doing this, there are two difficulties: (1) the generation of the anti-commutator term {Pj1,ρk1} in Eq. (4) and (2) the implementation of the non-unitary operators σ~j- and Pj1 . Let us discuss from our solution to the difficulty (1). We denote some sort of quantum-computational operation (gate operation or measurement) by A. When the operation A acts on the quantum state ρk1 the output state we have is ρk1Aρk1A. The anti-commutator term {Pj1,ρk1}, in contrast, is not represented in this way, and thus, it is not clear how to generate such a term by the quantum-computational operations. We solve this in the following way. To make our argument simple, here let us focus on the single-register-bit system (Nq=1); the generalization to Nq2 is straightforward and is discussed later. First, we rewrite ρ~k1AD in Eq. (4) as

ρ~k1AD=-ρk14+Zρk1Z4+σ~-ρk1σ~+-P1ρk1P1. 5

In the above way, all the four terms in Eq. (5) are written in the form Aρk1A, and thus, we have solved the difficulty (1). Let us analyze the mathematical structure of the right-hand side of Eq. (5). The quantum circuit for creating the first term is straightforward because it is obtained by the quantum circuit composed of UQC (the quantum algorithm under consideration). The implementation of the quantum circuit for the second term Zρk1Z4 is also straightforward because we just apply the Z gate after the operation of Uk. The unclear part is to find ways to construct the quantum circuits for generating the third and fourth terms given by the non-unitary operators σ~- and P1 and this is nothing but the difficulty (2). We solve this by using an ancilla bit and a measurement on it5. For the creating the operation σ~-, we use the quantum circuit presented in Fig. 3a (AD-effect circuit A) while for the operation of P1 we use the one in Fig. 3b (AD-effect circuit B).

Figure 3.

Figure 3

(a) Schematic of AD-effect circuit A. When we set ϑ=π and post-select the measurement result of the quantum state of Qa to be |1Qa, we realize the operation of σ~- on Qr0. (b) Schematic of AD-effect circuit B. By setting ϑ=π and post-selecting the measurement result of the quantum state of Qa to be |0Qa, we the operation of P1 on Qr0 is created.

In both quantum circuits, we regard the ancilla bit Qa as the environment which induces the AD effect on the register bit Qr0. The interactions between these two qubits are represented by the controlled-rotational gate UCRy[Qr0;Qa](ϑ) and the controlled-not gate UCX[Qa;Qr0]. The controlled-rotational gate UCRy[Qr0;Qa](ϑ) describes the rotation about y axis by the rotational angle ϑ and it is composed of the control bit Qr0 and the target bit Qa. On the other hand, for the gate operation UCX[Qa;Qr0] the ancilla bit Qa is the control bit while the register bit Qr0 is the target bit. We have used the notation such that the control bit(s) comes before the semicolon while the target bit(s) comes after. Let us explain the output states generated by the AD-effect circuits A and B. For both quantum circuits, the initial quantum states of Qr0 and Qa are the same and it is ρQr0Qa(0)=ρQr0(0)ρQa(0) with ρQr0(0)=|0Qr00| and ρQa(0)=|0Qa0|. The AD-effect circuit A is given by the unitary operation UADA=UCX[Qa;Qr0]·UCRy[Qr0;Qa](ϑ) while the AD-effect circuit B is given by UADB=UCX[Qa;Qr0]·(12×2XQa)·UCRy[Qr0;Qa](ϑ), where 12×2 is the two by two identity operator. Owing to these unitary operations, the quantum state generated by the AD-effect circuit A is given by ρADA,Qr0Qa(ϑ)=UADA·ρQr0Qa(0)·(UADA) while the quantum state created by the AD-effect circuit B is ρADB,Qr0(ϑ)=UADB·ρQr0Qa(0)·(UADB). At the end, we measure the ancilla bit Qa. Then the quantum states of Qr0 (reduced density matrices) are described by the Kraus operators5,90.

K0ADA=Qa0|UADA|0Qa=P0+cosϑ2P1K1ADA=Qa1|UADA|0Qa=sinϑ2σ~-,K0ADB=Qa0|UADB|0Qa=sinϑ2P1,K1ADB=Qa1|UADB|0Qa=σ~++cosϑ2σ~-. 6

For the AD-effect circuit A (B) the Kraus operators K0ADA (K0ADB) acts on the register bit Qr0 when the measurement outcome of the quantum state of the ancilla bit Qa is |0Qa while K1ADA (K1ADB) operates when the measurement outcome is |1Qa. When we average these two outcomes, the quantum state of Qr0 created by the AD-effect circuit A is given byρADA,Qr0(ϑ)=TrQa[ρADA,Qr0Qa(ϑ)]=μ=0,1KμADA·ρQr0(0)·(KμADA), where the symbol TrQa denotes the partial trace with respect to Qa degrees of freedom. Similarly, for the AD-effect circuit B we have ρADB,Qr0(ϑ)=μ=0,1KμADB·ρQr0(0)·(KμADB). In particular, for the AD-effect circuit A when we take ϑ to be ϑt such that cos2(ϑt2)=e-γt5, the matrix representation of ρADA,Qr0(ϑt) is given by

ρADA,Qr0(ϑt)=ρADA,Qr0(0)00+ρADA,Qr0(0)11(1-e-γt)ρADA,Qr0(0)01e-γt2ρADA,Qr0(0)10·e-γt2ρADA,Qr0(0)11e-γt. 7

The matrix element ρADA,Qr0(0)nn (n,n=0,1) denotes the (n,n)-element of ρADA,Qr0(0). The reduced density matrix ρADA,Qr0(ϑt) in Eq. (7) is nothing but the solution of the quantum master equation (1). Further, when we take ϑtπ, the Kraus operators in Eq. (6) becomes {K0ADA,K1ADA}{P0,σ~-},{K0ADB,K1ADB}{P1,σ~+}. Therefore, for the case of the AD-effect circuit A by using the measurement result of Qa such that we post-select the output state of Qa to be |1Qa we can realize the operation of σ~- on Qr0. On the other hand, for the AD-effect circuit B by post-selecting the output state of Qa to be |0Qa we realize the operation of P1 on Qr0. To show the above things concretely, let us present the examples of the quantum circuits for the generation of l=k+1dUl·σ~-ρk1σ~+·l=k+1dUl and l=k+1dUl·P1ρk1P1·l=k+1dUl for k=2,d=3, and we show them in Fig. 4a,b, respectively. As a result, by using the AD-effect circuits A and B we can perform the actions of σ~- and P1 as described by the third and four terms in Eq. (5), and thus, we have solved the second difficulty (2).

Figure 4.

Figure 4

(a) Schematic of an elementary quantum circuit in the AD-effect circuit group given by the AD-effect circuit A which generates l=k+1dUl·σ~-ρk1σ~+·l=k+1dUl. For doing so, we set ϑ=π and post-select the measurement result of the quantum state of Qa to be |1Qa. (b) Schematic of an elementary quantum circuit in the AD-effect circuit group given by the AD-effect circuit B. When we post-select the measurement outcome of Qa to be |0Qa, we have l=k+1dUl·P1ρk1P1·l=k+1dUl. Both of these quantum circuits in (a) and (b) are for k=2,d=3 with ϑ=π.

Since the difficulties (1) and (2) have been solved, we are now ready to establish our QEM scheme. To compute the quantity Tr(O^·Δ1ADρd1) we need four types of quantum circuits: the original circuit given by UQC, the quantum circuit where the additional Z gate is performed, and the AD-effect circuits A and B. The latter three quantum-circuit ensembles composed of the additional Z-gate, σ~-, and P1 operations form the quantum-noise-effect circuit group for the AD effect, i.e, AD-effect circuit group. Hereinafter, let us write the trace of the product between the operator O^ and ρ by Tr(O^ρ)=O^ρ. We perturbatively express the quantum states ρd1real with respect to τ as ρd1real=ρd1+δAD(ρd1) with δAD(ρd1)=p=1τpp!·δpAD(ρd1). Furthermore, we write the quantity which is obtained by the implementation of Δ1ADρd1 on a real device by (Δ1ADρd1)real. With similar to ρd1real, we perturbatively express (Δ1ADρd1)real in terms of Δ1ADρd1 and τ as (Δ1ADρd1)real=Δ1ADρd1+δAD(Δ1ADρd1) with δAD(Δ1ADρd1)=p=1τpp!·δpAD(Δ1ADρd1). Then, by using Eqs. (2)–(5) we obtain the quantum-error-mitigated expectation value of O^ given by

O^d1QEMO^ρd1real-τO^(Δ1ADρd1)real=O^ρd1+τ(O^δ1AD(ρd1)-O^Δ1ADρd1)+O(τ2). 8

The idea of our QEM scheme is clearly represented in the second line of Eq. (8). The first term is the ideal expectation value while the second term represents the conduction of our QEM scheme. It is described as the subtraction between O^δ1AD(ρd1) (the quantum computational error occurring on a real device) and O^Δ1ADρd1 (theoretically-evaluated quantum computational error), which is computed by the AD-effect circuit group. The heart of the idea for doing this is that we have considered that the real noise effect δ1AD(ρd1) is (approximately) equivalent to the theoretically-estimated noise effect Δ1AD(ρd1). When the second term in the second line of Eq. (8) becomes small enough, we consider that we have accomplished in mitigating the error of quantum computation on a real device. Note that the quantum noise effects coming from δAD(ΔADρd1) are suppressed by multiplying O^(ΔADρd1)real by τ (the second term in the right-hand side of the first line of Eq. (8)). This is because the lowest-order error AD effect on the implementation of Δ1ADρd1, which is δ1AD(Δ1ADρd1), becomes O(τ2) due to the multiplication by τ: δAD(Δ1ADρd1)τ·δAD(Δ1ADρd1)=p=1τp+1·δpAD(Δ1ADρd1). Consequently, in the first-order perturbation theory with respect to τ we have established our QEM scheme by the usage of the AD-effect circuit group and is expressed by the formula given by Eq. (8). The above argument on QEM-scheme derivation can be straightforwardly generalized to register-bit systems for Nq2. In this case, ρ~k1AD in Eq. (5) is represented as

ρ~k1AD=LAD[ρk1]=j=0Nq-1-ρk14+Zjρk1Zj4+σ~j-ρk1σ~j+-Pj1ρk1Pj1. 9

We can apply our QEM scheme to the Nq register-bit system in the following way. We prepare Nq register bits and one ancilla bit {Qr0,Qr1,,QrNq-1,Qa}. Then we create an ensemble of quantum circuits composed of the j-th register bit Qrj (j=0,1,,Nq-1) and the ancilla bit Qa which describes that Qrj is subject to the AD effect induced by the ancilla bit Qa. Namely, we create the ensemble of four types of quantum circuits composed of Qrj and Qa, the original quantum circuits given by UQC, the quantum circuits with additional Z-gate operations, and the AD-effect circuits A and B. By summing up all these quantum circuits, we obtain the AD-effect circuit group which enables us to perform QEM for Nq-register-bit system under the AD effect. The total number of quantum circuits which compose the AD-effect circuit group is 3dNq+1, and thus, it scales polynomial in dNq, which is not so high-cost computational performance.

Before ending this section, let us explain two ways to extend our QEM formalism. Firstly, we can extend into cases of other quantum noise channels including generalized amplitude damping (GAD), phase damping (PD), their composite channels, and stochastic Pauli noise models such as bit flip, phase flip, bit-phase flip, and depolarizing channel. Secondly, we can create quantum-noise-effect circuit groups which enable us to perform QEM for higher-order quantum noise effects. We present arguments on these two cases in Sect. I in the Supplementary Information.

Numerical simulations

In this section, we numerically demonstrate our QEM scheme for four types of algorithms. For the quantum noise effect we choose AD effect. In “Preliminary”, as a preliminary of our QEM demonstration, we present the results of two algorithms: the algorithm composed of the initial X-gate operation and the repetition of the Hadamard gate acting on a single register bit and that composed of the initial XX operation and the controlled-Hadamard gate acting on two register bits. In “Quantum amplitude amplification”, we show the results of QEM for a long-term quantum algorithm and here we choose quantum amplitude amplification (QAA) algorithm (Grover’s search algorithm). In “QAOA”. we show the results of recently developed NISQ quantum algorithms, Quantum Approximate Optimization Algorithm (QAOA).

In the following, let us explain the formalism of our noisy quantum simulations (numerical simulations of running quantum algorithms with real quantum devices performed by classical computers). As shown in Fig. 2, every time we apply an unitary (gate) operation, the Nq register bits experience AD effects. Suppose that at time t0 the quantum states of the register bits were given by the density matrix ρ(t0). According to the quantum master equation (1), when the unitary gate U has been applied to the register bits within the time interval Δt the quantum state of the register bits at t=t0+Δt is expressed by the density matrix

ρAD(t0+Δt)=EAD[Uρ(t0)U], 10

where EAD[] is the superoperator which describes the AD effect on the Nq register bits and it is given by5,85

EAD[ρ]=nQr0,,nQrNq-1MnQr0,,nQrNq-1·ρ·MnQr0,,nQrNq-1,MnQr0,,nQrNq-1=MQr0ADMQrNq-1AD,M0AD=100cosϑτ2,M1AD=0sinϑτ200, 11

where nQr0,,nQrNq-1=0,1, and cos2ϑτ2=e-τ. The operators M0AD and M1AD are the Kraus operators acting on single-qubit states and describe the influence of the AD effect on a single register bit during the time interval Δt. Here we assume that the Nq register bits homogeneously experience the single-qubit-state AD effect as described in Eq. (11). For later convenience, let us introduce the notation which describes the operation of the unitary operator U on the quantum state ρ by T[ρ,U](=UρU). Let us write the quantum state generated by the unitary transformation UQC under the AD effect by ρd1AD. By using the superoperator EAD[], the output state ρd1AD is represented as

ρd1AD=EAD[T[EAD[T[EAD[T[ρ(0),U1]],U2]],Ud]]. 12

Equations (11) and (12) are the basic equations of our noisy quantum simulations. Namely, we perform our noisy quantum simulations by identifying the quantum state ρd1AD in the above equation with ρd1real, which is the AD-affected quantum state generated by the unitary transformation UQC on real devices. We conduct QEM described by Eq. (8) for various values of τ by tuning the value of ϑτ. When we execute the AD circutis A and B, we run quantum simulations of the Nq+1 qubit systems. The right-hand side of Eq. (11) becomes nQr0,,nQrNq-1,nQaMnQr0,,nQrNq-1,nQa·ρ·MnQr0,,nQrNq-1,nQa, where MnQr0,,nQrNq-1,nQa=MQr0ADMQrNq-1ADMQaAD. Note that the ancilla bit Qa is treated similarly as the other Nq register bits such that Qa is subject to the same quantum noise effect described by the Kraus operators in Eq. (11) as the other Nq register bits do. Correspondingly, we mitigate the quantum noise effects influencing both Qa and the Nq register bits via Eq. (8).

For performing our noisy quantum simulations, we have created two types of numerical codes. The first one is our original numerical code and the second one is the numerical code created by Qiskit85. In our numerical code, we simply compute the matrix products of the density matrices, the unitary operations Uk, the Kraus operators, and the additional operations such as Z,σ~±,P1. Furthermore, we compute the trace operations between the density matrices and the physical operators O. Namely, our original numerical code is a density-matrix simulator. On the other hand, the Qiskit code is programmed by two numbers, NQC and Nsamp. To understand them concretely, first let us discuss an example of quantum computing of a single-qubit system. We execute the given quantum circuit and we obtain an output state which is either |0 or |1. We repeat this process NQC times and say that we obtained |0 for N|0 times as the output state while we obtained |1 for N|1 times. Then, the probability weight of |0 is N|0NQC while that of |1 is N|1NQC. Namely, the number NQC is the repetition number of quantum computing executed by the given quantum circuit, and the numerical simulations in our original code describes the quantum simulations in the limit NQC. Next let us explain what Nsamp is. It is the repetition number of “the execution of the quantum computation for NQC times under the given (fixed) quantum circuit”. By introducing such a number, we effectively perform the quantum computation under the given quantum circuit with the repetition number NQC×Nsamp in our Qiskit code. In contrast to NQC, the repetition number Nsamp is not coming from foundations of quantum mechanics and we have introduced this quantity owing to the following two reasons. First, due to our survey there is an upper limit on NQC in the Qiskit program and is 107. By introducing Nsamp, we become able to effectively perform quantum computations with repetition numbers greater than the upper limit of NQC (=107) in the Qiskit program. Second, we consider that it is not enough to just show a single data point of “the quantum computational result obtained by the fixed quantum circuit and NQC” to see how largely it deviates from the true quantum computational result (quantum computation in the limit NQC). To present how largely the quantum computational results for fixed and finite NQC deviate (finite-size effects of NQC) from the true ones, we introduce Nsamp and show visually such deviations. In order to describe the second reason more mathematically, let write a binary which labels a quantum state of qubit Qα (α=0,,Nq-1) by nQα: |nQα with nQα=0,1 and an output state is described by the computational basis states |nQNq-1QNq-1|nQ0Q0=|nQNq-1nQ0. Let us say that we focus on the specific quantum state |n^QNq-1n^Q0 and consider how many times it is obtained as the output state for given NQC. By saying that |n^QNq-1n^Q0 has been obtained as the output state for Nn^QNq-1n^Q0(NQC) times, the probability of an output state being |n^QNq-1n^Q0 is wn^QNq-1n^Q0(NQC)=Nn^QNq-1n^Q0(NQC)NQC. Furthermore, we write the probability such that |n^QNq-1n^Q0 is going to become observed in quantum computing under NQC as pn^QNq-1n^Q0. We redescribe such a circumstance as the binomial distribution denoted by B(pn^QNq-1n^Q0,NQC) and introduce the random variable Xi such that in the ith round of quantum computation we take Xi=1 when the output state is |n^QNq-1n^Q0, otherwise Xi=0. Next, we introduce another random variable X¯=j=0NQC-1XjNQC, which is equivalent to wn^QNq-1n^Q0(NQC). Owing to the central limit theorem, we obtain limNQCwn^QNq-1n^Q0(NQC)=pn^QNq-1n^Q0. In other words, the binomial distribution B(p,NQC) approaches to the Gaussian distribution function given by the mean pn^QNq-1n^Q0 and the standard deviation pn^QNq-1n^Q0(1-pn^QNq-1n^Q0)NQC, namely Npn^QNq-1n^Q0,pn^QNq-1n^Q0(1-pn^QNq-1n^Q0)NQC. Let us say that we perform quantum computing with accuracy ϵ. From the standard deviation of Npn^QNq-1n^Q0,pn^QNq-1n^Q0(1-pn^QNq-1n^Q0)NQC, we can estimate the lower bound of NQC for doing this and is equal to pn^QNq-1n^Q0(1-pn^QNq-1n^Q0)ϵ2. Note that in order to perform QEM with the accuracy ϵ the total repetition number of quantum computing gets larger with respect to d and Nq due to the quantum-noise-effect circuit group and this issue is addressed later. The number NQC describes the repetition number of quantum computation owing to the given quantum circuit whereas the number Nsamp describes how many times you conduct the sampling for the expectation values of physical operators obtained by the NQC-repeated quantum computation. Owing to this sampling, the repetitive number of the quantum computations effectively becomes NQC×Nsamp, and our simulation results become more trustable. In our simulations we take NQC=210 and Nsamp=100 for both the original quantum circuit and each elementary circuit of quantum-noise-effect circuit group. Our original numerical code, on the other hand, is the code for a noisy quantum simulation in the limit NQC, and basically, it performs pure linear algebraical computations such as matrix-product and trace operations. We note that when we create the numerical codes with Qiskit, we need to be careful with how controlled-unitary operators are implemented. We have examined that on Qiskit program the controlled-unitary operators are implemented as the decomposition of UCX gates and single-qubit unitary gates. For example, the control-Ry gate UCRy(ϑ)[Qr0;Qr1] is decomposed as UCRy(ϑ)[Qr0;Qr1]=12×2Qr0Ry(ϑ2)Qr1·UCX[Qr1;Qr0]·12×2Qr0Ry(-ϑ2)Qr1·UCX[Qr0;Qr1]. Therefore, when we simulate QAA for three-qubit systems and QAOA with our original code we implement UCRy(ϑ)[Qr0;Qr1] in the same way as Qiskit program does.

In order to quantitatively describe the validity of our QEM scheme we introduce the measure defined by

RTQEM=|O^ρd1real-O^ρd1||O^ρd1-O^ρd1QEM|. 13

The numerator of RTQEM in Eq. (13) describes the absolute of the difference between the expectation value owing to the noisy quantum simulation O^ρd1real (no QEM) and the ideal expectation value O^ρd1ideal . On the other hand, the denominator represents the absolute of the difference between the expectation value obtained by our QEM scheme O^ρd1QEM (see Eq. (8)) and the ideal expectation value. In other words, the measure RTQEM in Eq. (13) is the ratio between the absolute of the error without QEM and the one with QEM. Thus, when RTQEM>1 the expectation value O^ρd1QEM is closer to the ideal value than O^ρd1real, which means that our QEM scheme is working. In addition to the ratio RTQEM in Eq. (13), we display the results of the expectation values obtained by the ideal simulations, the noisy simulations without QEM, and the noisy simulations with QEM, and show explicitly the validity of our QEM scheme. Note that for our original code we take the noise-strength parameter to be ϑτ=io×0.01 with io=0,1,,50 while for Qiskit code we take ϑτ=iQ×0.05 with iQ=0,1,,10. For computing the expectation values we include the case io=0 and iQ=0 whereas for computing the ratio RTQEM we omit io=0 and iQ=0. This is because in this case we have O^ρd1=O^ρd1real=O^ρd1QEM and we encounter in the indefinite 00. In the following, we create a subsection for each quantum algorithm and discuss the results in detail.

Preliminary

As a preliminary, let us conduct the noisy quantum simulations for two simple algorithms. The first algorithm is given by the unitary operation Upre1QC=Hd-1·X, where H denotes the Hadamard gate. The second one is given by Upre2QC=(UCH[Qr0;Qr1])d-1)·XQr0XQr1. The unitary operator UCH[Qr0;Qr1] is the controlled-Hadamard gate composed of the control bit Qr0 and the target bit Qr1. Here we take the circuit depth d to be d=1+2n with n being positive integers. Let us show the quantum circuits for these two algorithms in Fig. 5. By changing the values of d and τ, we numerically analyze how well our QEM scheme works in terms of these two parameters. Let us discuss from the results of noisy quantum simulations conducted by the quantum circuit in Fig. 5a and show them in Fig. 6. We have taken the physical operators O^ as O^=X,Z. The horizontal axis represents ϑτ, which can be regarded as the strength of AD effect. On the other hand, the vertical axis in Fig. 6a,b denote the expectation values of O^ while those in Fig. 6c,d describe the ratio RTQEM given in Eq. (13): Fig. 6a,c are the results for O^=X while Fig. 6b,d are those for O^=Z. The dotted lines in Fig. 6a,b describe the expectation values without QEM being performed whereas the solid lines represent the expectation values with QEM being performed. For both the dotted and solid lines the red, blue, and green plots in Fig. 6a,b are the computational results of X and Z for d=23+1, 24+1, and 25+1, respectively. The black dotted lines are the results of the ideal simulations. We have computed X^ρd1,X^ρd1real, and X^ρd1QEM not as the expectation values of X with respect to the quantum states generated by Upre1QC but as those of Z with respect to the quantum states generated by Upre1QC and the subsequent operation of H, i.e., we have switched the basis vectors for the measurement from the computational basis to {|+,|-}, where |+=H|0,|-=H|1. Correspondingly, we have d=2+2n: see Fig. 6c. Let us analyze our simulation results by comparing the behaviors of the expectation values and the ratio RTQEM in Eq. (13) as functions of ϑτ. In this way, we can clearly see whether our QEM scheme is working or not, and for this purpose in the following we rewrite RTQEM as RTQEM(ϑτ) to emphasize that they are the functions of ϑτ. Furthermore, we introduce the angle ϑτc such that RTQEM(ϑτ=ϑτc)=1, which indicates that the point ϑτ=ϑτc is the critical point of our QEM to become failed. Let us look from the results shown in Fig. 6a,c by focusing on how the behaviors of O^ρd1,O^ρd1real,O^ρd1QEM, and RTQEM change by increasing ϑτ. In Fig. 6a, as the definition of ϑτc we certainly see that in the range 0<ϑτϑτc the absolute |O^ρd1real-O^ρd1| is bigger than |O^ρd1QEM-O^ρd1|, which implies that O^ρd1QEM is numerically closer to O^ρd1 than O^ρd1real, and correspondingly, in Fig. 6c we see RTQEM(ϑτ)1. As we increase the value of ϑτ from ϑτc, the absolute |O^ρd1real-O^ρd1| becomes smaller than |O^ρd1QEM-O^ρd1|, and correspondingly, the ratio RTQEM(ϑτ) decreases monotonically from one. For the region ϑτϑτc to improve the quality of our QEM we need take into account higher-order AD effects and establish QEM schemes for mitigating them and we expect the value of ϑτc to become larger. Next, let us analyze how the quality of our QEM becomes when we vary the circuit depth d. We see that for every ϑτ both |O^ρd1real-O^ρd1| and |O^ρd1QEM-O^ρd1| become bigger and RTQEM(ϑτ) decreases as we increase d. This is reasonable because when d gets larger the amount of error gets bigger. For the results in Fig. 6b,d, basically we see that both the expectation values of Z and RTQEM(ϑτ) show the similar behaviors as those for O^=X: (I) the validity of QEM (RTQEM(ϑτ)1) in the range 0<ϑτϑτc and monotonic decrease of RTQEM(ϑτ) for ϑτ>ϑτc, and (II) worsening of the quality of our QEM for large d. In contrast to the above characteristics of X and Z, we have numerically verified that the expectation value of Y takes zero for any ϑτ. This is because when the density matrix ρ is a real matrix the expectation value Y is zero. Since both the quantum algorithm and the AD effect are described by real numbers (see also Eq. (7) or the Kraus operators in Eq. (11)) the density matrix generated by these two things is real and we have Y=0.

Figure 5.

Figure 5

Quantum circuits for (a) Upre1QC=Hd-1·X and (b) Upre2QC=(UCH[Qr0;Qr1])d-1)·XQr0XQr1.

Figure 6.

Figure 6

Quantum simulations for the quantum algorithm Upre1QC=Hd-1·X. Plots in (a) and (b) are the results of QEM for the expectation value of X and Z, respectively. The dotted lines are the expectation values without QEM while the solid lines represent the expectation values with QEM. The black dotted lines are the results of the ideal simulations. In (c) and (d), we show the ratio RTQEM for the expectation values of X and Z respectively. The red, blue, and green plots are the results for d=1+23,d=1+24, and d=1+25, respectively. Note that in (c) we have d=2+2n with n=3,4,5 since the Hadamard gate is applied to Qr0 at the end.

Let us discuss the results in Fig. 7. They are the noisy simulation results of the quantum algorithm given by Upre2QC (see the quantum circuit in Fig. 5b) and we have taken d=1+2n as in the case of simulations for Upre1QC. Here we have simulated RTQEM(ϑτ) for the expectation values of the operators O^=ZX,ZZ. As similar to the computations of X^ρd1,X^ρd1real, and X^ρd1QEM, we have computed ZX^ρd1,ZX^ρd1real, and ZX^ρd1QEM not as the expectation values of ZX with respect to the quantum states generated by Upre2QC but as those of ZZ with respect to the quantum states generated by Upre2QC and the subsequent operation of H on Qr1:d=2+2n as indicated in Fig. 7c. Overall, we see the same characteristics with the cases of O^=X,Z: the characteristics (I) and (II) mentioned above. For any ϑτ, the ratio RTQEM(ϑτ) for the noisy simulations of Upre2QC are smaller than those of Upre1QC. This is because Upre1QC is solely comprised of the single-qubit gates (X and H) while Upre2QC is constructed by n-operation of the controlled-Hadamard gate (two-qubit gate), and thus, the bigger amount of errors are accumulated in the latter case. The difference between the characteristics of noisy simulations for Upre1QC and those for Upre2QC, although it is not an essential point for the validity of our QEM, is that we see both one minima and one maxima in each plot for RTQEM(ϑτ) in Fig. 7c while only one maxima appears in Fig. 7d. Let us denote the point where RTQEM(ϑτ) takes the minimum (maximum) by ϑτmin (ϑτmax): note that these values depend on d. We can understand why these points emerge by looking at Fig. 7a,b. Let us explain from the origins of the minima and the maxima in Fig. 7c by looking at the plots in Fig. 7a. In the range 0<ϑτϑτmin we have O^ρd1real-O^ρd1<0 and O^ρd1QEM-O^ρd1<0 whereas in the range ϑτmin<ϑτϑτmax we have O^ρd1real-O^ρd1>0 and O^ρd1QEM-O^ρd1<0. Then, in the range ϑτmax<ϑτ we have O^ρd1real-O^ρd1>0 and O^ρd1QEM-O^ρd1>0. As a result, the minima appears at ϑτ=ϑτmin whereas the maxima emerges at ϑτ=ϑτmax in Fig. 7c. The origin of the maxima in Fig. 7d can be similarly explained by looking at the plots in Fig. 7b. In the range 0<ϑτϑτmax we have O^ρd1real-O^ρd1<0 and O^ρd1QEM-O^ρd1<0, while in ϑτ>ϑτmax we have O^ρd1real-O^ρd1<0 and O^ρd1QEM-O^ρd1>0, and consequently, the maxima appears at ϑτ=ϑτmax. Like the case of the noisy simulations of Upre1QC, the density matrices are generated as real matrices (the unitary transformation Upre2QC as well as the AD effects are described by real numbers), and the expectation values of the Pauli operators, IYXYYIYXYZZY are zero for both ideal and noisy simulations. Here we have rewritten 12×2 as I for convenience. Note that the expectation value of the identity operator (=14×4: four by four identity operator) is one for any quantum state including noise-affected quantum states since the trace of density matrix is one for any quantum state. In other words, it is unnecessary to do QEM for the expectation value of the identity operator. Note, however, that when leakage occurs the trace preservation is not held anymore and we need to consider QEM for the error induced by the leakage.

Figure 7.

Figure 7

Quantum simulations for the quantum algorithm Upre2QC=(UCH[Qr0;Qr1])d-1)·XQr0XQr1. Plots in (a) and (b) are the results of QEM for the expectation value of ZX and ZZ, respectively. The dotted lines are the expectation values without QEM while the solid lines represent the expectation values with QEM. The black dotted lines are the ideal simulation results. We plot the ratio RTQEM for expectation value of ZX and ZZ in (c) and (d), respectively. The red, blue, and green plots are the results for d=1+23,d=1+24, and d=1+25, respectively. Note that in (c) d is given as d=2+2n (n=3,4,5) since the Hadamard gate operates on Qr1 at the end.

Quantum amplitude amplification

By taking account of the previous analysis, let us apply our QEM scheme to Quantum Amplitude Amplification (QAA)33 for three-qubit systems: two-register bits and one oracle bit. One of the important application of QAA is the database retrieval and the quantum algorithms for this is called the Grover’s search algorithm33,9194. Let us denote the (classical) oracle function by f and a binary by x which takes ``00,``01,``10,``11. We consider that we have only one solution of f and write it by x, which satisfy f(x)=1, and assume x=``11: for x=``00,``01,``10 we have f(x)=0. The oracle operator OQAA can be implemented on a quantum circuit by using one oracle bit Qo such that OQAA|xQr0Qr1|0Qo-|1Qo2=(-1)f(x)|xQr0Qr1|0Qo-|1Qo2, where the superposition state |0Qo-|1Qo2 is created by applying H·X on the oracle-bit state |0Qo. In our case, (-1)f(x)=-1 when |xQr0Qr1=|11Qr0Qr1, and the oracle operator OQAA is equivalent to the Toffoli gate comprised of the two controlled bits Qr0 and Qr1 and the target bit Qo33, and write it by UCX[Qr0Qr1;Qo]. To construct QAA we need one more unitary transformation and that is Uψ=14×4-2|ψψ|12×2, where |ψ=H2|00Qr0Qr1. By introducing Uinit=H2(H·X)Qo, QAA is given by the unitary operation33

UQAA=(UG)k·Uinit,UG=-Uψ·OQAA,Uψ=((H·X)212×2,Qo)·(12×2,Qr0HQr112×2,Qo)·(UCX[Qr0;Qr1]12×2,Qo)·(12×2,Qr0HQr112×2,Qo)·((X·H)212×2,Qo) 14

We show the quantum circuit for the unitary operation UQAA in Fig. 833: the quantum circuit for the oracle operator OQAA (=UCX[Qr0Qr1;Qo]) is shown in Sect. II in the Supplementary Information. We note that on the quantum circuit in Fig. 8, what is actually implemented is -UG=Uψ·OQAA and the global phase factor (-1) does not affect our result. The unitary operation UG is called the Grover operator and k is the repetitive number number of its operation and here we have k=1. After the operation of UQAA in Eq. (14), ideally both of the probability weights of |110 and |111 are 12, and thus, the probability of obtaining the quantum state |11 as the output state is 12×2=1, which implies the success of searching the solution x=``11. By taking account of the above theoretical framework, we examine whether our QEM scheme works or not for QAA given by UQAA in Eq. (14) by computing the probability weights of |110 and |111 which we name as P110 and P111, respectively, and show these results in Fig. 9. Solid lines in Fig. 9a,b describe the probability weights obtained by our original numerical code and we have denoted P110(111)ρd1ideal,P110(111)ρd1real, and P110(111)ρd1QEM by Pideal,Preal, and PQEM, respectively. On the other hand, the blue and orange circles are calculated by our Qiskit code and we have denoted P110(111)ρd1real and P110(111)ρd1QEM by PnoisyQiskit and PQEMQiskit, respectively. Similarly, in Fig. 9c,d, we have denoted the ratio RTQEM(ϑτ) calculated by our Qiskit code by RTQEMQiskit: for the results obtained by our original code we have just used the notation RTQEM for describing them. Let us look from the simulation results of P110 and the associated ratio RTQEM(ϑτ) given by Fig. 9a,c, respectively. In the range 0ϑτ0.5, overall the simulation results with QEM are numerically closer to the ideal values than the noisy simulation results without QEM, and correspondingly, we have RTQEM(ϑτ)>1. The similar characteristics can be seen in Fig. 9b (simulation results of P111) and 9d (RTQEM(ϑτ) for P111). For the results obtained by our Qiskit code, the deviation between RTQEM and RTQEMQiskit becomes prominent in the small ϑτ region and we consider this as follows. When noise strength ϑτ is weak enough, on the Qiskit code the difference between the noisy value and the ideal value is very tiny such that our QEM becomes invalid and RTQEMQiskit gets lower than one. On the other hand, we see that some red points are above RTQEM(ϑτ)=1. We consider that by greatly increasing NQC, we expect that RTQEMQiskit approaches to RTQEM. As a result, our QEM works for the noisy simulations of both P110 and P111. To show clearly that the simulation results obtained by our Qiskit code approach to those obtained by our original code by increasing NQC, in Fig. 10a,b we show the NQC dependencies of P110 and P111, respectively. In these plots the horizontal axes represent NQC whereas the vertical axis in Fig. 10a represents the numerical values of P110 and that in Fig. 10b represents those of P111. In the following let us write a noisy expectation value obtained in the ith round of quantum computing by OnoisyQiskit(i,NQC) (O=P110,P111 and i=1,,Nsamp) and similarly an expectation value with QEM by OQEMQiskit(i,NQC) with taking NQC=2nQC with nQC=8,9,,14, Nsamp=100, and ϑτ=0.2. From these two figures, we clearly see that both OnoisyQiskit(i,NQC) and OQEMQiskit(i,NQC) approach to Onoisy and OQEM, respectively, i.e., the deviations of OnoisyQiskit(i,NQC) from Onoisy and those of OQEMQiskit(i,NQC) from OQEM get smaller for larger NQC=2nQC. To evaluate these deviations numerically, in Fig. 10c (O=P110) and 10d (O=P111) we plot inverse variances defined by σnoisy,Qiskit2[O,NQC,Nsamp]-1=i=1samp1NsampOnoisyQiskit(i,NQC)-O¯noisyQiskit(NQC)2-1, where O¯noisyQiskit(NQC,Nsamp)=i=1sampOnoisyQiskit(i,NQC)Nsamp. We approximate σnoisy,Qiskit2[O,NQC,Nsamp]-1 as a linear function of NQC as σnoisy,Qiskit2[O,NQC,Nsamp]-1=αnoisyQiskit[O,Nsamp]NQC and we have αnoisyQiskit[O,Nsamp]=4.62 and 5.05 for P110 and P111, respectively. On the other hand, the variances of OnoisyQiskit(i,NQC) can be analytically evaluated (see also the description in pages 7 and 8) as σnoisy2[O,NQC]-1=Onoisy(1-Onoisy)NQC-1=αnoisy[O]NQC, and we have αnoisy[O]4.04 for P110 and αnoisy[O]4.26 for P111. Therefore, the two variances σnoisy2[O,NQC] and σnoisy,Qiskit2[O,NQCNsamp] have good numerical agreements. In addition to these two variances, we also plot the quantity defined by σQEM,Qiskit2[O,NQC,Nsamp,Nq,d]-1=i=1samp1NsampOQEMQiskit(i,NQC)-O¯QEMQiskit(NQC,Nsamp)2=αQEMQiskit(O,Nsamp,Nq,d)NQC, where O¯QEMQiskit(NQC,Nsamp)=i=1sampOQEMQiskit(i,NQC)Nsamp. Such a quantity describes the deviations of OQEMQiskit(i,NQC) from OQEM owing to the finite effect of NQC and plays the role of variance. Like σnoisy2[O,NQC]-1 and σnoisy,Qiskit2[O,NQC,Nsamp]]-1, we take it as the linear function of NQC given by the coefficient αQEMQiskit(O,Nsamp,Nq,d). Note that the dependency of the coefficient αQEMQiskit(O,Nsamp,Nq,d) in terms of Nq and d originates in the size of the quantum-noise-effect circuit group 3Nqd. Owing to our simulation, we obtain αQEMQiskit(O,Nsamp,Nq,d)=3.45 for O=P110 and αQEMQiskit(O,Nsamp,Nq,d)=3.77 for O=P111. The coefficients αQEMQiskit(O,Nsamp,Nq,d) are smaller than αnoisyQiskit[O,Nsamp], as expected, since the deviations get larger owing to the usage of the quantum-noise-effect circuit group (additional computational resource for QEM). The ratio αnoisyQiskit[O,Nsamp]αQEMQiskit(O,Nsamp,Nq,d), however, is about 1.34 for both cases which implies that the broadening of the deviations is not so big. We leave the detailed mathematical analysis on σQEM2[O,NQC]-1 and σQEM,Qiskit2[O,NQC,Nsamp,Nq,d]-1 as well as the coefficient αQEM(O,Nsamp,Nq,d) as our future work. In addition to Nsamp=100, we also perform the simulations for Nsamp=1000, and as a result, we obtain αnoisyQiskit[O,Nsamp]=4.25 and αQEMQiskit(O,Nsamp,Nq,d)=3.18 for P110 and αnoisyQiskit[O,Nsamp]=4.47 and αQEMQiskit(O,Nsamp,Nq,d)=3.34 for P111. As a result, by increasing NQC both OnoisyQiskit(i,NQC) and OQEMQiskit(i,NQC) approach to Onoisy and OQEM, respectively, owing to the law of large numbers. Let us also show the simulation results of the rest of the six probabilities of the computational basis states for ϑτ=0.2 as the histogram in Fig. 11, which also includes P110 and P111. The ideal values of these six probabilities are all zero and we see that the noisy simulation results with QEM are numerically close to them compared with those without QEM, which indicates that our QEM scheme also works for the other six probabilities.

Figure 8.

Figure 8

Quantum circuits for UQAA in Eq. (14).

Figure 9.

Figure 9

Quantum simulation results for the quantum algorithm UQAA in Eq. (14). Plots in (a) and (b) are the results of the probabilities P110 (probability of |110) and P111 (probability of |111), respectively. The dotted black lines are the ideal simulation results whereas the blue and orange curves are the noisy simulation results without QEM and the ones with QEM, respectively. All of them are obtained by our original code. The blue and orange circles are the noisy simulation results without QEM and the ones with QEM, respectively, and they are obtained by our Qiskit code. Plots in (c) and (d) are the results of the ratio RTQEM for P110 and P111, respectively. The black curves are obtained by our original code while the red circles by our Qiskit code. For each ϑτ we have plotted 100 circles in (a)–(d), i.e., Nsamp=100..

Figure 10.

Figure 10

Numerical results of OnoisyQiskit(i,NQC) and OQEMQiskit(i,NQC) for (a) P110 and (b) P111. The plots in (c) and (d) are σnoisy,Qiskit2[O,NQC,Nsamp]-1 (blue) and σQEM,Qiskit2[O,NQC,Nsamp,Nq,d]-1 (orange) for P110 and P111, respectively. We take NQC=2nQC with nQC=8,9,,14, Nsamp=100, and ϑτ=0.2.

Figure 11.

Figure 11

Histogram of the probability distribution of the computational basis states for QAA simulations given by UQAA in Eq. (14). Here we have set ϑτ=0.2.

In addition to the above simulation, let us present the simplified version of QAA for the two-qubit systems95. In this problem setting, we consider the effective two-dimensional space spanned by the two Bell states |Ψ+=|01+|102 and |Φ+=|00+|112, and write their superposition state by |Σ=cΨ+|Ψ++cΦ+|Φ+, where the complex coefficients cΨ+,cΦ+ satisfy |cΨ+|2+|cΦ+|2=1. Our goal is to amplify the probability amplitude cΦ+. Here we take the initialization operator to be Vinit=UCX[Qr1;Qr0]·(Ry2π3Qr0HQr1) while we take the Grover operator to be VG=VsVω, where Vω=(X·Z·X)Qr0ZQr1 and Vs=Vinit·(2|020|-14×4)·Vinit-V~s with V~s=Vinit·(XX·UCZ[Qr0;Qr1]·XX)·Vinit. k is the number of VG to be applied. In total, the unitary operation for running QAA is given by VQAA=(VG)k·Vinit. We present the corresponding quantum circuit in Fig. 12. As similar to the above case, on the quantum circuit we implement V~s instead of Vs. In the following, let us take a look at the meanings of the three unitary operations Vinit,Vs, and Vω. First, the unitary operation Vinit generates the superposition of |Φ+ and |Ψ+ as |00|s=Vinit|00=cosϑV2|Ψ++sinϑV2|Φ+ with ϑV=π/3. Second, the unitary operation Vω is the oracle operator and when it is applied to the initial state |s we have Vω|s=cosϑV2|Ψ+-sinϑV2|Φ+, i.e., the oracle operator Vω is the operator such that it reverses the sign of the Bell state |Φ+. Third, Vs is the reflection of the vector Vω|s with respect to the vector |s. When we operate VG on |s for k times we have (VG)k|s=cos(2k+1)ϑV2|Ψ++sin(2k+1)ϑV2|Φ+, and since ϑV=π/3 we have k=1. We can understand the geometrical meaning of the operation VG as follows. Let us consider the effective three-dimensional space spanned by the two Bell states |Φ+ and |Ψ+ and the vector |ξ which is perpendicular to both |Φ+ and |Ψ+. Furthermore, we call the axis which is parallel to |ξ (perpendicular to the two-dimensional plane spanned by |Φ+ and |Ψ+) as ξ-axis. The unitary operation VG is the rotation about ξ-axis by the angle ϑV in this effective three-dimensional space. We can verify whether |Φ+ has been generated as the output state or not by measuring the probabilities of |00 state and |11 state, which are denoted by p00 and p11, respectively. In other words, the probabilities p00 and p11 are the expectation values of the projection operators P00 and P11, respectively, where P00 (P11) is the projection operator of |00 (|11) state. Namely, we run noisy quantum simulation for O^=P00,P11 and perform QEM on them: Note that in the case of the ideal simulation we obtain p00=p11=12. We plot the numerical results of p11 and p00 for the range 0ϑτ0.5 in Fig. 13a,b, respectively, and in Fig. 13c,d we plot RTQEM(ϑτ) for p11 and p00, respectively. All these results shown here are obtained by our original numerical code and we have denoted P00(11)ρd1ideal,P00(11)ρd1real, and P00(11)ρd1QEM by Pideal,Preal, and PQEM, respectively. Let us look from the results of the probability p11. In Fig. 13a we see that for any ϑτ the absolute of the deviation |P11ρd1real-P11ρd1| is bigger than |P11ρd1QEM-P11ρd1|, and correspondingly, as we see in Fig. 13c the ratio RTQEM(ϑτ) is greater than one. Therefore, our QEM scheme works well for the noisy simulation of p11. In contrast, in Fig. 13b,d we see that the probability p00 shows essentially a different behavior. That is the expectation value without QEM P00ρd1real is numerically close to the ideal value P00ρd1 compared with the QEM-performed expectation value P00ρd1QEM, and correspondingly, the ratio RTQEM(ϑτ) is lower than one. Such a characteristic is understood as follows. Firstly, we have analytically examined that the expectation value P00ρd1real does not include first-order term in τ, i.e., P00Δ1ADρd1=0. The lowest-order term included in the numerator of RTQEM(ϑτ) is O(τ2). Secondly, due to our QEM the lowest order of the denominator of RTQEM(ϑτ) is also O(τ2). As a result, the ratio RTQEM(ϑτ) becomes lower than one, which indicates that it is not appropriate to adopt our QEM scheme. We consider that this is because our QEM scheme described by Eq. (8) is the scheme for mitigating the first-order AD effect. In the limit of ϑτ0, the ratio RTQEM(ϑτ) takes finite value, and analytically it is the ratio between the absolute of the coefficient of P00δ2ADρd1 and that of P00δ1(Δ1ADρd1). We note that we have performed two types of simulations with our original code. In the first one we have directly implemented UCZ[Qr1;Qr0] gate while in the second one we have implemented it via the decomposition 12×2Qr0HQr1·UCX[Qr1;Qr0]·12×2Qr0HQr1. According to the results of these two simulations, we have analyzed that on the Qiskit code UCZ[Qr1;Qr0] gate is automatically implemented by the above decomposition since the result of the second simulation with our original code shows better matching with that obtained by our Qiskit code. In such a case, the first-order term in τ appears for P00ρd1real and our QEM works well. Besides p00 and p11, let us briefly discuss the noisy simulation results of the probability weights of |01 and |10 and write them by p01 and p10, respectively. We show them in the histogram in Fig. 14 which describes the probability distribution of the computational basis states of the two register qubits Qr0 and Qr1. Here we have taken ϑτ=0.2. We

Figure 12.

Figure 12

Quantum circuit for QAA given by VQAA with k=1.

Figure 13.

Figure 13

Noisy quantum simulations for QAA given by VQAA for O^=P00,P11. All these results are obtained by our numerical code. (a) Plots of the results of Pideal=P11ρd1,Pnoisy=P11ρd1real, and PQEM=P11ρd1QEM presented by the black dashed line, the blue solid line, and the orange solid line, respectively. (b) Plots of the results of Pideal=P00ρd1,Pnoisy=P00ρd1real, and PQEM=P00ρd1QEM presented by the black dashed line, the blue solid line, and the orange solid line, respectively. (c) The ratio RTQEM(ϑτ) for P11. (d) The ratio RTQEM(ϑτ) for P00.

Figure 14.

Figure 14

Histogram of the probability distribution of the computational basis states for two-qubit-system QAA simulations. We have set ϑτ=0.2.

Let us end this subsection by giving the following comment. In the previous subsection, we have seen that our QEM scheme becomes meaningless in the cases when the expectation values of the ideal simulations are equivalent to those of noisy simulations such as the simulation for the expectation value Y. Besides these cases, our QEM scheme represented by the formula in Eq. (8) does not work when noisy expectation values do not include the first-order term in τ like the noisy simulation for the probability p00 discussed above. In other words, if we construct the QEM formula which describes the mitigation for a higher-order quantum noise effect, which is discussed in Sect. IB in the Supplementary Information, by using it we become able to accomplish the noisy quantum simulation obtaining RTQEM(ϑτ)>1. In practice, however, when we run quantum algorithms on real quantum devices we cannot compute RTQEM(ϑτ) since we cannot compute ideal expectation values. We can check whether noisy expectation values include the first-order terms in τ or not, for example, in the following way. We perform two types of QEM, QEM of both the first- and second order quantum noise effects and the one of only the second-order effect. Let us denote the density matrices obtained by the former QEM and the latter one by ρ2ndQEM and ρ2nd,onlyQEM, respectively. Next, we introduce the measure M1st/2nd=|Tr((ρ2ndQEM-ρ2nd,onlyQEM)O)×τ-1|, where O is a physical operator. If the first-order QEM fails (noisy expectation values do not include the first-order terms in τ) then the measure M1st/2nd is O(τ2). On the other hand, if the first-order QEM succeeds (noisy expectation values include the first-order terms in τ and is mitigated) then M1st/2nd is O(1). By extending this approach we can examine whether noisy expectation values include higher-order quantum noise effects or not. We consider, however, that the failure of the first-order QEM for the noisy quantum computation when the linear order in τ does not appear is not so crucial compared with the case when we have failed in mitigating the linear-order quantum noise effects included in noisy expectation values, and indeed we can see this by looking at Fig. 14. For the probability weight of |00> state, the numerical differences among the three expectation values, O^ρd1,O^ρd1real,O^ρd1QEM, are small. On the other hand, for the probability weight of |11> state, O^ρd1 and O^ρd1QEM is close enough while O^ρd1 and O^ρd1real are quite separated.

QAOA

As a final example, let us apply our QEM scheme to the noisy simulation of the variational quantum algorithm called Quantum Approximate Optimization Algorithm (QAOA)2733. In the following, we analyze QAOA for a max-cut problem which is to divide vertices (nodes) of a given graph into two groups so that the number of edges connecting two vertices belonging to the different groups is maximized and is a NP (Non-deterministic Polynomial time)-hard problem.

First, we discuss from a theoretical framework of a classical approximate optimization. We express the given graph G as G=(V,E), where V={v0,,vi,,vNV-1} is the set of vertices with NV denoting their total number and for each vertex vi the binary value zi=±1 is assigned. E={{v0v1,C0,1},,{vivi+1,Ci,i+1},, {vNV-2vNV-1,CNV-2,NV-1}} is the set of the edges with vivi+1 denoting the edge connected by the vertices vi and vi+1. The quantity Cij (i,j=0,,NV-1 with ij) is the adjacency matrix element (weight) for the edge vivj which is semi-positive. Let us write the NV strings of zi by z=(z0,,zNV-1). The goal of a classical approximate optimization is to minimize the cost function

C(z)=12(vi,vj)Cij(zizj-1), 15

or equivalently to maximize the ratio rCAO (1) which satisfies

C(z)CminrCAO, 16

where Cmin is the minimum value of C(z). In our simulation, as illustrated in Fig. 15 we adopt the square graph given by the four vertices v0,v1,v2, and v3, and the edges are v0v1,v1v2,v2v3, and v3v0, and take Cij=1 for any edge vivj. Next, we discuss the theoretical framework for QAOA. The four vertices v0,v1,v2, and v3 are encoded in four qubits Qr0,Qr1,Qr2, and Qr3, respectively, and the values zizj in the expectation values of the operators ZQiZQj. The cost function C(z) in Eq. (15) is given by the expectation of the Hamiltonian

HC=12(i,j)(ZQriZQrj-1), 17

where the symbol (ij) (i,j=0,1,2,3) denotes the summation for the edges connected by the qubits Qri and Qrj under the square-graph structure in Fig. 15. In this simulation the physical operator O^ is the Hamiltonian HC in Eq. (17). The unitary operation for running QAOA, which we denote by UQAOA, consists of three elements. The first one is the unitary operation for creating the reference state and is given by the Hadamard-gate operation on all four qubits, Uint=H4. The other two are the unitary operations UC(ϑjQAOA) and UX(φjQAOA) which are generated by the Hamiltonian HC in Eq. (17) with the angle ϑjQAOA and the term HX=iXQri with the angle φjQAOA, respectively: in QAOA HX is called the transverse-field (mixing or driving) term. The two types of angles ϑjQAOA and φjQAOA (j=1,,p) are the variational parameters and p is the repetition number of applying the unitary operation UX(φjQAOA)·UC(ϑjQAOA) (the number of iteration), which determines the accuracy of QAOA. In total, UQAOA is given by

UQAOA=j=1pUX(φjQAOA)·UC(ϑjQAOA)·a=03HQra,UC(ϑjQAOA)=e-iϑjQAOAHC,UX(φjQAOA)=e-iφjQAOAHX. 18

Figure 15.

Figure 15

Structure of the graph G=(V,E). It is the square composed of the four vertices v0,v1,v2, and v3 and the four edges v0v1,v1v2,v2v3, and v3v0. For each vertex vi (i=0,1,2,3) the binary value zi=±1 is assigned and the set (vi,zi) is encoded in the qubit Qri in the QAOA simulation.

The quantum circuit for UQAOA in Eq. (18) is presented in Fig. 16. In our simulation we set p=2 and the circuit depth is d=15. The unitary operation UX(φjQAOA) is implemented by the Rx gate (rotation about x axis) with the angle 2φjQAOA. Meanwhile, the quantum circuit for UC(ϑjQAOA) is composed of the sets of the quantum gates [UCX[Qri;Qri],Rz(2ϑjQAOA)], where Rz denotes the rotational gate about z axis and the associated angle is 2ϑjQAOA. Corresponding to Eq. (16), the goal of QAOA simulation is to compute and minimize the expectation value

C(ϑQAOA,φQAOA)=ϑQAOA,φQAOA|HC|ϑQAOA,φQAOA, 19

where |ϑQAOA,φQAOA=UQAOA|04 with ϑQAOA=(ϑ1QAOA,ϑ2QAOA) and φQAOA=(φ1QAOA,φ2QAOA). Let us also call the expectation value C(ϑQAOA,φQAOA) in Eq. (19) as the cost function and its minimization is equivalent to the optimization of the variational parameters ϑjQAOA,φjQAOA, and write them by ϑjQAOA,opt,φjQAOA,opt. We show their values in Sect. III in the Supplementary Information. Let us now discuss our simulation results shown in Figs. 17, 18 and 19. All these results are obtained by computing the probability distribution of the computational basis states since the Hamiltonian HC in Eq. (17) is given by the Z gate operations. First, let us take a look at the simulation results in Fig. 17. In Fig. 17a, we have plotted the results of the cost function C(ϑQAOA,φQAOA) for the ideal simulation (Cideal=HCρd1), the noisy simulation (Cnoisy=HCρd1real), and the simulation with QEM (CQEM=HCρd1QEM). The dashed black line, the blue solid line, and the orange solid line are Cideal,Cnoisy, and CQEM, respectively, and they are all obtained by our original code. On the other hand, the blue and orange circles are HCρd1real and HCρd1QEM, respectively, and they have been calculated by our Qiskit code. We have denoted HCρd1real and HCρd1QEM by CnoisyQiskit and CQEMQiskit, respectively. We have plotted 100 circles for each ϑτ. We see that in the range 0.1ϑτ0.5 our QEM works well. In Fig. 17b, we have plotted the ratio RTQEM(ϑτ). The black curve is the result obtained by our original code while the red circles are those obtained by our Qiskit code and 100 circles are plotted for each ϑτ. Corresponding to the result shown in Fig. 17a, the ratio satisfies RTQEM(ϑτ)>1. Like the results in Fig. 10, we present the NQC dependencies of the probabilities P0101 and P1010 in Fig. 18a,b, respectively. We take NQC=2nQC with nQC=8,9,,14, Nsamp=100, and ϑτ=0.2. We see that as we increase NQC both P0101noisyQiskit(i,NQC) and P1010noisyQiskit(i,NQC) approach to P0101noisy and P1010noisy, respectively, and similarly, P0101QEMQiskit(i,NQC) and P1010QEMQiskit(i,NQC) approach to P0101QEM and P1010QEM, respectively. In Fig. 18c,d we plot σnoisy,Qiskit2[O,NQC,Nsamp]-1, and σQEM,Qiskit2[O,NQC,Nsamp,Nq,d]-1 for P0101 and P1010, respectively. For P0101 we obtain αnoisy[O]4.20,αnoisyQiskit[O,Nsamp]3.50,αQEM[O,Nsamp,Nq,d]2.61 and for P1010 αnoisy[O]4.19,αnoisyQiskit[O,Nsamp]3.80,αQEM[O,Nsamp,Nq,d]2.84. For both P0101 and P1010 the ratio αnoisyQiskit[O,Nsamp]αQEMQiskit(O,Nsamp,Nq,d) is 1.34, which indicates that the broadening of the deviations of OQEMQiskit(i,NQC) from OQEM due to our QEM method is not so large (not so high computational cost). We have also performed our simulations for Nsamp=1000 and we obtain αnoisyQiskit[O,Nsamp]4.04,αQEMQiskit[O,Nsamp,Nq,d]3.02 for P0101 and αnoisyQiskit[O,Nsamp]4.33,αQEMQiskit[O,Nsamp,Nq,d]3.27 for P1010. Therefore, compared with the results for Nsamp=100 the coefficients αnoisyQiskit[O,Nsamp] get bigger and become closer to αnoisy[O] and αQEMQiskit[O,Nsamp,Nq,d]. Finally, let us explain the results in Fig. 19. Here we have presented the histogram of the probability distribution of the computational basis states for the ideal case (Pideal), the noisy case (Pnoisy,PnoisyQiskit), and the case with QEM being performed (PQEM,PQEMQiskit), with setting ϑτ=0.2. We see that ideally the probabilities of the two quantum states |0101 and |1010 are both equal to 0.5. This implies that under the optimized variational parameters the cost function C(ϑQAOA,φQAOA) becomes minimized such that the four qubits Qri are partitioned into the two groups [Qr0,Qr2] and [Qr1,Qr3], and it implies that all the edges of the square are to be cut, i.e., the maximum number of edges to be cut is four. Correspondingly, as shown in Fig. 17a the ideal minimum value of the cost function is -4.0, and we obtain the maximum cut number four by multiplying minus one. Consequently, our QEM scheme works for the noisy QAOA simulation.

Figure 16.

Figure 16

Quantum circuit for QAOA.

Figure 17.

Figure 17

Quantum simulations for QAOA. In (a) we show the results of QEM for the cost function C(ϑQAOA,φQAOA). The blue and orange solid lines are Cnoisy=HCρd1real and CQEM=HCρd1QEM, respectively, and they obtained by our original code. The blue and orange circles are the results of HCρd1real and HCρd1QEM obtained by our Qiskit code, respectively. For this simulation, we have described HCρd1real and HCρd1QEM as CnoisyQiskit and CQEMQiskit, respectively. The dotted black line is the ideal expectation value Cideal=HCρd1. In (b) we have plotted the results of the ratio RTQEM(ϑτ). The black curve is the result obtained by our original code whereas the red circles are the one obtained by our Qiskit code. For each ϑτ, we have plotted 100 circles.

Figure 18.

Figure 18

Numerical results of OnoisyQiskit(i,NQC) and OQEMQiskit(i,NQC) for (a) P0101 and (b) P1010. We plot σnoisy,Qiskit2[O,NQC,Nsamp]-1 (blue) and σQEM,Qiskit2[O,NQC,Nsamp,Nq,d]-1 (orange) for P0101 and P1010 in (c) and (d), respectively. We take NQC=2nQC with nQC=8,9,,14, Nsamp=100, and ϑτ=0.2.

Figure 19.

Figure 19

Histogram of the probability distribution of the computational basis states for QAOA simulations. We have set ϑτ=0.2. Pideal,Pnoisy, and PQEM are obtained by our original code while PnoisyQiskit and PQEMQiskit are obtained by the Qiskit code.

QEM scheme implementation

In this section, we demonstrate our QEM scheme using two IBM Q Experience processors, ibmq_belem and ibm_perth86. In Fig. 4 in Sect. V of the Supplementary Information, we show schematics of spatial configurations for qubits in these machines: Fig. 4a is the illustration for ibmq_belem whereas Fig. 4b is that for ibm_perth. As similar to the quantum simulations demonstrated in “Numerical simulations”, we examine the efficacy of our QEM scheme for the real quantum devices by varying the depths of the quantum algorithms to be run. We do this for two quantum algorithms, Upre1QC in Fig. 5a and a quantum algorithm for a two-qubit system defined by Uimp,2QC=(UCZ[Qri;Qrj])rep·XiXj, where nrep is an integer. For the usage of ibmq_belem, we choose qubits Q1 and Q3 as register qubits whereas we use Q2 (Q4) as an ancilla bit for mitigating the quantum noise effect on Qr1 (Qr3). On the other hand, we use Q1 and Q3 as register qubits while we use an ancilla bit Q2 (Q5) for QEM of the quantum noise effect on Q1 (Q3) for the usage of ibm_perth. In the following, we rewrite Q1 and Q3 as Qr1 and Qr3, respectively, to emphasize that they are used as register bits. Our QEM scheme can be applied provided that noise parameters (strengths) are given a priori. Thus, we start from the acquisition of the quantum noise strengths of these devices (noise characterization). Then, we discuss the results of our QEM method obtained with these machines (implementation).

Noise characterization

Let us first discuss from how to obtain the AD strength τ (=γΔt) or the T1 time. The relation between the decay rate γ and the T1 time is T1=1γ(2n¯+1), where n¯ is the Bose-Einstein distribution function. For superconducting qubit systems, qubit frequencies and temperatures are about 5.0 GHz (see also Tables II, IV, and V in the Supplementary Information) and 10 mK9,17, respectively. As a result, the Bose-Einstein distribution function n¯ is estimated to be n¯10-11 and we approximate n¯ to be zero. The value of T1 can be obtained as follows. First, we prepare a single qubit and apply the X gate so that the qubit is in the |1 state (excited state). Next, we let the qubit relax until certain time tarelax (a=1,2,,Nm and 0<t1<t2<<tNm), measure the output state of the qubit which is either |0 or |1, and repeat this process to obtain the probability weights of the |0 and |1 states. The total exposure time of the qubit is tatot,T1=ΔtX+tarelax, where ΔtX denotes a X-gate operation time. This is equivalent to measuring the dynamics of the expectation value P1(tatot,T1) (the dynamics of the probability such that |1 is to be measured as the output state), and by doing an exponential fitting on the P1(tatot,T1) plots we can extract the value of T1. We can also extract a T2 time and here let us consider a T2 time which is obtained by the Ramsey measurement explained in the following and hereinafter we just denote T2 time as T2 time. Basically, what we do is first we apply the Hadamard gate, let the qubit relax for tarelax, apply the second Hadamard gate, measure the output state, and repeat this process: The actual gate operations implemented on these experiments are not the two Hadamard gates owing to the issue of transmon qubit systems and its details is described in Sect. IV in the Supplementary Information. The above procedure is essentially equivalent to measuring the dynamics of P1(tatot,T2), where tatot,T2=2ΔtH+tarelax with ΔtH denoting Hadamard-gate operation time. From the P1(tatot,T2) curve we obtain a T2 time. In the Supplementary Information IV, we explain how to estimate the T1 and T2 times with presenting the experimental data plots of the expectation values: Figs. 2 and 3 show the data plots of the T1 and T2 times, respectively, and Table I lists the values of them for ibmq_belem.

In Sect. V in the Supplementary Information, we present the physical properties (single-qubit and two-qubit gate times, qubit frequencies) of ibmq_belem and ibm_perth: Tables II and III (Tables IVVII) list the physical properties of ibmq_belem (ibm_perth). Here let us briefly explain the gate properties. The native gates of these machines are the following, identity gate, virtual Z gate, X gate, X gate, CNOT, and reset operation (reset into |0). The Hadamard gate is decomposed into a series of the native gates as H=Rzπ2·X·Rzπ2.

By using the data in Sects. IV and V in the Supplementary Information we are now able to implement our QEM scheme. Before showing the results, let us comment five things about our experiment. Firstly, the values of T1 and T2 times differ from qubit to qubit on a real device due to imperfection (inhomogeneities of T1 and T2). To take these inhomogeneities into account and extract T1 and T2 times, we need to perform the above two procedures independently on each qubit. Secondly, a gate time Δt is actually gate dependent as shown in Tables IIVII in the Supplementary Information. By taking the inhomogeneities of both the T1 and T2 times and the gate times into account, instead of τ, which does not depend on both the qubits and the quantum gates, we perform our QEM scheme by using a perturbative parameter τjk=γjΔtk, where j(=0,,Nq-1) is the index for qubit numbering whereas k(=1,,d) is that for labeling the gates. In the following, we denote the T1 and T2 times of the qubit Qj by T1,j and T2,j, respectively. Thirdly, T1 and T2 times fluctuate temporally on a real device. To run our QEM scheme, it is necessary to record the data of T1 and T2 times day-by-day and use these values. Thus, we indicate the time and the date in the coordinated universal time (UCT) when we list the data of T1 and T2 times. Fourthly, the CZ gate operation is decomposed into the form UCZ[Qr1;Qr3]=Rzπ2·X·Rzπ23·UCX[Qr1;Qr3]·Rzπ2·X·Rzπ23, and according to the transpilation of IBM Q Experience programming (UCZ[Qr1;Qr3])2 has been processed as (UCZ[Qr1;Qr3])2=Rzπ2·X·Rzπ2·UCX[Qr1;Qr3]·1·1·UCX[Qr1;Qr3]·Rzπ2·X·Rzπ2, and Uimp,2QC has been executed as Uimp,2QC=Rzπ2·X·Rzπ23·UCX[Qr1;Qr3]·(1·1·UCX[Qr1;Qr3])nrep-1·Rzπ2·X·Rzπ23·X1X386. Note that 1 denotes the identity operator. Fifthly, the time when the quantum computation has been conducted (see the captions of Figs. 20, 21, and 22) indicates the time when the original circuit and the quantum-noise-effect-circuit group have been executed. Finally, the measured (experimental) value of τ, which we denote by τexp, can be differ from the true value of τ due to, for instance, imperfection of experimental apparatuses. Although that is the case, the conduction of our QEM method is said to be a success provided that the condition RTQEM>1 is satisfied.

Figure 20.

Figure 20

Plots in (a) and (c) are quantum computation results obtained by ibm_perth and (b) and (d) are quantum simulation results. The quantum algorithm which has been run is Upre1QC. Both (a) and (b) are the results of expectation values of Z1 and (c) and (d) are the ones of RTQEM. All the quantum circuits have been executed under NQC=214,Nsamp=5. The horizontal axes represent d=nrep+1, where nrep=16,32,64. The quantum computation has been conducted at 07:17, 09/26/2023.

Figure 21.

Figure 21

Quantum computation and simulation results for Uimp,2QC. (a) ((b)) and (c) ((d)) are the quantum computation (simulation) results of expectation values Z1Z3 and ratios RTQEM, respectively. All the horizontal axes represent d=3nrep+1 with nrep=5,10,15. The quantum computations have been conducted via ibm_perth at 06:55, 09/21/2023 under NQC=214,Nsamp=10.

Figure 22.

Figure 22

Quantum computation ((a) and (c)) and simulation results ((b) and (d)) for Uimp,2QC. (a) and (b) are the plots of Z1Z3 and (c) and (d) are those of RTQEM. All the horizontal axes represent d=3nrep+1 with nrep=5,10,15. The quantum computations have been conducted via ibmq_belem at 11:43, 09/11/2023 under NQC=210,Nsamp=10.

Implementation

As mentioned previously, in real quantum devices both T1 and T2 times and gate operation times are inhomogeneous, and moreover, both AD and PD effects exist. By taking these elements into account, we perform our QEM scheme by improving the formulas given by Eqs. (3) and (8) as

O^ρd1QEMO^ρd1real-j=0Nq-1k=1dO^Δ1,jkAD&PDρd1real,Δ1,jkAD&PDρd1=l=k+1dUl·-Δtk2T2,jρk1-Zjρk1Zj+ΔtkT1,jσ~jρk1σ~j+-Pj1ρk1Pj1·l=k+1dUl. 20

We note that the quantum circuits such that the additional operations {Z,σ~-,P1} are inserted after the virtual Z gates are not needed for (or do not contribute to) the calculation of Eq. (20) because the operation time of the virtual Z gate is zero.

First, let us discuss from the results for Upre1QC which are shown in Fig. 20. Here all the horizontal axes represent d=nrep+1, where the repetition number nrep is taken to be 16, 32, and 64. Fig. 20a presents a quantum computation result of expectation values Z1 obtained by ibm_perth whereas the plots in Fig. 20b is a quantum simulation result of Z185. On the other hand, Fig. 20c displays a quantum computation result of RTQEM with ibm_perth and Fig. 20d plots a quantum simulation result of RTQEM85. In Fig. 20a, we observe that both the expectation values with and without QEM get farther from the ideal expectation value (black dashed line) rapidly as we increase nrep, and correspondingly, the monotonic decreasing of RTQEM is exhibited in Fig. 20c, which are similar to the characteristics in Fig. 6a,c. Compared with these results, however, RTQEM decreases gradually since not only the noisy expectation values but also the expectation values with QEM increase rapidly. In contrast, in Fig. 20b, we see that while the expectation values without QEM or noisy expectation values (blue open circles) increase gradually as d (or nrep) gets larger the expectation values with QEM (orange open circles) take almost the same value. In Fig. 20d, the monotonic increasing of RTQEM is exhibited. In the experiment of the implementation of Upre1QC, both the expectation values and RTQEM obtained by the quantum computation and those by the quantum simulation show qualitatively different behaviors. On the other hand, all the ratios RTQEM are greater than one. As a result, our QEM scheme has worked, however, not effectively.

Next, let us explain the results of the implementation which are shown in Fig. 21. Figure 21a,c display quantum computation results via ibm_perth and Fig. 21b,d present quantum simulation results85: Fig. 21a,b are the results of expectation values Z1Z3 while Fig. 21c,d are those of RTQEM. All the horizontal axes describe d=3nrep+1 with nrep=5,10,15: the factor three represents the implementation of one CNOT gate UCX[Qr1;Qr3] and two identity operations acting on both Qr1 and Qr3. Such identity operations are coming from the operation Rzπ2·X·Rzπ22=1·1: see also the fourth comment in “Noise characterization”. Note that the number of the implementation of the virtual Z gate is not included in the depths of the quantum algorithms. Let us explain from the results in Fig. 21a,b. We observe that both of these results show qualitatively the same behavior, i.e., while the noisy expectation values (blue open circles) gradually get farther from the ideal expectation value (black dashed line) as nrep increases, the expectation values with QEM (orange open circles) approximately take the same value. On the other hand, in Fig. 21c,d the ratios RTQEM exhibit the monotonic increasing, and moreover the ratio RTQEM is greater than one for every d: RTQEM shown in Fig. 21c are larger than those in Fig. 20c for every d. In addition to the quantum computation with ibm_perth, we have also conducted a quantum computation using ibmq_belem and a quantum simulation for Uimp,2QC85: Fig. 22a,c are the quantum computation results and Fig. 22b,d are the quantum simulation results. As similar to the labeling in Fig. 21, Fig. 22a,b (22c,d) are the results of Z1Z3 (RTQEM), and all the vertical axes represent d=3nrep+1 with nrep=5,10,15. Overall, the characteristics of these results are similar to those for ibm_perth. Here we plot two types of expectation values with QEM which are indicated by the orange open circles and the green squares and two types of RTQEM by the red open circles and the green squares. The quantities plotted by the orange and red open circles have been calculated by using the data of the T1 and T2 times obtained at 05:08 whereas the others obtained by the data taken at 12:33: see Table I in the Supplementary Information. The time when the latter data has been taken (12:33) is closer to the time when the quantum computation has been conducted (11:43), and thus we consider that the latter RTQEM are greater than the former ones: see also the third comment in “Noise characterization”. As a result, we observe RTQEM>1 for every quantum computation in our experiment, and we consider that our QEM works for the IBM Q Experience processors.

To summarize our experiment of the implementation of our QEM scheme, the quantum computations for Upre1QC and Uimp,2QC show the different behaviors although the same machine has been used: the former case exhibits the different behavior from the simulation result while the latter case shows qualitatively the similar behavior. Moreover, the ratios RTQEM for Uimp,2QC are larger than those for Upre1QC, which are in contrast to the results in Figs. 6 and 7: On the whole, RTQEM for Upre2QC are basically smaller than those for Upre1QC. One way to interpret the characteristics in Fig. 21c and 22c, the increasing behavior of RTQEM with respect to nrep , is as follows. When the noise strength is too small the noisy expectation values become sufficiently close to the ideal ones and in such circumstances the conduction of our QEM scheme can give rise to negative effects since computers can treat up to certain digits. Indeed, such a characteristic has been observed in the quantum simulation results in Fig. 9c,d and 17b in the range 0<ϑτ0.1: for a superconducting qubit system T1100 μs and Δt100 ns and ϑτ is estimated to be ϑτ0.063. Thus, in order to utilize our QEM method effectively we need to use it under circumstances with moderate quantum noise strengths or for running moderately long quantum algorithms under weak quantum noise effects: such a way of interpretation, however, cannot be adapted to understand the characteristics in Fig. 20c. Consequently, the interpretation of the discrepancy between the quantum simulation result and the quantum computational result for Upre1QC and the discrepancy between the characteristic of RTQEM for Uimp,2QC and that for Upre1QC remain unresolved for this experiment.

We note that our experiment has been conducted under restricted conditions such as the time for which we could have used the IBM Q Experience processors and the machines which have been available. Provided that we have no such restrictions, let us give several comments on how to improve our results. The first way is to increase the value of Nsamp. As indicated in Figs. 10 and 18, by increasing the value of Nsamp we expect that the expectation values with QEM approach to unique values and we become clearer to see whether our QEM scheme is working or not. The second way is to mitigate other types of errors. By combining our QEM scheme with QEM methods for other errors such as state preparation and measurement errors or errors according to other quantum noise channels such as crosstalk96, we anticipate that the value of RTQEM becomes larger.

In addition to the above discussion, let us consider the effectiveness of the implementation of our QEM scheme on different quantum hardware and here we choose ion trap qubit systems. Ion trap qubit systems are engineered, for instance, as linear chains and a two-qubit gate operation can be exploited such that it can be performed on any pair of qubits97: In contrast, in order to implement a two-qubit gate on two separated qubits, say Qa and Qb, on the superconducting quantum devices which have been used in this experiment we need to insert SWAP operations acting on qubits which locate between Qa and Qb86. Therefore, all quantum algorithms as well as quantum-noise-effect circuit groups are able to be implemented as indicated by the quantum circuits for them. In other words, we can harness our QEM scheme on ion trap qubit devices without reformulating the quantum circuits. Next, let us discuss quantum noise in ion trap qubit systems. The quantum noise occur in, for instance, hyperfine-state type ion-trap qubit systems are considered to be the phase damping and T2 times are about 10 s while single-qubit gate times are around 10 microseconds and two-qubit gate times are about 100 μs7,12. By setting T2=(2γp)-1, we have τp=γpΔt5×10-6, where we have set Δt=100 μs. τp is sufficiently small and therefore, we expect that our QEM scheme also works for ion-trap NISQ devices. From these ingredients, we expect that the implementation our QEM scheme works more effectively and is more suitable for ion trap qubit systems compared with the superconducting qubit systems.

Comparison with other methods

We make comparisons between our method and other methods. Although many types of QEM methods have been proposed up to now26,27,5076, here we focus on the following three methods, probabilistic error cancellation (PEC)26,27,50,53,57,60,65,6871,73,74,76, zero noise extrapolation (ZNE)26,27,5053,72,74,76, and error suppression by dearangements (ESD)67,75,76 and virtual distillation (VD)66,76. In Table 1, we summarize and present the comparison between our method and the others in terms of the number of ancilla bits Na and the number of additional circuits NAQC. We choose PEC from these three methods and numerically compare with our method and the reason we do this is the following. Both methods are theoretically similar such that they evaluate quantum noise effects on quantum states by quantum computational operations and perform QEM which are represented as sums of expectation values yielded by ensembles of quantum circuits including original circuits and quantum circuits containing additional operations.

Table 1.

Comparison between our QEM method in kth-order perturbation theory and the other three methods. Here b is a positive constant and ϵerr is a gate error rate. The number of ancilla bits Na is equal to (n-1)Nq for VD without ancilla bits.

Method Na NAQC
Ours k O(Nqd)k
PEC 0 Oexp(2bϵerrNqd)
ZNE 0 0
ESD/VD (n-1)Nq+1or(n-1)Nq 0

Comparison with PEC

First, we make a comparison between our method and PEC26,27,50,53,57,60,65,6871,73,74,76. These two methods have a theoretical similarity such that they use additional quantum computational operations to mitigate quantum noise effects, however, their treatments are technically different. In PEC, quantum noise effects are mitigated by constructing inverse processes of quantum noises comprised of the sixteen basis operations and quasiprobabilities called recovery operations. In other words, both original circuits and additional quantum circuits are probabilistically generated owing to quasiprobabilities. Suppose that the recovery operation for the quantum noise under consideration, which acts on a single-qubit state, is composed of Nquasp nonzero quasiprobabilities. The elementary operations of the recovery operation (the terms composing the recovery operation) is inserted after each operation of Ul and the maximum number of circuits for performing PEC is NquaspNqd. Once all these circuits are run obeying the quasibrobabilities the quantum noise effects are completely mitigated (non-perturbavtive method with respect to the noise strength). We mathematically describe the recovery operation as follows. By writing the non-zero quasiprobabilities and the associated basis operations as ηα and Bα (α=1,,Nquasp), respectively, the recovery operation executed after the operation of Ul is described in terms of these quantities as EQN,l-1=jl=1Nq,lPECαjl=1quaspηαjlBαjl, where Nq,lPEC is the number of qubits on which the recovery operations in the lth layer act, Bαjl is the basis operation acting on the jth qubit Qj, and ηαjl is the associated quasiprobability of Bαjl: note that ηαjl include both positive and negative values. Furthermore, let us say that we compute an expectation value O with a repetition number NQC and accuracy ϵ and write an associated quantum mechanical variance by ΔO2[NQC,ϵ]. When we perform PEC under the same repetition number NQC and the accuracy ϵ the variance of the expectation value with PEC being performed, which we denote by ΔO,PEC2[NQC,ϵ], becomes larger than the original variance ΔO2[NQC,ϵ] as ΔO,PEC2[NQC,ϵ]=CPEC2ΔO2[NQC,ϵ], where CPEC2=l=1dα=1NquaspNq,lPEC|ηα|2=exp(2bϵerrd) with b a positive constant and ϵerr is a gate error rate which is assumed to be gate independent (or a typical gate error rate)27,50,53,60. Let us say that we generate M quantum circuits (we call M as PEC sampling number) obeying the quasiprobability and an elementary circuit of the M quantum circuits can be either the original circuit or one of the additional circuits. By writing the set of quantum circuits for PEC which is composed of NquasNqd quantum circutis by SPEC and the ith generated circuit by CiPEC (SPEC ), the exact error cancellation owing to PEC is described by limMOPEC,M=limMi=1MOCiPEC=Oideal, where OCiPEC is the expectation value of O obtained by the quantum circuit CiPEC, which is generated with the probability 1M50. How many times a quantum circuit, say Ca, appears in the M sampling depends on its quasiprobability. The computational resource, however, is finite in practice and in order to implement PEC in a real circumstance we take the sampling number M such that |OPEC,M-Oideal|ϵ. The sampling number M scales in ϵ as Oϵ-250,53,60,73,74,76. On the other hand, our QEM method is conducted by the estimation of the kth-order quantum noise effect ΔkADρd1 and we subtract it from the noisy expectation value. In contrast to the quasiprobabilities, the coefficients which compose ΔkADρd1 such as ±1 and ±14 are not probabilistic but deterministic (see Eq. (9) and the argument in Sect. I in the Supplementary Information), and furthermore, to evaluate ΔkADρd1 we deterministically prepare and execute the quantum-noise-effect circuit group whose size (the number of elementary circuits composing it) is O(dNq)k. The quality of our QEM method gets better as we increase k and this corresponds to the increasement of M in PEC. Let us make numerical comparisons between these two methods for QAOA discussed in “QAOA” and show them in Fig. 23. We perform the quantum simulations by taking the AD strength ϑτ=0.1×a with a=1,2,,5. We take k=1 (first-order perturbation theory) for our QEM method and for PEC we take M=3dNq+1, which is the number of quantum circuits we need to perform our first-order QEM scheme, and in this case d=15,Nq=4 and M=181. The reason why we take M=3dNq+1 is the following. Let us say that we conduct each QEM method with the same amount of quantum computational resource (under the same condition) and this can be regarded as the number of quantum circuits to be used for QEM. This is because, as mentioned previously, both methods are described as sums of expectation values generated by ensembles of quantum circuits consist of original circuits and quantum circuits including additional operations. By taking account this, next let us introduce an error defined by δQEM=|O^ρd1-O^ρd1QEM|, which represents the absolute of the difference between the ideal expectation value and the expectation value with our QEM method being performed.

Figure 23.

Figure 23

Numerical comparisons between our QEM method and PEC. We take ϑτ=0.1×a with a=1,2,,5. The results in (a)–(c) are the ones for NQC. (a) Plots of the ideal cost function Cideal (black dotted line), the cost function without QEM Cnoisy (blue curve), the cost function with QEM CQEM (orange curve), and the cost function with PEC CPEC which are plotted by 100 (NsampPEC=100) green circles for each ϑτ. We take M=181. (b) The ratio NPEC/QEM/Nsamp which satisfy RTPEC/QEM>1. (c) Plots of the variances σQEM2(ϑτ,NsampPEC) and σPEC2(M,ϑτ,NsampPEC) in Eq. (23). We take M=181 and NsampPEC=100. (d) Plots of the variances σQEM2(ϑτ,NsampPEC,NQC) and σPEC2(M,ϑτ,NsampPEC,NQC) by taking NQC=210.

On the other hand, we introduce an error δPEC=|O^ρd1-OPEC,M| with setting M=3dNq+1. The numerical comparison between our method and PEC can be redescribed such that we perform each method using the common quantum computational resource which is the 3dNq+1 quantum circuits and examine whether δQEM is smaller than δPEC or not: the method having smaller error can be represented as the better QEM method. Hereinafter, let us rewrite the expectation value with QEM and that with PEC as O^ρd1QEMO^QEM(ϑτ) and OPEC,MOPEC(ϑτ,M), respectively, to express the noise-strength dependencies. Furthermore, we rewrite the ideal expectation value and the noisy expectation value as O^ρd1O^ideal and O^ρd1realO^noisy(ϑτ), respectively. Note that the operator O is chosen to be HC in Eq. (17). The recovery operation of AD acting on single-qubit states after the operation of Ul is described by73

EAD,l-1=jl=151+1-ϵAD(ϑτ)2(1-ϵAD(ϑτ))1jl+1-1-ϵAD(ϑτ)2(1-ϵAD(ϑτ))Zjl-ϵAD(ϑτ)1-ϵAD(ϑτ)(P|0)jl, 21

where 1jl is the identity operator acting on Qj, Zjl[ρ]=ZjρZj, (P|0)jl is the reset operator acting on Qj, and ϵAD(ϑτ) is the error rate given by ϵAD(ϑτ)=sin2ϑτ2=1-e-τ. Let us explain from the result in Fig. 23a. Here we plot four types of quantities, the ideal cost function O^ideal (black dotted line), the noisy (no QEM) cost function O^noisy(ϑτ) (blue curve), the cost function with QEM O^QEM(ϑτ) (orange curve), and the cost function with PEC O^PEC(M,ϑτ,l) with l=1,,NsampPEC, where NsampPEC is the repetition number of the PEC simulation under the same condition in terms of M and ϑτ and O^PEC(M,ϑτ,l) is the cost function acquired in the lth round of the PEC simulation. We note that NsampPEC is different from Nsamp introduced in “Numerical simulations”. In contrast to our QEM scheme, PEC is a probabilistic theory and when we perform a PEC simulation for NsampPEC times and obtain NsampPEC data of the cost function O^PEC(M,ϑτ,l), in general O^PEC(M,ϑτ,l1)O^PEC(M,ϑτ,l2) for l1l2. This is why we introduce the repetition number NsampPEC for the PEC simulation. On the other hand, O^QEM(ϑτ,l1)=O^QEM(ϑτ,l2)=O^QEM(ϑτ) for l1l2 and the repetition number NsampPEC is unnecessary for our QEM scheme. We compute O^ideal,O^noisy(ϑτ),O^QEM(ϑτ) with our original code while we compute O^PEC(M,ϑτ,l) with the software package Mitiq74 and Cirq98, and the PEC simulations are done under the condition M=181 and NsampPEC=100 and the data points of O^PEC(M,ϑτ,l) are plotted with green circles for each ϑτ. To quantify which of the two cost functions, O^QEM(ϑτ) and O^PEC(M,ϑτ,l), is closer to O^ideal, we introduce a measure defined by

RTPEC/QEM(M,ϑτ,l)=|O^PEC(M,ϑτ,l)-O^ideal||O^QEM(ϑτ)-O^ideal|. 22

Like RTQEM in Eq. (13), the ratio RTPEC/QEM(M,ϑτ,l) becoming greater than one implies that our QEM scheme is working better than PEC. By denoting the number of O^PEC(M,ϑτ,l) data points satisfying RTPEC/QEM(M,ϑτ,l)>1 as NPEC/QEM, in Fig. 23b we show the ratio NPEC/QEM/NsampPEC. We see that the ratio RTPEC/QEM(M,ϑτ,l) is greater than 50% for every ϑτ. We also obtain the ratio NPEC/QEM/Nsamp=0.99 for the realistic noise strength ϑτ=0.045 (T1100μsec and Δt100nsec) in the current superconducting devices.

In addition to the ratio RTQEM(M,ϑτ,l) in Eq. (22), we compute mean squared errors defined by

σPEC2(M,ϑτ,NsampPEC)=l=1NsampPEC1NsampPECO^PEC(M,ϑτ,l)-O^ideal2,σQEM2(ϑτ,NsampPEC)=l=1NsampPEC1NsampPECO^QEM(ϑτ,l)-O^ideal2. 23

Note that σQEM2(ϑτ,NsampPEC)=σQEM2(ϑτ) (no NsampPEC dependency). By using the variances in Eq. (23) we can re-describe the comparison between the quality of our QEM and that of PEC as the comparison of the magnitudes of the two variances, i.e., the method exhibiting smaller variance has the better QEM quality. We show this numerical result in Fig. 23c and we obtain σQEM2(ϑτ)<σPEC2(ϑτ,NsampPEC) for every ϑτ. The results in Fig. 23a–c are the ones for NQC. In Fig. 23d, we compute the variances σQEM2(ϑτ,NsampPEC) and σPEC2(M,ϑτ,NsampPEC) for NQC=210 (each circuit is executed by taking NQC=210) and denote them as σQEM2(ϑτ,NsampPEC,NQC) and σPEC2(M,ϑτ,NsampPEC,NQC), respectively. Note that we have used NsampPEC data of expectation values O^PEC(M,ϑτ,NQC,l) to compute σPEC2(M,ϑτ,NsampPEC,NQC): for computing both σPEC2(M,ϑτ,NsampPEC,NQC) and σQEM2(ϑτ,NsampPEC,NQC) we set Nsamp=1. We do not observe any significant difference in the variance of PEC between the finite and infinite NQC cases, as can be seen by comparing Fig. 23c,d. However, due to the finite NQC=210, we observe a slight increase in the variance of our QEM in the range 0.1ϑτ0.3. Nonetheless, our QEM still exhibits σQEM2(ϑτ,NsampPEC,NQC)<σPEC2(M,ϑτ,NsampPEC,NQC) for every ϑτ.

As a result, the quality of our QEM method outperforms that of PEC under such conditions. Let us examine for realistic cases when M is sufficiently larger than 181 and we consider that there are two types of effects. The first one is that, owing to the concept of PEC, OPEC(ϑτ,M) gets closer to Oideal owing to an increasement of M, which is a positive effect. The second one, which is a negative effect, is that the total amount of errors associated with the additional operations gets bigger by increasing M which makes OPEC(ϑτ,M) to become farther from Oideal. At some point, say M=Mc, we consider that the second (negative) effect gets larger than the first (positive) effect because the second effect is not to be mitigated and gets bigger. As a result, OPEC(ϑτ,M) becomes farther from Oideal for M>Mc. It has been shown in Ref.60 that the errors associated with the additional operations can be mitigated by combining with ZNE. The necessity of ZNE, however, implies that we need an additional computational resource to mitigate such errors. In contrast, our QEM method is conducted self-consistently such that the quantum noise effects on both the original circuit and the quantum-noise-effect circuit groups are mitigated. In other words, we do not need additional resources to mitigate the quantum noise effects on the quantum-noise-effect circuit groups. We consider that such a self-consistency is the advantage of our method compared with PEC. Furthermore, the size of the quantum-noise-effect circuit group (the computational cost) is practically polynomial in Nqd while the number of quantum circuits for performing PEC is NquaspNqd (exponential in Nqd), and thus the practical computational cost of our QEM method is lower than that of PEC. In total, we consider that our QEM method is superior to PEC even for sufficiently large M.

Comparison with ZNE

Next, let us make a comparison between ZNE26,27,5053,72,74,76 and our method. The similarity between ZNE and our method (as well as PEC) is that both of these methods require additional quantum circuits. In ZNE, first a quantum mechanical expectation of an physical observable, say Ophys, is measured which includes a quantum computational error given by a noise strength (or an error rate) γ0. Then, we create extra quantum circuits which ideally yield the same expectation value of Ophys as the original quantum circuit does but with noise strengths larger than γ0. Such boostings of the noise strengths can be done, for instance, by insertions of identity gate operations27,51,72. Let us denote the original circuit by Corg, which is subject to the quantum noise with the strength γ0, while we denote the extra circuits subject to noises with strengths γj by Cj with j=1,2,,NZNE, i.e., for ZNE NAQC=NZNE. Here we labeled the extra circuits Cj so that γ0<γ1<γNZNE. The highest order of the quantum noise effects which can be mitigated is NZNE and this is one of the powerful advantage of ZNE. The difference between our method and ZNE, on the other hand, is that in our method (as well as in PEC and ESD and VD) QEM tasks are performed by quantum computational operations (gate operations and measurements) whereas in ZNE quantum computers are used for calculating expectation values while the QEM tasks are done by classical computers. The advantages of ZNE are that it does not require ancilla bits and QEM can be performed without knowledge of quantum noises. There is a drawback, however, that its quality becomes poor when γ0 is too big. Furthermore, in experiments we need to obtain the values γ0,γ1,,γZNE with high precision. On the other hand, our method requires both the ancilla bits and knowledge of quantum noises but can be applied to quantum noises for arbitrary noise strengths although higher computational cost is demanded for doing higher-order perturbation and both the values of decay rates and gate operation times are needed with high precision. Next let us compare the two methods with respect to the depth of a quantum algorithm and a coherence time with which we identify as a T1 time. Here we assume that all single-qubit and two-qubit gate times are identical and denote the single-qubit time and the two-qubit gate time by t1g and t2g, respectively. Moreover, we assume that all T1 times are identical with respect to qubits. Let us first consider from the conduction of Richardson-extrapolation-based ZNE and for simplicity we make an approximation t1gt2g so that the depth of a quantum algorithm d can be identified with the depth of (the number of the layers of) two-qubit gates to be implemented. Let us say that we enhance the noise strength γi by the factor ci=ri with taking ri=1+0.1×i with i=1,2, Such a situation can be created by inserting an identity operation for the time 0.1×i×t2g after the operation of each Uk. In this way, we can effectively make the operation time of Uk to be rit2g or we can effectively make the decay rate to be riγi while the operation time of Uk to be t2g. The operation time to execute the quantum algorithm k=1dUk=Ud·Ud-1U2·U1 plus the additional identity operations is ridt2g and it must satisfy the condition ridt2g<T1. For superconducting qubits t2g100 nsec and T1100 μs10,11,86 and under such conditions we obtain rid<1000. For d=800, we have r1d=880,r2d=960,r3d>1000, which means that we are able to perform QEM up to second order: For d=900 we have r1d=990,r2d>1000, which means that we are able to perform QEM up to linear order, and for d>910 we become unable perform QEM. For larger ci the upper limit of d such that QEM is valid gets smaller. From these considerations, we see that we can perform high-order QEM for small d while for large d we can only perform low-order QEM and for sufficiently large d we cannot apply QEM. Such a characteristics comes from the d dependence of the total additional identity operation time. Furthermore, the exponential extrapolation also becomes invalid for large d since it is only effective for small error rate ϵerr such that ϵerrd=O(1)27. Next, let us consider the conduction of our QEM. The time for performing our kth-order QEM method is at most dt2g+(2t2g+t1g)kdt2g+2.1kt2g (we assume that all additional operations are P1), where we have set t1g0.1t2g86. Thus, the operational time for implementing the k additional operations, which is 2.1kt2g, does not depend on d. For d=800,900, and 910 the highest orders of quantum noise effects which we can mitigate are 95, 47,  and 42, respectively. Consequently, we consider that for small d satisfying rZNEdt2g<T1 the quality of ZNE is better while for large d our method has a better quality and such a tendency does not change even T1 times are extended and the gate times t2g get shorter. At the end, we mention that ZNE is not applicable to time-dependent noise27,50,51 whereas our method is by reformulating τ as a function of time.

Comparison with ESD and VD

Finally, we make a comparison between our method and ESD67,75,76 and VD66,76. Since these two are similar approaches we bring them together and abbreviate it as ESD/VD. Like PEC and our method, ESD/VD is composed of gate operations and/or quantum measurement on an ancilla bit. ESD/VD has two advantages, it can be applied to various types of quantum noise and additional quantum circuits are unneeded. The procedure of ESD/VD is comprised of three parts, a preparation of n copies of an original circuit which generate (ρd1real)n, a performance of derangement operation, which is a generalization of SWAP operation (in Ref.66 it is called cyclic shift operator), and an operation of controlled-O operator with O denoting the physical operator of which we take an expectation value67,75: In Ref.66, the scheme which does not use an ancilla-assisted measurement has been presented and in this case Na=(n-1)Nq (see Table 1). Let us express ρd1real in a spectral decomposition form denoted by ρd1real=λdom|ψdomψdom|+a=12Nq-1λa|ψaψa|, where the eigenvalues satisfy the descending order λdom>λ1>λ2Nq-1. Due to such a process, we obtain the expectation value ψdom|O|ψdom. In ESD/VD, there are two problems which need to be handled with, the mismatch between the ideal state ρd1 and the dominant eigenvector state ρdom=|ψdomψdom| which is called coherent mismatch or noise floor, and the mitigation of the quantum noise effects associated with the operations of the derangement operator and the controlled-O operator. It was argued in Ref.67 that the quantum computational error coming from the coherent mismatch and that due to the quantum noise effects associated with the operations constructing the quantum circuit for ESD/VD, which we call ESD/VD circuit, can be mitigated by combining with ZNE. As argued in the previous discussion for ZNE, we consider, however, that such a hybrid scheme works provided that the composite circuit of the original circuit and the ESD/VD circuit can be executed within a coherence time of a qubit. Furthermore, we need large numbers of qubits to perform ESD/VD and this limits sizes of overhead. On the other hand, our method needs the additional quantum circuits (quantum-noise-effect circuit group) but both the errors associated with the operations of Uk and those associated with the insertions of the additional operations implemented on the quantum-noise-effect circuit group are self-consistently mitigated and saves an additional computational resource for mitigating the errors associated with the additional operations since our scheme does not need to be combined with other methods for doing this. Moreover, the number of ancilla bits which we need to perform k-th order QEM is k, which does not enlarge the overhead that much. Such properties, in principle, enable us to perform QEM for both short-term (NISQ algorithms) and long-term algorithms.

Conclusion and outlook

In this paper, we have established our QEM scheme for reducing the quantum noise (decoherence) effects on the single-qubit states which occur during the gate operations. We have formulated it as the perturbation theory with respect to the noise strength (in the case of AD effect it is τ), which are evaluated by the gate time and decay rate (T1 time and/or T2 time), and is represented by the ensemble of quantum circuits, namely the quantum-noise-effect circuit groups. The numbers of quantum circuits composing the quantum-noise-effect circuit groups are polynomial with respect to the product of the depth of the quantum algorithm under consideration and the number of register bits, which can be considered that the conduction of our QEM scheme is not so high-cost computational performance. To demonstrate the validity of our QEM scheme, we have performed the noisy quantum simulations of the qubits under the AD effects for four types of quantum algorithms based on the linear-order perturbation theory. It is to be noted that before we conduct our QEM scheme, we need to be careful with if the expectation values on which we are aiming to perform QEM do not include the linear-order term in τ or if they are equivalent to the ideal simulation results like the computation of the expectation value of the identity operator. As long as these two are not the cases then our linear-order QEM scheme works as we have demonstrated in “Numerical simulations”, and it is valid in a broad region of τ, which implies its effectiveness and powerfulness. Our QEM scheme can be generalized to error mitigation for other types of quantum noises including the generalized amplitude damping, the phase damping, the composition of these two, and the stochastic Pauli noises like the depolarizing channel. Furthermore, it can be extended to cases of error mitigation for higher-order quantum noise effects and once this is established we expect that we become able to perform quantum computations in high accuracy even for long-depth quantum algorithms. In “QEM scheme implementation”, we have discussed the experimental results of the implementation of our QEM scheme. Consequently, we have observed RTQEM>1 for every quantum computation and our QEM scheme has worked for the IBM Q Experience processors. In this work, we have focused on the decoherence effects acting on the single-qubit states and established the QEM scheme for them. In real quantum devices, however, there exist many types of errors and complex quantum noise channels. We expect that by conducting an elaborate noise (device) characterization we become able to improve the quality of QEM. For instance, by combining our QEM scheme with other error-mitigation techniques such as those for state preparation (initialization) and measurement and imperfections of gate operations or those for other quantum noise channels like crosstalk we anticipate to realize QEM with higher quality.

Our QEM scheme is solely conducted by gate operations and measurements on ancilla bits and can be applied to any type of quantum algorithm. Such a characteristic enables us to programmably perform high-accurate quantum computing solely by the quantum-computational operations (software manipulations). Furthermore, our QEM scheme can be performed with any type of quantum hardware such as solid-state systems and atomic-molecule and optical systems and with quantum devices of any generation, and both the computational cost whose order is polynomial in Nqd and its accuracy can be coherently controlled. These three characteristics are the big advantages of our scheme.

One of the important outlooks of this work is quantum computations by large-scale quantum devices or future (next-generation) quantum devices using various types of quantum hardware such as superconducting circuits and ion-trap qubit systems. In such a case, we consider that we also need to take into account quantum noises acting on many-body quantum states such as collective quantum noises8789,99102 and correlated noises59,103108. Another important problem is the establishment of QEM schemes for time-dependent quantum noises including non-Markovian quantum noises109,110.

Our QEM scheme can be extended to mitigation of these complex quantum noise effects provided that they are formulated as groups of quantum circuits. When such formalisms are being constructed, we expect that we become able to realize QEM scheme which mitigates various types of quantum noise effects. We expect that this leads to conduction of quantum computing for big-size problems with high-quality results being obtained. We believe that this paves the way to realize high-quality quantum computing for application to problems in many branches of science and engineering including material science, quantum chemistry, combinatorial optimization problems, and machine learning using large-scale quantum computers.

Supplementary Information

Acknowledgements

We thank all the other members of Quemix Inc. for giving us the fruitful comments and reading this manuscript carefully. This work was supported by MEXT as “Program for Promoting Researches on the Supercomputer Fugaku” (JP-MXP1020200205) and JSPS KAKENHI as “Grant-in- Aid for Scientific Research(A)” Grant number 21H04553. This study was carried out using the TSUBAME3.0 supercomputer at Tokyo Institute of Technology.

Author contributions

Y.H. and H.N. accomplished the theoretical analysis. Y.H. and H.N. developed the codes, performed the numerical simulations, and verify the results. All authors contributed to the manuscript preparation and presentation of results.

Data availability

The datasets generated and/or analyzed during the current study are available from the corresponding author on reasonable request.

Competing Interests

The authors declare no competing interests.

Footnotes

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

The online version contains supplementary material available at 10.1038/s41598-024-52485-7.

References

  • 1.Feynman, R. P. Simulating physics with computers. Int. J. Theoretical Phys.21, 467–488 (1982). [Google Scholar]
  • 2.Deutsch, D. Quantum theory, the Church–Turing principle and the universal quantum computer. Proc. R. Soc. Lond. A. Math. Phys. Sci.400, 97 (1985). [Google Scholar]
  • 3.Lloyd, S. Universal quantum simulators. Science273, 1073 (1996). [DOI] [PubMed] [Google Scholar]
  • 4.DiVincenzo, D. P. The physical implementation of quantum computation. Fortschritte der Physik Progress Phys.48, 771 (2000). [Google Scholar]
  • 5.M. A. Nielsen & I. Chuang. Quantum computation and quantum information (2002).
  • 6.Georgescu, I. M., Ashhab, S. & Nori, F. Quantum simulation. Rev. Mod. Phys.86, 153. 10.1103/RevModPhys.86.153 (2014). [Google Scholar]
  • 7.Linke, N. M. et al. Experimental comparison of two quantum computing architectures. Proc. Natl. Acad. Sci.114, 3305 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Wendin, G. Quantum information processing with superconducting circuits: A review. Rep. Progress Phys.80, 106001 (2017). [DOI] [PubMed] [Google Scholar]
  • 9.Krantz, P. et al. A quantum engineer’s guide to superconducting qubits. Appl. Phys. Rev.6, 021318 (2019). [Google Scholar]
  • 10.Kjaergaard, M. et al. Superconducting qubits: Current state of play. Annu. Rev. Condensed Matter Phys.11, 369 (2020). [Google Scholar]
  • 11.Huang, H.-L., Wu, D., Fan, D. & Zhu, X. Superconducting quantum computing: A review. Sci. China Inform. Sci.63, 1 (2020). [Google Scholar]
  • 12.Bruzewicz, C. D., Chiaverini, J., McConnell, R. & Sage, J. M. Trapped-ion quantum computing: Progress and challenges. Appl. Phys. Rev.6, 021314 (2019). [Google Scholar]
  • 13.Kaushal, V. et al. Shuttling-based trapped-ion quantum information processing. AVS Quant. Sci.2, 014101 (2020). [Google Scholar]
  • 14.Nakamura, Y., Pashkin, Y. A. & Tsai, J. Coherent control of macroscopic quantum states in a single-Cooper-pair box. Nature398, 786 (1999). [Google Scholar]
  • 15.Makhlin, Y., Schön, G. & Shnirman, A. Quantum-state engineering with Josephson-junction devices. Rev. Mod. Phys.73, 357. 10.1103/RevModPhys.73.357 (2001). [Google Scholar]
  • 16.Xiang, Z.-L., Ashhab, S., You, J. Q. & Nori, F. Hybrid quantum circuits: Superconducting circuits interacting with other quantum systems. Rev. Mod. Phys.85, 623. 10.1103/RevModPhys.85.623 (2013). [Google Scholar]
  • 17.Kwon, S., Tomonaga, A., LakshmiBhai, G., Devitt, S. J. & Tsai, J.-S. Gate-based superconducting quantum computing. J. Appl. Phys.129, 041102 (2021). [Google Scholar]
  • 18.Cirac, J. I. & Zoller, P. Quantum computations with cold trapped ions. Phys. Rev. Lett.74, 4091. 10.1103/PhysRevLett.74.4091 (1995). [DOI] [PubMed] [Google Scholar]
  • 19.Sørensen, A. & Mølmer, K. Quantum computation with ions in thermal motion. Phys. Rev. Lett.82, 1971. 10.1103/PhysRevLett.82.1971 (1999). [Google Scholar]
  • 20.Leibfried, D., Blatt, R., Monroe, C. & Wineland, D. Quantum dynamics of single trapped ions. Rev. Mod. Phys.75, 281. 10.1103/RevModPhys.75.281 (2003). [Google Scholar]
  • 21.Wineland, D. J. Quantum information processing and quantum control with trapped atomic ions. Physica Scripta2009, 014007 (2009). [Google Scholar]
  • 22.Häffner, H., Roos, C. F. & Blatt, R. Quantum computing with trapped ions. Phys. Rep.469, 155 (2008). [Google Scholar]
  • 23.Peruzzo, A. et al. A variational eigenvalue solver on a photonic quantum processor. Nat. Commun.5, 1 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.McClean, J. R., Romero, J., Babbush, R. & Aspuru-Guzik, A. The theory of variational hybrid quantum-classical algorithms. New J. Phys.18, 023023 (2016). [Google Scholar]
  • 25.Kandala, A. et al. Hardware-efficient variational quantum Eigensolver for small molecules and quantum magnets. Nature549, 242 (2017). [DOI] [PubMed] [Google Scholar]
  • 26.McArdle, S., Endo, S., Aspuru-Guzik, A., Benjamin, S. C. & Yuan, X. Quantum computational chemistry. Rev. Mod. Phys.92, 015003. 10.1103/RevModPhys.92.015003 (2020). [Google Scholar]
  • 27.Endo, S., Cai, Z., Benjamin, S. C. & Yuan, X. Hybrid quantum-classical algorithms and quantum error mitigation. J. Phys. Soc. Jpn.90, 032001 (2021). [Google Scholar]
  • 28.E. Farhi, J. Goldstone, & S. Gutmann. A quantum approximate optimization algorithm. arXiv preprint arXiv:1411.4028 (2014).
  • 29.G. E. Crooks. Performance of the quantum approximate optimization algorithm on the maximum cut problem. arXiv preprint arXiv:1811.08419 ( 2018)
  • 30.Wang, Z., Hadfield, S., Jiang, Z. & Rieffel, E. G. Quantum approximate optimization algorithm for MaxCut: A fermionic view. Phys. Rev. A97, 022304 (2018). [Google Scholar]
  • 31.R. Shaydulin & Y. Alexeev. Evaluating quantum approximate optimization algorithm: A case study. in 2019 tenth international green and sustainable computing conference (IGSC) (IEEE, 2019), 1–6.
  • 32.Zhou, L., Wang, S.-T., Choi, S., Pichler, H. & Lukin, M. D. Quantum approximate optimization algorithm: Performance, mechanism, and implementation on near-term devices. Phys. Rev. X10, 021067 (2020). [Google Scholar]
  • 33.J. Abhijith, A. Adedoyin, J. Ambrosiano, P. Anisimov, A. Bärtschi, W. Casper, G. Chennupati, C. Coffrin, H. Djidjev, D. Gunter, et al. Quantum algorithm implementations for beginners. arXiv e-prints , arXiv (2018).
  • 34.Schuld, M. & Petruccione, F. Supervised Learning with Quantum Computers Vol. 17 (Springer, 2018). [Google Scholar]
  • 35.Mitarai, K., Negoro, M., Kitagawa, M. & Fujii, K. Quantum circuit learning. Phys. Rev. A98, 032309. 10.1103/PhysRevA.98.032309 (2018). [Google Scholar]
  • 36.Benedetti, M., Lloyd, E., Sack, S. & Fiorentini, M. Erratum: Parameterized quantum circuits as machine learning models (2019 Quant. Sci. Tech. 4 043001). Quant. Sci. Technol.5, 019601 (2019). [Google Scholar]
  • 37.Arute, F. et al. Quantum supremacy using a programmable superconducting processor. Nature574, 505 (2019). [DOI] [PubMed] [Google Scholar]
  • 38.Preskill, J. Quantum computing in the NISQ era and beyond. Quantum2, 79 (2018). [Google Scholar]
  • 39.Palma, G. & Suominen, K. AK Ekert Proc. Roy. Soc. London A452, 567 (1996).
  • 40.Resch, S. & Karpuzcu, U. R. Benchmarking quantum computers and the impact of quantum noise. ACM Comput. Surveys (CSUR)54, 1 (2021). [Google Scholar]
  • 41.Shor, P. W. Scheme for reducing decoherence in quantum computer memory. Phys. Rev. A52, R2493. 10.1103/PhysRevA.52.R2493 (1995). [DOI] [PubMed] [Google Scholar]
  • 42.Devitt, S. J., Munro, W. J. & Nemoto, K. Quantum error correction for beginners. Rep. Progress Phys.76, 076001 (2013). [DOI] [PubMed] [Google Scholar]
  • 43.Lidar, D. A. & Brun, T. A. Quantum Error Correction (Cambridge University Press, 2013). [Google Scholar]
  • 44.Roffe, J. Quantum error correction: An introductory guide. Contemp. Phys.60, 226 (2019). [Google Scholar]
  • 45.Viola, L. & Lloyd, S. Dynamical suppression of decoherence in two-state quantum systems. Phys. Rev. A58, 2733 (1998). [Google Scholar]
  • 46.Viola, L., Knill, E. & Lloyd, S. Dynamical decoupling of open quantum systems. Phys. Rev. Lett.82, 2417 (1999). [Google Scholar]
  • 47.Khodjasteh, K. & Lidar, D. A. Fault-tolerant quantum dynamical decoupling. Phys. Rev. Lett.95, 180501 (2005). [DOI] [PubMed] [Google Scholar]
  • 48.Masuyama, Y. et al. Extending coherence time of macro-scale diamond magnetometer by dynamical decoupling with coplanar waveguide resonator. Rev. Sci. Instrum.89, 125007 (2018). [DOI] [PubMed] [Google Scholar]
  • 49.Wise, D. F., Morton, J. J. & Dhomkar, S. Using deep learning to understand and mitigate the qubit noise environment. PRX Quant.2, 010316. 10.1103/PRXQuantum.2.010316 (2021). [Google Scholar]
  • 50.Temme, K., Bravyi, S. & Gambetta, J. M. Error mitigation for short-depth quantum circuits. Phys. Rev. Lett.119, 180509 (2017). [DOI] [PubMed] [Google Scholar]
  • 51.Kandala, A. et al. Error mitigation extends the computational reach of a noisy quantum processor. Nature567, 491 (2019). [DOI] [PubMed] [Google Scholar]
  • 52.Li, Y. & Benjamin, S. C. Efficient variational quantum simulator incorporating active error minimization. Phys. Rev. X7, 021050 (2017). [Google Scholar]
  • 53.Endo, S., Benjamin, S. C. & Li, Y. Practical quantum error mitigation for near-future applications. Phys. Rev. X8, 031027 (2018). [Google Scholar]
  • 54.Bonet-Monroig, X., Sagastizabal, R., Singh, M. & O’Brien, T. E. Low-cost error mitigation by symmetry verification. Phys. Rev. A98, 062339. 10.1103/PhysRevA.98.062339 (2018). [Google Scholar]
  • 55.McArdle, S., Yuan, X. & Benjamin, S. Error-mitigated digital quantum simulation. Phys. Rev. Lett.122, 180501 (2019). [DOI] [PubMed] [Google Scholar]
  • 56.Jattana, M. S., Jin, F., De Raedt, H. & Michielsen, K. General error mitigation for quantum circuits. Quant. Inform. Process.19, 1 (2020). [Google Scholar]
  • 57.Xiong, Y., Chandra, D., Ng, S. X. & Hanzo, L. Sampling overhead analysis of quantum error mitigation: Uncoded vs. coded systems. IEEE Access8, 228967 (2020). [Google Scholar]
  • 58.A. Zlokapa & A. Gheorghiu. A deep learning model for noise prediction on near-term quantum devices, arXiv preprint arXiv:2005.10811 (2020).
  • 59.Bravyi, S., Sheldon, S., Kandala, A., Mckay, D. C. & Gambetta, J. M. Mitigating measurement errors in multiqubit experiments. Phys. Rev. A103, 042605. 10.1103/PhysRevA.103.042605 (2021). [Google Scholar]
  • 60.Sun, J. et al. Mitigating realistic noise in practical noisy intermediate-scale quantum devices. Phys. Rev. Appl.15, 034026. 10.1103/PhysRevApplied.15.034026 (2021). [Google Scholar]
  • 61.Otten, M. & Gray, S. K. Accounting for errors in quantum algorithms via individual error reduction. NPJ Quant. Inform.5, 1. 10.1038/s41534-019-0125-3 (2019). [Google Scholar]
  • 62.Otten, M. & Gray, S. K. Recovering noise-free quantum observables. Phys. Rev. A99, 012338. 10.1103/PhysRevA.99.012338 (2019). [Google Scholar]
  • 63.McClean, J. R., Kimchi-Schwartz, M. E., Carter, J. & de Jong, W. A. Hybrid quantum-classical hierarchy for mitigation of decoherence and determination of excited states. Phys. Rev. A95, 042308. 10.1103/PhysRevA.95.042308 (2017). [Google Scholar]
  • 64.Czarnik, P., Arrasmith, A., Coles, P. J. & Cincio, L. Error mitigation with Clifford quantum-circuit data. Quantum5, 592. 10.22331/q-2021-11-26-592 (2021). [Google Scholar]
  • 65.Strikis, A., Qin, D., Chen, Y., Benjamin, S. C. & Li, Y. Learning-based quantum error mitigation. PRX Quant.2, 040330. 10.1103/PRXQuantum.2.040330 (2021). [Google Scholar]
  • 66.Huggins, W. J. et al. Virtual distillation for quantum error mitigation. Phys. Rev. X11, 041036. 10.1103/PhysRevX.11.041036 (2021). [Google Scholar]
  • 67.Koczor, B. Exponential error suppression for near-term quantum devices. Phys. Rev. X11, 031057 (2021). [Google Scholar]
  • 68.Piveteau, C., Sutter, D., Bravyi, S., Gambetta, J. M. & Temme, K. Error mitigation for universal gates on encoded qubits. Phys. Rev. Lett.127, 200505 (2021). [DOI] [PubMed] [Google Scholar]
  • 69.Lostaglio, M. & Ciani, A. Error mitigation and quantum-assisted simulation in the error corrected regime. Phys. Rev. Lett.127, 200506 (2021). [DOI] [PubMed] [Google Scholar]
  • 70.Suzuki, Y., Endo, S., Fujii, K. & Tokunaga, Y. Quantum error mitigation as a universal error reduction technique: Applications from the NISQ to the fault-tolerant quantum computing eras. PRX Quant.3, 010345. 10.1103/PRXQuantum.3.010345 (2022). [Google Scholar]
  • 71.Piveteau, C., Sutter, D. & Woerner, S. Quasiprobability decompositions with reduced sampling overhead. NPJ Quant. Inform.8, 1 (2022). [Google Scholar]
  • 72.Pascuzzi, V. R., He, A., Bauer, C. W., de Jong, W. A. & Nachman, B. Computationally efficient zero-noise extrapolation for quantum-gate-error mitigation. Phys. Rev. A105, 042406. 10.1103/PhysRevA.105.042406 (2022). [Google Scholar]
  • 73.Takagi, R. Optimal resource cost for error mitigation. Phys. Rev. Res.3, 033178. 10.1103/PhysRevResearch.3.033178 (2021). [Google Scholar]
  • 74.LaRose, R. et al. Mitiq: A software package for error mitigation on noisy quantum computers. Quantum6, 774. 10.22331/q-2022-08-11-774 (2022). [Google Scholar]
  • 75.Koczor, B. The dominant eigenvector of a noisy quantum state. New J. Phys.23, 123047. 10.1088/1367-2630/ac37ae (2021). [Google Scholar]
  • 76.Cai, Z. et al. Quantum error mitigation. Rev. Mod. Phys.. 95, 045005. 10.1103/RevModPhys.95.045005 (2023). [Google Scholar]
  • 77.Wang, H., Ashhab, S. & Nori, F. Quantum algorithm for simulating the dynamics of an open quantum system. Phys. Rev. A83, 062317. 10.1103/PhysRevA.83.062317 (2011). [Google Scholar]
  • 78.Hu, Z., Xia, R. & Kais, S. A quantum algorithm for evolving open quantum dynamics on quantum computing devices. Sci. Rep.10, 1 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 79.Tornow, S., Gehrke, W. & Helmbrecht, U. Non-equilibrium dynamics of a dissipative two-site Hubbard model simulated on the IBM quantum computer. J. Phys. A: Math. Theor.55, 245302. 10.1088/1751-8121/ac6bd0 (2022). [Google Scholar]
  • 80.García-Pérez, G., Rossi, M. A. & Maniscalco, S. IBM Q Experience as a versatile experimental testbed for simulating open quantum systems. NPJ Quant. Inform.6, 1 (2020). [Google Scholar]
  • 81.Del Re, L., Rost, B., Kemper, A. F. & Freericks, J. K. Driven-dissipative quantum mechanics on a lattice: Simulating a fermionic reservoir on a quantum computer. Phys. Rev. B102, 125112. 10.1103/PhysRevB.102.125112 (2020). [Google Scholar]
  • 82.Koppenhöfer, M., Bruder, C. & Roulet, A. Quantum synchronization on the IBM Q system. Phys. Rev. Res.2, 023026 (2020). [Google Scholar]
  • 83.de Jong, W. A. et al. Quantum simulation of open quantum systems in heavy-ion collisions. Phys. Rev. D104, L051501 (2021). [Google Scholar]
  • 84.Hama, Y. Quantum circuits for collective amplitude damping in two-qubit systems. 10.48550/ARXIV.2012.02410 (2020).
  • 85.H. Abraham, AduOffei, R. Agarwal, I. Y. Akhalwaya, G. Aleksandrowicz, T. Alexander, M. Amy, E. Arbel, Arijit02, A. Asfaw, A. Avkhadiev, C. Azaustre, AzizNgoueya, A. Banerjee, A. Bansal, P. Barkoutsos, A. Barnawal, G. Barron, G. S. Barron, L. Bello, Y. Ben-Haim, D. Bevenius, A. Bhobe, L. S. Bishop, C. Blank, S. Bolos, S. Bosch, Brandon, S. Bravyi, Bryce-Fuller, D. Bucher, A. Burov, F. Cabrera, P. Calpin, L. Capelluto, J. Carballo, G. Carrascal, A. Chen, C.-F. Chen, E. Chen, J. C. Chen, R. Chen, J. M. Chow, S. Churchill, C. Claus, C. Clauss, R. Cocking, F. Correa, A. J. Cross, A. W. Cross, S. Cross, J. Cruz-Benito, C. Culver, A. D. Córcoles-Gonzales, S. D. E. Dandachi, M. Daniels, M. Dartiailh, DavideFrr, A. R. Davila, A. Dekusar, D. Ding, J. Doi, E. Drechsler, Drew, E. Dumitrescu, K. Dumon, I. Duran, K. EL-Safty, E. Eastman, G. Eberle, P. Eendebak, D. Egger, M. Everitt, P. M. Fernández, A. H. Ferrera, R. Fouilland, FranckChevallier, A. Frisch, A. Fuhrer, B. Fuller, M. GEORGE, J. Gacon, B. G. Gago, C. Gambella, J. M. Gambetta, A. Gammanpila, L. Garcia, T. Garg, S. Garion, A. Gilliam, A. Giridharan, J. Gomez-Mosquera, Gonzalo, S. de la Puente González, J. Gorzinski, I. Gould, D. Greenberg, D. Grinko, W. Guan, J. A. Gunnels, M. Haglund, I. Haide, I. Hamamura, O. C. Hamido, F. Harkins, V. Havlicek, J. Hellmers, Ł. Herok, S. Hillmich, H. Horii, C. Howington, S. Hu, W. Hu, J. Huang, R. Huisman, H. Imai, T. Imamichi, K. Ishizaki, R. Iten, T. Itoko, JamesSeaward, A. Javadi, A. Javadi-Abhari, W. Javed, Jessica, M. Jivrajani, K. Johns, S. Johnstun, Jonathan-Shoemaker, V. K, T. Kachmann, A. Kale, N. Kanazawa, Kang-Bae, A. Karazeev, P. Kassebaum, J. Kelso, S. King, Knabberjoe, Y. Kobayashi, A. Kovyrshin, R. Krishnakumar, V. Krishnan, K. Krsulich, P. Kumkar, G. Kus, R. LaRose, E. Lacal, R. Lambert, J. Lapeyre, J. Latone, S. Lawrence, C. Lee, G. Li, D. Liu, P. Liu, Y. Maeng, K. Majmudar, A. Malyshev, J. Manela, J. Marecek, and M. Marques, D. Maslov, D. Mathews, A. Matsuo, D. T. McClure, C. McGarry, D. McKay, D. McPherson, S. Meesala, T. Metcalfe, M. Mevissen, A. Meyer, A. Mezzacapo, R. Midha, Z. Minev, A. Mitchell, N. Moll, J. Montanez, G. Monteiro, M. D. Mooring, R. Morales, N. Moran, M. Motta, MrF, P. Murali, J. Müggenburg, D. Nadlinger, K. Nakanishi, G. Nannicini, P. Nation, E. Navarro, Y. Naveh, S. W. Neagle, P. Neuweiler, J. Nicander, P. Niroula, H. Norlen, NuoWenLei, L. J. O’Riordan, O. Ogunbayo, P. Ollitrault, R. Otaolea, S. Oud, D. Padilha, H. Paik, S. Pal, Y. Pang, V. R. Pascuzzi, S. Perriello, A. Phan, F. Piro, M. Pistoia, C. Piveteau, P. Pocreau, A. Pozas-Kerstjens, M. Prokop, V. Prutyanov, D. Puzzuoli, J. Pérez, Quintiii, R. I. Rahman, A. Raja, N. Ramagiri, A. Rao, R. Raymond, R. M.-C. Redondo, M. Reuter, J. Rice, M. Riedemann, M. L. Rocca, D. M. Rodríguez, RohithKarur, M. Rossmannek, M. Ryu, T. SAPV, SamFerracin, M. Sandberg, H. Sandesara, R. Sapra, H. Sargsyan, A. Sarkar, N. Sathaye, B. Schmitt, C. Schnabel, Z. Schoenfeld, T. L. Scholten, E. Schoute, J. Schwarm, I. F. Sertage, K. Setia, N. Shammah, Y. Shi, A. Silva, A. Simonetto, N. Singstock, Y. Siraichi, I. Sitdikov, S. Sivarajah, M. B. Sletfjerding, J. A. Smolin, M. Soeken, I. O. Sokolov, I. Sokolov, SooluThomas, Starfish, D. Steenken, M. Stypulkoski, S. Sun, K. J. Sung, H. Takahashi, T. Takawale, I. Tavernelli, C. Taylor, P. Taylour, S. Thomas, M. Tillet, M. Tod, M. Tomasik, E. de la Torre, K. Trabing, M. Treinish, TrishaPe, D. Tulsi, W. Turner, Y. Vaknin, C. R. Valcarce, F. Varchon, A. C. Vazquez, V. Villar, D. Vogt-Lee, C. Vuillot, J. Weaver, J. Weidenfeller, R. Wieczorek, J. A. Wildstrom, E. Winston, J. J. Woehr, S. Woerner, R. Woo, C. J. Wood, R. Wood, S. Wood, S. Wood, J. Wootton, D. Yeralin, D. Yonge-Mallo, R. Young, J. Yu, C. Zachow, L. Zdanski, H. Zhang, C. Zoufal. Qiskit: An open-source framework for quantum computing (2019). 10.5281/zenodo.2562110.
  • 86.IBM Quantum Experience [online]. https://quantum-computing.ibm.com/ ( 2023)
  • 87.Carmichael, H. J. Statistical Methods in Quantum Optics 1: Master Equations and Fokker-Planck Equations Vol. 1 (Springer Science & Business Media, 1999). [Google Scholar]
  • 88.Agarwal, G. S. Quantum Optics (Cambridge University Press, 2012). [Google Scholar]
  • 89.Breuer, H.-P. et al.The Theory of Open Quantum Systems (Oxford University Press on Demand, 2002). [Google Scholar]
  • 90.K. Kraus, A. Böhm, J. D. Dollard, & W. Wootters. States, effects, and operations: fundamental notions of quantum theory. in Lectures in Mathematical Physics at the University of Texas at Austin, Lecture Notes in Physics190 (1983).
  • 91.L. K. Grover. in Proceedings of the 28th Annual ACM Symposium on the Theory of Computing (1996).
  • 92.Grover, L. K. Quantum mechanics helps in searching for a needle in a Haystack. Phys. Rev. Lett.79, 325. 10.1103/PhysRevLett.79.325 (1997). [Google Scholar]
  • 93.Montanaro, A. Quantum algorithms: An overview. NPJ Quant. Inform.2, 1 (2016). [Google Scholar]
  • 94.S. Jordan. Quantum algorithm zoo. Retrieved June 27, 2013 (2011).
  • 95.Y. Minato, K. Higa, & R. Nagai. IBM Quantum de manabu ryoshi konpyuuta (in Japanese) (Shuwa System, 2021) https://books.google.co.jp/books?id=mOdKzgEACAAJ.
  • 96.Sarovar, M. et al. Detecting crosstalk errors in quantum information processors. Quantum4, 321. 10.22331/q-2020-09-11-321 (2020). [Google Scholar]
  • 97.Wright, K. et al. Benchmarking an 11-qubit quantum computer. Nat. Commun.10, 5464 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 98.C. Developers, Cirq ( 2022), See full list of authors on Github: https://github.com/quantumlib/Cirq/graphs/contributors10.5281/zenodo.6599601.
  • 99.Dicke, R. H. Coherence in spontaneous radiation processes. Phys. Rev.93, 99 (1954). [Google Scholar]
  • 100.Gross, M. & Haroche, S. Superradiance: An essay on the theory of collective spontaneous emission. Phys. Rep.93, 301 (1982). [Google Scholar]
  • 101.Duan, L.-M. & Guo, G.-C. Optimal quantum codes for preventing collective amplitude damping. Phys. Rev. A58, 3491. 10.1103/PhysRevA.58.3491 (1998). [Google Scholar]
  • 102.Fortunato, E. M., Viola, L., Hodges, J., Teklemariam, G. & Cory, D. G. Implementation of universal control on a decoherence-free qubit. New J. Phys.4, 5 (2002). [Google Scholar]
  • 103.V. N. Premakumar & R. Joynt. Error Mitigation in Quantum Computers subject to Spatially Correlated Noise, arXiv preprint arXiv:1812.07076 (2018).
  • 104.Macchiavello, C. & Palma, G. M. Entanglement-enhanced information transmission over a quantum channel with correlated noise. Phys. Rev. A65, 050301. 10.1103/PhysRevA.65.050301 (2002). [Google Scholar]
  • 105.Yeo, Y. & Skeen, A. Time-correlated quantum amplitude-damping channel. Phys. Rev. A67, 064301. 10.1103/PhysRevA.67.064301 (2003). [Google Scholar]
  • 106.Terhal, B. M. & Burkard, G. Fault-tolerant quantum computation for local non-Markovian noise. Phys. Rev. A71, 012336. 10.1103/PhysRevA.71.012336 (2005). [Google Scholar]
  • 107.Novais, E. & Baranger, H. U. Decoherence by correlated noise and quantum error correction. Phys. Rev. Lett.97, 040501. 10.1103/PhysRevLett.97.040501 (2006). [DOI] [PubMed] [Google Scholar]
  • 108.Aharonov, D., Kitaev, A. & Preskill, J. Fault-tolerant quantum computation with long-range correlated noise. Phys. Rev. Lett.96, 050504. 10.1103/PhysRevLett.96.050504 (2006). [DOI] [PubMed] [Google Scholar]
  • 109.Ban, M., Kitajima, S. & Shibata, F. Decoherence of quantum information in the non-Markovian qubit channel. J. Phys. A Math. General38, 7161 (2005). [Google Scholar]
  • 110.Yu, T. & Eberly, J. Entanglement evolution in a non-Markovian environment. Opt. Commun.283, 676 (2010). [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

The datasets generated and/or analyzed during the current study are available from the corresponding author on reasonable request.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES