Shadow tomography with poly(log m, log d, 1/ε, log(1/δ)) copies
ProvedQAlgorithms.Arunachalam.shadowTomographyThis is Aaronson's shadow tomography theorem.
A two-outcome measurement on is a POVM with . A learner using copies of an unknown -dimensional density matrix performs a measurement (a POVM with finite outcome set ) on and outputs numbers .
There is a polynomial in four variables such that for all , all integers and all effects on there exist and such a learner (depending on and , but not on ) with
for every -dimensional density matrix .
The number of copies is exponentially smaller in and than for full state tomography or for estimating each separately.
Formalization Note The source writes ; the endpoints are excluded because there or is undefined. Internal randomness and post-processing of the learner are absorbed into the POVM; is the -fold Kronecker power and logarithms are natural (the base is absorbed by the polynomial).
import Definitions.Def_QAlgorithms_Defs_Learning set_option autoImplicit false
namespace QAlgorithms.Arunachalam
open QAlgorithms.Learning
open Classical in
/-- Arunachalam p.142, Theorem 6.6.2 (Aaronson, shadow tomography): there is a polynomial `p`
such that for every `ε, δ ∈ (0, 1]`, integers `m, d > 0` and known two-outcome measurements
`{E_i, 1 − E_i}`, `i ∈ [m]`, on `ℂ^d`, some learner using `k ≤ p(log m, log d, 1/ε, log(1/δ))`
copies of the unknown state — a measurement (POVM) on `ρ^{⊗k}` whose outcomes are labelled by
numbers `b_1, …, b_m ∈ [0, 1]` — outputs, for every `d`-dimensional density matrix `ρ`, with
probability at least `1 − δ` numbers satisfying `|Tr(E_i ρ) − b_i| ≤ ε` for all `i`. The source's
`ε, δ ∈ [0, 1]` is corrected to `(0, 1]`: at `ε = 0` or `δ = 0` the bound `poly(1/ε, log(1/δ))`
is undefined. -/
theorem shadowTomography :
∃ p : MvPolynomial (Fin 4) ℝ, ∀ ε δ : ℝ, 0 < ε → ε ≤ 1 → 0 < δ → δ ≤ 1 →
∀ m d : ℕ, 0 < m → 0 < d →
∀ E : Fin m → Matrix (Fin d) (Fin d) ℂ, (∀ i, IsEffect (E i)) →
∃ k : ℕ, (k : ℝ) ≤ MvPolynomial.eval
![Real.log (m : ℝ), Real.log (d : ℝ), 1 / ε, Real.log (1 / δ)] p ∧
∃ (O : Type) (_ : Fintype O) (Mo : O → Matrix (Fin k → Fin d) (Fin k → Fin d) ℂ)
(b : O → Fin m → ℝ), IsPOVM Mo ∧ (∀ o i, 0 ≤ b o i ∧ b o i ≤ 1) ∧
∀ ρ : Matrix (Fin d) (Fin d) ℂ, IsDensityMatrix ρ →
povmEventProb Mo (piKron k ρ)
(fun o => ∀ i, |effectProb (E i) ρ - b o i| ≤ ε) ≥ 1 - δ := by
sorry
end QAlgorithms.Arunachalam
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement asserts that there is a single real polynomial in four variables with the following property.
Inputs. Take any:
- reals with and ;
- natural numbers ;
- a family of complex matrices, each an effect: and are both positive semidefinite.
What exists. There is a natural number (possibly ) with
where is the natural logarithm. In addition there exist:
- a finite outcome set ;
- a family of complex matrices on , with basis indexed by -tuples in ;
- real numbers for and .
Conditions they satisfy.
- The family is a POVM: each is positive semidefinite and .
- Every lies in .
- For every density matrix (positive semidefinite with trace ),
Here is the matrix with entries .
Dependencies. Only is fixed in advance. The objects , , and may depend on , , , and the effects , but not on .
Edge cases.
- When , the first argument of is ; when , the second is ; when , the fourth is .
- If , the space is one-dimensional and is the matrix .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.