Introduction

Quantum Process Tomography (QPT) is a crucial technique in quantum information processing, which provides valuable insights into the behavior of quantum systems and their constituent quantum operations1,2,3,4. In the pursuit of large-scale quantum computers, it plays a vital role in characterizing the fidelity of quantum gates and quantum circuits5,6,7. However, QPT and in particular Standard QPT (SQPT), face significant challenges. They typically require a large number of measurements in order to accurately characterize a quantum process. As the size of the quantum system grows, the number of required measurements increases exponentially, making the process resource-intensive and time-consuming. Moreover, in order to achieve high precision and accuracy, a huge number of measurement shots is required, with minimal SPAM and readout errors.

Recent advancements in both theory and practical applications have significantly improved the quality of quantum process tomography (QPT). From the perspective of how the characterized process is applied within the circuit, prior to the measurement, we can categorize these techniques into two groups: those that employ single process applications and those that utilize multiple applications, often referred to as long-gate sequence, gate repetition, concatenation, multipass, etc.

The single-process application techniques include, for example, Standard QPT1,2,3,4,8, Ancilla-Assisted QPT (AAPT)9, Direct Characterization of Quantum Dynamics (DCQD)10,11, Compressed sensing QPT12, Gradient-Descent QPT13, Self-Consistent QPT14,15, Projected Least-Squares QPT16, etc. These methods, especially SQPT, are known to be relatively susceptibility to SPAM and readout errors. The methods that greatly improve the precision of tomography are those that use gate repetitions. The repetitions amplify the structured and randomized gate errors and reduce the effects of systematic and/or statistical measurement errors caused by SPAM, readout and shot noise. The most widely adopted such protocols are Randomized Benchmarking (RB), Interleaved RB, and Gate Set Tomography (GST). Some other examples are discussed in Refs.17,18,19.

Randomized benchmarking20,21,22,23,24,25,26,27 entails executing prolonged sequences of random Clifford group gates that combine to create the identity, enabling the observation of performance degradation as the circuit depth increases. However, RB serves as a protocol for characterizing the average performance. It demonstrates efficient scalability with respect to the number of qubits affected by the characterized gate set and remains resilient in the presence of noise during state preparation and measurement. Interleaved RB28 is designed to characterize a particular gate, which is ‘interleaved’ throughout the standard RB sequence. The protocol is a simple extension of standard RB which involves running sequences of random gates. In GST29,30, the key distinction in comparison to older QPT methods is its calibration-free nature. Unlike its predecessors, GST does not rely on pre-calibrated state preparations and measurements. However, obtaining a GST estimate entails solving a highly nonlinear optimization problem. Moreover, the scaling with system size is polynomially worse than QPT due to the necessity to characterize multiple gates simultaneously. In order to estimate a complete gate set, approximately 80 experiments are required for single-qubit gates and over 4000 for two-qubit gates. This is far worse than QPT, which only requires 12 experiments for a single-qubit gate and 144 experiments for a two-qubit gate29. There are also methods, as the one discussed in31 that utilize gate application of a sequence of identical repetitions.

In this paper, we introduce a method called Multipass Quantum Process Tomography (MQPT ) that combines the methods based on repetitions with those that use single-gate application only. Contrary to most repetition methods, our method uses only repetitions of the same gate. The repetitions lead to the amplification of the single-pass errors in the multipass errors, which are then measured with high accuracy and precision by standard QPT. There are two clear advantages of using only the same gate (see Fig. 1): (i) we do not introduce additional errors stemming from other gates, and (ii) it is possible to design a simple and very fast post-processing procedure that derives the individual process from the multipass process. The assumption that the processes can be made identical is not a special assumption of our method, but rather a fundamental aspect of the Born rule measurement assumption. According to this principle, creating many copies of a state or process is necessary to calculate the respective probabilities through multiple copies and respective measurement shots. This foundational concept ensures that the statistical nature of quantum measurements is accurately represented and is crucial for deriving meaningful results from repeated experiments.

Our method is distinguished by its intuitiveness and simplicity, as it uses the already developed single-pass techniques, such as SQPT, and reduced mathematical complexity, making it both theoretically accessible and practically feasible. Yet, our method features significant accuracy and precision enhancement compared to single-pass SQPT and potentially to other single-pass methods.

Figure 1
figure 1

Multi-pass Process Tomography (MQPT) comprises two distinct stages. Stage I involves a conventional Process Tomography (e.g., SQPT, AAPT, etc.), but instead of measuring a single process \({{\mathcal {R}}}\), it characterizes a multi-pass process \({{\mathcal {R}}}^N\), which consists of N identical processes (gates). The blocks \(\rho _j\) represent the preparation states, while \(M_k\) denote the projective measurements and readout processes. These two blocks encompass the SPAM and readout errors. For SQPT, \(4^n \times 3^n\) individual experiments are required, implying \(j = 1, 2, \ldots , 4^n\) and \(k = 1, 2, \ldots , 3^n\). In Stage II, the measured multi-pass process is used to extract the single process through a post-processing calculation procedure.

The paper is organized as follows. Section “Multipass quantum process tomography (MQPT)” provides an overview of single and multi-pass processes, followed by a description of the conceptual framework of MQPT. In Section “Iterative and linear methods”, our Iterative and Linear methods of MQPT are presented. Section “Performance of the MQPT method: simulation” demonstrates the application of MQPT methods to \(\sqrt{X}\) and CNOT gates, respectively, through simulations on the IBM Quantum simulator. In Section “MQPT simulation of \(\sqrt{X}\)”, we demonstrate the methods on a real IBM Quantum processor. Finally, in Section “Conclusions”, we present our conclusions.

Multipass quantum process tomography (MQPT)

Motivation

As noted in Introduction, a sequence of repetitions is widely used in the process characterization due to the fact that the errors are amplified (accumulated) as the number of repetitions N increases. These larger multipass errors are more easily measurable with high precision and accuracy than the small single-pass errors. The single-pass errors can be deduced from the multipass signal provided that we have an unambiguous connection between the single-pass and multipass processes. The latter requirement imposes some limitations on the formalism which can be used to describe the multipass quantum process.

In the unitary case, due to the absence of decoherence, the error amplification can even be quadratic32. Then it is relatively easy to find the Nth power of a given parameterized propagator, as has been done in several works33,34,35,36,37,38. It is also possible to find the single propagator from the N-pass propagator (its Nth power), which makes it possible to accurately and precisely deduce the single-pass propagator errors from the amplified multi-pass errors. If the propagator U is explicitly defined with respect to time during a time period from 0 to the gate time T, then exponentiating \(U^N\) can be easily obtained by scaling T to NT, for example, in the Mølmer-Sørensen gate39.

However, if the evolution is not unitary and it is instead represented by a Completely Positive and Trace-Preserving (CPTP) map, as it occurs when considering open quantum system noise, then finding the Nth power of a process by parameterizing the single process becomes a challenging task. For the sake of process tomography, we are very interested in the inverse task, i.e., finding the first power from the known Nth power, which is also a daunting task. The extraction of the single CPTP process from the amplified multi-pass process will be referred to as Multipass Quantum Process Tomography (MQPT).

