Spectral Quantum Tomography
Jonas Helsen, Francesco Battistel, Barbara M. Terhal

TL;DR
Spectral quantum tomography is a resource-efficient method for extracting eigenvalues of noisy quantum gates, providing detailed diagnostics beyond traditional fidelity measures, and is applicable to real superconducting qubit systems.
Contribution
We introduce spectral quantum tomography, a novel SPAM-resistant technique for eigenvalue extraction of quantum gates using minimal resources.
Findings
Successfully applied to superconducting qubits on cloud platforms.
Revealed effects of cross-talk, leakage, and non-Markovian errors.
Provides detailed gate diagnostics beyond fidelity measures.
Abstract
We introduce spectral quantum tomography, a simple method to extract the eigenvalues of a noisy few-qubit gate, represented by a trace-preserving superoperator, in a SPAM-resistant fashion, using low resources in terms of gate sequence length. The eigenvalues provide detailed gate information, supplementary to known gate-quality measures such as the gate fidelity, and can be used as a gate diagnostic tool. We apply our method to one- and two-qubit gates on two different superconducting systems available in the cloud, namely the QuTech Quantum Infinity and the IBM Quantum Experience. We discuss how cross-talk, leakage and non-Markovian errors affect the eigenvalue data.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Quantum Information and Cryptography · Quantum and electron transport phenomena
Spectral Quantum Tomography
Jonas Helsen
QuTech, Delft University of Technology, P.O. Box 5046, 2600 GA Delft, The Netherlands
Francesco Battistel
QuTech, Delft University of Technology, P.O. Box 5046, 2600 GA Delft, The Netherlands
Barbara M. Terhal
QuTech, Delft University of Technology, P.O. Box 5046, 2600 GA Delft, The Netherlands
JARA Institute for Quantum Information, Forschungszentrum Juelich, D-52425 Juelich, Germany
Abstract
We introduce spectral quantum tomography, a simple method to extract the eigenvalues of a noisy few-qubit gate, represented by a trace-preserving superoperator, in a SPAM-resistant fashion, using low resources in terms of gate sequence length. The eigenvalues provide detailed gate information, supplementary to known gate-quality measures such as the gate fidelity, and can be used as a gate diagnostic tool. We apply our method to one- and two-qubit gates on two different superconducting systems available in the cloud, namely the QuTech Quantum Infinity and the IBM Quantum Experience. We discuss how cross-talk, leakage and non-Markovian errors affect the eigenvalue data.
I Introduction
A central challenge on the path towards large-scale quantum computing is the engineering of high-quality quantum gates. To achieve this goal, many methods which accurately and reliably characterize quantum gates have been developed. Some of these methods are scalable, meaning that they require an effort which scales polynomially in the number of qubits on which the gates act. Scalable protocols, such as randomized benchmarking knill+:RB ; MGE:RB ; magesan+:IRB ; WG:leak ; wallman+:unitarity ; DHW:URB ; erhard+:cycle ; OWE:RB necessarily give a partial characterization of the gate quality, for example an average gate fidelity. Other protocols such as robust tomography kimmel+:tomo or gate-set tomography BK:GST ; greenbaum:GST trade scalability for a more detailed characterization of the gate. A desirable feature of all the above protocols is that they are resistant to state-preparation and measurement (SPAM) errors. The price of using SPAM-resistant (scalable) methods is that these protocols have significant experimental complexity and/or require assumptions on the underlying hardware to properly interpret their results.
In this work we present spectral quantum tomography, a simple non-scalable method that extracts spectral information from noisy gates in a SPAM-resistant manner. To process the tomographic data and obtain the spectrum of the noisy gate, we rely on the matrix-pencil technique, a well-known classical signal processing method. This technique has been advocated in OWE:RB in the context of randomized benchmarking and has also been used in OTT:QPE for processing data in the algorithm of quantum phase estimation. It has also been used, under the phrase ‘linear systems identification’, in BL:system to predict the time evolution of quantum systems. While the matrix pencil technique leads to explicitly useful estimates of eigenvalues and their amplitudes, we note that the same underlying idea is used in the method of “delayed vectors” which has been proposed in WP:dim to assess the dimensionality of a quantum system from its dynamics. This “delayed vectors” approach has been applied to assess leakage in superconducting devices in SDK:leak-witness .
The spectral information of a noisy gate , which approximates some target unitary , is given by the eigenvalues of the so-called Pauli transfer matrix representing . These eigenvalues, which are of the form , contain information about the quality of the implemented gate. Intuitively, the parameter captures how much the noisy gate deviates from unitarity due to entanglement with an environment, while the angle can be compared to the rotation angles of the targeted gate . Hence gives information about how much one over- or under-rotates. The spectrum of can also be related to familiar gate-quality measures such as the average gate fidelity and the unitarity. Moreover, in the case of a noisy process modeled by a Lindblad equation, the spectrum can be easily related to the more familiar notions of relaxation and dephasing times.
The main advantage of spectral quantum tomography is its simplicity, requiring only the (repeated) application of a single noisy gate , as opposed to the application of a large set of gates as in randomized benchmarking, gate-set tomography and robust tomography. Naturally, simplicity and low-cost come with some drawback, namely the method does not give information about the eigenvectors of the noisy gate, such as the axis around which one is rotating. However, information about the eigenvectors is intrinsically hard to extract in a SPAM-resistant fashion since SPAM errors can lead to additional rotations RPZ:gauge . Another feature of spectral quantum tomography is that it can be used to extract signatures of non-Markovianity, namely the phenomenon where the noisy gate depends on the context in which it is applied (e.g. time of application, whether any gates have been applied before it). As we show in this paper, our method can be used to detect various types of non-Markovian effects such as coherent revivals, parameter drifts, and Gaussian-distributed time-correlated noise. It is also possible to distinguish non-Markovian effects from qubit leakage. For these reasons we believe that spectral quantum tomography adds a useful new tool to the gate-characterization toolkit. The method could also have future applications in assessing the performance of logical gates in a manner which is free of logical state preparation and measurement errors, see the Discussion Section.
II Results
II.1 Eigenvalues of Trace-Preserving Completely-Positive (TPCP) maps
Take a unitary gate on a -dimensional space with . The corresponding TPCP map has one trace-full eigenvector, namely with eigenvalue 1, as well as traceless eigenvectors. In particular, there are traceless eigenvectors of the form for with eigenvalues , and traceless eigenvectors of the form for with eigenvalue .
For general TPCP maps it is convenient to use the Pauli transfer matrix formalism. For an -qubit system () consider the normalized set of Pauli matrices for with , where and the normalization is chosen such that {\rm Tr}\big{[}P_{\mu}P_{\nu}\big{]}=\delta_{\mu\nu}. For a TPCP map acting on qubits, the Pauli transfer matrix is then defined as
[TABLE]
The form of the Pauli transfer matrix is RSW:TCP
[TABLE]
where is a real matrix and is a -dimensional column vector. The 1 and 0’s in the top row of the Pauli transfer matrix are due to the fact that is trace-preserving. For a unital which obeys , the vector .
A few properties are known of the eigenvalue-eigenvector pairs of , i.e. the pairs with :
- •
The eigenvalues of are and the eigenvalues of since the solutions of the equation are the solutions of the equation .
- •
The eigenvalues of , and thus the eigenvalues of , come in complex-conjugate pairs. This is true because is a real matrix.
- •
The eigenvalues of (or for that matter) have modulus less than 1, i.e. (see e.g. Proposition 6.1 in wolf ).
If is diagonalizable as a matrix, it holds that where is a diagonal matrix and a similarity transformation. Generically, will be diagonalizable, in which case there are eigenvalue-eigenvector pairs for . A sufficient condition for diagonizability is, for example, that all the eigenvalues of are distinct. In Appendix IV.1 we give examples and discuss what it means if is not diagonalizable.
For some simple single-qubit channels we can explicitly compute the spectrum. For instance, for a single-qubit depolarizing channel with depolarizing probability , the eigenvalues of the sub-matrix of the Pauli transfer matrix are . For a single qubit amplitude-damping channel with damping rate they are greenbaum:GST .
II.1.1 Relation to gate-quality measures
The eigenvalues of the Pauli transfer matrix of a noisy gate can be related to several other known measures of gate quality such as the average gate fidelity , the gate unitarity and, for a single qubit (), the gate unitality.
The average gate fidelity is defined as . This fidelity relates directly to the entanglement fidelity via HHH:singlet , where the entanglement fidelity is defined as
[TABLE]
where is a maximally entangled state. Using that and we can write
[TABLE]
Thus for the (entanglement) fidelity of a noisy gate with respect to the identity channel , one has , implying a direct relation to the spectrum of . A more interesting relation is how the eigenvalues of bound the fidelity with respect to a targeted gate . In Appendix IV.2 we prove that the entanglement fidelity can be upper bounded as
[TABLE]
where with the eigenvalues of with the targeted unitary, ordered such that the sum is maximal.
This upper bound is not particularly tight, but for the case of a single qubit we can make a much stronger numerical statement, see Section IV.2.
Another measure of gate quality, namely the unitarity or the coherence of a channel wallman+:unitarity on a -dimensional system, is defined as
[TABLE]
where . A more convenient but equivalent definition is
[TABLE]
where are the singular values of the matrix .
The unitarity captures how close the channel is to a unitary gate. A lower bound on the unitarity is given by Proposition 2 in RPZ:gauge :
[TABLE]
where are the eigenvalues of . For a single qubit, an upper bound on the unitarity can also be given in terms of a non-convex optimization problem, see Section IV.2.
The unitality of a TPCP map is defined as with in Eq. (2). Specifically, for single-qubit channels one can derive the bound RPZ:gauge
[TABLE]
II.1.2 Relation to relaxation and dephasing times
We consider the eigenvalues of a superoperator induced by a simple Lindblad equation modeling relaxation and decoherence of a driven qubit, as an example. We have a Lindblad equation with time-independent Lindbladian :
[TABLE]
The formal solution of Eq. 8 is given by , where is a TPCP map for every . We are interested in the total evolution after a certain gate time and set . We assume a simple model in which a qubit evolves according to a Hamiltonian and is subject to relaxation and pure dephasing processes, according to the Lindbladian:
[TABLE]
We define the relaxation respectively dephasing rates and . The Pauli transfer matrix of then takes the form
[TABLE]
We will denote the eigenvalues of by for and the eigenvalues of by for . As expected, implying that is an eigenvalue of . The other three eigenvalues of can be found from the sub-matrix in the lower-right corner. Here we consider some simple cases.
Case 1: . In this case, for the three eigenvalues of and are clearly
[TABLE]
thus relating directly to the relaxation and dephasing rates.
Case 2: . In this case we have
[TABLE]
where we have separated the decaying part of the (corresponding to the real part of the ) and their phases (corresponding to the imaginary part). If we work in the rotating frame of the qubit, can be understood as an over-rotation along the -axis, which would appear in the spectrum as an extra phase imparted to two of the eigenvalues. Again we see that the decaying part of the eigenvalues directly relates to the relaxation and dephasing rates.
Case 3: . This case shows that over-rotations can also modify the decay strength of the eigenvalues. We analyze the eigenvalues as a function of . From in Eq. (9) we see that for all . For the other eigenvalues we have
[TABLE]
We see that if , only the moduli of and are affected as compared to Case 1, in other words, and only decay with no extra phases. On the contrary, the phases of these eigenvalues becomes non-zero when the driving is sufficiently strong: . It implies that if we look at the dynamics induced by the Lindblad equation, real oscillations, not only decay, will be present as a function of . Hence these two scenarios represent respectively the overdamped () and underdamped regime (), similar to the dynamics of a vacuum-damped qubit-oscillator system, see e.g. book:HR . At , the system is critically damped and does not have linearly-independent eigenvectors, meaning that the Pauli transfer matrix of is not diagonalizable. In this case the dynamics also has a linear dependence on besides the exponential decay with , see the discussion in Appendix IV.1.
II.2 Spectral tomography
In this section we describe the spectral tomography method, which estimates the eigenvalues of , where is a TPCP implementation of a targeted unitary gate.
We model state-preparation errors as a perfect preparation step followed by an unknown TPCP map . Similarly, measurement errors are modeled by a perfect measurement preceded by an unknown TPCP map . We assume that when we apply the targeted gate times, an accurate model of the resulting noisy dynamics is .
The spectral tomography method can be applied without this assumption but the interpretation of its results is more difficult, see Section II.4 for a discussion.
The method works by constructing the following signal function, for for some fixed :
[TABLE]
Gathering the data to estimate requires (1) picking a traceless -qubit Pauli , (2) preparing an -qubit input state in one of the basis states corresponding to this chosen Pauli, (3) applying the gate times and measuring in the same chosen Pauli basis, and (4) repeating (1-3) over different Pauli’s, basis states and experiments to get good statistics. As in standard process tomography Nie00 , one takes linear combinations of the estimated probabilities for the outcomes to construct an estimator of a Pauli operator on a Pauli input. This gives an estimate of for a fixed . Repeating this process for we reconstruct the entire signal function. In Section II.2.2 we discuss the cost of doing these experiments as compared to randomized benchmarking.
Let us now examine how depends on the eigenvalues of the matrix . When there are no SPAM errors, that is, and are identity channels, we have
[TABLE]
where are the eigenvalues of . The last step in this equality follows directly when is diagonalizable, but it can alternatively be proved using the so-called Schur triangular form of (we give this proof in Appendix IV.1).
When and are not identity channels, we have
[TABLE]
where and are respectively the -submatrices of the Pauli transfer matrix of and . Here we assume that is diagonalizable and the matrix captures the SPAM errors. One may expect that is close to the identity matrix in the typical case of low SPAM errors, in particular one may expect that for all so that all eigenvalues of are present in the signal .
In principle, one could take more tomographic data and consider a full matrix-valued signal c_{\mu\nu}(k)={\rm Tr}\big{[}P_{\mu}{\cal N}_{\rm meas}\circ{\cal S}^{k}\circ{\cal N}_{\rm prep}(P_{\nu})\big{]} instead of only Eq. (11). This requires doing many more experiments and there is no clear advantage in terms of the ability to determine the spectrum.
II.2.1 Signal analysis or matrix-pencil method for extracting eigenvalues
In this section we review the classical signal-processing method which reconstructs, from the (noisy) signal for , an estimate for the eigenvalues and the amplitudes . Note that we have due to Eq. (11). Not surprisingly, this signal-processing method has been employed and reinvented in a variety of scientific fields. We implement the so-called ESPRIT analysis described in SP:pencil , but see also pt:prony . In the context of spectral tomography we know that the signal will in principle contain eigenvalues (which are possibly degenerate). However, we can vary the number of eigenvalues we use to fit the signal to see whether a different choice than gives a significantly better fit. This is relevant in particular when the implemented gate contains leakage or non-Markovian dynamics, see Section II.4.
We require at least in order to determine the eigenvalues accurately. This implies that for a single-qubit gate with we need at least and for a two-qubit gate with we need at least . However, the signal has sampling noise due to a bounded and in practice it is good to choose larger than strictly necessary to make the reconstruction more robust against noise. We study the effect of varying in Fig. 1 (left panel).
The method goes as follows and relies on picking a so-called pencil parameter .
Let us assume for now that each is learned without sampling noise. One constructs a -dimensional data matrix as
[TABLE]
Note that since is a sum of at most rank-1 matrices when there are eigenvalues. Consider two submatrices of : the matrix is obtained from by deleting the last column of , while the matrix is obtained by deleting the first column of . When , the matrices and are square matrices of dimension . For this choice of , the smallest value of so that is . We seek a time-shift matrix such that . When , there certainly exists a matrix such that for all :
[TABLE]
Furthermore, if exists, which is the case when , this matrix will be uniquely given as . Hence, in this case there is a unique matrix , obtained by constructing from the data, which is guaranteed to have as eigenvalues. When the pencil parameter , one needs to ensure that there are at least rows of the matrix : if not, would be of dimension less than , not giving eigenvalues. This implies .
The general method for a non-square which includes an additional sampling-noise reduction step then goes as follows. The choice for in the procedure can be varied from its minimal value equal to to a larger value, depending on a goodness-of-fit.
Construct a singular-value decomposition of the matrix , i.e. and replace the diagonal matrix by a diagonal matrix with only the largest singular values. Let . This step is to reduce sampling noise. 2. 2.
Take the submatrices and of . 3. 3.
Compute where is the Moore-Penrose pseudo-inverse of the matrix so that is a matrix with at most non-zero eigenvalues. 4. 4.
Compute the eigenvalues of : these will be the estimates of for all . Formally, the linear matrix pencil is and the eigenvalues of this matrix pencil, i.e. the values where , are the .
We have first applied this method on the signal of a randomly chosen single-qubit channel: by varying and we want to understand the role of the matrix-pencil parameter and the choice for a larger . The results are shown in Fig. 1 (left panel). Note that the chosen ’s are quite far above the bound to effectively suppress sampling noise. For each there is a flat region in where is roughly constant. In the remainder we will choose , putting ourselves in the middle of this region. Fig. 1 (right panel) shows how increasing lowers the total variance of the estimated eigenvalues.
An additional processing step is the determination of the (complex) amplitudes . Viewing as a set of inner products between the vector and the linearly-independent vectors , it is clear that, given perfect knowledge of , the are uniquely determined when . Since is known with sampling noise, the can be found by solving the least-squares minimization problem . The optimal values in this minimization and together form the reconstructed signal and the error is given by
[TABLE]
II.2.2 Resources
It is interesting to consider the amount of experiments that must be done to perform spectral quantum tomography. One must estimate the function defined in Eq. 13. This reconstruction process requires running different experiments and repeating each experiment times. For a single-qubit gate we need experiments, while for a two-qubit gate we need , see Sec. II.2.2 for a comparison with randomized benchmarking. Note that while the number of experiments scales exponentially with qubit number (not surprising for a tomographic protocol), the number of experiments needed for performing spectral tomography on single and two-qubit gates is comparable to the number of experiments that must be performed in randomized benchmarking on one or two qubits (which provides only average gate information). In randomized benchmarking one must sample random sequences for each sequence length , yielding experiments. This is independent of the number of qubits helsen2017multi . In experiments is often chosen between barends2014superconducting ; xue2019benchmarking at the low end and at the higher end ballance2016high . Values of reported in randomized benchmarking experiments are also comparable to (or even higher than, see barends2014superconducting where is considered) the values of used for single and two qubit spectral tomography (see Section II.3).
II.3 Spectral tomography on two superconducting chips
We have executed the spectral tomography method on a single-qubit rotation around the -axis: . For this gate the ideal matrix should have eigenvalues , and . We execute this gate on two different systems available in the cloud: the two-qubit Quantum Infinity provided by the DiCarlo group at QuTech (for internal QuTech use) and the ibmqx4 (IBM Q5 Tenerife) available at https://quantumexperience.ng.bluemix.net/qx/editor. The results of this experiment are shown in Fig. 2 (left panel) in a polar plot which we refer to as the ‘spectral footprint’ of the gate. For clarity, in Fig. 2 (right panel) we have also plotted the phase deviation from ideal for the implemented gates.
On the two-qubit ( and ) Quantum Infinity chip, we perform the single-qubit gate experiment on twice to study cross-talk: in one case the undriven qubit on the chip is in state , in the other case is in state . Since the residual off-resonant qubit coupling, mediated through a common resonator, is non-zero, we observe a small difference between these two scenarios, see Fig. 2. For the Quantum Infinity chip, when is we estimate , while when is . Using the single-qubit fidelity bound given in Section IV.2, we can compute that the fidelity with respect to the targeted gate can be no more than regardless of the state of . We can also compute upper and lower bounds on the unitarity (see Section II.1 and Section IV.2) which yields regardless of the state of .
Regarding the ibmqx4 chip, the data are taken when all other qubits are in state . The reconstructed eigenvalues turn out to be lower in magnitude. From these numbers we can conclude that the fidelity to the target gate is no higher than and the unitarity lies between and .
For all these numbers a two-way confidence interval (for both real and imaginary parts) deviates by less than from the quoted values. The confidence intervals are obtained through a Wild resampling bootstrap with Gaussian kernel wu1986jackknife .
We have considered whether the data can be better fitted with more than eigenvalues. For each experiment we fit the data using eigenvalues with and we test whether there is a significant increase in goodness-of-fit using a standard F-test (sebernonlinear, , Section 2.1.5). For no experiment and value of does the resultant -value drop below , leading us to conclude that increasing the number of eigenvalues does not significantly increase the accuracy of the fit.
We have also executed a two-qubit CNOT gate on ibmqx4 (Fig. 3). The matrix of the ideal CNOT gate has 15 eigenvalues and a very degenerate spectrum: eigenvalues are equal to and eigenvalues are equal to , but our data, taking , shows that a best fit is obtained using instead of eigenvalues. Using an F-test shows that the goodness-of-fit is significantly improved using 4 eigenvalues rather than 2 or 3, whereas adding more eigenvalues beyond does not significantly improve the goodness-of-fit .
We have not tried using larger (which may lead to a resolution of more eigenvalues) since this would break the requirement that our experiments are executed as a single job performed in a short amount of time on the IBM Quantum Experience. The eigenvalues are , all with a confidence interval smaller than for both real and imaginary parts. It is important to note that these 4 eigenvalues, coming in 2 complex-conjugate pairs, cannot be the spectrum of a two-qubit TPCP map , for the following reasons. As observed in Section II.1, the submatrix of the Pauli transfer matrix of is a real matrix of odd dimension. Since any complex eigenvalues of a real matrix come in conjugate pairs, must have at least one real eigenvalue. Moreover, the data cannot be explained by allowing for leakage, as any eigenvalues associated to a small amount of leakage must have small associated amplitude, as we discuss in Section II.4. This is not the case for the eigenvalues plotted in Fig. 3 as all their amplitudes have comparable magnitude .
In Section IV.3 we propose a simple model based on a frame mismatch accumulation that qualitatively reproduces these eigenvalues. This model is not stochastic but coherent, and it violates the assumption that the applied CNOT gate can be fully modeled as a TPCP map. A possible physical mechanism producing a frame mismatch accumulation can be a drift in an experimental parameter.
We do not compute bounds on the fidelity or unitarity of the CNOT gate since the bounds in Section II.1.1 do not apply when the evolution is non-Markovian.
II.4 Leakage and non-Markovian noise
In this section we consider how spectral tomography behaves under error models that violate the assumptions that go into Eq. 13.
Three common mechanisms for gate inaccuracy are (1) cross-talk, meaning the gate depends on or affects the state of other “spectator” qubits, (2) leakage, meaning that the dynamics of the gate acts outside of the computational qubit subspace and (3) non-Markovian dynamics, meaning that the assumption that applications of the noisy gate are equal to for some TPCP map is incorrect. Characterizing gates with respect to these features is important for assessing their use in multi-gate/multi-qubit devices for the purpose of quantum error correction or plainly reliable quantum computing WG:leak ; rol+:netzero .
One can see that all three scenarios are due to the dynamics taking place in a larger Hilbert space than the targeted computational qubit space. In the case of leakage, the larger space is an extension of the computational space, while in the other cases the larger space is the tensor product of the computational space with the state space of spectator qubits (1), as explored in Section II.3, or other quantum or classical degrees of freedom in the environment (3).
II.4.1 Leakage
Let us consider how gate leakage affects the signal , making the analysis for one or two qutrits. One can choose an operator basis for the qutrit space such as the basis of the 8 traceless (normalized) Gell-Mann matrices for , together with the normalized identity . For a single qutrit, we can consider the ‘Pauli’ transfer matrix in this Gell-Mann basis, i.e. and its submatrix .
For a single qutrit, the signal in Eq. (12) then equals where represents the trace over a submatrix of , corresponding to the Gell-Mann matrices which act like X, Y, and Z in the two-dimensional computational space. In other words, we can see the matrix as being composed of blocks:
[TABLE]
where the upper-left block is the sub-matrix whose trace we take in . In the absence of other noise sources, corresponds to the evolution of a unitary gate and (assuming it is diagonalizable) it can be diagonalized by a rotation as , where is a diagonal matrix with all the eigenvalues . If we assume that leakage is low, meaning that and have small norm of , then at lowest order in the diagonalizing transformation will be block-diagonal, i.e. . This means that g^{\mbox{\tiny NO SPAM}}(k)={\rm Tr}_{\rm comp}\big{[}(T^{\rm GM})^{k}\big{]}={\rm Tr}_{\rm comp}\big{[}VD^{k}V^{-1}\big{]}\approx\sum_{j=1}^{3}\lambda_{j}^{k}+O(\epsilon). Thus, at lowest order, the signal will have large amplitude on 3 relevant eigenvalues of the spectrum of and these eigenvalues could have been perturbatively shifted from their ideal location by low leakage. If the leakage is stronger, we can more generally write
[TABLE]
Here is a vector notation for one of the 8 Gell-Mann matrices and is the projector onto the basis spanned by the 3 Gell-Mann matrices which are the Paulis in the computational space. From this expression we see that the effect of leakage is the contribution of more eigenvalues to the signal . For low leakage we may expect three dominant eigenvalues with relatively large amplitude and five eigenvalues with small amplitude.
For a gate on two qutrits, identical remarks apply, except that an additional basis transformation is required from the orthogonal Gell-Mann basis to the computational qubit Pauli basis in order to keep the same division of as in Eq. 28. If we have two qutrits, the 80-dimensional traceless subspace is spanned by the matrices for except . The issue is related to terms such as since the normalization of the qutrit identity () is different from the normalization of the qubit identity (). This suggests that for two qutrits it is better to write in a basis which includes the Pauli matrices in the computational subspace ( for except ) as a sub-basis. For two qutrits, the signal may then contain up to 80 eigenvalues of which all but 15 are expected to have small amplitude in case of low leakage.
II.4.2 Non-Markovianity: time-correlated noise
Non-Markovian behavior of a gate can be due to temporal correlations in the classical or quantum environment of the driven qubit(s). Abstractly, we can include the environment in the gate action so that the evolution for each gate application is a unitary given by some acting on system and environment. We can expand the Pauli transfer matrix of in a Pauli basis for system and environment and view as a sub-block of , similar as in the case of leakage. Diagonalizing and taking the trace over the computational space will result in an expression such as Eq. (29). For example, an additional spectator or environment qubit can lead to a signal of a single-qubit gate having contributions from 15 eigenvalues. Choosing a sufficiently large may allow one to resolve these eigenvalues, even those with small amplitude.
A more malicious, but physically reasonable rol+:netzero , form of classical non-Markovian noise makes gate-parameters temporally correlated. In order to numerically study the effect of non-Markovian noise, we consider a toy example in which a perfect CZ gate is followed by a rotation around the axis on one qubit. For a series of repetitions of a perfect CZ gate, we assume that each one is followed by the same rotation acting always on the same qubit. We assume that the angle is Gaussian-distributed with mean 0 and standard deviation : . The time evolution for repetitions is then given by
[TABLE]
Note that since this noise is correlated across multiple repetitions of the gate. Furthermore, we assume perfect state-preparation and measurement. In this case, one can represent the noisy gate by some unitary acting on the two qubits and on a classical state in a Gaussian stochastic mixture of angles . The continuous nature of this classical environment state leads to a lack of a hard cut-off on the number of eigenvalues in .
We apply the matrix-pencil method to the corresponding signal and we use an F-test to determine the optimal number of eigenvalues for each (Fig. 4). For and we find eigenvalues with modulus clearly larger than 1. Those are unphysical but not excluded by the matrix-pencil method. We expect that such disappear when considering a longer signal, since does not increase exponentially in . In other words, this is a sign that the signal contains more spectral content than can be resolved from the time scale set by . Indeed, for we have made the same analysis for larger ’s up to and we find that those eigenvalues get closer and closer to 1. If instead we fix and consider different ’s, we find that for a low (e.g. ) unphysical eigenvalues are not present (Fig. 4), whereas for (e.g. ) they get again closer and closer to 1. This latter fact can be understood by noting that increasing is analogous to enlarging the time scale set by , as the characteristic time scale of dephasing gets shorter for a fixed . Based on these observations, we conclude that there is a certain intermediate time scale at which eigenvalues larger than 1 are extrapolated from the data in the presence of sufficiently-strong non-Markovian noise of the kind described in this section. Section IV.3 discusses a model with a different kind of time-correlation leading to a spectral footprint which is incompatible with that of a TPCP map.
II.4.3 Non-Markovianity: coherent revivals
In order to better understand the occurrence of eigenvalue estimates , we apply the matrix-pencil method on a signal (of a somewhat different physical origin), which has a revival over the time period set by .
It is well-known that in the exchange of energy between a two-level atom with a bosonic mode, the Rabi oscillations of the two-level atom are subject to temporal revivals. These revivals are due to the fact that the bosonic driving field is not purely classical, but rather gets entangled with the state of the qubit via the Jaynes-Cummings interaction. In particular, for a coherent driving field with coherent amplitude with average photon number , the probability for the atom to be excited equals (see Section 3.4.3 in book:HR ):
[TABLE]
with . We consider and sample the damped oscillatory function at regular intervals with and . The signal function contains eigenvalues equal to with amplitudes according to the Poisson distribution with mean photon number .
We observe that the matrix-pencil method finds eigenvalues larger than , see Fig. 5, which contribute significantly ( via F-test) to the reconstructed signal. We can understand this feature of eigenvalues exceeding 1 as a way in which the matrix-pencil method handles revivals: the signal has more spectral content than what can be resolved from the window of time given by , in particular there is no hard cut-off on the number of eigenvalues which contribute. We have observed that an analysis of the signal over a longer period of time, that is, a larger up to , gives eigenvalues whose norm converges to at most 1.
III Discussion
We have introduced spectral quantum tomography, a simple method that uses tomographic data of the repeated application of a noisy quantum gate to reconstruct the spectrum of this quantum gate in a manner resistant to SPAM errors. We have experimentally validated our method on one- and two-qubit gates and have also numerically investigated its behavior in the presence of temporally-correlated non-trivial error models.
The effective upshot of leakage and non-Markovian noise is that the signal will have more spectral content than what can be resolved given a chosen sequence length , leading to unphysical features in the spectrum such as an eigenvalue estimate larger than 1, or the absence of a real eigenvalue. Even though we have seen in our examples that a physical spectrum can be regained by going to larger , depending on the noise model, this convergence may be very slow requiring much data-taking time. Hence these unphysical features are useful markers for deviations from our model of repeated TPCP qubit maps . We view it as an open question how well one can reliably distinguish different sources of deviations.
III.1 Logical Spectral Quantum Tomography
An interesting application of the spectral tomography method could be the assessment of logical gates on encoded quantum information in a SPAM-resistant fashion. In this logical scenario (for, say, a single logical qubit), one first prepares the eigenstates of the logical Pauli operators and . One then applies a unit of error-correction times: a single unit could be, say, the repeated error correction for rounds of a distance- surface code. Or a unit is the application of a fault-tolerant logical gate, e.g. by means of code-deformed error correction or a transversal logical gate followed by a unit of error correction. After units one measures the logical Pauli operators fault-tolerantly, and repeats experiments to obtain the logical signal . Studying the spectral features of such logical channel will give information about the efficacy of the quantum error correction unit and/or the applied logical gate while departures from the code space or a need to time-correlate syndrome data beyond the given QEC unit can show up as leakage and non-Markovian errors.
IV Methods
IV.1 Single-qubit case with non-diagonalizable matrix
In general, a matrix can be brought to Jordan normal form by a similarity transformation, i.e. with where each Jordan block is of the form
[TABLE]
see e.g. Theorem 3.1.11 in book:HJ . is diagonalizable when each Jordan block is fully diagonal.
An example of a non-diagonalizable Lindblad superoperator on a single qubit has been constructed in SL:nondiag . Using this, one can easily get a single-qubit superoperator for which the traceless block of the Pauli transfer matrix is a non-diagonalizable matrix as follows. Let with with and real parameters . This implies that has the Pauli transfer matrix
[TABLE]
Taking some small and , one can check that the submatrix does not have 3 eigenvectors and it has a pair of degenerate eigenvalues, so is not diagonalizable. When we take , is unital, that is , and the submatrix is not diagonalizable either.
Even though a matrix is not always diagonalizable, there still exists the so-called Schur triangular form for any matrix book:HJ . This form says that with a unitary matrix, a diagonal matrix with the eigenvalues of , and a strictly upper-triangular “nilpotent” matrix with non-zero entries only above the diagonal. Since the matrix is strictly upper-triangular, one has {\rm Tr}\big{[}D^{i}E^{j}\big{]}=0 for all . If we use this form in Eq. (12), one obtains for any
[TABLE]
since any product of the form with some non-zero is a matrix with zeros on the diagonal. In case of SPAM errors and non-diagonalizable we consider
[TABLE]
where is not the identity matrix due SPAM errors, implying that can depend on and have a non-exponential dependence on . Thus, in the special case of a non-diagonalizable matrix , the signal would not have the dependence on the eigenvalues as in Eq. (13).
In particular, we can examine the physically-interesting non-diagonalizable Case 3 in Section II.1.2 in this light, taking and a critical . The dynamics of the Lindblad equation after time induces a superoperator which will have the following action on the Pauli operators:
[TABLE]
Here we can note the linear dependence on due to the system being critically damped. If we consider the signal we see that this linear dependence on drops out in accordance with Eq. (33), i.e. this trace only depends on the eigenvalues and has an exponential dependence on . In the presence of SPAM errors, some of the linear dependence could still be observable for such critically-damped system. In addition, coefficients such as can depend linearly on , making such tomographic data less suitable to extract eigenvalue information.
IV.2 Upper bound on the entanglement fidelity with the targeted gate
In this section we show how to relate the eigenvalues of the Pauli transfer matrix of a TPCP map to an upper bound on the entanglement fidelity (and hence the average gate fidelity) with the targeted unitary gate . Naturally, one can only expect to obtain an upper bound on the gate fidelity, since the eigenvalues do not provide information about the eigenvectors of . If the actual eigenvectors deviate a lot from ideal, the actual gate fidelity could be very low, so one can certainly not derive a lower bound on the fidelity based on the eigenvalues.
Lemma 1**.**
Let the eigenvalues of the matrix be with for a -dimensional system. Let be the targeted gate with eigenvalues and let there be permutation of -th eigenvalue which maximizes so that . The entanglement fidelity {\cal F}_{\rm ent}(U,{\cal S})=\frac{1}{N+1}(1+{\rm Tr}\big{[}T^{U^{\dagger}}T^{\cal S}\big{]}) is upper bounded as
[TABLE]
where is the unitarity of .
Proof.
We write in Schur triangular form as with a unitary matrix, a diagonal matrix with the eigenvalues of , and a strictly upper-triangular “error” matrix with non-zero entries only above the diagonal book:HJ . Using the Cauchy-Schwartz inequality one has
[TABLE]
Note that for a unitary gate , and implying that is an orthogonal matrix with unit singular values. We thus have ({\rm Tr}\big{[}{T^{U}}^{\dagger}T^{U}\big{]})^{1/2}=\sqrt{N}. One has {\rm Tr}\big{[}{T^{\cal S}}^{\dagger}T^{\cal S}\big{]}={\rm Tr}\big{[}(D^{\cal S}+E)^{\dagger}(D^{\cal S}+E)\big{]}={\rm Tr}\big{[}({D^{\cal S}}^{\dagger}D^{\cal S}+E^{\dagger}E)\big{]}, using the strict upper-triangularity of . In other words, {\rm Tr}\big{[}E^{\dagger}E\big{]}={\rm Tr}\big{[}{T^{\cal S}}^{\dagger}T^{\cal S}\big{]}-\sum_{i}|\lambda_{i}|^{2} where are the eigenvalues of .
Recognizing that \frac{1}{N}{\rm Tr}\big{[}{T^{\cal S}}^{\dagger}T^{\cal S}\big{]}=u(\mathcal{S}), we obtain an upper bound on the second term in Eq. (36).
Now let’s upper bound the first term in Eq. (36) for unknown unitary . Assume w.l.o.g. that and are diagonal in the same basis (the additional rotation between these eigenbases can be absorbed into ). Let and with orthogonal projectors and . Define the matrix with entries M_{ij}={\rm Tr}\big{[}P_{i}WP_{j}W^{\dagger}\big{]}. The matrix is doubly-stochastic, since which implies that with (Birkhoff-von Neumann theorem book:HJ ) with permutation matrix . With these facts and the convention we can bound
[TABLE]
These bounds together then lead to Eq. (35). ∎
An immediate corollary of Lemma 1 is
[TABLE]
since for TPCP maps. However, this is in general not a very strong upper bound on the fidelity.
We can do better in the single-qubit case by realizing that there are strong relations between the singular values of and the absolute values of the eigenvalues of . Ordering both the singular values and the eigenvalue magnitudes in descending order, we have the following (weak Majorization) inequalities for arbitrary matrices
[TABLE]
For single-qubit channels we can also impose TPCP constraints to the singular values of the channel. In particular we have (wolf2010inverse, , Eq. (4))
[TABLE]
Using these relations we can upper bound the unitarity of a single-qubit channel , given its eigenvalues, using the optimization:
[TABLE]
This is a non-convex optimization problem in three variables, for which a global minimum can be numerically computed given . This gives an upper bound on the unitarity of and hence on the entanglement fidelity of to the target unitary . In the main text we use this optimization to give non-trivial upper bounds on the fidelities of single-qubit gates realized on superconducting chips and analyzed using the spectral tomography method.
IV.3 Frame Mismatch Accumulation
In Section II.3 we noted that the data gathered for the CNOT gate cannot be explained by a model of a noisy TPCP map repeated times. Here we propose a simple coherent model that qualitatively reproduces the features observed in Fig. 3 and we call this the frame mismatch accumulation model. Let be a TPCP map that is a good approximation of the targeted gate applied exactly once (in the main text this was the CNOT) and let be some unitary. In the frame mismatch accumulation model we assume that consecutive applications of the gate are equal to:
[TABLE]
Intuitively, this can be interpreted as an increasing mismatch between the frame in which was defined and the frame in which the gate was implemented at the -th repetition, up to .
We apply this model to a CNOT gate, choosing to be an ideal CNOT gate and choosing with deg. In the case of the cross-resonance CNOT gate performed on ibmqx4, this may correspond to an imperfect cancellation of the term Sheldon16 . In Fig. 6 we see that this example closely reproduces the eigenvalues shown in Fig. 3. At the same time, we note that the qualitative features observed in Fig. 6 do not depend on the choice of the rotation axis of (for either qubit), as long as the rotation does not commute with (which would leave the gate unaffected by the frame mismatch).
V Data Availability
Experimental data gathered for Figs. 2 and 3, as well as an implementation of the matrix pencil algorithm can be found online at https://doi.org/10.5281/zenodo.2613856.
VI Competing interests
The authors declare no competing interests. The views expressed in this manuscript are those of the authors and do not reflect the official policy or position of IBM or the IBM Quantum Experience Team
VII Author contributions
All authors contributed to the development of the theoretical concepts presented. The experiments on the IBM QE and the QuTech QI were performed and analysed by JH and the simulations on non-Markovianity were performed by JH and FB, under supervision of BMT. All authors contributed to the writing of the manuscript.
VIII Acknowledgements
The work by FB and BMT was supported by ERC grant EQEC No. 682726. JH is funded by STW Netherlands, NWO VIDI, an ERC Starting Grant and by the NWO Zwaartekracht QSC grant. We thank Andrew Cross for generous access to the IBM Quantum Experience for a TU Delft MSc project which indirectly led to this work, we thank Jarn de Jong for discussions on quantum tomography and Adriaan Rol for assistance with the QuTech Quantum Infinity. JH would also like to thank Arnaud Carignan-Dugas for interesting discussions.
IX Additional information
The authors declare no competing interests. The views expressed in this manuscript are those of the authors and do not reflect the official policy or position of IBM or the IBM Quantum Experience Team.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) E. Knill et al. Randomized benchmarking of quantum gates. Phys. Rev. A , 77:012307, 2008.
- 2(2) E. Magesan, J. M. Gambetta, and J. Emerson. Scalable and Robust Randomized Benchmarking of Quantum Processes. Phys. Rev. Lett , 106:180504, 2011.
- 3(3) E. Magesan et al. Efficient Measurement of Quantum Gate Error by Interleaved Randomized Benchmarking. Phys. Rev. Lett. , 109:080505, 2012.
- 4(4) Christopher J. Wood and Jay M. Gambetta. Quantification and characterization of leakage errors. Physical Review A , 97:032306, 2018.
- 5(5) J. Wallman, Chr. Granade, R. Harper, and S. T. Flammia. Estimating the coherence of noise. New Journal of Physics , 17:113020, 2015.
- 6(6) B. Dirkse, J. Helsen, and S. Wehner. Efficient Unitarity Randomized Benchmarking of Few-qubit Clifford Gates. ar Xiv e-prints , 2018, https://arxiv.org/abs/1808.00850 .
- 7(7) Alexander Erhard, Joel James Wallman, Lukas Postler, Michael Meth, Roman Stricker, Esteban Adrian Martinez, Philipp Schindler, Thomas Monz, Joseph Emerson, and Rainer Blatt. Characterizing large-scale quantum computers via cycle benchmarking. ar Xiv e-prints , page ar Xiv:1902.08543, 2019, https://arxiv.org/abs/1902.08543 ,.
- 8(8) E. Onorati, A. H. Werner, and J. Eisert. Randomized benchmarking for individual quantum gates. ar Xiv e-prints , 2018, https://arxiv.org/abs/1811.11775 .
