Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Narrow Bounds for the Quantum Capacity of Thermal Attenuators

Definition
QAlgorithms_Papers_Independent_Bridge50_P15

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

prove2quantum

The objects the formalized statements of Narrow Bounds for the Quantum Capacity of Thermal Attenuators (arXiv:1801.04731) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • referenceDensity: PDF pp.3-4, (15): canonical reference purification, with coefficients of sqrt(rho) vectorized as |sqrt(rho)>. Physical uses are normalized densities.
  • referenceCoherent: PDF pp.3-4, (15): reference coherent information I(R:B)-S(R) in bits. For finite input entropy the mutual information is finite, even if both output entropies are infinite. When output entropies are finite it equals S(B)-S(F). Values outside this domain are unused by singleLetter and all statements.
  • singleLetter: PDF p.3, (16): extended supremum over all finite-input-entropy states. No output-entropy finiteness or energy bound restricts this optimization. The nonnegative supremum retains unbounded capacity; pure inputs supply zero.
  • purifiedJoint: PDF p.4, (22): one joint output, with U acting on A,E and leaving R alone. Index order is ((B,F),R); input order is (A,(E,R)).
  • mixedReceiver: PDF pp.2,4, (1),(2): receiver of the fixed mixed-environment dilation.
  • mixedWeak: PDF p.4, (20): weak complement from exactly the same K and sigma.
  • purifiedExtension: PDF p.4, (23): retain B,R and trace F from the computed joint output.
  • extensionComplement: PDF p.4, (24): true complement of the extension, retaining only F.
  • originalComplement: PDF p.4, (21): true complement of the original receiver, retaining F,R.
  • qubitCoupling: PDF p.3, (7): ordered |00>,|01>,|10>,|11> coupling, including its minus sign.
  • qubitBath: PDF p.3, (6): bath population N, in the ordered energy basis.
  • qubitPurification: PDF p.5, (27): normalized thermal Schmidt purification for 0<=N<=1/2.
  • qubitExtension: PDF pp.4-5, (23),(27): physical qubit extension, output B,Eprime.
  • qubitExtendedCoherent: PDF pp.5,9, (41),(44): actual finite output-entropy difference of the extension.
  • qubitLower: PDF pp.3-4, (17): achievable diagonal-input objective; no noisy-channel claim equating it to unrestricted Q1 is built into this definition.
  • qubitUpper: PDF p.5, (28): diagonal extension objective; finite compact optimization.
  • fockCoupling: PDF p.3, (12)-(13): complete Fock beam splitter in number coordinates. The finite binomial expansion implements U|m,n>, with minus on transmission from the first input to the second output. The qubit convention (7) instead places its minus on the reverse transfer; each follows its own source formula.
  • bosonicChannel: PDF pp.3,6, (10)-(13): thermal attenuator from the complete mixed dilation.
  • bosonicExtension: PDF pp.4-5, (22),(29): actual thermal two-mode Schmidt density, not just its covariance. Accepted thermalPurificationDensity uses mean photon number N.
  • twistedBound: PDF p.7, (40): scalar twisted upper bound, used only for eta<1 and etaPrime>0.
  • extendedBound: PDF p.6, (33): scalar extension bound in the finite-log domain eta<1.
  • gaussianLower: PDF p.4, (18): clipped Gaussian achievable lower endpoint.
  • swatBound: PDF p.4, (19): SWAT comparison endpoint, with the source's clipping.
  • plobBound: PDF p.4, (19): PLOB endpoint. For eta>0, log((1-eta)eta^N) =log(1-eta)+N log(eta), avoiding an unnecessary real-power convention.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P35
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P26
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier18_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier18_P18
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P30
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08

/-!
arXiv:1801.04731v5. Full trace-class channels on completed Hilbert spaces.
Accepted paper definitions are imported under the independent-paper override.
No photon cutoff or covariance-only channel model is used. Compilation and
independent moderation are pending. The false residual branch of (46) is deferred.
-/

noncomputable section

open Filter
open scoped BigOperators ENNReal Topology Matrix

namespace QAlgorithms.Papers.Independent.Bridge50.P15

attribute [local instance] Classical.propDecidable Classical.decEq
attribute [local instance] IsStarNormal.instContinuousFunctionalCalculus

open QAlgorithms.RealRegisters (Hilbert)
open QAlgorithms.Papers.Independent.Dependency50.P33
  (State IsDensity IsTraceClass IsTraceClassChannel productCoeff tensorApply rankOne)
open QAlgorithms.Papers.Independent.Frontier30.P14
  (Operation conjugateKernel partialLeft partialRight isometryCoeff WeaklyDegradable GaussianDensity)
open QAlgorithms.Papers.Independent.Frontier18.P18 (operatorCoeff boundedOperator)
open QAlgorithms.Papers.Independent.Frontier18.P07 (extendedRelativeEntropyNats)
open QAlgorithms.Papers.Independent.Gap48.P26
  (entropyBits PhaseInsensitive weightedPhotonExpectation thermalKernel)
open QAlgorithms.Papers.Independent.Claimed50.P35 (traceClassQuantumCapacity vacuumChannel)
open QAlgorithms.Papers.Independent.Dependency50.P30 (thermalEntropyBits)
open QAlgorithms.Papers.Independent.Support50.P07 (qubitPhaseFlipChannel)
open QAlgorithms.Papers.Independent.Information100.P08 (qubitInput thermalChannel)

/- Source (3)-(5): qubitInput is reused exactly; thermalChannel takes damping
probability 1-eta rather than transmissivity eta. Source (34)-(37),(49):
vacuumChannel takes amplitude sqrt(kappa) rather than intensity gain kappa. -/

/-- PDF pp.3-4, (15): canonical reference purification, with coefficients of
sqrt(rho) vectorized as |sqrt(rho)>. Physical uses are normalized densities. -/
def referenceDensity {A : Type} (X : Matrix A A ℂ) : Matrix (A × A) (A × A) ℂ :=
  let S := operatorCoeff (cfc (fun z : ℂ => (Real.sqrt z.re : ℂ)) (boundedOperator X))
  fun i j => S i.1 i.2 * star (S j.1 j.2)

/-- PDF pp.3-4, (15): reference coherent information I(R:B)-S(R) in bits.
For finite input entropy the mutual information is finite, even if both output
entropies are infinite. When output entropies are finite it equals S(B)-S(F).
Values outside this domain are unused by singleLetter and all statements. -/
def referenceCoherent {A B : Type} (Phi : Operation A B) (X : Matrix A A ℂ) : ℝ :=
  let Y := tensorApply Phi (referenceDensity X)
  (extendedRelativeEntropyNats Y (productCoeff (partialRight Y) (partialLeft Y)) /
    ENNReal.ofReal (Real.log 2)).toReal - (entropyBits X).toReal