In this paper, we will treat the terms “propagator”, “gate”, “process”, and “channel” as synonymous concepts, recognizing that they are often used interchangeably or may refer to similar aspects of quantum information and quantum computing.

Single process and distance metrics

Channel characteristics

Before delving into multipass processes, let us first describe the overall concept of a process. A quantum process (channel) is a quantum operation represented by a CPTP map. Various CPTP map representations ensure the physicality of quantum processes by preserving properties such as trace and positivity40,41,42 and adhere to Markovian dynamics43,44. Examples of such representations are the Choi matrix, \(\chi\)-Process matrix, Kraus (Operator sum representation)45, Stinespring46, Liouville (Superoperator), Pauli Transfer matrix (PTM)14,47, etc. All of them are equivalent and can be converted into each other48. In our analysis, we use PTM (\({{\mathcal {R}}}\)) and Liouville (\({{\mathscr {S}}}\)), because if a given process is repeated N times then the resultant multipass process is simply \({{\mathcal {R}}}^N\) and \({{\mathscr {S}}}^N\), respectively. These two representations govern the evolution of the vectorized density matrix \({|{\rho }\rangle }\!\rangle\). The density matrix vectorization in Liouville representation is simply the column stacking of \(\rho\), i.e.

$$\begin{aligned} |\rho \rangle \rangle :=\left( \rho _{11}, \rho _{21}, \ldots , \rho _{k 1},...,\rho _{k1},\rho _{k2}, \ldots , \rho _{kk }\right) ^T, \end{aligned}$$
(1)

while the corresponding channel \({{\mathscr {S}}}\) is a complex matrix. On the other hand, the PTM \({{\mathcal {R}}}\) is a real matrix with elements in the range from \(-1\) to 1 and the respective density matrix vectorization is in the n-qubit Pauli basis, denoted by \({\mathcal {P}}^{\otimes n}\). It forms an operator basis for a \(d=2^n\) dimensional Hilbert space, encompassing a total of \(d^2=4^n\) operators. These operators can be conveniently labeled using a single index, such as \(P_1=I^{\otimes n}\), \(P_2\), \(P_3\), up to \(P_{d^2}=Z^{\otimes n}\). These operators are Hermitian and unitary, satisfying the property \(P_k^2=I^{\otimes n}\). In the case of a single qubit (\(n=1\)), the basis is represented by \({\mathcal {P}}^{\otimes 1}=\{{I}, {X}, {Y}, {Z}\}\), which correspond to the familiar Pauli matrices. Expanding to two qubits (\(d=4\)), we form a set of 16 operators: \(\{I I, I X, I Y, I Z, X I, X X, X Y, \ldots , Z Z\}\), where II should be interpreted as \(I \otimes I\), and so on. These operators are succinctly denoted as \(\left\{ P_1, P_2, \ldots , P_{16}\right\}\)49.

The density matrix vectorization for the single qubit reads:

$$\begin{aligned} \rho =\frac{1}{2}\left( \begin{array}{cc}1+z &{} x-i y \\ x+i y &{} 1-z\end{array}\right) \quad \Longrightarrow \quad |\rho \rangle \rangle =\left( \begin{array}{l}1 \\ x \\ y \\ z\end{array}\right) , \end{aligned}$$
(2)

where xyz are the Bloch vector components. In the PTM representation, the evolution of the state can be expressed as

$$\begin{aligned} {|{\rho }\rangle }\!\rangle = {{\mathcal {R}}}{|{\rho _0}\rangle }\!\rangle , \end{aligned}$$
(3)

where \({|{\rho _0}\rangle }\!\rangle\) is the initial vectorized state.

The conversion from PTM to Liouville representation is done by the transformation

$$\begin{aligned} {{\mathscr {S}}}= {{\mathcal {U}}}^{\dagger } {{\mathcal {R}}} {{\mathcal {U}}}, \end{aligned}$$
(4)

where \({{\mathcal {U}}}\) is the unitary operator

$$\begin{aligned} {{\mathcal {U}}}=\sum _{k=1}^{d^2}|c_k\rangle \langle \langle P_k|, \end{aligned}$$
(5)

where all \(|c_k\rangle\) represent the computational basis and they are all possible strings from \(|c_1\rangle = |0,0,\ldots ,0\rangle\) to \(|c_{d^2}\rangle = |1,1,\ldots ,1\rangle\).

For the purposes of quantum computation, the channels must have unitary targets \({{\mathcal {T}}}\) (or \({{\mathcal {T}}}_{L}\)), represented in PTM and Liouville representations, respectively. These targets can be expressed by the corresponding \(d\times d\) target unitary operator \(\varvec{T}\) as

$$\begin{aligned} {{\mathcal {T}}}&= {{\mathcal {U}}}\Big (\varvec{T}^* \otimes \varvec{T} \Big ) {{\mathcal {U}}}^{\dagger }, \end{aligned}$$
(6a)
$$\begin{aligned} {{\mathcal {T}}}_{L}&=\varvec{T}^* \otimes \varvec{T}. \end{aligned}$$
(6b)

For the ensuing analysis, we will employ the PTM representation, as it is equivalent to the Liouville representation but it is more convenient for our objectives.

We define the discrepancy between the actual process \({{\mathcal {R}}}\) and the target process \({{\mathcal {T}}}\) as the error matrix

$$\begin{aligned} {{\mathcal {E}}}= {{\mathcal {R}}}- {{\mathcal {T}}}, \end{aligned}$$
(7)

where \({{\mathcal {E}}}\) in general is not a CPTP matrix and therefore it is should not be considered as quantum channel but only as a difference between two CPTP channels. Mathematically, it is possible that for \(|| {{\mathcal {E}}}||\approx || {{\mathcal {R}}}||\), one could find such \({{\mathcal {R}}}\) and \({{\mathcal {T}}}\) where \({{\mathcal {E}}}\) could be CPTP, but these are very special cases, mainly when \({{\mathcal {R}}}\) and \({{\mathcal {E}}}\) are unitary, i.e., \(|| {{\mathcal {E}}}||=|| {{\mathcal {R}}}||=|| {{\mathcal {T}}}||=d^2\).

The characterization and analysis of \({{\mathcal {E}}}\) play a central role in evaluating the accuracy and precision of the process tomography methods discussed hereafter.

Distance metrics

Given the matrices \({{\mathcal {R}}}\), \({{\mathcal {T}}}\) and \({{\mathcal {E}}}\), we can calculate the process distance metrics. In this paper, we utilize the diamond norm alongside process infidelity metrics. The diamond norm (known also as completely bounded trace norm)50,51 is one of the most effective measures to assess the proximity of two processes due to its enhanced rigor. In our analysis, we formally express it as

$$\begin{aligned} \Vert {{\mathcal {E}}}\Vert _{\diamond }=\Vert {{\mathcal {R}}}- {{\mathcal {T}}}\Vert _{\diamond }. \end{aligned}$$
(8)

For more comprehensive details about the diamond norm, its definition and calculation, we refer the reader to Refs.52,53. In our work, for the numerical calculation of \(\Vert {{\mathcal {E}}}\Vert _{\diamond }\) and the CPTP channel representations and transformations, we utilize the following Python ready-to-use tools: qiskit.quantum_info54, forest.benchmarking.operator_tools49, and qutip.superop_reps55.

