Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq.(34): single-site impurity response

Open
QAlgorithms.Papers.Independent.Advance50.P50.site_impurity

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

An nnn-qubit input ρ\rhoρ is a positive semidefinite, trace-one matrix on the fixed computational basis, of dimension d=2nd=2^nd=2n. A kkk-copy model has a fixed input-independent unitary UUU, a Hermitian observable OOO, effective observable O~=U†OU\widetilde O=U^\dagger O UO=U†OU, and exact response h(ρ)=Tr⁡[Uρ⊗kU†O]h(\rho)=\operatorname{Tr}[U\rho^{\otimes k}U^\dagger O]h(ρ)=Tr[Uρ⊗kU†O]. Let ρ=∣ψ⟩⟨ψ∣\rho=|\psi\rangle\langle\psi|ρ=∣ψ⟩⟨ψ∣ be a pure nnn-qubit density matrix with ∥ψ∥=1\|\psi\|=1∥ψ∥=1, and let ρQ=Tr⁡S∖Qρ\rho_Q=\operatorname{Tr}_{S\setminus Q}\rhoρQ​=TrS∖Q​ρ for S={1,…,n}S=\{1,\ldots,n\}S={1,…,n}. For two copies, SQS_QSQ​ swaps the copies at precisely the sites in QQQ and acts as identity elsewhere. Assume n≥1n\ge1n≥1 and choose site j∈Sj\in Sj∈S. A two-copy model with O~=2(I−S{j})\widetilde O=2(I-S_{\{j\}})O=2(I−S{j}​) satisfies

h(ρ)=2(1−Tr⁡(ρ{j}2)).h(\rho)=2\bigl(1-\operatorname{Tr}(\rho_{\{j\}}^2)\bigr).h(ρ)=2(1−Tr(ρ{j}2​)).

This is the displayed single-site impurity response across the site-versus-rest cut, with identity on all other paired sites.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P50
Formal statement
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 p.13, Eq.(34): the response is twice the one-site linear entropy. -/
theorem site_impurity {n : ℕ} (hn : 1 ≤ n) (j : Fin n)
    (M : ExpectationModel (Qubits n) 2)
    (hobs : M.effective = (2 : ℂ) • (1 - subsystemSwap {j}))
    (rho : Mat (Qubits n)) (hpure : IsPure rho) :
    M.response rho = 2 * (1 - purity (subsystemReduction (fun _ => Bool) rho {j})) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P50

end
Source
Group-Invariant Quantum Machine Learning, arXiv:2205.02261v2, PDF p. 13, Eq.(34): single-site impurity response
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let n≥1n\ge1n≥1 be an integer and j∈{0,…,n−1}j\in\{0,\ldots,n-1\}j∈{0,…,n−1}. Let MMM consist of a unitary UUU and a Hermitian observable OOO on two nnn-qubit copies, and assume U†OU=2(I−S{j})U^\dagger OU=2(I-S_{\{j\}})U†OU=2(I−S{j}​), where S{j}S_{\{j\}}S{j}​ exchanges the two copies’ bits at site jjj and leaves every other bit unchanged. For every matrix ρ=∣ψ⟩⟨ψ∣\rho=|\psi\rangle\langle\psi|ρ=∣ψ⟩⟨ψ∣ with ∥ψ∥=1\|\psi\|=1∥ψ∥=1, its response satisfies

Re⁡tr⁡ ⁣(U(ρ⊗ρ)U†O)=2(1−Re⁡tr⁡(ρ{j}2)).\operatorname{Re}\operatorname{tr}\!\left(U(\rho\otimes\rho)U^\dagger O\right) =2\left(1-\operatorname{Re}\operatorname{tr}(\rho_{\{j\}}^2)\right).Retr(U(ρ⊗ρ)U†O)=2(1−Retr(ρ{j}2​)).

Here ρ{j}\rho_{\{j\}}ρ{j}​ is the reduction to site jjj: for assignments x,yx,yx,y on that site, (ρ{j})x,y=∑zρx∪z,y∪z(\rho_{\{j\}})_{x,y}=\sum_z\rho_{x\cup z,y\cup z}(ρ{j}​)x,y​=∑z​ρx∪z,y∪z​, with zzz ranging over assignments on all other sites.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me