/-- PDF p.3, (16): extended supremum over all finite-input-entropy states.
No output-entropy finiteness or energy bound restricts this optimization.
The nonnegative supremum retains unbounded capacity; pure inputs supply zero. -/
def singleLetter {A B : Type} (Phi : Operation A B) : ℝ≥0∞ :=
  ⨆ rho : {rho : State A // entropyBits rho.coefficients < ⊤},
    ENNReal.ofReal (referenceCoherent Phi rho.val.coefficients)

/-- PDF p.4, (22): one joint output, with U acting on A,E and leaving R alone.
Index order is ((B,F),R); input order is (A,(E,R)). -/
def purifiedJoint {A B E F R : Type} (K : Matrix (B × F) (A × E) ℂ)
    (tau : Matrix (E × R) (E × R) ℂ) (X : Matrix A A ℂ) :
    Matrix ((B × F) × R) ((B × F) × R) ℂ :=
  conjugateKernel
    (fun o i => K o.1 (i.1, i.2.1) * (if o.2 = i.2.2 then 1 else 0))
    (productCoeff X tau)

/-- PDF pp.2,4, (1),(2): receiver of the fixed mixed-environment dilation. -/
def mixedReceiver {A B E F : Type} (K : Matrix (B × F) (A × E) ℂ)
    (sigma : Matrix E E ℂ) : Operation A B :=
  fun X => partialRight (conjugateKernel K (productCoeff X sigma))

/-- PDF p.4, (20): weak complement from exactly the same K and sigma. -/
def mixedWeak {A B E F : Type} (K : Matrix (B × F) (A × E) ℂ)
    (sigma : Matrix E E ℂ) : Operation A F :=
  fun X => partialLeft (conjugateKernel K (productCoeff X sigma))

/-- PDF p.4, (23): retain B,R and trace F from the computed joint output. -/
def purifiedExtension {A B E F R : Type} (K : Matrix (B × F) (A × E) ℂ)
    (tau : Matrix (E × R) (E × R) ℂ) : Operation A (B × R) :=
  fun X i j => ∑' f, purifiedJoint K tau X ((i.1, f), i.2) ((j.1, f), j.2)

/-- PDF p.4, (24): true complement of the extension, retaining only F. -/
def extensionComplement {A B E F R : Type} (K : Matrix (B × F) (A × E) ℂ)
    (tau : Matrix (E × R) (E × R) ℂ) : Operation A F :=
  fun X f g => ∑' b, ∑' r, purifiedJoint K tau X ((b, f), r) ((b, g), r)

/-- PDF p.4, (21): true complement of the original receiver, retaining F,R. -/
def originalComplement {A B E F R : Type} (K : Matrix (B × F) (A × E) ℂ)
    (tau : Matrix (E × R) (E × R) ℂ) : Operation A (F × R) :=
  fun X i j => ∑' b, purifiedJoint K tau X ((b, i.1), i.2) ((b, j.1), j.2)

/-- PDF p.3, (7): ordered |00>,|01>,|10>,|11> coupling, including its minus sign. -/
def qubitCoupling (eta : ℝ) : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ :=
  fun o i => if i.1 = i.2 then (if o = i then 1 else 0)
    else if o = i then (Real.sqrt eta : ℂ)
    else if o = (i.2, i.1) then
      (if i.1 = 0 then -(Real.sqrt (1 - eta) : ℂ) else (Real.sqrt (1 - eta) : ℂ))
    else 0

/-- PDF p.3, (6): bath population N, in the ordered energy basis. -/
def qubitBath (N : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
  fun i j => if i = j then (if i = 0 then ((1 - N : ℝ) : ℂ) else (N : ℂ)) else 0

/-- PDF p.5, (27): normalized thermal Schmidt purification for 0<=N<=1/2. -/
def qubitPurification (N : ℝ) : Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ :=
  let v : Fin 2 × Fin 2 → ℂ := fun i =>
    if i.1 = i.2 then (if i.1 = 0 then (Real.sqrt (1 - N) : ℂ) else (Real.sqrt N : ℂ)) else 0
  fun i j => v i * star (v j)

/-- PDF pp.4-5, (23),(27): physical qubit extension, output B,Eprime. -/
def qubitExtension (eta N : ℝ) : Operation (Fin 2) (Fin 2 × Fin 2) :=
  purifiedExtension (qubitCoupling eta) (qubitPurification N)

/-- PDF pp.5,9, (41),(44): actual finite output-entropy difference of the extension. -/
def qubitExtendedCoherent (eta N : ℝ) (X : Matrix (Fin 2) (Fin 2) ℂ) : ℝ :=
  (entropyBits (qubitExtension eta N X)).toReal -
    (entropyBits (extensionComplement (qubitCoupling eta) (qubitPurification N) X)).toReal

/-- PDF pp.3-4, (17): achievable diagonal-input objective; no noisy-channel
claim equating it to unrestricted Q1 is built into this definition. -/
def qubitLower (eta N : ℝ) : ℝ :=
  sSup {z : ℝ | ∃ p ∈ Set.Icc (0 : ℝ) 1,
    z = (entropyBits (thermalChannel (1 - eta) N (qubitInput p 0))).toReal -
      (entropyBits (originalComplement (qubitCoupling eta) (qubitPurification N)
        (qubitInput p 0))).toReal}

/-- PDF p.5, (28): diagonal extension objective; finite compact optimization. -/
def qubitUpper (eta N : ℝ) : ℝ :=
  sSup {z : ℝ | ∃ p ∈ Set.Icc (0 : ℝ) 1,
    z = qubitExtendedCoherent eta N (qubitInput p 0)}

/-- PDF p.3, (12)-(13): complete Fock beam splitter in number coordinates.
The finite binomial expansion implements U|m,n>, with minus on transmission
from the first input to the second output. The qubit convention (7) instead
places its minus on the reverse transfer; each follows its own source formula. -/
def fockCoupling (eta : ℝ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
  fun o i => ∑ j ∈ Finset.range (i.1 + 1), ∑ h ∈ Finset.range (i.2 + 1),
    if o.1 = j + h ∧ o.2 = (i.1 - j) + (i.2 - h) then
      ((Real.sqrt (((Nat.factorial o.1 : ℝ) * (Nat.factorial o.2 : ℝ)) /
          ((Nat.factorial i.1 : ℝ) * (Nat.factorial i.2 : ℝ))) *
        (Nat.choose i.1 j : ℝ) * (Nat.choose i.2 h : ℝ) *
        Real.sqrt eta ^ j * (-Real.sqrt (1 - eta)) ^ (i.1 - j) *
        Real.sqrt (1 - eta) ^ h * Real.sqrt eta ^ (i.2 - h) : ℝ) : ℂ)
    else 0

/-- PDF pp.3,6, (10)-(13): thermal attenuator from the complete mixed dilation. -/
def bosonicChannel (eta N : ℝ) : Operation ℕ ℕ :=
  mixedReceiver (fockCoupling eta) (thermalKernel N)

/-- PDF pp.4-5, (22),(29): actual thermal two-mode Schmidt density, not just
its covariance. Accepted thermalPurificationDensity uses mean photon number N. -/
def bosonicExtension (eta N : ℝ) : Operation ℕ (ℕ × ℕ) :=
  purifiedExtension (fockCoupling eta)
    (QAlgorithms.Papers.Independent.Claimed50.P35.thermalPurificationDensity N)

/-- PDF p.7, (40): scalar twisted upper bound, used only for eta<1 and etaPrime>0. -/
def twistedBound (eta N : ℝ) : ℝ :=
  max 0 (Real.logb 2 ((eta - N * (1 - eta)) / ((1 + N) * (1 - eta))))

/-- PDF p.6, (33): scalar extension bound in the finite-log domain eta<1. -/
def extendedBound (eta N : ℝ) : ℝ :=
  max 0 (Real.logb 2 (eta / (1 - eta)) + thermalEntropyBits N)

/-- PDF p.4, (18): clipped Gaussian achievable lower endpoint. -/
def gaussianLower (eta N : ℝ) : ℝ :=
  max 0 (Real.logb 2 (eta / (1 - eta)) - thermalEntropyBits N)

/-- PDF p.4, (19): SWAT comparison endpoint, with the source's clipping. -/
def swatBound (eta N : ℝ) : ℝ :=
  max 0 (Real.logb 2 (eta / (1 - eta)) - Real.logb 2 (N + 1))

/-- PDF p.4, (19): PLOB endpoint. For eta>0, log((1-eta)eta^N)
=log(1-eta)+N log(eta), avoiding an unnecessary real-power convention. -/
def plobBound (eta N : ℝ) : ℝ :=
  max 0 (-Real.logb 2 (1 - eta) - N * Real.logb 2 eta - thermalEntropyBits N)

example {A : Type} (X : Matrix A A ℂ) (i j : A × A) :
    referenceDensity X i j = star (referenceDensity X j i) := by
  simp [referenceDensity, mul_comm]

example (z : ℂ) :
    purifiedExtension (fun _ _ : Unit × Unit => (1 : ℂ))
      (fun _ _ : Unit × Unit => (1 : ℂ)) (fun _ _ : Unit => z) ((), ()) ((), ()) = z := by
  simp [purifiedExtension, purifiedJoint, conjugateKernel, productCoeff]

example : qubitCoupling (1 / 2) (1, 0) (0, 1) = -(Real.sqrt (1 - (1 / 2 : ℝ)) : ℂ) := by
  norm_num [qubitCoupling]

example : qubitPurification 0 (0, 0) (0, 0) = 1 := by
  norm_num [qubitPurification]

example : qubitBath 0 1 1 = 0 := by
  norm_num [qubitBath]

example (p : ℝ) : qubitInput p 0 1 1 = (p : ℂ) := by rfl

example : fockCoupling (1 / 2) (0, 0) (0, 0) = 1 := by
  norm_num [fockCoupling, Finset.sum_range_succ]

example : twistedBound (1 / 2) 0 = 0 := by
  norm_num [twistedBound]

example : extendedBound (1 / 2) 0 = 0 := by
  norm_num [extendedBound, thermalEntropyBits]

end QAlgorithms.Papers.Independent.Bridge50.P15
Source
Narrow Bounds for the Quantum Capacity of Thermal Attenuators, arXiv:1801.04731v5, https://arxiv.org/abs/1801.04731v5
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P15.bosonicChannel

For arbitrary real η,N\eta,Nη,N, this defines a map on all complex matrices indexed by N\mathbb NN. Define the matrix KηK_\etaKη​ on pairs of natural numbers by

(Kη)(m,ℓ),(p,q)=∑j=0p∑h=0q1{m=j+h, ℓ=(p−j)+(q−h)}m!ℓ!p!q!(pj)(qh)(η)j(−1−η)p−j(1−η)h(η)q−h,(K_\eta)_{(m,\ell),(p,q)} = \sum_{j=0}^{p}\sum_{h=0}^{q} \mathbf1_{\{m=j+h,\ \ell=(p-j)+(q-h)\}} \sqrt{\frac{m!\ell!}{p!q!}} \binom pj\binom qh (\sqrt\eta)^j(-\sqrt{1-\eta})^{p-j} (\sqrt{1-\eta})^h(\sqrt\eta)^{q-h},(Kη​)(m,ℓ),(p,q)​=j=0∑p​h=0∑q​1{m=j+h, ℓ=(p−j)+(q−h)}​p!q!m!ℓ!​​(jp​)(hq​)(η​)j(−1−η​)p−j(1−η​)h(η​)q−h,

with these real values embedded in C\mathbb CC, and define

σN(e,e′)={(N/(N+1))eN+1,e=e′,0,e≠e′.\sigma_N(e,e')= \begin{cases} \displaystyle \frac{(N/(N+1))^e}{N+1},&e=e',\\ 0,&e\ne e'. \end{cases}σN​(e,e′)=⎩⎨⎧​N+1(N/(N+1))e​,0,​e=e′,e=e′.​

For every matrix XXX, its image is given by the nested sums

(Bη,N(X))b,b′=∑f∈N′  ∑i∈N2′(Kη)(b,f),i(∑j∈N2′Xi1,j1σN(i2,j2)(Kη)(b′,f),j‾).\bigl(\mathcal B_{\eta,N}(X)\bigr)_{b,b'} = \sum_{f\in\mathbb N}'\; \sum_{i\in\mathbb N^2}' (K_\eta)_{(b,f),i} \left( \sum_{j\in\mathbb N^2}' X_{i_1,j_1}\sigma_N(i_2,j_2) \overline{(K_\eta)_{(b',f),j}} \right).(Bη,N​(X))b,b′​=f∈N∑′​i∈N2∑′​(Kη​)(b,f),i​​j∈N2∑′​Xi1​,j1​​σN​(i2​,j2​)(Kη​)(b′,f),j​​​.

No density, summability, or parameter-range conditions are required. Each primed complex sum is the total infinite-sum operation, equal to 000 when its family is not summable. Real division by zero is 000, so N=−1N=-1N=−1 is included; negative square-root arguments give 000, and zeroth powers are 111.

QAlgorithms.Papers.Independent.Bridge50.P15.bosonicExtension

For arbitrary real η,N\eta,Nη,N, this defines a map from complex matrices indexed by N\mathbb NN to complex matrices indexed by N2\mathbb N^2N2. Define

(Kη)(m,ℓ),(p,q)=∑j=0p∑h=0q1{m=j+h, ℓ=(p−j)+(q−h)}m!ℓ!p!q!(pj)(qh)(η)j(−1−η)p−j(1−η)h(η)q−h,(K_\eta)_{(m,\ell),(p,q)} = \sum_{j=0}^{p}\sum_{h=0}^{q} \mathbf1_{\{m=j+h,\ \ell=(p-j)+(q-h)\}} \sqrt{\frac{m!\ell!}{p!q!}} \binom pj\binom qh (\sqrt\eta)^j(-\sqrt{1-\eta})^{p-j} (\sqrt{1-\eta})^h(\sqrt\eta)^{q-h},(Kη​)(m,ℓ),(p,q)​=j=0∑p​h=0∑q​1{m=j+h, ℓ=(p−j)+(q−h)}​p!q!m!ℓ!​​(jp​)(hq​)(η​)j(−1−η​)p−j(1−η​)h(η​)q−h,

viewing the real result as complex. Put

de=22N+2(2N2N+2)e,τ(e,s),(e′,s′)={dede′,e=s and e′=s′,0,otherwise,d_e=\frac{2}{2N+2}\left(\frac{2N}{2N+2}\right)^e, \qquad \tau_{(e,s),(e',s')}= \begin{cases} \sqrt{d_e}\sqrt{d_{e'}},&e=s\ \text{and }e'=s',\\ 0,&\text{otherwise}, \end{cases}de​=2N+22​(2N+22N​)e,τ(e,s),(e′,s′)​={de​​de′​​,0,​e=s and e′=s′,otherwise,​

and

L((b,f),r),(a,(e,s))=(Kη)(b,f),(a,e) 1{r=s}.L_{((b,f),r),(a,(e,s))} =(K_\eta)_{(b,f),(a,e)}\,\mathbf1_{\{r=s\}}.L((b,f),r),(a,(e,s))​=(Kη​)(b,f),(a,e)​1{r=s}​.

For every input matrix XXX, the resulting entry is

(Eη,N(X))(b,r),(b′,r′)=∑f∈N′  ∑i∈N×N2′L((b,f),r),i(∑j∈N×N2′Xi1,j1τi2,j2L((b′,f),r′),j‾).\bigl(\mathcal E_{\eta,N}(X)\bigr)_{(b,r),(b',r')} = \sum_{f\in\mathbb N}'\; \sum_{i\in\mathbb N\times\mathbb N^2}' L_{((b,f),r),i} \left( \sum_{j\in\mathbb N\times\mathbb N^2}' X_{i_1,j_1}\tau_{i_2,j_2} \overline{L_{((b',f),r'),j}} \right).(Eη,N​(X))(b,r),(b′,r′)​=f∈N∑′​i∈N×N2∑′​L((b,f),r),i​​j∈N×N2∑′​Xi1​,j1​​τi2​,j2​​L((b′,f),r′),j​​​.

There are no density, convergence, or parameter-range hypotheses. Each primed complex sum is total and equals 000 for a nonsummable family; division by zero is 000, negative real square-root arguments give 000, and zeroth powers are 111, including at zero.

QAlgorithms.Papers.Independent.Bridge50.P15.extendedBound

For every pair of real numbers η,N\eta,Nη,N, this defines

max⁡{0,  log⁡2 ⁣(η1−η)+(1+N)log⁡2(1+N)−Nlog⁡2N}.\max\left\{0,\; \log_2\!\left(\frac{\eta}{1-\eta}\right) +(1+N)\log_2(1+N)-N\log_2N \right\}.max{0,log2​(1−ηη​)+(1+N)log2​(1+N)−Nlog2​N}.

There are no parameter restrictions. Division by zero is 000, and every logarithm is total: log⁡20=0\log_2 0=0log2​0=0 and log⁡2x=ln⁡∣x∣/ln⁡2\log_2 x=\ln|x|/\ln2log2​x=ln∣x∣/ln2 for x≠0x\ne0x=0. Thus η=1\eta=1η=1, N=0N=0N=0, N=−1N=-1N=−1, and negative logarithm arguments are included.

QAlgorithms.Papers.Independent.Bridge50.P15.extensionComplement

For arbitrary types A,B,E,F,RA,B,E,F,RA,B,E,F,R, a complex matrix KKK from A×EA\times EA×E to B×FB\times FB×F, and a complex matrix τ\tauτ on E×RE\times RE×R, this defines a function from complex matrices XXX on AAA to complex matrices on FFF. Set

H((b,f),r),(a,(e,s))=K(b,f),(a,e)1{r=s},Po,o′=∑u∈A×(E×R)Ho,u(∑v∈A×(E×R)Xu1,v1τu2,v2Ho′,v‾).H_{((b,f),r),(a,(e,s))} =K_{(b,f),(a,e)}\mathbf1_{\{r=s\}}, \qquad P_{o,o'} =\sum_{u\in A\times(E\times R)}H_{o,u} \left(\sum_{v\in A\times(E\times R)} X_{u_1,v_1}\tau_{u_2,v_2}\overline{H_{o',v}}\right).H((b,f),r),(a,(e,s))​=K(b,f),(a,e)​1{r=s}​,Po,o′​=u∈A×(E×R)∑​Ho,u​​v∈A×(E×R)∑​Xu1​,v1​​τu2​,v2​​Ho′,v​​​.

The output entries are

C(X)fg=∑b∈B(∑r∈RP((b,f),r),((b,g),r)).\mathcal C(X)_{fg} =\sum_{b\in B}\left(\sum_{r\in R} P_{((b,f),r),((b,g),r)}\right).C(X)fg​=b∈B∑​(r∈R∑​P((b,f),r),((b,g),r)​).

The order of the nested sums is part of the definition; each uses total unordered summation and is zero for a nonsummable family. All types may be empty, and an empty BBB or RRR gives zero output. No isometry, positivity, density, purification, normalization, or summability hypotheses are imposed.

QAlgorithms.Papers.Independent.Bridge50.P15.fockCoupling

For every real η\etaη, this defines a complex matrix KηK_\etaKη​ whose rows and columns are indexed by pairs of natural numbers, including zero. For output index (m,ℓ)(m,\ell)(m,ℓ) and input index (p,q)(p,q)(p,q), its entry is the real number below, embedded in C\mathbb CC:

(Kη)(m,ℓ),(p,q)=∑j=0p∑h=0q1{m=j+h, ℓ=(p−j)+(q−h)}m!ℓ!p!q!(pj)(qh)(η)j(−1−η)p−j(1−η)h(η)q−h.(K_\eta)_{(m,\ell),(p,q)} = \sum_{j=0}^{p}\sum_{h=0}^{q} \mathbf1_{\{m=j+h,\ \ell=(p-j)+(q-h)\}} \sqrt{\frac{m!\ell!}{p!q!}} \binom pj\binom qh (\sqrt\eta)^j (-\sqrt{1-\eta})^{p-j} (\sqrt{1-\eta})^h (\sqrt\eta)^{q-h}.(Kη​)(m,ℓ),(p,q)​=j=0∑p​h=0∑q​1{m=j+h, ℓ=(p−j)+(q−h)}​p!q!m!ℓ!​​(jp​)(hq​)(η​)j(−1−η​)p−j(1−η​)h(η​)q−h.

The indicator means that a summand is 000 unless both displayed equalities hold. Subtractions are natural-number subtractions, although the summation ranges ensure j≤pj\le pj≤p and h≤qh\le qh≤q. No restriction on η\etaη is assumed; negative arguments of the real square root give 000, and zeroth powers, including 000^000, are 111.

QAlgorithms.Papers.Independent.Bridge50.P15.gaussianLower

For every pair of real numbers η,N\eta,Nη,N, this defines

max⁡{0,  log⁡2 ⁣(η1−η)−((1+N)log⁡2(1+N)−Nlog⁡2N)}.\max\left\{0,\; \log_2\!\left(\frac{\eta}{1-\eta}\right) -\left((1+N)\log_2(1+N)-N\log_2N\right) \right\}.max{0,log2​(1−ηη​)−((1+N)log2​(1+N)−Nlog2​N)}.

No range assumptions are made. Division by zero is 000, and the total real logarithm satisfies log⁡20=0\log_2 0=0log2​0=0 and log⁡2x=ln⁡∣x∣/ln⁡2\log_2 x=\ln|x|/\ln2log2​x=ln∣x∣/ln2 for x≠0x\ne0x=0. In particular, η=1\eta=1η=1, N=0N=0N=0, N=−1N=-1N=−1, and negative logarithm arguments are included.

QAlgorithms.Papers.Independent.Bridge50.P15.mixedReceiver

For arbitrary types A,B,E,FA,B,E,FA,B,E,F, a complex matrix KKK from A×EA\times EA×E to B×FB\times FB×F, and any complex matrix σ\sigmaσ on EEE, this defines a function taking each complex matrix XXX on AAA to the complex matrix on BBB with entries

R(X)bc=∑f∈F[∑u∈A×EK(b,f),u(∑v∈A×EXu1,v1σu2,v2K(c,f),v‾)].\mathcal R(X)_{bc} =\sum_{f\in F} \left[ \sum_{u\in A\times E}K_{(b,f),u} \left( \sum_{v\in A\times E} X_{u_1,v_1}\sigma_{u_2,v_2} \overline{K_{(c,f),v}} \right) \right].R(X)bc​=f∈F∑​[u∈A×E∑​K(b,f),u​(v∈A×E∑​Xu1​,v1​​σu2​,v2​​K(c,f),v​​)].

All sums use total unordered summation in the displayed order, assigning zero to nonsummable families. Empty index types are allowed; in particular, an empty FFF gives the zero output. No conditions on K,σK,\sigmaK,σ, or XXX are imposed.

QAlgorithms.Papers.Independent.Bridge50.P15.mixedWeak

For arbitrary types A,B,E,FA,B,E,FA,B,E,F, a complex matrix KKK from A×EA\times EA×E to B×FB\times FB×F, and any complex matrix σ\sigmaσ on EEE, this defines a function taking each complex matrix XXX on AAA to the complex matrix on FFF with entries

W(X)fg=∑b∈B[∑u∈A×EK(b,f),u(∑v∈A×EXu1,v1σu2,v2K(b,g),v‾)].\mathcal W(X)_{fg} =\sum_{b\in B} \left[ \sum_{u\in A\times E}K_{(b,f),u} \left( \sum_{v\in A\times E} X_{u_1,v_1}\sigma_{u_2,v_2} \overline{K_{(b,g),v}} \right) \right].W(X)fg​=b∈B∑​[u∈A×E∑​K(b,f),u​(v∈A×E∑​Xu1​,v1​​σu2​,v2​​K(b,g),v​​)].

All sums use total unordered summation with exactly this nesting, assigning zero to nonsummable families. Empty index types are included; an empty BBB gives the zero output. No isometry, density, positivity, normalization, or summability hypotheses are imposed.

QAlgorithms.Papers.Independent.Bridge50.P15.originalComplement

For arbitrary types A,B,E,F,RA,B,E,F,RA,B,E,F,R, a complex matrix KKK from A×EA\times EA×E to B×FB\times FB×F, and a complex matrix τ\tauτ on E×RE\times RE×R, this defines a function from complex matrices XXX on AAA to complex matrices on F×RF\times RF×R. Define

H((b,f),r),(a,(e,s))=K(b,f),(a,e)1{r=s},Po,o′=∑u∈A×(E×R)Ho,u(∑v∈A×(E×R)Xu1,v1τu2,v2Ho′,v‾).H_{((b,f),r),(a,(e,s))} =K_{(b,f),(a,e)}\mathbf1_{\{r=s\}}, \qquad P_{o,o'} =\sum_{u\in A\times(E\times R)}H_{o,u} \left(\sum_{v\in A\times(E\times R)} X_{u_1,v_1}\tau_{u_2,v_2}\overline{H_{o',v}}\right).H((b,f),r),(a,(e,s))​=K(b,f),(a,e)​1{r=s}​,Po,o′​=u∈A×(E×R)∑​Ho,u​​v∈A×(E×R)∑​Xu1​,v1​​τu2​,v2​​Ho′,v​​​.

The output is

O(X)(f,r),(g,s)=∑b∈BP((b,f),r),((b,g),s).\mathcal O(X)_{(f,r),(g,s)} =\sum_{b\in B}P_{((b,f),r),((b,g),s)}.O(X)(f,r),(g,s)​=b∈B∑​P((b,f),r),((b,g),s)​.

All sums use total unordered summation with the displayed nesting, assigning zero to nonsummable families. Empty types are permitted, with an empty BBB giving zero output. No conditions on K,τK,\tauK,τ, or XXX are required.

QAlgorithms.Papers.Independent.Bridge50.P15.plobBound

For arbitrary real η,N\eta,Nη,N, this defines

max⁡{0,  −log⁡2(1−η)−Nlog⁡2η−((1+N)log⁡2(1+N)−Nlog⁡2N)}.\max\left\{0,\; -\log_2(1-\eta)-N\log_2\eta -\left((1+N)\log_2(1+N)-N\log_2N\right) \right\}.max{0,−log2​(1−η)−Nlog2​η−((1+N)log2​(1+N)−Nlog2​N)}.

No parameter restrictions are assumed. Every logarithm is the total real logarithm to base 222: its value at 000 is 000, and for nonzero xxx it is ln⁡∣x∣/ln⁡2\ln|x|/\ln2ln∣x∣/ln2. Thus η=0,1\eta=0,1η=0,1, N=0,−1N=0,-1N=0,−1, and negative logarithm arguments are included.

QAlgorithms.Papers.Independent.Bridge50.P15.purifiedExtension

For arbitrary types A,B,E,F,RA,B,E,F,RA,B,E,F,R, a complex matrix KKK from A×EA\times EA×E to B×FB\times FB×F, and a complex matrix τ\tauτ on E×RE\times RE×R, this defines a function from complex matrices XXX on AAA to complex matrices on B×RB\times RB×R. Define

H((b,f),r),(a,(e,s))=K(b,f),(a,e)1{r=s},Po,o′=∑u∈A×(E×R)Ho,u(∑v∈A×(E×R)Xu1,v1τu2,v2Ho′,v‾).H_{((b,f),r),(a,(e,s))} =K_{(b,f),(a,e)}\mathbf1_{\{r=s\}}, \qquad P_{o,o'} =\sum_{u\in A\times(E\times R)}H_{o,u} \left(\sum_{v\in A\times(E\times R)} X_{u_1,v_1}\tau_{u_2,v_2}\overline{H_{o',v}}\right).H((b,f),r),(a,(e,s))​=K(b,f),(a,e)​1{r=s}​,Po,o′​=u∈A×(E×R)∑​Ho,u​​v∈A×(E×R)∑​Xu1​,v1​​τu2​,v2​​Ho′,v​​​.

The output is

E(X)(b,r),(c,s)=∑f∈FP((b,f),r),((c,f),s).\mathcal E(X)_{(b,r),(c,s)} =\sum_{f\in F}P_{((b,f),r),((c,f),s)}.E(X)(b,r),(c,s)​=f∈F∑​P((b,f),r),((c,f),s)​.

All sums are total unordered sums in the stated nesting, with nonsummable families assigned zero. Empty types are permitted, and an empty FFF makes the output zero. No assumptions on K,τK,\tauK,τ, or XXX are required.

QAlgorithms.Papers.Independent.Bridge50.P15.purifiedJoint

For arbitrary types A,B,E,F,RA,B,E,F,RA,B,E,F,R, a complex matrix KKK with rows indexed by B×FB\times FB×F and columns by A×EA\times EA×E, a complex matrix τ\tauτ on E×RE\times RE×R, and a complex matrix XXX on AAA, define a matrix on (B×F)×R(B\times F)\times R(B×F)×R. Set

H((b,f),r),(a,(e,s))=K(b,f),(a,e) 1{r=s}.H_{((b,f),r),(a,(e,s))} =K_{(b,f),(a,e)}\,\mathbf1_{\{r=s\}}.H((b,f),r),(a,(e,s))​=K(b,f),(a,e)​1{r=s}​.

Its entries are

Po,o′=∑u∈A×(E×R)Ho,u(∑v∈A×(E×R)Xu1,v1 τ(u2,1,u2,2),(v2,1,v2,2) Ho′,v‾).P_{o,o'} =\sum_{u\in A\times(E\times R)} H_{o,u} \left( \sum_{v\in A\times(E\times R)} X_{u_1,v_1}\, \tau_{(u_{2,1},u_{2,2}),(v_{2,1},v_{2,2})}\, \overline{H_{o',v}} \right).Po,o′​=u∈A×(E×R)∑​Ho,u​​v∈A×(E×R)∑​Xu1​,v1​​τ(u2,1​,u2,2​),(v2,1​,v2,2​)​Ho′,v​​​.

The sums retain this nesting and use total unordered summation, with a nonsummable family assigned zero. The types may be empty, and no isometry, positivity, density, purification, normalization, or summability conditions are required.

QAlgorithms.Papers.Independent.Bridge50.P15.qubitBath

For every real number NNN, this defines the complex matrix on {0,1}\{0,1\}{0,1}

(1−N00N).\begin{pmatrix} 1-N&0\\ 0&N \end{pmatrix}.(1−N0​0N​).

The parameter NNN is unrestricted, so the definition includes values outside [0,1][0,1][0,1].

QAlgorithms.Papers.Independent.Bridge50.P15.qubitCoupling

For every real number η\etaη, this defines the complex matrix on {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1} whose rows and columns, ordered as 00,01,10,1100,01,10,1100,01,10,11, are

(10000η1−η00−1−ηη00001).\begin{pmatrix} 1&0&0&0\\ 0&\sqrt{\eta}&\sqrt{1-\eta}&0\\ 0&-\sqrt{1-\eta}&\sqrt{\eta}&0\\ 0&0&0&1 \end{pmatrix}.​1000​0η​−1−η​0​01−η​η​0​0001​​.

All displayed real entries are embedded in C\mathbb CC. There is no restriction 0≤η≤10\le\eta\le10≤η≤1: the real square root of a negative argument is defined to be zero.

QAlgorithms.Papers.Independent.Bridge50.P15.qubitExtendedCoherent

For arbitrary real η,N\eta,Nη,N and every complex 2×22\times22×2 matrix XXX, put v0=1−Nv_0=\sqrt{1-N}v0​=1−N​, v1=Nv_1=\sqrt Nv1​=N​, and

K=(10000η1−η00−1−ηη00001)K=\begin{pmatrix} 1&0&0&0\\ 0&\sqrt\eta&\sqrt{1-\eta}&0\\ 0&-\sqrt{1-\eta}&\sqrt\eta&0\\ 0&0&0&1 \end{pmatrix}K=​1000​0η​−1−η​0​01−η​η​0​0001​​

in the order 00,01,10,1100,01,10,1100,01,10,11. Define matrices RRR on {0,1}2\{0,1\}^2{0,1}2 and CCC on {0,1}\{0,1\}{0,1} by

R(b,s),(b′,s′)=vsvs′∑f,a,a′K(b,f),(a,s)Xa,a′K(b′,f),(a′,s′)‾,Cf,f′=∑b,s,a,a′vs2K(b,f),(a,s)Xa,a′K(b,f′),(a′,s)‾,R_{(b,s),(b',s')}= v_s v_{s'}\sum_{f,a,a'}K_{(b,f),(a,s)}X_{a,a'} \overline{K_{(b',f),(a',s')}}, \qquad C_{f,f'}=\sum_{b,s,a,a'}v_s^2K_{(b,f),(a,s)}X_{a,a'} \overline{K_{(b,f'),(a',s)}},R(b,s),(b′,s′)​=vs​vs′​f,a,a′∑​K(b,f),(a,s)​Xa,a′​K(b′,f),(a′,s′)​​,Cf,f′​=b,s,a,a′∑​vs2​K(b,f),(a,s)​Xa,a′​K(b,f′),(a′,s)​​,

where every summation index ranges over {0,1}\{0,1\}{0,1}. For a matrix ZZZ indexed by a finite set DDD, let

HD(Z)=1ln⁡2sup⁡S⊆DS finite[Re⁡tr⁡(ZS)ln⁡ ⁣(Re⁡tr⁡(ZS))−Re⁡tr⁡ ⁣(ZS Log⁡cfcZS)]+.H_D(Z)=\frac{1}{\ln2}\sup_{\substack{S\subseteq D\\S\text{ finite}}} \left[ \operatorname{Re}\operatorname{tr}(Z_S) \ln\!\bigl(\operatorname{Re}\operatorname{tr}(Z_S)\bigr) -\operatorname{Re}\operatorname{tr}\!\bigl(Z_S\,\operatorname{Log}_{\mathrm{cfc}}Z_S\bigr) \right]_+.HD​(Z)=ln21​S⊆DS finite​sup​[Retr(ZS​)ln(Retr(ZS​))−Retr(ZS​Logcfc​ZS​)]+​.

Here ZSZ_SZS​ is the principal submatrix, [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0) is viewed in [0,∞][0,\infty][0,∞], the supremum includes the empty subset, and Log⁡cfc\operatorname{Log}_{\mathrm{cfc}}Logcfc​ is the total continuous functional calculus applied to the real logarithm. The definition returns

toReal⁡H{0,1}2(R)−toReal⁡H{0,1}(C),\operatorname{toReal}H_{\{0,1\}^2}(R) -\operatorname{toReal}H_{\{0,1\}}(C),toRealH{0,1}2​(R)−toRealH{0,1}​(C),

where toReal⁡(+∞)=0\operatorname{toReal}(+\infty)=0toReal(+∞)=0. There is no assumption that XXX is a density matrix or that η,N\eta,Nη,N lie in [0,1][0,1][0,1]; square roots of negative reals are 000.

QAlgorithms.Papers.Independent.Bridge50.P15.qubitExtension

For arbitrary real numbers η,N\eta,Nη,N, this defines a map from complex 2×22\times22×2 matrices to complex matrices indexed by {0,1}2\{0,1\}^2{0,1}2. Put t=ηt=\sqrt{\eta}t=η​, r=1−ηr=\sqrt{1-\eta}r=1−η​, v0=1−Nv_0=\sqrt{1-N}v0​=1−N​, v1=Nv_1=\sqrt Nv1​=N​, and, with rows and columns ordered as 00,01,10,1100,01,10,1100,01,10,11, put

K=(10000tr00−rt00001).K=\begin{pmatrix} 1&0&0&0\\ 0&t&r&0\\ 0&-r&t&0\\ 0&0&0&1 \end{pmatrix}.K=​1000​0t−r0​0rt0​0001​​.

For every complex 2×22\times22×2 matrix XXX, its image has entries

(Eη,N(X))(b,s),(b′,s′)=vsvs′∑f,a,a′∈{0,1}K(b,f),(a,s)Xa,a′K(b′,f),(a′,s′)‾.\bigl(\mathcal E_{\eta,N}(X)\bigr)_{(b,s),(b',s')} = v_s v_{s'}\sum_{f,a,a'\in\{0,1\}} K_{(b,f),(a,s)}X_{a,a'} \overline{K_{(b',f),(a',s')}}.(Eη,N​(X))(b,s),(b′,s′)​=vs​vs′​f,a,a′∈{0,1}∑​K(b,f),(a,s)​Xa,a′​K(b′,f),(a′,s′)​​.

No density, positivity, or parameter-range hypotheses are imposed. Real square roots are total, taking value 000 on negative arguments.

QAlgorithms.Papers.Independent.Bridge50.P15.qubitLower

For arbitrary real η,N\eta,Nη,N, this defines the real supremum, over all p∈[0,1]p\in[0,1]p∈[0,1], including both endpoints, of

toReal⁡H{0,1}(Tp)−toReal⁡H{0,1}2(Op).\operatorname{toReal}H_{\{0,1\}}(T_p) -\operatorname{toReal}H_{\{0,1\}^2}(O_p).toRealH{0,1}​(Tp​)−toRealH{0,1}2​(Op​).

Here Xp=diag⁡(1−p,p)X_p=\operatorname{diag}(1-p,p)Xp​=diag(1−p,p), F=(0110)F=\begin{pmatrix}0&1\\1&0\end{pmatrix}F=(01​10​), and

Dg(X)=AgXAg∗+BgXBg∗,Ag=(1001−g),Bg=(0g00),Tp=(1−N)D1−η(Xp)+NFD1−η(FXpF)F.D_g(X)=A_gXA_g^*+B_gXB_g^*, \quad A_g=\begin{pmatrix}1&0\\0&\sqrt{1-g}\end{pmatrix}, \quad B_g=\begin{pmatrix}0&\sqrt g\\0&0\end{pmatrix}, \qquad T_p=(1-N)D_{1-\eta}(X_p)+NF D_{1-\eta}(FX_pF)F.Dg​(X)=Ag​XAg∗​+Bg​XBg∗​,Ag​=(10​01−g​​),Bg​=(00​g​0​),Tp​=(1−N)D1−η​(Xp​)+NFD1−η​(FXp​F)F.

To define OpO_pOp​, put v0=1−Nv_0=\sqrt{1-N}v0​=1−N​, v1=Nv_1=\sqrt Nv1​=N​, and, in the order 00,01,10,1100,01,10,1100,01,10,11, let

K=(10000η1−η00−1−ηη00001);(Op)(f,s),(f′,s′)=vsvs′∑b,a,a′∈{0,1}K(b,f),(a,s)(Xp)a,a′K(b,f′),(a′,s′)‾.K=\begin{pmatrix} 1&0&0&0\\ 0&\sqrt\eta&\sqrt{1-\eta}&0\\ 0&-\sqrt{1-\eta}&\sqrt\eta&0\\ 0&0&0&1 \end{pmatrix}; \qquad (O_p)_{(f,s),(f',s')}= v_s v_{s'}\sum_{b,a,a'\in\{0,1\}} K_{(b,f),(a,s)}(X_p)_{a,a'} \overline{K_{(b,f'),(a',s')}}.K=​1000​0η​−1−η​0​01−η​η​0​0001​​;(Op​)(f,s),(f′,s′)​=vs​vs′​b,a,a′∈{0,1}∑​K(b,f),(a,s)​(Xp​)a,a′​K(b,f′),(a′,s′)​​.