The process fidelity F and infidelity \(e_F\), (when \({{\mathcal {T}}}\) is unitary31) are

$$\begin{aligned} F&= \frac{{\text {Tr}}[ {{\mathcal {T}}}^{\dagger } {{\mathcal {R}}}]}{d^2}= 1 + \frac{{\text {Tr}}[ {{\mathcal {T}}}^{\dagger } {{\mathcal {E}}}]}{d^2}, \end{aligned}$$
(9a)
$$\begin{aligned} e_F&=1-F =- \frac{{\text {Tr}}[ {{\mathcal {T}}}^{\dagger } {{\mathcal {E}}}]}{d^2}. \end{aligned}$$
(9b)

Measurement of \(e_F\) is achievable through Interleaved RB. However, there is currently no established scalable method for determining \(\Vert {{\mathcal {E}}}\Vert _{\diamond }\). Tomographic methods, such as GST, can be utilized to estimate \(\Vert {{\mathcal {E}}}\Vert _{\diamond }\), but they become exponentially expensive as the number of qubits n increases. As discussed in Ref.56, if only \(e_F\) is known, it is possible to bound \(\Vert {{\mathcal {E}}}\Vert _{\diamond }\) using

$$\begin{aligned} e_F \le \Vert {{\mathcal {E}}}\Vert _{\diamond } \le d\sqrt{e_F}, \end{aligned}$$
(10)

which means that the larger number of qubits n \((d = 2^n)\) leads to larger inaccuracy of \(\Vert {{\mathcal {E}}}\Vert _{\diamond }\). The objective of the MQPT method is not only to measure \(\Vert {{\mathcal {E}}}\Vert _{\diamond }\) more accurately, but also to find the individual elements of the error matrix \({{\mathcal {E}}}\). Therefore, for our simulations, we introduce an additional metric called differential diamond norm that is determined by the difference between the measured error matrix \({{\mathcal {E}}}_N\) and the actual one, i.e. \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\).

MQPT: conceptual framework

The basic structure of MQPT is shown schematically in Fig. 1 and it assumes in general two stages. In stage I, N processes (passes) are applied instead of a single process \({{\mathcal {R}}}\), so that the sequence \({{\mathcal {R}}}^N\), which represents the multipass process, is the object of characterization. The aim is to amplify the gate error \({{\mathcal {E}}}\) and use the enhanced precision and accuracy of the measured multipass process in order to enhance the precision and accuracy of the deduced single-pass process. The multipass process can be characterized by a conventional method, such as SQPT, AAPT, or any other methods that in principle apply the characterizing process only once. In Fig. 1, the blocks \(\rho _j\) represent the preparation states, while \(M_k\) denote the projective measurements and readout processes. These two blocks encompass the SPAM and readout errors. For SQPT, \(4^n \times 3^n\) individual experiments are required, implying \(j = 1, 2, \ldots , 4^n\) and \(k = 1, 2, \ldots , 3^n\). Because the multipass process \({{\mathcal {R}}}^N\) features large (accumulated) errors, the latter can be determined with high accuracy and precision. Subsequently, stage II is a post-processing calculation procedure used to obtain the single process \({{\mathcal {R}}}\) from the multipass process \({{\mathcal {R}}}^N\). Stage I includes measurement errors (SPAM, readout, shot noise), introduced by the preparation and projective measurement operations \(\rho _j\) and \(M_k\). All measurement errors remain constant at both ends of the entire circuit, i.e. they do not accumulate as N increases and they are presumed to be the same for single-pass and multipass processes. This leads to an improvement in the measurement of the multipass process \({{\mathcal {R}}}^N\), since only the gate error \({{\mathcal {E}}}\) accumulates over its course.

