The state-dependent distance on a bipartite state #
Every soundness argument in the Pauli basis test's appendix compares operators in the distance
A^x ≈_δ B^x ⟺ 𝔼_{x ∼ μ} ⟨ψ| (A^x - B^x)† (A^x - B^x) |ψ⟩ ≤ δ,
where the operators act on Alice's factor of a bipartite state |ψ⟩ ∈ ℂ^{dA} ⊗ ℂ^{dB}. That
is not the distance MIPRE/Foundations/Distances.lean defines: povmDistance and
IsPOVMClose use the normalized Hilbert--Schmidt norm, which is the tracial — synchronous —
specialization, and MIPRE/Foundations/Closeness.lean says so in its own docstring. This file
is the state-dependent one, and it is what blueprint def:state-distance names.
Two deliberate departures from the paper's qld-prelim.tex:
- no
O(·)inside the definition. The paper writes≤ O(δ); here the relation isstateDist μ ψ A B ≤ δand the constants appear in the lemmas that produce them. That is stronger, not weaker:stateSqNorm_avg_lepreservesδexactly andpovm_to_obsgives exactly|𝒜| · δ. - answer-indexed families as well. The paper's
≈_δis for operators indexed by questions but not answers; the applications also need the form summed over a common outcome set (cor:ortho-from-consistencyconcludesP_a ⊗ Id ≈ Q_a ⊗ Id). Both are here, the second aspovmStateDist.
Implementation #
stateVec ψ A = (A ⊗ Id)|ψ⟩, carried in EuclideanSpace ℂ (dA × dB) so that the triangle
inequality and ‖c • v‖ = ‖c‖‖v‖ are Mathlib's rather than rebuilt. The bridge to the
blueprint's quadratic-form spelling is stateSqNorm_eq, which is the only place the Kronecker
adjoint is used.
In a bipartite model #
The norm, the distances and the two closeness lemmas are stated for any bipartite model
(MIPRE/Foundations/BipartiteModel.lean) with the first player's operators in its algebra, and
the matrix ones are their instances in the tensor-product model (stateNorm_eq_tensor,
stateDist_eq_tensor, povmStateDist_eq_tensor). What stays about matrices is the vector
stateVec itself and the factor swap, which a model does not need: its second player's norm is
‖πB b ψ‖, by the same definition.
The state norm and distance in a bipartite model #
‖πA a ψ‖: the norm of the first player's operator on the state.
Instances For
⟨ψ| πA(a† a) |ψ⟩, the squared state-dependent norm.
Equations
- M.stateSqNorm a = M.stateNorm a ^ 2
Instances For
The squared norm is the quadratic form of a† a, as a complex number: the inner product
is real.
The inner product of the two players' vectors is the quadratic form of their product, for a self-adjoint first operator.
The state-dependent distance of two families of the first player's operators, relative
to a question distribution μ: blueprint def:state-distance.
Equations
- M.stateDist μ A B = ∑ x : X, μ x * M.stateSqNorm (A x - B x)
Instances For
The same distance for families indexed by answers as well.
Equations
- M.povmStateDist μ MA NA = ∑ x : X, μ x * ∑ a : A, M.stateSqNorm ((MA x).op a - (NA x).op a)
Instances For
From POVM elements to generalized observables, blueprint lem:qld-povm-to-obs: the
weighting costs a factor |𝒜|, from Cauchy--Schwarz over the outcome set.
Averaging preserves closeness, blueprint lem:qld-averaging.
The vector (A ⊗ Id)|ψ⟩ #
(M ⊗ Id)|ψ⟩, as a vector of EuclideanSpace ℂ (dA × dB).
Equations
- MIPRE.stateVec ψ M = WithLp.toLp 2 ((Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) M 1).mulVec ψ)
Instances For
The norm, and the distance #
‖(M ⊗ Id)|ψ⟩‖.
Equations
- MIPRE.stateNorm ψ M = ‖MIPRE.stateVec ψ M‖
Instances For
⟨ψ| M† M ⊗ Id |ψ⟩, the squared state-dependent norm.
Equations
- MIPRE.stateSqNorm ψ M = MIPRE.stateNorm ψ M ^ 2
Instances For
The matrix state norm is that of the tensor-product model.
The squared norm is the blueprint's quadratic form, as a complex number:
⟨ψ| M† M ⊗ Id |ψ⟩ is real and equal to stateSqNorm ψ M. It is what makes the Lean definition
and def:state-distance's spelling the same object rather than informally the same. The complex
form is what a positivity hypothesis on a linear functional wants.
The real form of quadForm_eq, which is how def:state-distance is written.
The state-dependent distance of two families of operators on Alice's factor, relative to
a question distribution μ and the state ψ: blueprint def:state-distance.
Equations
- MIPRE.stateDist μ ψ A B = ∑ x : X, μ x * MIPRE.stateSqNorm ψ (A x - B x)
Instances For
A ≈_δ B on ψ, relative to μ.
Equations
- MIPRE.IsStateClose μ ψ δ A B = (MIPRE.stateDist μ ψ A B ≤ δ)
Instances For
The same distance for families indexed by answers as well, which is the form the consistency statements take: the outcome sum is inside the question average.
Equations
- MIPRE.povmStateDist μ ψ M N = ∑ x : X, μ x * ∑ a : A, MIPRE.stateSqNorm ψ (↑((M x).mats a) - ↑((N x).mats a))
Instances For
M_a ≈_δ N_a on ψ, relative to μ.
Equations
- MIPRE.IsPOVMStateClose μ ψ δ M N = (MIPRE.povmStateDist μ ψ M N ≤ δ)
Instances For
The two closeness lemmas of the appendix's preliminaries #
The generalized observable of a POVM family and a weighting of the outcomes:
A^x = ∑_a α_a A^x_a.
Equations
- MIPRE.obsOf α M x = ∑ a : A, α a • ↑((M x).mats a)
Instances For
From POVM elements to generalized observables, blueprint lem:qld-povm-to-obs: the
weighting costs a factor |𝒜|, from Cauchy--Schwarz over the outcome set. The paper asks the
weights to be of unit modulus; ‖α a‖ ≤ 1 is all the proof uses.
Bob's factor, by the swap #
cor:ortho-from-consistency compares (Q_a ⊗ Id)|ψ⟩ against (Id ⊗ R_a)|ψ⟩, so it needs the
vectors of the other factor too. Rather than duplicate the calculus above, observe that Bob's
factor is Alice's factor of the swapped state: swapVec exchanges the two tensor factors, and
norm_stateVecB identifies the two norms. Every lemma proved above then applies on Bob's side
with dA and dB exchanged.
(Id ⊗ N)|ψ⟩, as a vector of EuclideanSpace ℂ (dA × dB): the stateVec of Bob's
factor.
Equations
- MIPRE.stateVecB ψ N = WithLp.toLp 2 ((Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) 1 N).mulVec ψ)
Instances For
Bob's norm is the first player's norm in the swapped tensor-product model.
The inner product of the two factors' vectors is the blueprint's ⟨ψ| Q ⊗ R |ψ⟩, for
self-adjoint Q: the inner product of the two players' vectors in the tensor-product model.
Averaging preserves closeness, blueprint lem:qld-averaging: a weighted average with
weights of modulus at most one is no further apart than the families are. Triangle inequality,
then Jensen for the square root (sum_mul_sqrt_le).