For a finite index set DDD, the entropy expression used here is

HD(Z)=1ln⁡2sup⁡S⊆D[Re⁡tr⁡(ZS)ln⁡ ⁣(Re⁡tr⁡(ZS))−Re⁡tr⁡ ⁣(ZSLog⁡cfcZS)]+,H_D(Z)=\frac{1}{\ln2}\sup_{S\subseteq D} \left[ \operatorname{Re}\operatorname{tr}(Z_S) \ln\!\bigl(\operatorname{Re}\operatorname{tr}(Z_S)\bigr) -\operatorname{Re}\operatorname{tr}\!\bigl(Z_S\operatorname{Log}_{\mathrm{cfc}}Z_S\bigr) \right]_+,HD​(Z)=ln21​S⊆Dsup​[Retr(ZS​)ln(Retr(ZS​))−Retr(ZS​Logcfc​ZS​)]+​,

with the empty subset included, ZSZ_SZS​ the principal submatrix, [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0) viewed in [0,∞][0,\infty][0,∞], and Log⁡cfc\operatorname{Log}_{\mathrm{cfc}}Logcfc​ the total continuous functional calculus of the real logarithm; toReal⁡(+∞)=0\operatorname{toReal}(+\infty)=0toReal(+∞)=0. No restrictions on η,N\eta,Nη,N are imposed, so the coefficients N,1−NN,1-NN,1−N need not be nonnegative; negative real square-root arguments give 000.