Before proceeding to stage II, let us make a rough estimate of the resource increase with such an approach. In contemporary quantum superconducting processors, the time for a single shot \(t_s\) (even in the absence of any gate in the circuit) is about 0.3 ms, whereas the time for a single pass (gate) \(t_g\) is on the order of \(\sim 100\) ns and \(\sim 600\) ns for single-qubit and two-qubit gates, respectively. This means that with a number of passes \(N \approx 20\), the time for a single shot (for the two-qubit case) will be \(t'_s =t_s + Nt_g\approx 1.04t_s\), so that it will increases by only about 4% compared to the application of a single pass. This implies that the method does not significantly increase the cost of the experiment in practice.

For performing stage II — deducing the single-pass PTM from the multipass PTM — we use two approaches:

  • an iterative method;

  • a linear approximation.

The iterative method delivers a solution that is practically exact regarding the input data derived from the measured matrix \({\mathcal { {{\mathcal {R}}}}}^N\). In this context, the term ’exact’ refers solely to the correspondence between the input and the output, rather than indicating precision in identifying the actual error matrix \({{\mathcal {E}}}\). However, if \({\mathcal { {{\mathcal {R}}}}}^N\) is considered to be measured with small errors, i.e., with a large number of shots, then initial measurement errors (such as SPAM and readout) are mitigated without introducing any additional post-processing errors. This leads to a significant enhancement in both precision and accuracy in the deduced single-pass process.

The linear method introduces some post-processing errors due to considering only the linear terms in the expansion of \({\mathcal { {{\mathcal {R}}}}}^N\) with respect to the error matrix \({{\mathcal {E}}}\). Hence, it applies to small errors only. Despite this, the method also proves to be useful, especially when the tomography is performed with relatively small number of shots, i.e. in the presence of large shot noise. In this scenario, it positively affects precision and accuracy, showing some benefits over the iterative method. This can be likened to the principles of a Wiener filter in signal and image processing57, where a linear approach is favored for its ability to effectively reduce noise and enhance the clarity of imaging in noisy environments.

Iterative and linear methods

As discussed above, the second stage of MQPT is the inverse task, in which the objective is to extract the single process \({{\mathcal {R}}}\), and respectively, the error matrix \({{\mathcal {E}}}\), from the multipass process \({\mathcal { {{\mathcal {R}}}}}^N= ( {{\mathcal {T}}}+ {{\mathcal {E}}})^N\). Generally speaking, this problem has many solutions. However, assuming that \({{\mathcal {R}}}\) is a high-fidelity gate, i.e., \(\Vert {{\mathcal {E}}}\Vert \ll \Vert {{\mathcal {R}}}\Vert\), and \({{\mathcal {T}}}\) is a known target matrix, then we can find a definitive single solution. We will do that first considering the practically exact iterative solution and then we present the linear method.

Post-processing iterative method

The method is based on an iterative approach. It combines the principles of perturbative methods with iterative refinement, akin to gradient descent methods. At its core, the algorithm employs a perturbative strategy, introducing \({{\mathcal {E}}}\) as a minor modification to \({{\mathcal {T}}}\). This perturbation, significantly smaller in magnitude compared to \({{\mathcal {T}}}\) (\(\Vert {{\mathcal {E}}}\Vert \ll \Vert {{\mathcal {T}}}\Vert\)), ensures the preservation of the fundamental characteristics of \({{\mathcal {T}}}\), providing stability to the solution process. The method unfolds in an iterative cycle, where each iteration corrects \({{\mathcal {E}}}\) based on the difference between \(( {{\mathcal {T}}}+ {{\mathcal {E}}})^N\) and \({\mathcal { {{\mathcal {R}}}}}^N\). This iterative refinement directs the solution towards a high degree of precision, typically reducing the error to less than \(10^{-12}\), achieving what is called a ’practically exact’ solution in the field of numerical computations.

The iterative method proceeds as follows:

  • Initialization: Start with an initial guess for \({{\mathcal {E}}}\), usually \({{\mathcal {E}}}= 0\).

  • Iterative Update Steps: (i) Calculate \({\mathcal { {{\mathcal {R}}}}}^N_{\text {current}} = ( {{\mathcal {T}}}+ {{\mathcal {E}}})^N\). (ii) Determine the difference: \(\varvec{\delta } = {\mathcal { {{\mathcal {R}}}}}^N- {\mathcal { {{\mathcal {R}}}}}^N_{\text {current}}\). (iii) Update \({{\mathcal {E}}}\) using: \({{\mathcal {E}}}= {{\mathcal {E}}}+ \alpha \varvec{\delta }\), where \(\alpha\) is a small positive learning coefficient (e.g., 0.01).

  • Convergence Criterion: The process repeats until the norm of \(( {{\mathcal {T}}}+ {{\mathcal {E}}})^N - {\mathcal { {{\mathcal {R}}}}}^N\) falls below a specified tolerance (e.g., \(10^{-12}\)), indicating that a practically exact solution has been found.

The code is presented in appendix 8.

It is important to note that for the CNOT gate, the method works with \(N=2m+1\) passes, while for the \(\sqrt{X}\) gate it works for \(N=4m+1\) passes, where \(m=0,1,2,\ldots\) In Section “Performance of the MQPT method: simulation”, we demonstrate the performance of this method for the \(\sqrt{X}\) and CNOT gates by simulation on IBM Quantum ibmq_simulator.

Linear method for involutory gates

Now we will derive the linear approximation for the solution of \({{\mathcal {E}}}=f( {\mathcal { {{\mathcal {R}}}}}^N, {{\mathcal {T}}},N)\), which is valid for involutory gates, i.e., gates which satisfy the relation

$$\begin{aligned} {{\mathcal {T}}}^2= {{\mathcal {I}}}, \end{aligned}$$
(11)

Some examples for involutory gates are

  • single qubit gates: X, Y, Z and Hadamard;

  • two-qubit gates: CNOT, SWAP, Controlled Z;

  • three-qubit gates: Toffoli and Fredkin.

For these gates, it is convenient to choose the number of the passes to be \(N=2m+1\) \((m=0,1,2,\ldots )\), so we have \({{\mathcal {T}}}^{2m+1}= {{\mathcal {T}}}\). Then the multipass process

$$\begin{aligned} {{\mathcal {R}}}^{2 m+1}= ( {{\mathcal {T}}}+ {{\mathcal {E}}})^{2m+1} \end{aligned}$$
(12)

reads, when expanded up to the second power of \({{\mathcal {E}}}\), as

$$\begin{aligned} {{\mathcal {R}}}^{2 m+1}&= {{\mathcal {T}}}+(m+1) {{\mathcal {E}}}+m {{\mathcal {T}}} {{\mathcal {E}}} {{\mathcal {T}}} \end{aligned}$$
(13a)
$$\begin{aligned}&+\frac{m(m+1)}{2} {{\mathcal {E}}^2_{a}}+ \frac{m(m-1)}{2} {{\mathcal {E}}^2_{b}}+ O( {{\mathcal {E}}}^3), \end{aligned}$$
(13b)

with

$$\begin{aligned} {{\mathcal {E}}^2_{a}}&= {{\mathcal {T}}} {{\mathcal {E}}}^2+ {{\mathcal {E}}} {{\mathcal {T}}} {{\mathcal {E}}}+ {{\mathcal {E}}}^2 {{\mathcal {T}}}, \end{aligned}$$
(14a)
$$\begin{aligned} {{\mathcal {E}}^2_{b}}&= {{\mathcal {T}}} {{\mathcal {E}}} {{\mathcal {T}}} {{\mathcal {E}}} {{\mathcal {T}}}, \end{aligned}$$
(14b)

where we have used the non-commutative rules and we have accounted for Eq. (11).

In order to find a unique linear solution, we retain linear terms, i.e. Eq. (13a). The nonlinear terms \({{\mathcal {E}}^2_{a}}\) and \({{\mathcal {E}}^2_{b}}\) can be viewed as post-processing errors; their significance grows quadratically with m. This fact sets an upper limit of how many passes we can apply before our solution deviates too much from the actual one.

By multiplying Eq. (13a) with \({{\mathcal {T}}}\) from the left and taking into account Eq. (11), we obtain

$$\begin{aligned} {{\mathcal {T}}} {{\mathcal {R}}}^{2 m+1}- {{\mathcal {I}}}=(m+1) {{\mathcal {T}}} {{\mathcal {E}}}+m {{\mathcal {E}}} {{\mathcal {T}}}. \end{aligned}$$
(15)

This is the Sylvester equation,

$$\begin{aligned} {\textbf{A}} {{\mathcal {E}}}+ {{\mathcal {E}}}{\textbf{B}}= {\textbf{C}}, \end{aligned}$$
(16)

with

$$\begin{aligned} {\textbf{A}}&=(m+1) {{\mathcal {T}}}, \end{aligned}$$
(17a)
$$\begin{aligned} {\textbf{B}}&=m {{\mathcal {T}}}, \end{aligned}$$
(17b)
$$\begin{aligned} {\textbf{C}}&= {{\mathcal {T}}} {{\mathcal {R}}}^{2 m+1}- {{\mathcal {I}}}, \end{aligned}$$
(17c)

which are known matrices.

Equation (16) has a unique solution for \({{\mathcal {E}}}\) if and only if the matrices \({\textbf{A}}\) and \(-{\textbf{B}}\) do not share any eigenvalue. In our case, this condition is always fulfilled because \(m+1 \ne -m\). This means that by solving Eq. (16) we can calculate the error matrix \({{\mathcal {E}}}\) and then the single process \({{\mathcal {R}}}= {{\mathcal {T}}}+ {{\mathcal {E}}}\).

Linear approximation for arbitrary target gates

As for the involutory target gates, we proceed with the same linear approximation for the generalization for any arbitrary target gate. By keeping only the linear terms in \({{\mathcal {E}}}\), the multipass process \({\mathcal { {{\mathcal {R}}}}}^N\) takes the form

$$\begin{aligned} {\mathcal { {{\mathcal {R}}}}}^N\approx {{\mathcal {T}}}^N+ {{\mathcal {T}}}^{N-1} \sum _{s=0}^{N-1} {{\mathcal {T}}}^{-s} {{\mathcal {E}}} {{\mathcal {T}}}^s. \end{aligned}$$
(18)

We find from here

$$\begin{aligned} {E}^{(N)}= \sum _{s=0}^{N-1} {{\mathcal {T}}}^{-s} {{\mathcal {E}}} {{\mathcal {T}}}^s, \end{aligned}$$
(19)

where \({E}^{(N)}= {{\mathcal {T}}}^{1-N} {\mathcal { {{\mathcal {R}}}}}^N- {{\mathcal {T}}}\) is a known matrix and our aim is to find the error matrix \({{\mathcal {E}}}\) on the right-hand side. Equation (19) is a special case of a general extended Sylvester equation. According to Ref.58 it can be numerically solved for \({{\mathcal {E}}}\) by the iterations

$$\begin{aligned} {{\mathcal {E}}}_{k+1}= {{\mathcal {E}}}_{k}+\mu \sum _{q=0}^{N-1} {{\mathcal {T}}}^{q}\Big ( {E}^{(N)}-\sum _{s=0}^{N-1} {{\mathcal {T}}}^{-s} {{\mathcal {E}}}_{k} {{\mathcal {T}}}^s \Big ) {{\mathcal {T}}}^{-q}, \end{aligned}$$
(20)

where \(\mu\) is a convergence factor that controls the convergence of the iterative algorithm (20), which takes values in the range of \(0<\mu \ll 1\). Larger \(\mu\) leads to fewer iterations; however, above a critical value there is no convergence of the algorithm. More details about the choice of \(\mu\) can be found in Ref.58. In our demonstration for single-qubit non-involutory gates, we choose \(\mu =0.003\). The initial matrix \({{\mathcal {E}}}_0\) could be any arbitrary matrix, having the same dimension as \({{\mathcal {T}}}\).

In Section “Performance of the MQPT method: simulation”, we demonstrate the linear method for the \(\sqrt{X}\) and CNOT gates by simulations on qasm_simulator. For \(\sqrt{X}\) gate, we apply the non-involutory case according to Eq. (20), while for CNOT gate we apply the involutory method described in Section “Linear method for Involutory gates”. We will illustrate also how the linear method leads to improved accuracy for small number of shots \(n_s\) compared to the iterative method. However, for large \(n_s\), the post-processing errors become significant and then the iterative method outperforms the linear method.

Limitations of the linear methods

An estimation of the limitations of linear methods would be helpful. For small errors, the nonlinear terms become increasingly negligible, making the linear methods more accurate as the number of passes N increases. In other words, if the errors are very small, there should be no limitations on increasing of N; rather, doing so will help accumulate (amplify) the errors, enhancing the accuracy of the linear methods.

The limitations at large errors depend on the number of passes N and if we assume that this limitation does not depend on the matrix dimension \(d^2\), then the easiest estimation is to consider \(d=1\), meaning \({{\mathcal {R}}}\rightarrow R\), \({{\mathcal {T}}}\rightarrow \tau\) and \({{\mathcal {E}}}\rightarrow \epsilon\) to be complex numbers (matrix \(1 \times 1\)) with the expression

$$\begin{aligned} R^N=(\tau +\epsilon )^N \approx \tau ^N+L+Q, \end{aligned}$$
(21)

where \(|\tau |=1\) and

$$\begin{aligned} L&=N\tau ^{N-1}\epsilon ,\end{aligned}$$
(22a)
$$\begin{aligned} Q&=\frac{N(N-1)}{2}\tau ^{N-2}\epsilon ^2 \end{aligned}$$
(22b)

are the linear and quadratic error terms respectively. To estimate the limitation we should consider \(Q\ll L\) and therefor we get

$$\begin{aligned} |\epsilon | \ll \frac{2}{N-1}. \end{aligned}$$
(23)

Performance of the MQPT method: simulation

The simulations discussed in this section were performed with qasm_simulator backend of Qiskit, IBM’s open-source quantum computing software framework54.

Description of the simulation

In order to examine the precision and the accuracy of the proposed method and its capability to identify individual error matrix elements, we have chosen a purely simulation-based approach. This choice is due to the fact that in simulations, we are able to know a priori the actual process we wish to characterize and use it as a reference. In order to obtain reliable statistics, we apply the iterative method to the diamond norm by performing 50 tomographies for various passes N and numbers of shots \(n_s\). We perform such simulations on two basic quantum gates — the single-qubit gate \(\sqrt{X}\) and the two-qubit gate CNOT. For both of them, we have pre-generated PTM matrices \({{\mathcal {R}}}\) that have similar gate infidelities as the respective real quantum processors of IBM Quantum. The PTM’s were generated using the Qutip’s master equation mesolve program55 with the incorporation of collapse operators, while the unitary errors are simulated by additional small rotations in the three axes “X, Y and Z”: 0.07 radians for \(\sqrt{X}\) and 0.09 for CNOT gate.

For the simulation of measurement, it is necessary also to simulate the measurement errors — specifically, SPAM, readout, and shot noise errors. As for the gate error matrix, the measurement errors are chosen by considering typical values for the current real IBM Quantum processors. In our model, the SPAM error is introduced by the so-called “noise model”59. The SPAM error is modeled only for the \(\sqrt{X}\) gate, as it is the only imperfect single qubit gate that is used in SPAM. The phase gates, which are also basic gates and used in SPAM, are practically perfect due to the usage of the so-called “Frame change” technique60. We assume a typical SPAM error (infidelity) of \(2\times 10^{-4}\) for the \(\sqrt{X}\) gate, while the readout error is set to \(3\times 10^{-3}\). More detailed information on how the readout errors are introduced and quantified in the simulations can be found in Refs.61,62. We note that, in reality, the readout error could be larger, in the range of \(10^{-2}\); however, we assume that we have also performed in advance the so-called “readout mitigation” technique63. This technique is widely used and is available in Qiskit in the module mitigatedprocesstomography. Nevertheless, this technique cannot completely mitigate the readout error, and a smaller but still significant part remains. The shot noise error, that scales proportionally to \(1/\sqrt{n_{s}}\) is automatically introduced when specifying the number of shots \(n_{s}\) in the Qiskit processtomography module. In the simulation discussed in this section, we use various numbers of shots \(n_s=\)4k, 10k, 40k, 100k etc., where, for simplicity, k\(=10^3\) hereafter.

Figure 2
figure 2

Top: Target PTM \({{\mathcal {T}}}\) for the \(\sqrt{X}\) gate (left), actual (simulated) PTM \({{\mathcal {R}}}\) (middle), actual (simulated) error matrix \({{\mathcal {E}}}\) (right) with a diamond norm of \(\Vert {{\mathcal {E}}}\Vert _{\diamond } = 0.018\), infidelity \(e_F=0.00019\). Bottom 3 rows: Tomography of the \(\sqrt{X}\) gate by the iterative MQPT method, represented by the measured error matrices \({{\mathcal {E}}}_N\) corresponding to various numbers of passes \(N=1,5,17\) and various numbers of shots (10k, 100k and 1000k). Standard single-pass QPT corresponds to \({{\mathcal {E}}}_1\) (\(N=1\), left column). These error matrices are averaged over 50 individual tomographies.

Figure 3
figure 3

Distribution of the diamond norm \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) (left) and the differential diamond norm \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\) (right) for the \(\sqrt{X}\) gate for various numbers of passes \(N = 4m+1\) and number of shots \(n_s\) calculated by using the iterative MQPT method. The histograms display the results from 50 different simulations, in order to obtain reliable statistics, related to the limited number of shots \(n_s\). The solid red curves indicate the beta distribution fit to the data. The dashed line in the left matrix of plots indicates the actual value of the error norm.

