Eq.(35): averaged single-site impurity
OpenQAlgorithms.Papers.Independent.Advance50.P50.global_impurityAn -qubit input is a positive semidefinite, trace-one matrix on the fixed computational basis, of dimension . A -copy model has a fixed input-independent unitary , a Hermitian observable , effective observable , and exact response . Let be a pure -qubit density matrix with , and let for . For two copies, swaps the copies at precisely the sites in and acts as identity elsewhere. Assume and . Then
This response is zero exactly when is fully product and strictly positive otherwise. It detects every nonproduct pure state, including states that factor across some nontrivial bipartition; no constant response on an arbitrary fixed- class is asserted.
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P50
noncomputable section
namespace QAlgorithms.Papers.Independent.Advance50.P50
open MeasureTheory ProbabilityTheory
open scoped ComplexConjugate ENNReal
-- Exact accepted primitives; no paper-local redeclarations.
open QAlgorithms.Papers.Independent.Information100.P63 (Mat tensorPower)
open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)
open QAlgorithms.Papers.Independent.Gap48.P38 (subsystemReduction)
open QAlgorithms.Papers.Independent.Information100.P32 (purity)
open QAlgorithms.Papers.Independent.Information100.P08 (IsPure)
-- Matrices carry the associative commutator bracket X*Y-Y*X.
attribute [local instance 100] LieRing.ofAssociativeRing
/-- PDF pp.13–14, Eq.(35): averaged impurity, zero exactly on fully product
pure states and positive on every other pure state (including biseparable states). -/
theorem global_impurity {n : ℕ} (hn : 1 ≤ n) (M : ExpectationModel (Qubits n) 2)
(hobs : M.effective = globalImpurityObservable n)
(rho : Mat (Qubits n)) (hpure : IsPure rho) :
M.response rho = (2 / (n : ℝ)) * ∑ j : Fin n, (1 - purity (subsystemReduction (fun _ => Bool) rho {j})) ∧
(M.response rho = 0 ↔ FullyProduct rho) ∧
(¬ FullyProduct rho → 0 < M.response rho) := by sorry
end QAlgorithms.Papers.Independent.Advance50.P50
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be an integer, and let consist of a unitary and a Hermitian observable on two -qubit copies, with
where exchanges the two copies’ bits at site . For every pure matrix with , define . Then
Each is obtained by summing matrix entries over matching assignments on all sites other than . Moreover, if and only if there exist unit single-qubit vectors such that , and failure of this product representation implies . The hypothesis excludes division by zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.