Quantum state tomography via compressed sensing
David Gross, Yi-Kai Liu, Steven T. Flammia, Stephen Becker, Jens Eisert
Let be an arbitrary state of rank . If randomly chosen Pauli expectations are known, then can be uniquely reconstructed by solving the convex optimization problem (1) with probability of failure exponentially small in .
The proof is inspired by, but technically very different from, earlier work on matrix completion Candes2008 . Our methods are more general, can be tuned to give tighter bounds, and are much more compact, allowing us to present a fairly complete argument in this Letter. A more detailed presentation of this technique – covering the reconstruction of low-rank matrices from few expansion coefficients w.r.t. general operator bases (not just Pauli matrices or matrix elements) – will be published elsewhere prep2 .
Proof: Here we sketch the argument and explain the main ideas; detailed calculations are in the EPAPS supplement.
We will ascertain this by using a basic idea from convex optimization: constructing a strict subgradient for the norm. A matrix is a strict subgradient if for all . The main contribution below is a method for constructing such a which is also in the range of . For then implies that is orthogonal to the range of , thus and the subgradient condition reads . This implies uniqueness. (In fact, it is sufficient to approximate the subgradient condition in a certain sense).
Let be the projection onto the range of , let be the space spanned by those operators whose row or column space is contained in . Let be the projection onto , onto the orthogonal complement. Decompose , the parts of that lie in the subspaces and . We distinguish two cases: (i) , and (ii) note2 .
Case (i) is easier. In this case, is well-approximated by and essentially we only have to show that the restriction of to is invertible. Using a non-commutative large deviation bound (see EPAPS supplement),
Case (ii) is more involved. A matrix is an almost subgradient note3 if
First, suppose such a exists. Then a simple calculation (see EPAPS) using the condition (ii) shows that indeed implies as hinted at above. This proves uniqueness in case (ii). The difficult part consists in showing that an almost-subgradient exists.
To this end, we design a recursive process (the “golfing scheme” prep2 ) which converges to a subgradient exponentially fast. Assume we draw batches of Pauli observables independently at random ( will be chosen later). Define recursively ,
so that . Hence, fulfills the first part of (3), as soon as . We turn to the second part. Again using large-deviation techniques (EPAPS) we find with some (high) probability . Therefore:
Lastly, we have to bound the total probability of failure . Set , which means that coefficients will be sampled in total. A simple calculation gives . This completes the proof of our main result.
In the remaining space, we address the important aspects of resilience against noise, certified tomography, and numerical performance. Owing to space limitations, the presentation will focus on conceptual issues, with the details in prep1 .
Realistic situations will differ from the previous case in two regards. First, the true state may not be low-rank, but only well approximated by a state of rank : . Second, due to systematic and statistical noise, the available estimates for the Pauli expectations are not exactly , but of the form for some matrix . Assume (in practical situations, may be estimated from the error bars associated with the individual Pauli expectation values errormodel ). In order to get an estimate for , choose some and , and solve the convex program
Let be an approximately low-rank state as described above. Suppose randomly chosen Pauli expectations are known up to an error of as in (6), and let be the solution of (6). Then the difference is smaller than . This holds with probability of failure at most plus the probability of failure in Theorem 1.
The proof combines ideas from Ref. Candes2009 with our argument above note4 . The main difference from the noise-free case is that, instead of using , we must now work with . With this estimate, Observation 1 follows from the noise-free proof, together with some elementary calculations (see EPAPS). We remark that the above bound is likely to be quite loose; based on related work involving the “restricted isometry property,” we conjecture that the robustness to noise is actually substantially stronger than what is shown here FCRP08 .
The preceding results require an a priori promise: that the true state is -close to a rank- state. However, when performing tomography of an unknown state, neither nor are known beforehand. There are a few solutions to this quandary. First, and may be estimated from other physical parameters of the system, such as the strength of the local noise localnoise .
Another approach is to estimate and from the same data that is used to reconstruct the state. When , this approach is particularly effective, in entirely assumption-free tomography: one can estimate , using only Pauli expectation values. This is because is related to the purity , which has a simple closed-form expression in terms of Pauli expectation values. See EPAPS for details. We get:
Assume that the unknown physical state is close to being pure. Then one can find a certificate for that assumption, and reconstruct the state with explicit guarantees on the reconstruction error, from Pauli expectation values. The probability of failure is exponentially small in .
Finally, when the state is approximately low-rank but not nearly pure (), one may perform tomography using different numbers of random Pauli expectation values . When is larger than necessary (corresponding to an over-estimate of ), we are guaranteed to find the correct density matrix. When is too small, we find empirically that the algorithms for reconstructing the density matrix (i.e., solving the convex program (1)) simply fail to converge.
Here we describe a variant of our tomography method that makes the classical post-processing step (i.e., solving the convex program (1) to reconstruct the density matrix) faster. This method also uses random Pauli measurements, but they are chosen in a structured way. Any Pauli matrix is of the form for . We choose a random subset of size , and then for all and , measure the Pauli matrix . We call this the “hybrid method” because it is equivalent to a certain structured matrix completion problem. This fact implies that certain key computations in solving the convex program (1) can be implemented in time rather than Cai2008 . However, the hybrid method is not covered by the strong theoretical guarantees shown earlier, though it does give accurate results in practice. For a more complete discussion, see the EPAPS supplement.
We numerically simulated both the random Pauli and hybrid approaches discussed above. For both approaches, we used singular value thresholding (SVT) Cai2008 . Instead of directly solving Eq. (6), SVT minimizes subject to , which is a good proxy to Eq. (6) when dominates the second term; the programs are equivalent in the limit (provided Eq. (6) has a unique solution) Cai2008 . Estimating the second term for typical states suggests choosing ; we use . To simulate tomography, we chose a random state from the Haar measure on a dimensional system and traced out the -dimensional ancilla, then applied depolarizing noise of strength . We sampled expectation values associated with randomly chosen operators as above, and added additional statistical noise (respecting Hermiticity) which was i.i.d. Gaussian with variance and mean zero. We used SVT and quantified the quality of the reconstruction by the fidelity and the trace distance for various values of , each averaged over simulations. This dependence is shown in Fig. 1. The reconstruction is remarkably high fidelity, despite severe undersampling and corruption by both depolarizing and statistical noise tr_renorm . Using the hybrid method with qubits on a rank state plus depolarizing, and statistical noise strength , we typically achieve fidelity reconstructions in under seconds on a modest laptop with GB of RAM and a GHz dual-core processor using MATLAB — even though of the matrix elements remain unsampled. Increasing the number of samples only improves our accuracy and speed, so long as sparsity is maintained.
Using truly randomly chosen Pauli observables (instead of the hybrid method) slightly increases the processing time due to the dense matrix multiplications involved: in our setup about one minute. However, this method achieves even better performance with respect to errors, as seen in Fig. 1.
The simulations above show that our method work for generic low rank states. Lastly, we demonstrate the functioning of the approach in the experimental context of the state found in the ion experiment of Ref. Haffner2005 . To exemplify the above results, we simulated physical measurements by sampling from the probability distribution computed using the Born rule applied to the reconstructed state . This state is approximately low-rank, with 99% of the weight concentrated on the first eigenvectors. The standard deviation per observable was . Fewer than 30% of all Pauli matrices were chosen randomly. From this information, a rank approximation with fidelity of with respect to was found in about minutes on the aforementioned laptop.
We have presented new methods for low-rank quantum state tomography, which require only measurements, where is the rank of the unknown density matrix and is the Hilbert space dimension. Our methods are based on and further develop the new paradigm of compressed sensing, and in particular, matrix completion Candes2008 ; Candes2009a . We use measurements that are experimentally feasible, together with very fast classical post-processing. The methods perform well in practice, and are also supported by theoretical guarantees. It would be interesting to further flesh out the trade off between the need for measurements that can be performed easily in an experiment and the need for sparse matrices during the classical post-processing step. It is the hope that this work stimulates such further investigations.
Acknowledgments. We thank E. Candès and Y. Plan for useful discussions. Research at PI is supported by the Government of Canada through Industry Canada and by the Province of Ontario through the Ministry of Research & Innovation. YL is supported by an NSF Mathematical Sciences Postdoctoral Fellowship, JE by the EU (QAP, QESSENCE, MINOS, COMPAS) and the EURYI, DG by the EU (CORNER). We thank the anonymous referees for many helpful suggestions.
References
I Appendix
While this publication contains a complete proof of all the claims relevant for quantum tomography, the reader is invited to consult the more general and explicit presentation in Ref. prep2 (and soon prep1 ). Below, we provide those details of the proof of Theorem 1, which were left out in the main text.
We introduce some more formal notations used in the argument. Denote the trace inner product between two Hermitian operators by \mbox{\big{(}\rho,\sigma\big{)}}:=\operatorname{tr}\rho\sigma. We assume that are independent, identically distributed matrix-valued random variables, with drawn from the Pauli matrices with uniform probability. Thus, we model the selection of the observables as a process of sampling with replacement. It is both very plausible and easily provable nesme that drawing the observables without replacement can only yield better results.
An essential tool for the proof is a non-commutative large-deviation bound from ahlswede . Let be a sum of i.i.d. matrix-valued random variables (r.v.’s) . Then it is shown in ahlswede that for every we have
I.1.2 “Case (i)”: large-deviation bound
The first application of (9) is to verify Eq. (2) from the main text, which claims that
To this end, let be the super-operator defined by
which implies . The claimed Eq. (10) directly follows by plugging this estimate of into the non-commutative large-deviation bound (9).
I.1.3 “Case (ii)”: the approximate subgradient
Next, consider the claim after Eq. (3) of the main text. There, we assumed that was a matrix in such that
Recall the scalar sign function which maps positive numbers to , to and negative numbers to . If is any Hermitian matrix, then is the matrix resulting from applying the -function to the eigenvalues of . Note that
for any two Hermitian .
Letting we compute:
(Use the “pinching inequality” bhatia in the first step; (12), (13) in the second. The third step is (12) and using that and implies . The last estimate uses (11) and, once more, (13)).
I.1.4 “Case (ii)”: large deviation bound
The deviation bound before Eq. (5) of the main text follows again from (9). Let be an arbitrary matrix in . With :
having used that and that the form an orthonormal basis. Thus
In the proof, we use (16) for . Hence the probability of failure becomes
I.2 Details for Observation 1
In this subsection we need to assume that the Paulis are sampled without replacement. All previous bounds continue to hold — see remark above. Let
be the projection operator onto , normalized so that . Define , and note that . The optimization program (6) of the main text becomes , s.t. .
Let . We upper-bound as follows. First,
(where we defined ).
Combining the above two inequalities and rearranging, we get
We now show that implies that must be small. With the estimate (17) at our disposal, we re-visit (I.1.3):
We use a crude bound . Then, for reasonable values of the parameters (say , , ), we have
So implies
Finally, write , and use (17) and (18). After simplifying, substituting in , and setting , one obtains
Finally, we write . The first term is bounded by as shown above; the second term is . This gives the desired result.
I.3 Certified tomography for almost-pure states
For almost-pure states (), it is possible to obtain estimates for from only Pauli expectation values without any assumptions. In this subsection, we sketch a simple scheme based on this observation: it outputs a reconstructed density matrix , together with a certified bound on the deviation . The algorithm takes two inputs: random Pauli expectation values, and the experimentalist’s estimate of the measurement precision errormodel .
Concretely, we set and aim to put a bound on , where is the eigenvector of corresponding to the largest eigenvalue. Such a bound can be obtained in terms of the purity . E.g.,
Choose for some to ensure that
Combining the previous equation with (20), we have arrived at a certified estimate for .
I.4 A hybrid approach to matrix recovery
Matrix recovery using Pauli measurements does lack one desirable feature: the classical post-processing (solving the convex programs) is more costly, compared to matrix completion Candes2008 ; Candes2009a . This is due to the role of sparse linear algebra in the SVT (singular value thresholding) algorithm Cai2008 . The basic issue is that SVT must handle matrices of the form . For matrix completion, is sparse, so basic operations such as matrix-vector multiplication take time ; but when we use random Pauli measurements, is dense, and basic operations take time . We now describe a “hybrid” approach that avoids this difficulty, and works well in practice. The main observation is that for certain, carefully selected sets of Pauli matrices, is sparse after all.
for . Plainly, the position of the non-zero matrix elements of depends only on ( encodes only phase information). Now choose a random subset of size , and then for all and , measure the Pauli matrix . Thus we are measuring each of the Pauli strings containing only or identity, together with these same strings “masked” by applying a set of size of Pauli strings with a pattern of and identity. Formally, this means
It follows that is sparse with only non-zero matrix elements. This “hybrid method” can be viewed as a variant of the usual matrix completion problem, where instead of sampling matrix elements independently at random, we sample groups of matrix elements determined by the random strings .
While the hybrid algorithm works well for generic states, certain input states may fail to be “incoherent enough” w.r.t. the very specific set expectation values obtained (c.f. Candes2008 ; Candes2009a ). For example, when the eigenvectors of are nearly aligned with the standard basis, most of the matrix elements of are nearly 0, and hence matrix completion is impossible. To avoid this problem, we suggest to perform a pseudo-random unitary prior to measuring the Pauli matrices. One then uses the hybrid method on , and finally applies to recover . In particular, one can draw at random from an (approximate) unitary -design with . Explicit constructions of such unitaries are known, and can be implemented efficiently harrow-low .
While we cannot at this point prove rigorous guarantees for the hybrid approach, we do show below that randomization by approximate -designs generates sufficient “incoherence” that the original matrix completion algorithms Candes2008 ; Candes2009a would work. Because these algorithms call for matrix elements to be sampled from a uniform distribution, Observation 3 does not rigorously apply to the hybrid scheme. It does, however, make it plausible that pseudo-randomization overcomes incoherence problems and that guarantees for the hybrid method can be proven in the future.
Let be an arbitrary state of rank and dimension , and let be the projector onto the support of . Let , , denote the standard basis. Let be drawn at random from an (-approximate) unitary -design with (and ), and let . Then, with probability at least , the following holds:
where , and and are fixed constants.
This implies the incoherence conditions (A0) and (A1) of Candes2008 , specialized to the case of positive semidefinite matrices, with as given above and . Combining with the results of Candes2008 shows that ordinary matrix completion, with matrix elements sampled independently at random, will succeed. This guarantee does not extend to the hybrid method, however.
Proof of Observation 3: First consider a single vector , and define . We will compute the ’th moment of :
Using Markov’s inequality, and setting , we get
This proves the claim for a single vector . Now take the union bound over all the vectors , .