In IBM Qiskit, the output of the processtomography measurement is presented by the measured Choi matrix \({\mathcal {C}}\). In the first stage of MQPT, when performing QPT on N gates we have a measured Choi matrix \({\mathcal {C}}^{(N)}\), that we convert to the respective PTM \({\mathcal {R}}^{N}\) by the transformation

$$\begin{aligned} \left( {\mathcal {R}}^{N}\right) _{i, j}=\frac{1}{d}{\text {Tr}}\left[ {\mathcal {C}}^{(N)} P_j^T \otimes P_i\right] . \end{aligned}$$
(24)

Subsequently, in the post-processing MQPT  procedure, having found \({\mathcal {R}}^{N}\), we determine the measured error matrix \({{\mathcal {E}}}_{N}\) and the measured single process \({{\mathcal {R}}}_{N}= {{\mathcal {T}}}+ {{\mathcal {E}}}_{N}\). Since we know the actual error \({{\mathcal {E}}}\), we can visualize the precision and accuracy enhancement by using the diamond norms of the measured error matrix \(\Vert {{\mathcal {E}}}_{N}\Vert _{\diamond }\) and the difference between the measured and actual error matrices \(\Vert {{\mathcal {E}}}_{N}- {{\mathcal {E}}}\Vert _{\diamond }\).

