Z2 analytic symmetry example
ProvedQAlgorithms.Papers.Independent.Extend50.P47.z2_exampleEvery register has a fixed finite nonempty computational basis. States are positive semidefinite trace-one matrices, and pure vectors have norm one. Write for squared fidelity. Here is a finite group and denotes its specified unitary representation. Raw Bose averages use an ordinary representation; conjugation symmetry permits a projective representation.
For U(e)=I,U(g)=Pauli Z on one qubit, Π=|0⟩⟨0|; Bose symmetry means ρ=|0⟩⟨0|, while conjugation symmetry means ρ is diagonal in the computational basis.
The formula gives the exact characterization or operational specialization described in the cited result.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P47
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P47
open scoped ComplexConjugate ComplexOrder Matrix Matrix.Norms.L2Operator Manifold ContDiff
open MeasureTheory
open QAlgorithms.Papers.Independent.Information100.P60 (Mat)
open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)
variable {G S R P T A B C D R2 S2 : Type*}
variable [Fintype G] [Group G] [DecidableEq G]
variable [Fintype S] [DecidableEq S] [Nonempty S]
variable [Fintype R] [DecidableEq R] [Nonempty R]
variable [Fintype P] [DecidableEq P] [Nonempty P]
variable [Fintype T] [DecidableEq T] [Nonempty T]
variable [Fintype A] [DecidableEq A] [Nonempty A]
variable [Fintype B] [DecidableEq B] [Nonempty B]
variable [Fintype C] [DecidableEq C] [Nonempty C]
variable [Fintype D] [DecidableEq D] [Nonempty D]
variable [Fintype R2] [DecidableEq R2] [Nonempty R2]
variable [Fintype S2] [DecidableEq S2] [Nonempty S2]
/-- PDF p.20, Z2 example: the analytic projector and its exact test. -/
theorem z2_example :
((1 / 2 : ℂ) • ((1 : Mat Bool) + pauliZ)) = Matrix.single false false 1 ∧
∀ rho : Mat Bool, IsDensityMatrix rho →
controlReturnProbability ((1 / 2 : ℂ) • ((1 : Mat Bool) + pauliZ)) rho = (rho false false).re ∧
(Bose ((1 / 2 : ℂ) • ((1 : Mat Bool) + pauliZ)) rho ↔
rho = Matrix.single false false 1) ∧
(Sym (fun g : Bool => if g then pauliZ else 1) rho ↔
∀ i j, i ≠ j → rho i j = 0) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P47
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
On the two-dimensional space indexed by , let and . Then , the matrix whose only nonzero entry is a one at . For every positive semidefinite complex matrix of trace one,
Moreover, the conjunction that is a density matrix and holds if and only if ; and the conjunction that is a density matrix and for both Boolean values , where and , holds if and only if every off-diagonal entry of is zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.