QAlgorithms.Papers.Independent.Bridge50.P15.qubitPurification

For every real number NNN, define a complex-valued vector indexed by 00,01,10,1100,01,10,1100,01,10,11 by

v=(1−N, 0, 0, N).v=(\sqrt{1-N},\,0,\,0,\,\sqrt N).v=(1−N​,0,0,N​).

The defined complex matrix has entries vivj‾v_i\overline{v_j}vi​vj​​, namely

((1−N)2001−NN000000001−NN00(N)2).\begin{pmatrix} (\sqrt{1-N})^2&0&0&\sqrt{1-N}\sqrt N\\ 0&0&0&0\\ 0&0&0&0\\ \sqrt{1-N}\sqrt N&0&0&(\sqrt N)^2 \end{pmatrix}.​(1−N​)2001−N​N​​0000​0000​1−N​N​00(N​)2​​.

There is no restriction on NNN; real square roots of negative arguments are zero, and no unit-norm condition on vvv is assumed.

QAlgorithms.Papers.Independent.Bridge50.P15.qubitUpper

For arbitrary real η,N\eta,Nη,N, put Xp=diag⁡(1−p,p)X_p=\operatorname{diag}(1-p,p)Xp​=diag(1−p,p) for p∈[0,1]p\in[0,1]p∈[0,1], v0=1−Nv_0=\sqrt{1-N}v0​=1−N​, v1=Nv_1=\sqrt Nv1​=N​, and