MQPT simulation of \(\sqrt{X}\)

We begin with a simulation of the single-qubit gate \(\sqrt{X}\), which is a basic gate in IBM Quantum processors. The target \({{\mathcal {T}}}\) and the actual error matrix \({{\mathcal {E}}}\) are plotted in Fig. 2 (top row), and the explicit form of \({{\mathcal {E}}}\) is given in Appendix 7. In each shot, we applied the \(\sqrt{X}\) gate \(N=4m+1\) times (N passes) and then performed standard QPT in order to generate the PTM matrix of the process. Because each shot has a statistical shot noise error, we used \(n_s\) shots in order to reduce this error. In the simulations we used \(n_s=\) 4 k to 1000 k. For each combination of \(N\) and \(n_s\), we executed 50 tomographies, followed by the application of the iterative method with some comparisons with the linear one. Each of the 50 tomographies had its own “shot noise” statistical error and hence their distribution is presented in histograms.

Figure 2 provides a visual representation of the enhanced MQPT by displaying the error matrices \({{\mathcal {E}}}_N\) for various numbers of passes (\(N=1,5,17\)) and numbers of shots (10 k, 100 k, 1000 k). When compared to the actual matrix \({{\mathcal {E}}}\), as shown in Fig. 2 (top/right), it becomes evident how the matrices \({{\mathcal {E}}}_N\) progressively approximate \({{\mathcal {E}}}\) more closely with the increase in both N and \(n_s\), while the single-pass matrices \({{\mathcal {E}}}_1\) differ significantly, even for 1000k shots.

In order to conduct a more thorough examination of the precision and accuracy of our method, we analyzed the distributions of the diamond norms \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) and \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\) derived by the iterative method, which are depicted in Fig. 3. The left-hand-side matrix of plots reveals that for SQPT (\(N=1\)) only the precision is improved as the number of shots \(n_s\) increases, while the accuracy is still low. The reason is that the SPAM and readout errors add up to the gate errors and prevent SQPT from retrieving the latter. On the contrary, for MQPT (\(N=5, 17\)), the distributions squeeze (indicating improved precision) and shift closer to the exact values (indicating improved accuracy) when N and \(n_s\) increase.

The right-hand-side matrix of plots in Fig. 3 shows the distribution of the diamond norm difference, \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\), representing the distance between the measured error matrix \({{\mathcal {E}}}_N\) and the actual error matrix \({{\mathcal {E}}}\), for various numbers of passes \(N = 4m+1\) and numbers of shots \(n_s\). This figure demonstrates how effectively MQPT can measure the actual matrix \({{\mathcal {E}}}\), going beyond merely assessing the actual diamond norm \(\Vert {{\mathcal {E}}}\Vert _{\diamond }\), as compared to Fig. 3. Indeed, different matrices \({{\mathcal {E}}}_N\) can have the same diamond norm \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) but they can be at different distances \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\) from the actual error matrix \({{\mathcal {E}}}\). However, when the diamond distance \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\) approaches 0 then the calculated error matrix \({{\mathcal {E}}}_N\) approaches the actual error matrix \({{\mathcal {E}}}\) with certainty. The left column in the right-hand-side matrix of plots in Fig. 3 demonstrates that this cannot be achieved with a single pass regardless of the number of shots. The multipass MQPT method, even for the relatively low values of N in the figure, make it possible to approach very closely the actual error matrix \({{\mathcal {E}}}\) because the detrimental SPAM and readout effects are greatly reduced.

Figure 4
figure 4

Comparison of the iterative MQPT (solid lines), linear MQPT (dashed lines) and Interleaved Randomized Benchmarking (IRB, band) methods applied to the \(\sqrt{X}\) gate. We compare the diamond norm \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) (left), the differential diamond norm \(\Vert {{\mathcal {E}}}_N - {{\mathcal {E}}}\Vert _{\diamond }\) (middle) and the infidelity (right) for several numbers of passes N and several numbers of shots \(n_s\). The actual infidelity \(e_F\) is shown by the horizontal dashed line in the left and right plots and serves as the target value. The target value in the middle plot is 0.

While distribution plots for the linear method have been omitted due to their qualitative resemblance to those of the iterative method, Fig. 4 presents a comparison of the two methods. It is noteworthy that, for a range of shots (4k and 40k), both \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) and \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\) yield smaller values by the linear method. This observation seems to contradict expectations, as the iterative method typically offers a practically exact solution for finding \({{\mathcal {E}}}\) given a multi-pass process \({\mathcal { {{\mathcal {R}}}}}^N\). However, the linear method mixes the post-processing with the shot noise errors, which statistically leads to a random error compensation. This implicit feature is quite similar to Ridge regression64, which prevents overfitting to noisy data, and to the Wiener filter57, suggesting that the linear method might provide a more stable solution in the presence of noise. However, this trend is reversed for the higher shot count of 1000k, making the data clearer of shot noise error, the inherent ability of the iterative method to precisely adjust to the signal without being distorted by noise comes to the forefront. At the same time, the linear method begins to exhibit its limitations, as at reduced levels of shot noise, an increasingly uncompensated post-processing error becomes evident, and the accuracy of the linear method falls behind.

Figure 5
figure 5

Target CNOT Pauli Transfer matrix \({{\mathcal {T}}}\) (left) and the actual error matrix \({{\mathcal {E}}}\) (right), which is randomly generated for our simulations with process infidelity \(e_{F}=0.0062\) and diamond norm \(\Vert {{\mathcal {E}}}\Vert _{\diamond }=0.073\). The actual process \({{\mathcal {R}}}\) is the sum of these two matrices. On this channel, we simulate SQPT, by using of IBM ibmq_qasm_simulator and the Qiskit processtomography module.

