Classical shadow

From HandWiki

In quantum computing, classical shadow is a protocol for predicting functions of a quantum state using only a logarithmic number of measurements.[1] Given an unknown state ρ, a tomographically complete set of gates U (e.g. Clifford gates), a set of M observables {Oi} and a quantum channel defined by randomly sampling from U, applying it to ρ and measuring the resulting state, predict the expectation values tr(Oiρ).[2] A list of classical shadows S is created using ρ, U and by running a Shadow generation algorithm. When predicting the properties of ρ, a Median-of-means estimation algorithm is used to deal with the outliers in S.[3] Classical shadow is useful for direct fidelity estimation, entanglement verification, estimating correlation functions, and predicting entanglement entropy.[1]

Recently, researchers have built on classical shadow to devise provably efficient classical machine learning algorithms for a wide range of quantum many-body problems.[4] For example, machine learning models could learn to solve ground states of quantum many-body systems and classify quantum phases of matter.

Algorithm Shadow generation
Inputs N copies of an unknown n-qubit state ρ

                  A list of unitaries U that is tomographically complete

                  A classical description of a quantum channel 1

  1. For i ranging from 1 to N:
    1. Choose a random unitary Ui from U
    2. Apply Ui to ρ to get a state ρi
    3. Perform a computational basis measurement on ρi for an outcome bi{0,1}n
    4. Classically compute 1(Ui|bibi|Ui) and add it to a list S
Return S


  • "←" denotes assignment. For instance, "largestitem" means that the value of largest changes to the value of item.
  • "return" terminates the algorithm and outputs the following value.
Algorithm Median-of-means estimation
Inputs A list of observables O1,....,OM

                  A classical shadow S(ρ;N)=[ρ^1,,ρ^N]

                  A positive integer K that specifies how many linear estimates of ρ to calculate.

Return A list [o1,...,oM] where oi=median(trace(O1p1),...,trace(O1pK))
where pk=1[NK]i=(k1)[NK]+1k[NK]ρ^i and where k=1,...,K.


  • "←" denotes assignment. For instance, "largestitem" means that the value of largest changes to the value of item.
  • "return" terminates the algorithm and outputs the following value.

References

  1. 1.0 1.1 Huang, Hsin-Yuan; Kueng, Richard; Preskill, John (2020). "Predicting many properties of a quantum system from very few measurements". Nat. Phys. 16 (10): 1050–1057. doi:10.1038/s41567-020-0932-7. Bibcode2020NatPh..16.1050H. 
  2. Koh, D. E.; Grewal, Sabee (2022). "Classical Shadows with Noise". Quantum 6: 776. doi:10.22331/q-2022-08-16-776. Bibcode2022Quant...6..776K. 
  3. Struchalin, G.I.; Zagorovskii, Ya. A.; Kovlakov, E.V.; Straupe, S.S.; Kulik, S.P. (2021). "Experimental Estimation of Quantum State Properties from Classical Shadows". PRX Quantum 2 (1): 010307. doi:10.1103/PRXQuantum.2.010307. 
  4. Huang, Hsin-Yuan; Kueng, Richard; Torlai, Giacomo; Albert, Victor A.; Preskill, John (2022). "Provably efficient machine learning for quantum many-body problems". Science 377 (6613): eabk3333. doi:10.1126/science.abk3333. PMID 36137032.