K=(10000η1−η00−1−ηη00001)K=\begin{pmatrix} 1&0&0&0\\ 0&\sqrt\eta&\sqrt{1-\eta}&0\\ 0&-\sqrt{1-\eta}&\sqrt\eta&0\\ 0&0&0&1 \end{pmatrix}K=​1000​0η​−1−η​0​01−η​η​0​0001​​

with index order 00,01,10,1100,01,10,1100,01,10,11. Define

(Rp)(b,s),(b′,s′)=vsvs′∑f,a,a′K(b,f),(a,s)(Xp)a,a′K(b′,f),(a′,s′)‾,(Cp)f,f′=∑b,s,a,a′vs2K(b,f),(a,s)(Xp)a,a′K(b,f′),(a′,s)‾,(R_p)_{(b,s),(b',s')}= v_s v_{s'}\sum_{f,a,a'}K_{(b,f),(a,s)}(X_p)_{a,a'} \overline{K_{(b',f),(a',s')}}, \qquad (C_p)_{f,f'}= \sum_{b,s,a,a'}v_s^2K_{(b,f),(a,s)}(X_p)_{a,a'} \overline{K_{(b,f'),(a',s)}},(Rp​)(b,s),(b′,s′)​=vs​vs′​f,a,a′∑​K(b,f),(a,s)​(Xp​)a,a′​K(b′,f),(a′,s′)​​,(Cp​)f,f′​=b,s,a,a′∑​vs2​K(b,f),(a,s)​(Xp​)a,a′​K(b,f′),(a′,s)​​,

where all summation indices range over {0,1}\{0,1\}{0,1}. For each finite index set DDD, write

HD(Z)=1ln⁡2sup⁡S⊆D[Re⁡tr⁡(ZS)ln⁡ ⁣(Re⁡tr⁡(ZS))−Re⁡tr⁡ ⁣(ZSLog⁡cfcZS)]+,H_D(Z)=\frac{1}{\ln2}\sup_{S\subseteq D} \left[ \operatorname{Re}\operatorname{tr}(Z_S) \ln\!\bigl(\operatorname{Re}\operatorname{tr}(Z_S)\bigr) -\operatorname{Re}\operatorname{tr}\!\bigl(Z_S\operatorname{Log}_{\mathrm{cfc}}Z_S\bigr) \right]_+,HD​(Z)=ln21​S⊆Dsup​[Retr(ZS​)ln(Retr(ZS​))−Retr(ZS​Logcfc​ZS​)]+​,

where the empty subset is included, ZSZ_SZS​ is the principal submatrix, [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0) is viewed in [0,∞][0,\infty][0,∞], and Log⁡cfc\operatorname{Log}_{\mathrm{cfc}}Logcfc​ denotes the total continuous functional calculus applied to the real logarithm. This declaration defines

sup⁡p∈[0,1](toReal⁡H{0,1}2(Rp)−toReal⁡H{0,1}(Cp))\sup_{p\in[0,1]} \left(\operatorname{toReal}H_{\{0,1\}^2}(R_p) -\operatorname{toReal}H_{\{0,1\}}(C_p)\right)p∈[0,1]sup​(toRealH{0,1}2​(Rp​)−toRealH{0,1}​(Cp​))

as a real supremum. The endpoints p=0,1p=0,1p=0,1 are included, toReal⁡(+∞)=0\operatorname{toReal}(+\infty)=0toReal(+∞)=0, and there are no parameter-range hypotheses on η,N\eta,Nη,N; negative square-root arguments give 000.

QAlgorithms.Papers.Independent.Bridge50.P15.referenceCoherent

For arbitrary types A,BA,BA,B, any function Φ:CA×A→CB×B\Phi:\mathbb C^{A\times A}\to\mathbb C^{B\times B}Φ:CA×A→CB×B, and any complex matrix XXX on AAA, define a real number as follows. On ℓ2(A;C)\ell^2(A;\mathbb C)ℓ2(A;C), let TXT_XTX​ be a chosen bounded complex-linear operator with coordinate matrix XXX, or zero if none exists, and put Sij=(f(TX)ej)iS_{ij}=(f(T_X)e_j)_iSij​=(f(TX​)ej​)i​, where f(z)=Re⁡zf(z)=\sqrt{\operatorname{Re}z}f(z)=Rez​ and f(TX)f(T_X)f(TX​) uses the total continuous functional calculus. Form

Y(b,a),(c,d)=[Φ ⁣((SiaSjd‾)i,j∈A)]bc,Pbc=∑a∈AY(b,a),(c,a),Qad=∑b∈BY(b,a),(b,d),Y_{(b,a),(c,d)} =\left[\Phi\!\left((S_{ia}\overline{S_{jd}})_{i,j\in A}\right)\right]_{bc}, \qquad P_{bc}=\sum_{a\in A}Y_{(b,a),(c,a)},\qquad Q_{ad}=\sum_{b\in B}Y_{(b,a),(b,d)},Y(b,a),(c,d)​=[Φ((Sia​Sjd​​)i,j∈A​)]bc​,Pbc​=a∈A∑​Y(b,a),(c,a)​,Qad​=b∈B∑​Y(b,a),(b,d)​,

and Z(b,a),(c,d)=PbcQadZ_{(b,a),(c,d)}=P_{bc}Q_{ad}Z(b,a),(c,d)​=Pbc​Qad​. For any complex square matrix MMM, define H(M)\mathcal H(M)H(M) to be the supremum, over all finite principal submatrices MsM_sMs​, of the nonnegative part of

tslog⁡ts−Re⁡tr⁡(Mslog⁡Ms),ts=Re⁡tr⁡Ms.t_s\log t_s-\operatorname{Re}\operatorname{tr}(M_s\log M_s), \qquad t_s=\operatorname{Re}\operatorname{tr}M_s.ts​logts​−Retr(Ms​logMs​),ts​=RetrMs​.

For matrices M,NM,NM,N on the same index type, define D(M,N)\mathcal D(M,N)D(M,N) to be the supremum over finite principal restrictions of the nonnegative part of

Re⁡tr⁡(Mslog⁡Ms−Mslog⁡Ns+Ns−Ms)\operatorname{Re}\operatorname{tr} (M_s\log M_s-M_s\log N_s+N_s-M_s)Retr(Ms​logMs​−Ms​logNs​+Ns​−Ms​)

when ker⁡Ns⊆ker⁡Ms\ker N_s\subseteq\ker M_skerNs​⊆kerMs​, and +∞+\infty+∞ for that restriction otherwise. Matrix logarithms here use the total real continuous functional calculus, and scalar logarithms are natural logarithms with the total convention log⁡0=0\log0=0log0=0. The defined number is

(D(Y,Z)log⁡2)real−(H(X)log⁡2)real,\left(\frac{\mathcal D(Y,Z)}{\log2}\right)_{\mathrm{real}} - \left(\frac{\mathcal H(X)}{\log2}\right)_{\mathrm{real}},(log2D(Y,Z)​)real​−(log2H(X)​)real​,

where each extended nonnegative quantity is separately converted to a real number, with +∞+\infty+∞ converted to zero. All indexed sums are total unordered sums, equal to zero when their families are not summable. No channel, density, positivity, normalization, countability, or summability assumptions are imposed.

QAlgorithms.Papers.Independent.Bridge50.P15.referenceDensity

For any type AAA, including an empty or uncountable type, and any complex matrix X=(Xab)a,b∈AX=(X_{ab})_{a,b\in A}X=(Xab​)a,b∈A​, define a matrix on A×AA\times AA×A as follows. Let H=ℓ2(A;C)H=\ell^2(A;\mathbb C)H=ℓ2(A;C), and let ebe_beb​ be its coordinate vector at bbb. Choose a bounded complex-linear operator T:H→HT:H\to HT:H→H satisfying (Teb)a=Xab(Te_b)_a=X_{ab}(Teb​)a​=Xab​ for all a,ba,ba,b, if such an operator exists; otherwise set T=0T=0T=0. Apply the total continuous functional calculus to TTT with the function z↦Re⁡zz\mapsto\sqrt{\operatorname{Re}z}z↦Rez​, regarded as complex-valued, and write Sab=(f(T)eb)aS_{ab}=(f(T)e_b)_aSab​=(f(T)eb​)a​. The defined matrix is

R(a,b),(c,d)=Sab Scd‾.R_{(a,b),(c,d)}=S_{ab}\,\overline{S_{cd}}.R(a,b),(c,d)​=Sab​Scd​​.

There are no positivity, trace, normalization, or operator-realizability hypotheses on XXX; the real square root is zero on negative inputs.

QAlgorithms.Papers.Independent.Bridge50.P15.singleLetter

For arbitrary types A,BA,BA,B and any function Φ:CA×A→CB×B\Phi:\mathbb C^{A\times A}\to\mathbb C^{B\times B}Φ:CA×A→CB×B, this defines an extended nonnegative number by taking a supremum over matrices ρ\rhoρ satisfying the following conditions: there exist sequences un,vn∈ℓ2(A;C)u_n,v_n\in\ell^2(A;\mathbb C)un​,vn​∈ℓ2(A;C) with ∑n∥un∥∥vn∥<∞\sum_n\|u_n\|\|v_n\|<\infty∑n​∥un​∥∥vn​∥<∞ and ρij=∑nun(i)vn(j)‾\rho_{ij}=\sum_n u_n(i)\overline{v_n(j)}ρij​=∑n​un​(i)vn​(j)​; every finite quadratic form ∑i,j∈szi‾ρijzj\sum_{i,j\in s}\overline{z_i}\rho_{ij}z_j∑i,j∈s​zi​​ρij​zj​ is real and nonnegative; the real diagonal entries are summable with sum one; and H(ρ)/log⁡2<+∞\mathcal H(\rho)/\log2<+\inftyH(ρ)/log2<+∞. Here, for any matrix MMM, H(M)\mathcal H(M)H(M) is the supremum over finite principal restrictions MsM_sMs​ of the nonnegative part of tslog⁡ts−Re⁡tr⁡(Mslog⁡Ms)t_s\log t_s-\operatorname{Re}\operatorname{tr}(M_s\log M_s)ts​logts​−Retr(Ms​logMs​), with ts=Re⁡tr⁡Mst_s=\operatorname{Re}\operatorname{tr}M_sts​=RetrMs​. For each eligible ρ\rhoρ, choose a bounded operator TρT_\rhoTρ​ on ℓ2(A;C)\ell^2(A;\mathbb C)ℓ2(A;C) with coordinate matrix ρ\rhoρ, or zero if none exists, set Sij=(f(Tρ)ej)iS_{ij}=(f(T_\rho)e_j)_iSij​=(f(Tρ​)ej​)i​ using the total continuous functional calculus with f(z)=Re⁡zf(z)=\sqrt{\operatorname{Re}z}f(z)=Rez​, and form

Y(b,a),(c,d)=[Φ ⁣((SiaSjd‾)i,j∈A)]bc,Z(b,a),(c,d)=(∑e∈AY(b,e),(c,e))(∑h∈BY(h,a),(h,d)).Y_{(b,a),(c,d)} =\left[\Phi\!\left((S_{ia}\overline{S_{jd}})_{i,j\in A}\right)\right]_{bc}, \qquad Z_{(b,a),(c,d)} =\left(\sum_{e\in A}Y_{(b,e),(c,e)}\right) \left(\sum_{h\in B}Y_{(h,a),(h,d)}\right).Y(b,a),(c,d)​=[Φ((Sia​Sjd​​)i,j∈A​)]bc​,Z(b,a),(c,d)​=(e∈A∑​Y(b,e),(c,e)​)(h∈B∑​Y(h,a),(h,d)​).

Define D(Y,Z)\mathcal D(Y,Z)D(Y,Z) as the supremum over finite principal restrictions of the nonnegative part of Re⁡tr⁡(Yslog⁡Ys−Yslog⁡Zs+Zs−Ys)\operatorname{Re}\operatorname{tr}(Y_s\log Y_s-Y_s\log Z_s+Z_s-Y_s)Retr(Ys​logYs​−Ys​logZs​+Zs​−Ys​) when ker⁡Zs⊆ker⁡Ys\ker Z_s\subseteq\ker Y_skerZs​⊆kerYs​, and +∞+\infty+∞ otherwise. The value being defined is

sup⁡ρ eligiblemax⁡ ⁣{0, (D(Y,Z)log⁡2)real−(H(ρ)log⁡2)real},\sup_{\rho\ \mathrm{eligible}} \max\!\left\{0,\ \left(\frac{\mathcal D(Y,Z)}{\log2}\right)_{\mathrm{real}} - \left(\frac{\mathcal H(\rho)}{\log2}\right)_{\mathrm{real}} \right\},ρ eligiblesup​max{0, (log2D(Y,Z)​)real​−(log2H(ρ)​)real​},

with the nonnegative real values embedded in [0,+∞][0,+\infty][0,+∞]. Each conversion to a real number sends +∞+\infty+∞ to zero. Matrix logarithms use the total real continuous functional calculus, scalar logarithms are natural with log⁡0=0\log0=0log0=0, and nonsummable unordered sums have value zero. No channel condition on Φ\PhiΦ is required. The supremum over an empty family is zero; in particular, there are no eligible states when AAA is empty.

QAlgorithms.Papers.Independent.Bridge50.P15.swatBound

For arbitrary real η,N\eta,Nη,N, this defines

max⁡{0,  log⁡2 ⁣(η1−η)−log⁡2(N+1)}.\max\left\{0,\; \log_2\!\left(\frac{\eta}{1-\eta}\right)-\log_2(N+1) \right\}.max{0,log2​(1−ηη​)−log2​(N+1)}.

There are no parameter-range hypotheses. Division by zero has value 000; the logarithms use the total real convention log⁡20=0\log_2 0=0log2​0=0 and log⁡2x=ln⁡∣x∣/ln⁡2\log_2 x=\ln|x|/\ln2log2​x=ln∣x∣/ln2 for x≠0x\ne0x=0. Hence η=1\eta=1η=1, N=−1N=-1N=−1, and negative logarithm arguments are included.

QAlgorithms.Papers.Independent.Bridge50.P15.twistedBound

For every pair of real numbers η,N\eta,Nη,N, this defines the real number

max⁡{0,  log⁡2 ⁣(η−N(1−η)(1+N)(1−η))}.\max\left\{0,\; \log_2\!\left( \frac{\eta-N(1-\eta)}{(1+N)(1-\eta)} \right)\right\}.max{0,log2​((1+N)(1−η)η−N(1−η)​)}.

No parameter restrictions are imposed. Division by zero has value 000; the logarithm is the total real logarithm to base 222, with log⁡20=0\log_2 0=0log2​0=0 and log⁡2x=ln⁡∣x∣/ln⁡2\log_2 x=\ln|x|/\ln2log2​x=ln∣x∣/ln2 for x≠0x\ne0x=0, so negative logarithm arguments are included.

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