Figure 6
figure 6

The same as Fig. 3 but for the CNOT gate.

In order to showcase the accuracy of infidelity measurement by MQPT, we analyzed results from both linear and iterative methods, alongside an infidelity measurement conducted via the IRB method using the available Qiskit module interleavedrb. Figure 4 (right) displays these results on a logarithmic scale. Echoing our earlier observations in the diamond norm comparison, the linear method demonstrates greater accuracy in high shot noise (small number of shots) situations. MQPT, by contrast, attains comparable accuracy levels when a large number of shots (exceeding 400k) and multiple passes N are implemented. Another noteworthy observation is the precise infidelity measurement achieved by the IRB method. While the IRB method accurately determines infidelity \(e_{F}\), it does not provide information about the error matrix \({{\mathcal {E}}}\) and the differential diamond norm \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\). In contrast, the strength of MQPT lies in its ability to deliver these metrics, although with lower accuracy in the measurement of \(e_{F}\) compared to IRB.

MQPT simulation of CNOT gate

Following the same MQPT procedure as for \(\sqrt{X}\) gate, in this section we apply it to CNOT gate. We use an imperfect CNOT gate with a target PTM \({{\mathcal {T}}}\) and error matrix \({{\mathcal {E}}}\) shown in Fig. 5 (top right). It has a diamond norm \(\Vert {{\mathcal {E}}}\Vert _{\diamond } = 0.073\), infidelity of \(e_{F}=0.0062\) and its explicit form is shown in Appendix 7. The CNOT gate that is characterized in the simulation has the most significant bit (MSB) as the control qubit, i.e. cx(1,0). According to the Qiskit MSB convention, the corresponding \(4 \times 4\) target gate is represented as

(25)

Figure 5 (middle and bottom rows) provides a visual representation of the enhanced MQPT by displaying the error matrices \({{\mathcal {E}}}_N\) for 1 and 17 passes and \(n_s=4\)k and 400k shots. The matrices are averaged over 50 individual tomographies. Compared to the actual error matrix \({{\mathcal {E}}}\), as shown in Fig. 5 (top right), it becomes evident how the MQPT matrices \({{\mathcal {E}}}_{17}\) approximate \({{\mathcal {E}}}\) more closely than the SQPT matrices \({{\mathcal {E}}}_{1}\). Moreover, the plots show that increasing the number of passes N brings the multipass simulated error matrix \({{\mathcal {E}}}_{17}\), with a small number of shots (4k) much closer to the actual error matrix \({{\mathcal {E}}}\) than what the simulated single-pass error matrix \({{\mathcal {E}}}_1\) can achieve, even with a much larger number of shots \(n_s=400\)k.

Following the approach taken for the \(\sqrt{X}\) gate, we examine the diamond norm distributions for the CNOT gate in order to assess the precision and accuracy of our MQPT approach. The diamond norms \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) and \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\), calculated with the iterative method, are plotted in Fig. 6. As for the \(\sqrt{X}\) gate, the right-hand-side matrix of plots, which shows the difference norm \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\) between the simulated \({{\mathcal {E}}}_N\) and actual \({{\mathcal {E}}}\) error matrices, is the unambiguous measure of success or failure of the simulation, because different simulated matrices \({{\mathcal {E}}}_N\) may have the same diamond norm \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) but they may be far from the actual error matrix \({{\mathcal {E}}}\).

Figure 6 demonstrates that, as the number of passes N increases, the distribution becomes both more precise (its width shrinks) and more accurate (it approaches the vertical dashed line, which shows the actual error stemming from the generated random error matrix). On the other hand, when we increase the number of shots \(n_s\) and hence reduce the statistical shot-noise error, the precision increases (according to the statistical square-root law), but the change in accuracy depends on the number of passes used: it quickly saturates for 1 pass, while for 5 and 17 passes the distribution moves steadily toward the dashed line (the actual error).

The reason is that the SPAM and readout errors shift the single-pass simulations, whereas these errors are greatly reduced by the multipass approach. This simulation clearly conveys the enhancements in both precision and accuracy with the MQPT repetition method.

Figure 7
figure 7

The same as Fig. 4 but for the CNOT gate. The IRB value is slightly lower than the actual value because IRB gives the averaged process fidelity, instead of process fidelity, that is more rigorous and utilized in this paper.

Fig. 7 presents a comparison of the diamond norms of the CNOT gate calculated by the linear and iterative MQPT methods. It is a test of how the two methods perform relative to each other. For 4k shots, the linear method yields better accuracy than the iterative method. However, as the shot count exceeds 40k, the trend reverses, with the iterative norms becoming the more accurate ones. This suggests that at higher shot counts, the iterative method more effectively mitigates the SPAM and readout errors. Additionally, at 40k and 1000k shots, there is a monotonic decrease in the iterative norms as the number of passes N increases, further emphasizing the iterative method’s advantage in the high-shot regime.

It is important to note that the diamond norm \(\Vert {{\mathcal {E}}}_N\Vert _{\diamond }\) calculated by the linear method for 40k and 1000k shots crosses the line of the actual norm \({{\mathcal {E}}}\) for more than 9 passes, i.e. it underestimates the error (left plot). Conversely, the iterative method asymptotically approaches the actual norm \({{\mathcal {E}}}\) as the number of passes N increases. This observation does not show up in the differential diamond norm \(\Vert {{\mathcal {E}}}_N- {{\mathcal {E}}}\Vert _{\diamond }\) (middle plot), which is a better measure of the methods performance.

The situation with the simulated infidelity is similar as for the \(\sqrt{X}\) gate. Figure 7 (right) displays the infidelity of the CNOT gate where the exact infidelity is compared to the infidelities calculated by the linear and iterative MQPT methods and the IRB method. The infidelity simulated by IRB is more accurate than MQPT for small numbers of passes N and shots \(n_s\), but for larger values of N and \(n_s\) the MQPT method features similar accuracy as IRB. While IRB offers a straightforward and fairly accurate assessment of \(e_F\), it only gives a single number and does not yield the far more extensive information about the actual error matrix \({{\mathcal {E}}}\): this is what MQPT delivers.

An interesting observation regarding IRB follows from comparing Figs. 4 and 7. While the IRB method correctly finds the exact infidelity for the \(\sqrt{X}\) gate in Fig. 4, it fails to do so for the CNOT gate in Fig. 7. We have found that this feature is not specific for the particular random choice of the actual error matrix \({{\mathcal {E}}}\) but holds in general.

Experimental demonstration of MQPT on ibmq_manila

Figure 8
figure 8

Top/left - CNOT/cx(0,1)/ PTM target matrix ; Top/right - Measured error matrix \({{\mathcal {E}}}_1\) by SQPT (\(N=1\)); bottom/left - MQPT  \({{\mathcal {E}}}_{11}\) with the linear method; bottom/right - MQPT  \({{\mathcal {E}}}_{11}\) with the iterative method. All error matrices are averaged over ten tomographies performed with the Qiskit module mitigatedprocesstomography.

