Documentation

CslibFrontier.Foundations.LinearAlgebra.TracePower

Traces of powers of positive operators #

For a symmetric operator T on a finite-dimensional inner product space, the trace of T ^ j is the sum of the j-th powers of the eigenvalues (LinearMap.IsSymmetric.re_trace_pow_eq_sum_eigenvalues). For a positive operator the eigenvalues are nonnegative, so tr (T ^ j) sits between the j-th power of the largest eigenvalue and dim E times that power. The largest eigenvalue is the maximum of the quadratic form ⟪x, T x⟫ on unit vectors. This gives two bounds that need no eigenvalues in their statements:

For c > s and j large compared with log (dim E) / log (c / s), the two ranges are disjoint, so the trace of a power separates the two cases even though dim E is exponential in the number of qubits. This is the matrix-analysis step behind the containment of QMA in PP. Any operator of the form B† B is positive with quadratic form ‖B x‖ ^ 2 (LinearMap.re_inner_adjoint_comp_self_apply); the acceptance probability of a quantum verifier is such a form (Cslib.Quantum.UniformVerifierFamily.re_inner_acceptOp). In an orthonormal basis the trace of a power is a sum over closed paths of products of matrix entries (LinearMap.trace_pow_eq_sum), which is what a counting argument computes. See Marriott, Watrous, Section 3, for the use of tr Q together with strong error reduction.

Main results #

References #

theorem LinearMap.re_inner_adjoint_comp_self_apply {𝕜 : Type u_1} {E : Type u_2} {F : Type u_3} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [NormedAddCommGroup F] [InnerProductSpace 𝕜 F] [FiniteDimensional 𝕜 E] [FiniteDimensional 𝕜 F] (B : E →ₗ[𝕜] F) (x : E) :
RCLike.re (inner 𝕜 x ((adjoint B ∘ₗ B) x)) = ‖B x‖ ^ 2

The quadratic form of B† B is the squared norm of B.

theorem LinearMap.trace_pow_eq_sum {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] {ι : Type u_4} [Fintype ι] [DecidableEq ι] (b : OrthonormalBasis ι 𝕜 E) (T : E →ₗ[𝕜] E) (d : ℕ) :
(trace 𝕜 E) (T ^ d) = ∑ p : Fin (d + 1) → ι, if p 0 = p (Fin.last d) then ∏ i : Fin d, inner 𝕜 (b (p i.castSucc)) (T (b (p i.succ))) else 0

The trace of a power in an orthonormal basis, as a sum over closed paths: tr (T ^ d) is the sum, over the index paths p : Fin (d + 1) → ι with p 0 = p d, of the products of the matrix entries ⟪b (p i), T (b (p (i + 1)))⟫ along the path.

theorem LinearMap.IsSymmetric.pow_apply_eigenvectorBasis {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] {T : E →ₗ[𝕜] E} {N : ℕ} (hN : Module.finrank 𝕜 E = N) (hT : T.IsSymmetric) (j : ℕ) (i : Fin N) :
(T ^ j) ((hT.eigenvectorBasis hN) i) = ↑(hT.eigenvalues hN i) ^ j • (hT.eigenvectorBasis hN) i

A power of T scales an eigenvector by the power of its eigenvalue.

theorem LinearMap.IsSymmetric.trace_pow_eq_sum_eigenvalues {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] {T : E →ₗ[𝕜] E} {N : ℕ} (hN : Module.finrank 𝕜 E = N) (hT : T.IsSymmetric) (j : ℕ) :
(trace 𝕜 E) (T ^ j) = ∑ i : Fin N, ↑(hT.eigenvalues hN i) ^ j

The trace of a power of a symmetric operator is the sum of the powers of its eigenvalues.

theorem LinearMap.IsSymmetric.re_trace_pow_eq_sum_eigenvalues {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] {T : E →ₗ[𝕜] E} {N : ℕ} (hN : Module.finrank 𝕜 E = N) (hT : T.IsSymmetric) (j : ℕ) :
RCLike.re ((trace 𝕜 E) (T ^ j)) = ∑ i : Fin N, hT.eigenvalues hN i ^ j

The real part of tr (T ^ j) is the sum of the j-th powers of the eigenvalues.

theorem LinearMap.IsSymmetric.eigenvalues_eq_re_inner {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] {T : E →ₗ[𝕜] E} {N : ℕ} (hN : Module.finrank 𝕜 E = N) (hT : T.IsSymmetric) (i : Fin N) :
hT.eigenvalues hN i = RCLike.re (inner 𝕜 ((hT.eigenvectorBasis hN) i) (T ((hT.eigenvectorBasis hN) i)))

An eigenvalue is the quadratic form at its unit eigenvector.

theorem LinearMap.IsSymmetric.re_inner_apply_eq_sum {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] {T : E →ₗ[𝕜] E} {N : ℕ} (hN : Module.finrank 𝕜 E = N) (hT : T.IsSymmetric) (x : E) :
RCLike.re (inner 𝕜 x (T x)) = ∑ i : Fin N, hT.eigenvalues hN i * ‖inner 𝕜 ((hT.eigenvectorBasis hN) i) x‖ ^ 2

The quadratic form in an eigenbasis is the sum of the eigenvalues weighted by the squared norms of the coordinates.

theorem LinearMap.IsPositive.pow_le_re_trace_pow {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] {T : E →ₗ[𝕜] E} (hT : T.IsPositive) {x : E} (hx : ‖x‖ = 1) {c : ℝ} (hc : 0 ≤ c) (hcx : c ≤ RCLike.re (inner 𝕜 x (T x))) (j : ℕ) :
c ^ j ≤ RCLike.re ((trace 𝕜 E) (T ^ j))

Lower trace bound: if the quadratic form of a positive operator reaches c ≥ 0 on a unit vector, then c ^ j ≤ tr (T ^ j). Some eigenvalue is at least c, and the others contribute nonnegative powers.

theorem LinearMap.IsPositive.re_trace_pow_le {𝕜 : Type u_1} {E : Type u_2} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] [FiniteDimensional 𝕜 E] {T : E →ₗ[𝕜] E} (hT : T.IsPositive) {s : ℝ} (hs : ∀ (x : E), ‖x‖ = 1 → RCLike.re (inner 𝕜 x (T x)) ≤ s) (j : ℕ) :
RCLike.re ((trace 𝕜 E) (T ^ j)) ≤ ↑(Module.finrank 𝕜 E) * s ^ j

Upper trace bound: if the quadratic form of a positive operator is at most s on every unit vector, then tr (T ^ j) ≤ dim E * s ^ j, since every eigenvalue lies in [0, s].