In this section, we demonstrate MQPT experimentally on the CNOT gate that is the basic two-qubit gate on ibmq_manila processor65 and we compare it with the results of SQPT. In order to improve the quality of SQPT, we use the Qiskit module mitigatedprocesstomography, that mitigates the readout error. This module includes two additional circuits to the regular 144 SQPT circuits that are in the module processtomography. We performed SQPT with \(N=1\) pass and MQPT with \(N=11\) passes. For both SQPT and MQPT we conducted 10 tomographies with \(n_s=4\)k shots. The CNOT that is characterized in the experimental demonstration has a least significant bit (LSB) as the control qubit, i.e. cx(0,1). According to the IBM Qiskit LSB convention, the corresponding \(4 \times 4\) target gate is represented by

(26)

The respective PTM target matrix is shown in Fig. 8 (top left), and the SQPT error matrix \({{\mathcal {E}}}_1\) in Fig. 8 (top right). On the bottom row of Fig. 8 we present the measured error matrix \({{\mathcal {E}}}_{11}\) by MQPT with the linear and iterative methods. Both SQPT and MQPT  matrices are averaged over 10 tomographies. The target CNOT matrix \({{\mathcal {T}}}\) and the measured error matrix \({{\mathcal {E}}}_{11}\) are given explicitly in Appendix A. As in the simulations in the preceding section, SQPT overestimates the errors (due the uncompensated SPAM and readout errors), while both MQPT methods give significantly lower (and similar to each other) values.

Figure 9
figure 9

CNOT Infidelity distribution after SQPT and MQPT  (linear and itearive) with \(N=11\) on IBM Quantum Device ibmq_manila. Ten experiments were conducted using the Qiskit module mitigatedprocesstomography, each with \(n_s=4\)k shots. The median infidelity is taken from the IBM Quantum Calibration data (red dashed). The Beta curves (red doted) represent the fitted infidelity distributions for SQPT and MQPT.

In Fig. 9 we show the results for the infidelity distribution performed with 10 tomographies for SQPT and MQPT (linear and iterative methods). As references for the measurement, we use the IBM Calibration data that specify a CNOT median gate error of \(6\times 10^{-3}\) marked with red dashed line. We notice significant precision and accuracy enhancements, since the MQPT infidelity distribution is much closer to the specified median infidelity (in red dashed) than SQPT. With further increase of the number of passes and shots, which unfortunately were not possible, we would expect both the accuracy and the precision to increase.

Figure 10
figure 10

Direct/ Indirect probability comparison for SQPT and MQPT(Linear and methods) - Experimental demonstration on IBM quantum ibmq_manila. The direct basic state probabilities (doted marks) are measured after applying of CNOT gate M times on the initial state \(|00\rangle\) at \(n_s=4\)k. The indirect probabilities (dashed lines) are calculated by the averaged SQPT and MQPT  Liouville processes \({{\mathscr {S}}}_1\) (\(N=1)\) and \({{\mathscr {S}}}_{11}\) (\(N=11\)) . This process is then raised to the power of various M and applied to the vectorized initial state \(|\rho _0\rangle \rangle = |00\rangle\), i.e. the probabilities are calculated by the vector \({{\mathscr {S}}}_{N}^M|00\rangle \rangle\) according to Eq. (27).

We have also used for comparison some other independent and directly measurable data, which do not rely on the median fidelity from the IBM Calibration data. To this end, we have conducted a series of measurements of the populations \(p_{ij}(M)\) on the four basis states \({|{00}\rangle },{|{01}\rangle },{|{10}\rangle },{|{11}\rangle }\), by applying the same CNOT gates multiple times \((M=1,2,\ldots ,100)\). These directly measured probabilities are depicted in Fig. 10, marked with dots. This measurement can be compared with the results from our measured processes \({{\mathcal {R}}}_{N}\) for SQPT (\(N=1\)) and MQPT (\(N=11\)). In order to demonstrate the indirect results, we convert the measured Pauli transfer matrices to Liouville matrices, i.e. \({{\mathcal {R}}}_{N} \rightarrow {{\mathscr {S}}}_{N}\). We then exponentiate these matrices to various powers of M and we apply them to the initial vectorized (by column stacking) state \(|\rho _0\rangle \rangle =|00\rangle \rangle\). The indirectly measured probabilities \(p_{ij}(N,M)\) are then obtained as

$$\begin{aligned} p_{00}(N,M)&=\left( {{\mathscr {S}}}_{N}^{M}|00\rangle \rangle \right) _1 , \end{aligned}$$
(27a)
$$\begin{aligned} p_{01}(N,M)&=\left( {{\mathscr {S}}}_{N}^{M}|00\rangle \rangle \right) _6 , \end{aligned}$$
(27b)
$$\begin{aligned} p_{10}(N,M)&=\left( {{\mathscr {S}}}_{N}^{M}|00\rangle \rangle \right) _{11} , \end{aligned}$$
(27c)
$$\begin{aligned} p_{11}(N,M)&=\left( {{\mathscr {S}}}_{N}^{M}|00\rangle \rangle \right) _{16} , \end{aligned}$$
(27d)

where the subscripts 1, 6, 11, 16 denote the index of the obtained column vector elements that correspond to the four basis states \({|{00}\rangle },{|{01}\rangle },{|{10}\rangle },{|{11}\rangle }\).

The indirect probabilities for the four basic states as determined by SQPT are illustrated in Fig. 10 with dashed lines. These are noticeably different from the directly measured set, attributable to the significant inaccuracies in SQPT arising from SPAM and readout errors.

The curves stemming from MQPT utilizing the averaged Liouville matrix \({{\mathscr {S}}}_{11}^{M}\) are also presented. The corresponding curves for the direct probability measurement and MQPT align more closely, providing further evidence that MQPT significantly enhances tomographic quality.

Conclusions

In this paper, we introduced a technique called Multipass Quantum Process Tomography (MQPT) that greatly improves the precision and accuracy of Standard Quantum Process Tomography by employing gate repetitions (passes). This approach serves as a complement to other non-repetitive methods such as SQPT and AAPT, offering a more straightforward and resource-efficient alternative to the more intricate and demanding repetitive methods. We explored both iterative and linear versions of MQPT and demonstrated their application to the \(\sqrt{X}\) and CNOT gates. Our simulation models assessed the method’s accuracy and precision before their implementation on the real IBM Quantum processor ibmq_manila. The findings indicate that while each of the linear and iterative MQPT methods has specific advantages depending on the tomography conditions, both consistently alleviate the effects of SPAM and readout errors, and shot noise.

We emphasize that, compared to other quantum tomography methods, such as randomized benchmarking, which only deliver the gate fidelity, our method provides the entire quantum process matrix, the Pauli transfer matrix (PTM). It contains the complete information for the specific process, which can be used to deduce the contributions of the various error mechanisms. We achieve this with far better precision and accuracy than the (non-repetitive) Standard Quantum Process Tomography.

The MQPT method is designed for broad applicability across various quantum processor platforms, not limited to the superconducting qubits as those in IBM Quantum. This method serves as an enhancement to single-pass techniques SQPT and AAPT by utilizing multiple passes (\(N > 1\)) and can be effectively applied to different quantum processors, such as trapped ions, and other architectures, where SPAM, readout, and shot noise errors are also present.