Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Gaussian quantum discord

Definition
QAlgorithms_Papers_Independent_Advance50_P48

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

prove2quantum

The objects the formalized statements of Gaussian quantum discord (arXiv:1003.3207) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • OneKernel: PDF pp.1--2: one complete oscillator, with no photon cutoff.
  • TwoKernel: PDF pp.1--2: the completed two-oscillator number basis.
  • IsDiscordCovariance: PDF p.2: finite real symmetric covariance with sigma+i Omega/2>=0.
  • weylArg: PDF p.2: exp(i(qx q+px p))=D((-px+i qx)/sqrt(2)).
  • characteristicOne: PDF pp.1--2: actual one-mode Weyl trace; the density precedes D.
  • characteristicTwo: PDF p.2: actual two-mode Weyl trace on trace-class inputs.
  • stateGaussianCharacteristic: PDF p.2: Gaussian characteristic, vacuum covariance I/2.
  • GaussianTwo: PDF p.2: actual Gaussian density and its physical moments; no entropy, spectrum, optimization or Schur-complement identity is an assumption.
  • GaussianSeed: PDF p.2: all centered normalized mixed or pure one-mode Gaussian seeds. Characteristic equality determines the covariance of the actual density.
  • swapOscillators: PDF p.3: exchange physical parties, keeping the measurement convention.
  • oneModeVacuum: PDF p.2: vacuum and the harmless conditional state on zero-Born-law sets.
  • seedEffect: PDF p.2: actual D(z) rho_M D(z)^dagger density, relative to d^2z/pi.
  • unnormalizedConditional: PDF p.2: Tr_B[rho (I tensor E)], with both retained A indices.
  • bornDensity: PDF p.2: actual Born density, not an assumed Gaussian law.
  • posteriorDensity: PDF p.2: normalize the posterior exactly when the Born density is positive.
  • seedLaw: PDF p.2: actual Born outcome measure. Probability normalization is concluded.
  • seedAverage: PDF p.2: integrated independent full-space von Neumann entropy.
  • gaussianConditionalInf: PDF p.2: Gaussian conditional entropy optimized over actual seed densities. Empty infima are infinity, not real zero; finiteness is a conclusion below.
  • gaussianDiscordA: PDF p.2: A-discord means measuring B. Finite real conversion is interpreted on the Gaussian domain, whose entropy finiteness is established below.
  • gaussianClassicalCorrelationA: PDF pp.1--2: Gaussian extractable information from the same independent measurement optimization, retaining A and measuring B.
  • heterodyneEffect: PDF pp.2--3: actual vacuum-seed heterodyne effect; no optimality is built in.
  • heterodyneAverage: PDF pp.2--3: actual heterodyne conditional entropy.
  • NoncovariantMeasurement: PDF pp.2--3: weakly normalized variable-seed POVMs, including their actual weights and reference measure. Normalization tests every finite superposition. This excludes arbitrary independently varying seeds integrated against plain dX dY.
  • variableEffect: PDF p.3: actual weighted POVM density.
  • variableLaw: PDF p.3: actual normalized Born law for a weakly normalized experiment.
  • variableAverage: PDF p.3: outcome-averaged independent von Neumann entropy.
  • halfUnitEntropy: PDF p.2: the entropy function, with Mathlib's 0*log(0)=0 convention.
  • covarianceModeBlock: PDF p.2: covariance block on physical modes i,j.
  • covarianceInvariant: PDF p.2: the four symplectic invariants in their source order.
  • symplecticDiscriminant: PDF p.2: Delta=I1+I2+2I3.
  • symplecticMinus: PDF p.2: the smaller and larger symplectic eigenvalues.
  • symplecticPlus: PDF p.2: the plus branch uses the positive inner square-root sign.
  • gaussianSchurCovariance: PDF p.2: Schur complement; physical B+M is invertible.
  • covarianceInf: PDF p.2, Eq.(1): extended covariance-side infimum over physical seed covariances. The missing determinant in the printed h(sqrt(sigma_P)) is restored.
  • squeezeCoefficient: PDF p.2: two-mode squeeze matrix obtained from exp(tanh(r) a^dagger b^dagger) cosh(r)^(-1-na-nb) exp(-tanh(r) ab). The finite sum is per coefficient, not a photon cutoff.
  • sts: PDF p.2: constructed S(r)(nu(N1) tensor nu(N2))S(r)^dagger on the full oscillator space. Density, Gaussianity and the spectrum are conclusions.
  • squeezingPhotons: PDF p.2: mean photons due to canonical nonnegative squeezing.
  • stsA: PDF p.2: STS covariance parameter a.
  • stsB: PDF p.2: STS covariance parameter b.
  • stsC: PDF p.2: c1=-c2=c>=0, including pure inputs and r=0.
  • stsCovariance: PDF p.2: the covariance constructed from the thermal/squeeze parameters.
  • closedDiscord: PDF p.3, Eq.(2): no extra outer square root on the conditional argument.
  • tracePurity: PDF p.3: actual trace purity Tr(rho^2), not a Gaussian determinant definition.
  • symmetricState: PDF p.3: symmetric STS expressed in physical purity mu and PT eigenvalue t. It is used only when 0<mu<=1, t>0 and 2t sqrt(mu)<=1, or eventually as mu->0+.
  • SymmetricDomain: PDF p.3: physical symmetric purity/PT parameter domain.
  • ptMinus: PDF p.3: smaller symplectic eigenvalue after partial transposition.
  • totalPhotonEnergy: PDF p.3: actual total occupation expectation, allowed to diverge off-domain.
  • teleportationFidelity: PDF p.4: coherent-state teleportation fidelity as a function of the PT symplectic eigenvalue for the symmetric STS family discussed here.
  • infiniteEnergyDiscord: PDF p.3: algebraically simplified fixed-PT infinite-energy limit.
  • dampedArgument: PDF p.4: thermal damping acts on each physical Weyl coordinate.
  • ThermalEvolution: PDF p.4: physical independent thermal-attenuator channel, specified on ALL density characteristic functions. This does not assume its covariance identity or the source's undefined/sign-ambiguous Lindblad L convention.
  • attenuatedCovariance: PDF p.4: full covariance map, including off-standard Gaussian inputs.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P33
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P39
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier18_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P04
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P14
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P30
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P39
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P32

/-!
Giorda--Paris, arXiv:1003.3207v2. Complete oscillator number spaces,
hbar=1, vacuum I/2, interleaved (q_A,p_A,q_B,p_B), entropy in nats.
Discord below is independently defined by actual Born conditional densities.
The unrestricted local-unitary node is deferred; see HARD.md.
Compilation is pending the separate mechanical batch handoff.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P48

open MeasureTheory Filter
open scoped BigOperators ENNReal Topology ComplexOrder
open QAlgorithms.Papers.Independent.Dependency50.P33
  (IsDensity IsTraceClassChannel IsSeparable productCoeff)
open QAlgorithms.Papers.Independent.Dependency50.P39
  (displacementMatrix coherentMeasure coherentCoefficient)
open QAlgorithms.Papers.Independent.Frontier18.P07 (extendedEntropyNats)
open QAlgorithms.Papers.Independent.Frontier30.P04 (modePhase twoModeStandard conditionalCovariance)
open QAlgorithms.Papers.Independent.Frontier30.P14 (partialRight partialLeft)
open QAlgorithms.Papers.Independent.Claimed50.P30 (canonicalOmega)
open QAlgorithms.Papers.Independent.Claimed50.P39 (g thermalProbability)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.1--2: one complete oscillator, with no photon cutoff. -/
abbrev OneKernel := Matrix ℕ ℕ ℂ

/-- PDF pp.1--2: the completed two-oscillator number basis. -/
abbrev TwoKernel := Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ

/-- PDF p.2: finite real symmetric covariance with sigma+i Omega/2>=0. -/
def IsDiscordCovariance {n : ℕ} (V : Matrix (modePhase n) (modePhase n) ℝ) : Prop :=
  V.IsSymm ∧ Matrix.PosSemidef (fun i j => (V i j : ℂ) +
    Complex.I * ((canonicalOmega n i j / 2 : ℝ) : ℂ))

/-- PDF p.2: exp(i(qx q+px p))=D((-px+i qx)/sqrt(2)). -/
def weylArg (qx px : ℝ) : ℂ := (-(px : ℂ) + Complex.I * (qx : ℂ)) / (Real.sqrt 2 : ℂ)

/-- PDF pp.1--2: actual one-mode Weyl trace; the density precedes D. -/
def characteristicOne (rho : OneKernel) (x : modePhase 1 → ℝ) : ℂ :=
  ∑' m, ∑' n, rho m n * displacementMatrix (weylArg (x (0,0)) (x (0,1))) n m

/-- PDF p.2: actual two-mode Weyl trace on trace-class inputs. -/
def characteristicTwo (rho : TwoKernel) (x : modePhase 2 → ℝ) : ℂ :=
  ∑' m : ℕ × ℕ, ∑' n : ℕ × ℕ, rho m n *
    displacementMatrix (weylArg (x (0,0)) (x (0,1))) n.1 m.1 *
    displacementMatrix (weylArg (x (1,0)) (x (1,1))) n.2 m.2

/-- PDF p.2: Gaussian characteristic, vacuum covariance I/2. -/
def stateGaussianCharacteristic {n : ℕ} (d : modePhase n → ℝ)
    (V : Matrix (modePhase n) (modePhase n) ℝ) (x : modePhase n → ℝ) : ℂ :=
  Complex.exp (((-(∑ i, ∑ j, x i * V i j * x j) / 2 : ℝ) : ℂ) +
    Complex.I * ((∑ i, d i * x i : ℝ) : ℂ))

/-- PDF p.2: actual Gaussian density and its physical moments; no entropy,
spectrum, optimization or Schur-complement identity is an assumption. -/
def GaussianTwo (rho : TwoKernel) (d : modePhase 2 → ℝ)
    (V : Matrix (modePhase 2) (modePhase 2) ℝ) : Prop :=
  IsDensity rho ∧ IsDiscordCovariance V ∧ ∀ x,
    characteristicTwo rho x = stateGaussianCharacteristic d V x

/-- PDF p.2: all centered normalized mixed or pure one-mode Gaussian seeds.
Characteristic equality determines the covariance of the actual density. -/
structure GaussianSeed where
  density : OneKernel
  covariance : Matrix (modePhase 1) (modePhase 1) ℝ
  normalized : IsDensity density
  physical : IsDiscordCovariance covariance
  characteristic : ∀ x, characteristicOne density x =
    stateGaussianCharacteristic 0 covariance x

/-- Coordinate Borel structure, with physical seeds a measurable subspace.
It does not declare all functions of a seed measurable. -/
instance seedMeasurableSpace : MeasurableSpace GaussianSeed :=
  MeasurableSpace.comap (fun s : GaussianSeed => (s.density, s.covariance))
    ((borel OneKernel).prod (borel (Matrix (modePhase 1) (modePhase 1) ℝ)))

/-- PDF p.3: exchange physical parties, keeping the measurement convention. -/
def swapOscillators (rho : TwoKernel) : TwoKernel := fun m n => rho (m.2,m.1) (n.2,n.1)

/-- PDF p.2: vacuum and the harmless conditional state on zero-Born-law sets. -/
def oneModeVacuum : OneKernel := fun m n =>
  QAlgorithms.Papers.Independent.Next46.P32.vacuum 1 (fun _ => m) (fun _ => n)

/-- PDF p.2: actual D(z) rho_M D(z)^dagger density, relative to d^2z/pi. -/
def seedEffect (s : GaussianSeed) (z : ℂ) : OneKernel := fun m n =>
  ∑' u, ∑' v, displacementMatrix z m u * s.density u v *
    star (displacementMatrix z n v)

/-- PDF p.2: Tr_B[rho (I tensor E)], with both retained A indices. -/
def unnormalizedConditional (rho : TwoKernel) (E : OneKernel) : OneKernel :=
  fun m n => ∑' u, ∑' v, rho (m,u) (n,v) * E v u

/-- PDF p.2: actual Born density, not an assumed Gaussian law. -/
def bornDensity (rho : TwoKernel) (E : OneKernel) : ℝ :=
  (∑' m, unnormalizedConditional rho E m m).re

/-- PDF p.2: normalize the posterior exactly when the Born density is positive. -/
def posteriorDensity (rho : TwoKernel) (E : OneKernel) : OneKernel :=
  if 0 < bornDensity rho E then ((bornDensity rho E)⁻¹ : ℂ) • unnormalizedConditional rho E else oneModeVacuum

/-- PDF p.2: actual Born outcome measure. Probability normalization is concluded. -/
def seedLaw (rho : TwoKernel) (s : GaussianSeed) : Measure ℂ :=
  coherentMeasure.withDensity (fun z => ENNReal.ofReal (bornDensity rho (seedEffect s z)))

/-- PDF p.2: integrated independent full-space von Neumann entropy. -/
def seedAverage (rho : TwoKernel) (s : GaussianSeed) : ℝ≥0∞ :=
  ∫⁻ z, extendedEntropyNats (posteriorDensity rho (seedEffect s z)) ∂seedLaw rho s

/-- PDF p.2: Gaussian conditional entropy optimized over actual seed densities.
Empty infima are infinity, not real zero; finiteness is a conclusion below. -/
def gaussianConditionalInf (rho : TwoKernel) : ℝ≥0∞ := ⨅ s : GaussianSeed, seedAverage rho s

/-- PDF p.2: A-discord means measuring B. Finite real conversion is interpreted
on the Gaussian domain, whose entropy finiteness is established below. -/
def gaussianDiscordA (rho : TwoKernel) : ℝ :=
  (extendedEntropyNats (partialLeft rho)).toReal - (extendedEntropyNats rho).toReal +
    (gaussianConditionalInf rho).toReal

/-- PDF pp.1--2: Gaussian extractable information from the same independent
measurement optimization, retaining A and measuring B. -/
def gaussianClassicalCorrelationA (rho : TwoKernel) : ℝ :=
  (extendedEntropyNats (partialRight rho)).toReal - (gaussianConditionalInf rho).toReal

/-- PDF pp.2--3: actual vacuum-seed heterodyne effect; no optimality is built in. -/
def heterodyneEffect (z : ℂ) : OneKernel := fun m n =>
  coherentCoefficient z m * star (coherentCoefficient z n)

/-- PDF pp.2--3: actual heterodyne conditional entropy. -/
def heterodyneAverage (rho : TwoKernel) : ℝ≥0∞ :=
  ∫⁻ z, ENNReal.ofReal (bornDensity rho (heterodyneEffect z)) *
    extendedEntropyNats (posteriorDensity rho (heterodyneEffect z)) ∂coherentMeasure

/-- PDF pp.2--3: weakly normalized variable-seed POVMs, including their actual
weights and reference measure. Normalization tests every finite superposition.
This excludes arbitrary independently varying seeds integrated against plain dX dY. -/
structure NoncovariantMeasurement where
  outcomeMeasure : Measure (ℂ × GaussianSeed)
  weight : ℂ × GaussianSeed → ℝ
  weight_measurable : Measurable weight
  weight_nonnegative : ∀ z, 0 ≤ weight z
  weak_normalization : ∀ (F : Finset ℕ) (u : ℕ → ℂ),
    Integrable (fun z => (weight z : ℂ) *
      (∑ m ∈ F, ∑ n ∈ F, star (u m) * seedEffect z.2 z.1 m n * u n)) outcomeMeasure ∧
    (∫ z, (weight z : ℂ) *
      (∑ m ∈ F, ∑ n ∈ F, star (u m) * seedEffect z.2 z.1 m n * u n) ∂outcomeMeasure) =
      ∑ m ∈ F, star (u m) * u m

/-- PDF p.3: actual weighted POVM density. -/
def variableEffect (M : NoncovariantMeasurement) (z : ℂ × GaussianSeed) : OneKernel :=
  (M.weight z : ℂ) • seedEffect z.2 z.1

/-- PDF p.3: actual normalized Born law for a weakly normalized experiment. -/
def variableLaw (rho : TwoKernel) (M : NoncovariantMeasurement) : Measure (ℂ × GaussianSeed) :=
  M.outcomeMeasure.withDensity (fun z => ENNReal.ofReal (bornDensity rho (variableEffect M z)))

/-- PDF p.3: outcome-averaged independent von Neumann entropy. -/
def variableAverage (rho : TwoKernel) (M : NoncovariantMeasurement) : ℝ≥0∞ :=
  ∫⁻ z, extendedEntropyNats (posteriorDensity rho (variableEffect M z)) ∂variableLaw rho M

/-- PDF p.2: the entropy function, with Mathlib's 0*log(0)=0 convention. -/
def halfUnitEntropy (x : ℝ) : ℝ := g (x - 1/2)

/-- PDF p.2: covariance block on physical modes i,j. -/
def covarianceModeBlock (V : Matrix (modePhase 2) (modePhase 2) ℝ) (i j : Fin 2) : Matrix (modePhase 1) (modePhase 1) ℝ :=
  fun k l => V (i,k.2) (j,l.2)

/-- PDF p.2: the four symplectic invariants in their source order. -/
def covarianceInvariant (V : Matrix (modePhase 2) (modePhase 2) ℝ) (k : Fin 4) : ℝ :=
  if k = 0 then (covarianceModeBlock V 0 0).det else if k = 1 then (covarianceModeBlock V 1 1).det
  else if k = 2 then (covarianceModeBlock V 0 1).det else V.det

/-- PDF p.2: Delta=I1+I2+2I3. -/
def symplecticDiscriminant (V : Matrix (modePhase 2) (modePhase 2) ℝ) : ℝ :=
  covarianceInvariant V 0 + covarianceInvariant V 1 + 2 * covarianceInvariant V 2

/-- PDF p.2: the smaller and larger symplectic eigenvalues. -/
def symplecticMinus (V : Matrix (modePhase 2) (modePhase 2) ℝ) : ℝ :=
  Real.sqrt ((symplecticDiscriminant V - Real.sqrt ((symplecticDiscriminant V)^2 - 4 * covarianceInvariant V 3)) / 2)

/-- PDF p.2: the plus branch uses the positive inner square-root sign. -/
def symplecticPlus (V : Matrix (modePhase 2) (modePhase 2) ℝ) : ℝ :=
  Real.sqrt ((symplecticDiscriminant V + Real.sqrt ((symplecticDiscriminant V)^2 - 4 * covarianceInvariant V 3)) / 2)

/-- PDF p.2: Schur complement; physical B+M is invertible. -/
def gaussianSchurCovariance (V : Matrix (modePhase 2) (modePhase 2) ℝ)
    (M : Matrix (modePhase 1) (modePhase 1) ℝ) : Matrix (modePhase 1) (modePhase 1) ℝ :=
  conditionalCovariance (covarianceModeBlock V 0 0) (covarianceModeBlock V 1 1)
    (covarianceModeBlock V 0 1) M

/-- PDF p.2, Eq.(1): extended covariance-side infimum over physical seed
covariances. The missing determinant in the printed h(sqrt(sigma_P)) is restored. -/
def covarianceInf (V : Matrix (modePhase 2) (modePhase 2) ℝ) : ℝ≥0∞ :=
  ⨅ M : {M : Matrix (modePhase 1) (modePhase 1) ℝ // IsDiscordCovariance M},
    ENNReal.ofReal (halfUnitEntropy (Real.sqrt ((gaussianSchurCovariance V M.val).det)))

/-- PDF p.2: two-mode squeeze matrix obtained from
exp(tanh(r) a^dagger b^dagger) cosh(r)^(-1-na-nb) exp(-tanh(r) ab).
The finite sum is per coefficient, not a photon cutoff. -/
def squeezeCoefficient (r : ℝ) (out inp : ℕ × ℕ) : ℝ :=
  Real.sqrt ((Nat.factorial out.1 : ℝ) * (Nat.factorial out.2 : ℝ) *
    (Nat.factorial inp.1 : ℝ) * (Nat.factorial inp.2 : ℝ)) *
  ∑ j ∈ Finset.range (min inp.1 inp.2 + 1),
    if inp.1 - j ≤ out.1 ∧ inp.2 - j ≤ out.2 ∧
      out.1 - (inp.1 - j) = out.2 - (inp.2 - j) then
      (-Real.tanh r)^j * (Real.tanh r)^(out.1 - (inp.1 - j)) /
        ((Nat.factorial j : ℝ) * (Nat.factorial (out.1 - (inp.1 - j)) : ℝ) *
          (Nat.factorial (inp.1 - j) : ℝ) * (Nat.factorial (inp.2 - j) : ℝ) *
          (Real.cosh r)^(inp.1 + inp.2 - 2*j + 1))
    else 0

/-- PDF p.2: constructed S(r)(nu(N1) tensor nu(N2))S(r)^dagger on the full
oscillator space. Density, Gaussianity and the spectrum are conclusions. -/
def sts (N1 N2 r : ℝ) : TwoKernel := fun m n =>
  ∑' k : ℕ × ℕ, ((thermalProbability N1 k.1 * thermalProbability N2 k.2 *
    squeezeCoefficient r m k * squeezeCoefficient r n k : ℝ) : ℂ)

/-- PDF p.2: mean photons due to canonical nonnegative squeezing. -/
def squeezingPhotons (r : ℝ) : ℝ := (Real.sinh r)^2

/-- PDF p.2: STS covariance parameter a. -/
def stsA (N1 N2 r : ℝ) : ℝ :=
  squeezingPhotons r + 1/2 + N1 * (1 + squeezingPhotons r) + N2 * squeezingPhotons r

/-- PDF p.2: STS covariance parameter b. -/
def stsB (N1 N2 r : ℝ) : ℝ := stsA N2 N1 r

/-- PDF p.2: c1=-c2=c>=0, including pure inputs and r=0. -/
def stsC (N1 N2 r : ℝ) : ℝ :=
  (1 + N1 + N2) * Real.sqrt (squeezingPhotons r * (1 + squeezingPhotons r))

/-- PDF p.2: the covariance constructed from the thermal/squeeze parameters. -/
def stsCovariance (N1 N2 r : ℝ) : Matrix (modePhase 2) (modePhase 2) ℝ :=
  twoModeStandard (stsA N1 N2 r) (stsB N1 N2 r) (stsC N1 N2 r) (-stsC N1 N2 r)

/-- PDF p.3, Eq.(2): no extra outer square root on the conditional argument. -/
def closedDiscord (V : Matrix (modePhase 2) (modePhase 2) ℝ) : ℝ :=
  halfUnitEntropy (Real.sqrt (covarianceInvariant V 1)) - halfUnitEntropy (symplecticMinus V) - halfUnitEntropy (symplecticPlus V) +
    halfUnitEntropy ((Real.sqrt (covarianceInvariant V 0) +
      2 * Real.sqrt (covarianceInvariant V 0 * covarianceInvariant V 1) + 2 * covarianceInvariant V 2) /
        (1 + 2 * Real.sqrt (covarianceInvariant V 1)))

/-- PDF p.3: actual trace purity Tr(rho^2), not a Gaussian determinant definition. -/
def tracePurity (rho : TwoKernel) : ℝ :=
  (∑' m : ℕ × ℕ, ∑' n : ℕ × ℕ, rho m n * rho n m).re

/-- PDF p.3: symmetric STS expressed in physical purity mu and PT eigenvalue t.
It is used only when 0<mu<=1, t>0 and 2t sqrt(mu)<=1, or eventually as mu->0+. -/
def symmetricState (mu t : ℝ) : TwoKernel :=
  sts ((1 / Real.sqrt mu - 1) / 2) ((1 / Real.sqrt mu - 1) / 2)
    (Real.log (1 / (2 * t * Real.sqrt mu)) / 2)

/-- PDF p.3: physical symmetric purity/PT parameter domain. -/
def SymmetricDomain (mu t : ℝ) : Prop :=
  0 < mu ∧ mu ≤ 1 ∧ 0 < t ∧ 2 * t * Real.sqrt mu ≤ 1

/-- PDF p.3: smaller symplectic eigenvalue after partial transposition. -/
def ptMinus (V : Matrix (modePhase 2) (modePhase 2) ℝ) : ℝ :=
  let D := covarianceInvariant V 0 + covarianceInvariant V 1 - 2 * covarianceInvariant V 2
  Real.sqrt ((D - Real.sqrt (D^2 - 4 * covarianceInvariant V 3)) / 2)

/-- PDF p.3: actual total occupation expectation, allowed to diverge off-domain. -/
def totalPhotonEnergy (rho : TwoKernel) : ℝ≥0∞ :=
  ∑' m : ℕ × ℕ, ENNReal.ofReal (((m.1 : ℝ) + (m.2 : ℝ)) * (rho m m).re)

/-- PDF p.4: coherent-state teleportation fidelity as a function of the PT
symplectic eigenvalue for the symmetric STS family discussed here. -/
def teleportationFidelity (t : ℝ) : ℝ := 1 / (1 + 2*t)

/-- PDF p.3: algebraically simplified fixed-PT infinite-energy limit. -/
def infiniteEnergyDiscord (t : ℝ) : ℝ := (1 + 2*t) * Real.log ((1 + 2*t) / (2*t)) - 1

/-- PDF p.4: thermal damping acts on each physical Weyl coordinate. -/
def dampedArgument (g1 g2 t : ℝ) (x : modePhase 2 → ℝ) : modePhase 2 → ℝ :=
  fun i => Real.exp (-(if i.1 = 0 then g1 else g2) * t / 2) * x i

/-- PDF p.4: physical independent thermal-attenuator channel, specified on ALL
density characteristic functions. This does not assume its covariance identity
or the source's undefined/sign-ambiguous Lindblad L convention. -/
def ThermalEvolution (Phi : TwoKernel → TwoKernel) (g1 g2 M1 M2 t : ℝ) : Prop :=
  IsTraceClassChannel Phi ∧ ∀ rho, IsDensity rho → ∀ x,
    characteristicTwo (Phi rho) x = characteristicTwo rho (dampedArgument g1 g2 t x) *
      Complex.exp (((-(∑ i : modePhase 2,
        (1 - Real.exp (-(if i.1 = 0 then g1 else g2) * t)) *
          ((if i.1 = 0 then M1 else M2) + 1/2) * (x i)^2) / 2 : ℝ) : ℂ))

/-- PDF p.4: full covariance map, including off-standard Gaussian inputs. -/
def attenuatedCovariance (V : Matrix (modePhase 2) (modePhase 2) ℝ)
    (g1 g2 M1 M2 t : ℝ) : Matrix (modePhase 2) (modePhase 2) ℝ := fun i j =>
  Real.exp (-(if i.1 = 0 then g1 else g2) * t / 2) * V i j *
    Real.exp (-(if j.1 = 0 then g1 else g2) * t / 2) +
    if i = j then (1 - Real.exp (-(if i.1 = 0 then g1 else g2) * t)) *
      ((if i.1 = 0 then M1 else M2) + 1/2) else 0

/-! Reuse audit: modePhase is the accepted interleaved index. canonicalOmega
is its unit CCR form; the imported paper's hbar=2 physicality is not reused.
partialRight/partialLeft are full trace-class partial traces. twoModeStandard
is the interleaved covariance array; conditionalCovariance is the generic Schur
operation. thermalProbability uses mean N; halfUnitEntropy adapts the accepted
occupation entropy g by N=x-1/2. oneModeVacuum reindexes the accepted Fock vacuum
to N labels. Distinct local concepts and name collisions are documented in
ASSESSMENT.json and MODERATION_NOTES.md. -/

/-! Sanity examples pin conventions and total-function boundaries. -/

example : canonicalOmega 2 (0,0) (0,1) = 1 := by simp [canonicalOmega]

example : weylArg 0 0 = 0 := by simp [weylArg]

example : oneModeVacuum 0 0 = 1 := by
  simp [oneModeVacuum, QAlgorithms.Papers.Independent.Next46.P32.vacuum]
  rfl

example (rho : TwoKernel) : swapOscillators (swapOscillators rho) = rho := rfl

example (rho : TwoKernel) (E : OneKernel) (hp : ¬ 0 < bornDensity rho E) :
    posteriorDensity rho E = oneModeVacuum := by simp [posteriorDensity, hp]

example : halfUnitEntropy (1/2) = 0 := by norm_num [halfUnitEntropy, g]

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

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

example : squeezingPhotons 0 = 0 := by simp [squeezingPhotons]

example : stsA 0 0 0 = 1/2 := by norm_num [stsA, squeezingPhotons]

example : stsC 0 0 0 = 0 := by norm_num [stsC, squeezingPhotons]

example : twoModeStandard (1/2) (1/2) 0 0 (0,0) (1,1) = 0 := by simp [twoModeStandard]

example (V : Matrix (modePhase 2) (modePhase 2) ℝ) : covarianceInvariant V 3 = V.det := by simp [covarianceInvariant]

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

example (x : modePhase 2 → ℝ) : dampedArgument 0 0 0 x = x := by
  funext i
  simp [dampedArgument]

/-! Source statements; every result is deliberately unproved. -/

end QAlgorithms.Papers.Independent.Advance50.P48
Source
Gaussian quantum discord, arXiv:1003.3207v2, https://arxiv.org/abs/1003.3207v2
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P48.GaussianSeed

A seed consists of a complex kernel ρ\rhoρ indexed by N\mathbb NN and a real matrix VVV indexed by Q1={0}×{0,1}Q_1=\{0\}\times\{0,1\}Q1​={0}×{0,1}, together with the following conditions: there exist ur,vr∈ℓ2(N;C)u_r,v_r\in\ell^2(\mathbb N;\mathbb C)ur​,vr​∈ℓ2(N;C) such that ∑r∥ur∥∥vr∥\sum_r\|u_r\|\|v_r\|∑r​∥ur​∥∥vr​∥ is summable and ρmn=∑rur(m)vr(n)‾\rho_{mn}=\sum_r u_r(m)\overline{v_r(n)}ρmn​=∑r​ur​(m)vr​(n)​ for every m,nm,nm,n; every finite quadratic form ∑m,n∈Fwm‾ρmnwn\sum_{m,n\in F}\overline{w_m}\rho_{mn}w_n∑m,n∈F​wm​​ρmn​wn​, for finite F⊆NF\subseteq\mathbb NF⊆N and arbitrary w:N→Cw:\mathbb N\to\mathbb Cw:N→C, is real and nonnegative; (Re⁡ρmm)m(\operatorname{Re}\rho_{mm})_m(Reρmm​)m​ is summable with sum 111; VT=VV^{\mathsf T}=VVT=V and V+i2Ω1V+\frac{i}{2}\Omega_1V+2i​Ω1​ is positive semidefinite, where Ω1\Omega_1Ω1​ has off-diagonal entries 1,−11,-11,−1 in coordinate order (0,0),(0,1)(0,0),(0,1)(0,0),(0,1) and zero diagonal; and, for every real array x:Q1→Rx:Q_1\to\mathbb Rx:Q1​→R,

∑m(∑nρmnDnm(z))=exp⁡ ⁣(−12∑i,j∈Q1xiVijxj),z=−x(0,1)+ix(0,0)2,\sum_m\left(\sum_n\rho_{mn}D_{nm}(z)\right) =\exp\!\left(-\frac12\sum_{i,j\in Q_1}x_iV_{ij}x_j\right), \qquad z=\frac{-x_{(0,1)}+ix_{(0,0)}}{\sqrt2},m∑​(n∑​ρmn​Dnm​(z))=exp​−21​i,j∈Q1​∑​xi​Vij​xj​​,z=2​−x(0,1)​+ix(0,0)​​,

with

Dab(z)=e−∣z∣2/2a! b!∑j=0min⁡(a,b)za−j(−z‾)b−jj! (a−j)! (b−j)!.D_{ab}(z)=e^{-|z|^2/2}\sqrt{a!\,b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\overline z)^{b-j}}{j!\,(a-j)!\,(b-j)!}.Dab​(z)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−z)b−j​.

The infinite sums are totalized, with no separate characteristic-series summability requirement.

QAlgorithms.Papers.Independent.Advance50.P48.GaussianTwo

For an arbitrary complex kernel ρ\rhoρ indexed by N2\mathbb N^2N2, a real array d:Q2→Rd:Q_2\to\mathbb Rd:Q2​→R, and a real matrix VVV indexed by Q2={0,1}×{0,1}Q_2=\{0,1\}\times\{0,1\}Q2​={0,1}×{0,1}, this predicate requires all of the following: there exist sequences ur,vr∈ℓ2(N2;C)u_r,v_r\in\ell^2(\mathbb N^2;\mathbb C)ur​,vr​∈ℓ2(N2;C) with ∑r∥ur∥∥vr∥\sum_r\|u_r\|\|v_r\|∑r​∥ur​∥∥vr​∥ summable and ρab=∑rur(a)vr(b)‾\rho_{ab}=\sum_r u_r(a)\overline{v_r(b)}ρab​=∑r​ur​(a)vr​(b)​ for every a,b∈N2a,b\in\mathbb N^2a,b∈N2; for every finite F⊆N2F\subseteq\mathbb N^2F⊆N2 and every w:N2→Cw:\mathbb N^2\to\mathbb Cw:N2→C, the number ∑a,b∈Fwa‾ρabwb\sum_{a,b\in F}\overline{w_a}\rho_{ab}w_b∑a,b∈F​wa​​ρab​wb​ is real and nonnegative; the real diagonal family (Re⁡ρaa)a(\operatorname{Re}\rho_{aa})_a(Reρaa​)a​ is summable with sum 111; VT=VV^{\mathsf T}=VVT=V and V+i2Ω2V+\frac{i}{2}\Omega_2V+2i​Ω2​ is positive semidefinite, where Ω2\Omega_2Ω2​ has entries 111 at ((k,0),(k,1))((k,0),(k,1))((k,0),(k,1)), −1-1−1 at the reversed positions, and zero elsewhere; and, for every real array x:Q2→Rx:Q_2\to\mathbb Rx:Q2​→R,

∑a∈N2(∑b∈N2ρabDb1a1(z0)Db2a2(z1))=exp⁡ ⁣(−12∑i,j∈Q2xiVijxj+i∑i∈Q2dixi),\sum_{a\in\mathbb N^2}\left(\sum_{b\in\mathbb N^2} \rho_{ab}D_{b_1a_1}(z_0)D_{b_2a_2}(z_1)\right) =\exp\!\left(-\frac12\sum_{i,j\in Q_2}x_iV_{ij}x_j+i\sum_{i\in Q_2}d_ix_i\right),a∈N2∑​(b∈N2∑​ρab​Db1​a1​​(z0​)Db2​a2​​(z1​))=exp​−21​i,j∈Q2​∑​xi​Vij​xj​+ii∈Q2​∑​di​xi​​,

where zk=(−x(k,1)+ix(k,0))/2z_k=(-x_{(k,1)}+ix_{(k,0)})/\sqrt2zk​=(−x(k,1)​+ix(k,0)​)/2​ and

Dmn(z)=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!.D_{mn}(z)=e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}}{j!\,(m-j)!\,(n-j)!}.Dmn​(z)=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​.

The nested characteristic sums use totalized infinite sums; their summability is not a separate clause of the predicate.

QAlgorithms.Papers.Independent.Advance50.P48.IsDiscordCovariance

For any natural number nnn, let Qn={0,…,n−1}×{0,1}Q_n=\{0,\ldots,n-1\}\times\{0,1\}Qn​={0,…,n−1}×{0,1}. A real matrix VVV indexed by QnQ_nQn​ satisfies this predicate exactly when VT=VV^{\mathsf T}=VVT=V and the complex matrix V+i2ΩnV+\frac{i}{2}\Omega_nV+2i​Ωn​ is positive semidefinite, where Ωn\Omega_nΩn​ has entries 111 at ((k,0),(k,1))((k,0),(k,1))((k,0),(k,1)), −1-1−1 at ((k,1),(k,0))((k,1),(k,0))((k,1),(k,0)), and zero elsewhere. Positive definiteness of VVV is not separately required. The definition includes n=0n=0n=0, when the index set is empty and these conditions hold for the unique empty matrix.

QAlgorithms.Papers.Independent.Advance50.P48.NoncovariantMeasurement

This structure consists of an arbitrary measure μ\muμ on C×S\mathbb C\times\mathcal SC×S, where S\mathcal SS is the Gaussian-seed space, together with a measurable function w:C×S→Rw:\mathbb C\times\mathcal S\to\mathbb Rw:C×S→R satisfying w(z,s)≥0w(z,s)\ge0w(z,s)≥0 everywhere, and the requirement that for every finite F⊆NF\subseteq\mathbb NF⊆N, including F=∅F=\varnothingF=∅, and every function u:N→Cu:\mathbb N\to\mathbb Cu:N→C, the complex-valued function

(z,s)⟼w(z,s)∑m,n∈Fu(m)‾ Es,z(m,n) u(n)(z,s)\longmapsto w(z,s)\sum_{m,n\in F}\overline{u(m)}\,E_{s,z}(m,n)\,u(n)(z,s)⟼w(z,s)m,n∈F∑​u(m)​Es,z​(m,n)u(n)

is integrable with respect to μ\muμ and satisfies

∫C×Sw(z,s)∑m,n∈Fu(m)‾Es,z(m,n)u(n) dμ(z,s)=∑m∈Fu(m)‾u(m).\int_{\mathbb C\times\mathcal S} w(z,s)\sum_{m,n\in F}\overline{u(m)}E_{s,z}(m,n)u(n)\,d\mu(z,s) =\sum_{m\in F}\overline{u(m)}u(m).∫C×S​w(z,s)m,n∈F∑​u(m)​Es,z​(m,n)u(n)dμ(z,s)=m∈F∑​u(m)​u(m).

Here

Es,z(m,n)=∑a≥0∑b≥0Dz(m,a)Rs(a,b)Dz(n,b)‾,Dz(a,b)=e−∣z∣2/2a!b!∑j=0min⁡(a,b)za−j(−zˉ)b−jj!(a−j)!(b−j)!.E_{s,z}(m,n)=\sum_{a\ge0}\sum_{b\ge0} D_z(m,a)R_s(a,b)\overline{D_z(n,b)},\qquad D_z(a,b)=e^{-|z|^2/2}\sqrt{a!b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\bar z)^{b-j}}{j!(a-j)!(b-j)!}.Es,z​(m,n)=a≥0∑​b≥0∑​Dz​(m,a)Rs​(a,b)Dz​(n,b)​,Dz​(a,b)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−zˉ)b−j​.

A seed s=(Rs,Vs)s=(R_s,V_s)s=(Rs​,Vs​) requires a representation Rs(a,b)=∑rxr(a)yr(b)‾R_s(a,b)=\sum_r x_r(a)\overline{y_r(b)}Rs​(a,b)=∑r​xr​(a)yr​(b)​ with xr,yr∈ℓ2(N;C)x_r,y_r\in\ell^2(\mathbb N;\mathbb C)xr​,yr​∈ℓ2(N;C) and ∑r∥xr∥∥yr∥<∞\sum_r\|x_r\|\|y_r\|<\infty∑r​∥xr​∥∥yr​∥<∞, real nonnegative finite quadratic forms of RsR_sRs​, a summable real diagonal of sum 111, symmetry of the real 2×22\times22×2 matrix VsV_sVs​, positive semidefiniteness of Vs+i2(01−10)V_s+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}Vs​+2i​(0−1​10​), and

∑a≥0∑b≥0Rs(a,b)D(−p+iq)/2(b,a)=e−(q,p)Vs(q,p)T/2(q,p∈R).\sum_{a\ge0}\sum_{b\ge0}R_s(a,b)D_{(-p+iq)/\sqrt2}(b,a) =e^{-(q,p)V_s(q,p)^{\mathsf T}/2} \quad(q,p\in\mathbb R).a≥0∑​b≥0∑​Rs​(a,b)D(−p+iq)/2​​(b,a)=e−(q,p)Vs​(q,p)T/2(q,p∈R).

The measurable structure on S\mathcal SS is induced by s↦(Rs,Vs)s\mapsto(R_s,V_s)s↦(Rs​,Vs​) from the product Borel structures on the array and covariance spaces, and the outcome space uses the corresponding product measurable structure. No probability, finiteness, or sigma-finiteness condition is placed on μ\muμ, and uuu need not be square-summable because only its values on FFF occur. The infinite complex sums are nested as displayed and have value 000 when nonsummable.

QAlgorithms.Papers.Independent.Advance50.P48.OneKernel

A one-mode kernel is an arbitrary complex matrix indexed by two natural numbers, equivalently a function ρ:N×N→C\rho:\mathbb N\times\mathbb N\to\mathbb Cρ:N×N→C. No positivity, normalization, boundedness, or summability condition is imposed.

QAlgorithms.Papers.Independent.Advance50.P48.SymmetricDomain

For arbitrary real numbers μ,t\mu,tμ,t, this predicate holds exactly when all four inequalities

0<μ,μ≤1,0<t,2tμ≤10<\mu,\qquad \mu\le1,\qquad 0<t,\qquad 2t\sqrt\mu\le10<μ,μ≤1,0<t,2tμ​≤1

hold. Thus both lower bounds are strict, while equality is permitted in the two upper bounds.

QAlgorithms.Papers.Independent.Advance50.P48.ThermalEvolution

For an arbitrary function Φ\PhiΦ from complex kernels on N2×N2\mathbb N^2\times\mathbb N^2N2×N2 to kernels of the same kind, and arbitrary real g1,g2,M1,M2,tg_1,g_2,M_1,M_2,tg1​,g2​,M1​,M2​,t, this defines a proposition as follows. For any countable label set III, call a kernel XXX nuclear if there are sequences uj,vj∈ℓ2(I;C)u_j,v_j\in\ell^2(I;\mathbb C)uj​,vj​∈ℓ2(I;C) with ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞ and Xab=∑juj(a)vj(b)‾X_{ab}=\sum_j u_j(a)\overline{v_j(b)}Xab​=∑j​uj​(a)vj​(b)​; call it a density kernel if it is nuclear, every finite quadratic form ∑a,b∈Fza‾Xabzb\sum_{a,b\in F}\overline{z_a}X_{ab}z_b∑a,b∈F​za​​Xab​zb​ is real and nonnegative, its real diagonal is summable, and ∑aRe⁡Xaa=1\sum_a\operatorname{Re}X_{aa}=1∑a​ReXaa​=1. The proposition requires that Φ\PhiΦ preserve nuclear kernels, be additive and complex homogeneous on nuclear inputs, and, for every integer k≥0k\ge0k≥0, send every density kernel RRR on N2×{0,…,k−1}\mathbb N^2\times\{0,\ldots,k-1\}N2×{0,…,k−1} to a density kernel under the coefficientwise extension

(Φ⊗id)(R)(u,r),(v,s)=Φ ⁣((R(a,r),(b,s))a,b∈N2)u,v.(\Phi\otimes\mathrm{id})(R)_{(u,r),(v,s)} =\Phi\!\left((R_{(a,r),(b,s)})_{a,b\in\mathbb N^2}\right)_{u,v}.(Φ⊗id)(R)(u,r),(v,s)​=Φ((R(a,r),(b,s)​)a,b∈N2​)u,v​.

The k=0k=0k=0 condition has no density inputs and is vacuous. In addition, for every density kernel ρ\rhoρ on N2\mathbb N^2N2 and every x∈R{0,1}×{0,1}x\in\mathbb R^{\{0,1\}\times\{0,1\}}x∈R{0,1}×{0,1}, it requires

χΦ(ρ)(x)=χρ(Dx)exp⁡ ⁣[−12∑a,b=01(1−e−γat)(μa+12)x(a,b)2],(Dx)(a,b)=e−γat/2x(a,b),\chi_{\Phi(\rho)}(x) =\chi_\rho(\mathcal D x) \exp\!\left[-\frac12\sum_{a,b=0}^1 (1-e^{-\gamma_a t})(\mu_a+\tfrac12)x_{(a,b)}^2\right], \quad (\mathcal D x)_{(a,b)}=e^{-\gamma_a t/2}x_{(a,b)},χΦ(ρ)​(x)=χρ​(Dx)exp​−21​a,b=0∑1​(1−e−γa​t)(μa​+21​)x(a,b)2​​,(Dx)(a,b)​=e−γa​t/2x(a,b)​,

where (γ0,γ1)=(g1,g2)(\gamma_0,\gamma_1)=(g_1,g_2)(γ0​,γ1​)=(g1​,g2​), (μ0,μ1)=(M1,M2)(\mu_0,\mu_1)=(M_1,M_2)(μ0​,μ1​)=(M1​,M2​), and the characteristic function used here is literally

χX(x)=∑m∈N2∑n∈N2Xmn∏a=01Dw(x(a,0),x(a,1))(na,ma),w(q,p)=−p+iq2,\chi_X(x)=\sum_{m\in\mathbb N^2}\sum_{n\in\mathbb N^2} X_{mn}\prod_{a=0}^1D_{w(x_{(a,0)},x_{(a,1)})}(n_a,m_a), \quad w(q,p)=\frac{-p+iq}{\sqrt2},χX​(x)=m∈N2∑​n∈N2∑​Xmn​a=0∏1​Dw(x(a,0)​,x(a,1)​)​(na​,ma​),w(q,p)=2​−p+iq​,

with

Dz(m,n)=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj!(m−j)!(n−j)!.D_z(m,n)=e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}}{j!(m-j)!(n-j)!}.Dz​(m,n)=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​.

The complex infinite sums are totalized sums, equal to zero when the corresponding series is not summable. No sign restrictions on the five real parameters are part of this definition.

QAlgorithms.Papers.Independent.Advance50.P48.TwoKernel

A two-mode kernel is an arbitrary complex matrix whose row and column indices are ordered pairs of natural numbers, equivalently a function ρ:(N×N)×(N×N)→C\rho:(\mathbb N\times\mathbb N)\times(\mathbb N\times\mathbb N)\to\mathbb Cρ:(N×N)×(N×N)→C. No positivity, normalization, boundedness, or summability condition is imposed.

QAlgorithms.Papers.Independent.Advance50.P48.attenuatedCovariance

For every real 4×44\times44×4 matrix VVV indexed by i=(a,b)∈{0,1}×{0,1}i=(a,b)\in\{0,1\}\times\{0,1\}i=(a,b)∈{0,1}×{0,1}, and arbitrary real g1,g2,M1,M2,tg_1,g_2,M_1,M_2,tg1​,g2​,M1​,M2​,t, this defines the real matrix

Vij′=e−γi1t/2Vije−γj1t/2+{(1−e−γi1t)(μi1+12),i=j,0,i≠j,V'_{ij} =e^{-\gamma_{i_1}t/2}V_{ij}e^{-\gamma_{j_1}t/2} +\begin{cases} (1-e^{-\gamma_{i_1}t})(\mu_{i_1}+\tfrac12),&i=j,\\ 0,&i\ne j, \end{cases}Vij′​=e−γi1​​t/2Vij​e−γj1​​t/2+{(1−e−γi1​​t)(μi1​​+21​),0,​i=j,i=j,​

where (γ0,γ1)=(g1,g2)(\gamma_0,\gamma_1)=(g_1,g_2)(γ0​,γ1​)=(g1​,g2​) and (μ0,μ1)=(M1,M2)(\mu_0,\mu_1)=(M_1,M_2)(μ0​,μ1​)=(M1​,M2​). The definition assumes neither symmetry nor physicality of VVV, and imposes no sign conditions on the parameters.

QAlgorithms.Papers.Independent.Advance50.P48.bornDensity

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2 and every complex array EEE indexed by N2\mathbb N^2N2, this defines the real number

bρ,E=Re⁡(∑m=0∞(∑u=0∞∑v=0∞ρ((m,u),(m,v))E(v,u))).b_{\rho,E} =\operatorname{Re}\left( \sum_{m=0}^{\infty} \left(\sum_{u=0}^{\infty}\sum_{v=0}^{\infty} \rho\bigl((m,u),(m,v)\bigr)E(v,u)\right)\right).bρ,E​=Re(m=0∑∞​(u=0∑∞​v=0∑∞​ρ((m,u),(m,v))E(v,u))).

No density, positivity, or summability hypotheses are imposed, so the definition does not assert that this number is nonnegative or at most 111. Each infinite complex sum uses the total convention that a nonsummable sum is 000, with the nesting shown.

QAlgorithms.Papers.Independent.Advance50.P48.characteristicOne

For any complex kernel ρ=(ρmn)m,n∈N\rho=(\rho_{mn})_{m,n\in\mathbb N}ρ=(ρmn​)m,n∈N​ and any real coordinate array x:{0}×{0,1}→Rx:\{0\}\times\{0,1\}\to\mathbb Rx:{0}×{0,1}→R, put z=(−x(0,1)+ix(0,0))/2z=(-x_{(0,1)}+ix_{(0,0)})/\sqrt2z=(−x(0,1)​+ix(0,0)​)/2​. The defined value is

∑m=0∞(∑n=0∞ρmnDnm(z)),Dab(z)=e−∣z∣2/2a! b!∑j=0min⁡(a,b)za−j(−z‾)b−jj! (a−j)! (b−j)!.\sum_{m=0}^{\infty}\left(\sum_{n=0}^{\infty}\rho_{mn}D_{nm}(z)\right), \qquad D_{ab}(z)=e^{-|z|^2/2}\sqrt{a!\,b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\overline z)^{b-j}}{j!\,(a-j)!\,(b-j)!}.m=0∑∞​(n=0∑∞​ρmn​Dnm​(z)),Dab​(z)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−z)b−j​.

No condition on ρ\rhoρ, or convergence hypothesis for either nested series, is imposed. Each infinite sum is the totalized sum, which is zero when its family is not summable; thus this definition does not itself assert convergence or identify the nested sum with a jointly summed double series.

QAlgorithms.Papers.Independent.Advance50.P48.characteristicTwo

For any complex kernel ρ\rhoρ indexed by pairs of natural numbers and any real coordinate array x:{0,1}×{0,1}→Rx:\{0,1\}\times\{0,1\}\to\mathbb Rx:{0,1}×{0,1}→R, put zk=(−x(k,1)+ix(k,0))/2z_k=(-x_{(k,1)}+ix_{(k,0)})/\sqrt2zk​=(−x(k,1)​+ix(k,0)​)/2​ for k=0,1k=0,1k=0,1. The defined value is

∑m∈N2(∑n∈N2ρmnDn1m1(z0)Dn2m2(z1)),\sum_{m\in\mathbb N^2}\left( \sum_{n\in\mathbb N^2} \rho_{mn}D_{n_1m_1}(z_0)D_{n_2m_2}(z_1)\right),m∈N2∑​(n∈N2∑​ρmn​Dn1​m1​​(z0​)Dn2​m2​​(z1​)),

where, for natural numbers a,ba,ba,b,

Dab(z)=e−∣z∣2/2a! b!∑j=0min⁡(a,b)za−j(−z‾)b−jj! (a−j)! (b−j)!.D_{ab}(z)=e^{-|z|^2/2}\sqrt{a!\,b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\overline z)^{b-j}}{j!\,(a-j)!\,(b-j)!}.Dab​(z)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−z)b−j​.

No positivity, normalization, or convergence assumption is imposed. Each nested infinite sum is totalized to zero if its family is not summable, and convergence of a joint double series is not asserted.

QAlgorithms.Papers.Independent.Advance50.P48.closedDiscord

For any real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, let its 2×22\times22×2 mode blocks be VijV_{ij}Vij​, with entries (Vij)a,b=V(i,a),(j,b)(V_{ij})_{a,b}=V_{(i,a),(j,b)}(Vij​)a,b​=V(i,a),(j,b)​, and set a=det⁡V00a=\det V_{00}a=detV00​, b=det⁡V11b=\det V_{11}b=detV11​, c=det⁡V01c=\det V_{01}c=detV01​, d=det⁡Vd=\det Vd=detV, and Δ=a+b+2c\Delta=a+b+2cΔ=a+b+2c. Define

ν−=Δ−Δ2−4d2,ν+=Δ+Δ2−4d2,h(x)=(x+12)log⁡(x+12)−(x−12)log⁡(x−12).\nu_-=\sqrt{\frac{\Delta-\sqrt{\Delta^2-4d}}2}, \qquad \nu_+=\sqrt{\frac{\Delta+\sqrt{\Delta^2-4d}}2}, \qquad h(x)=\left(x+\tfrac12\right)\log\left(x+\tfrac12\right) -\left(x-\tfrac12\right)\log\left(x-\tfrac12\right).ν−​=2Δ−Δ2−4d​​​,ν+​=2Δ+Δ2−4d​​​,h(x)=(x+21​)log(x+21​)−(x−21​)log(x−21​).

The definition assigns the real value

h(b)−h(ν−)−h(ν+)+h ⁣(a+2ab+2c1+2b).h(\sqrt b)-h(\nu_-)-h(\nu_+) +h\!\left(\frac{\sqrt a+2\sqrt{ab}+2c}{1+2\sqrt b}\right).h(b​)−h(ν−​)−h(ν+​)+h(1+2b​a​+2ab​+2c​).

No symmetry, positivity, or physicality assumption on VVV is required. Every real square root of a negative argument is defined to be zero; the real logarithm is defined at zero as zero and at a negative argument as the logarithm of its absolute value.

QAlgorithms.Papers.Independent.Advance50.P48.covarianceInf

For every real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, with no hypotheses on VVV, let (Bij)ab=V(i,a),(j,b)(B_{ij})_{ab}=V_{(i,a),(j,b)}(Bij​)ab​=V(i,a),(j,b)​ and let Ω=(01−10)\Omega=\begin{pmatrix}0&1\\-1&0\end{pmatrix}Ω=(0−1​10​). The definition returns the infimum in [0,∞][0,\infty][0,∞]

inf⁡M∈R2×2M=MT, M+i2Ω⪰0max⁡ ⁣{0, (yM+12)log⁡(yM+12)−(yM−12)log⁡(yM−12)},yM=det⁡ ⁣(B00−B01(B11+M)−1B01T).\inf_{\substack{M\in\mathbb R^{2\times2}\\ M=M^{\mathsf T},\ M+\frac{i}{2}\Omega\succeq0}} \max\!\left\{0,\, \left(y_M+\tfrac12\right)\log\left(y_M+\tfrac12\right) -\left(y_M-\tfrac12\right)\log\left(y_M-\tfrac12\right)\right\}, \qquad y_M=\sqrt{\det\!\left(B_{00}-B_{01}(B_{11}+M)^{-1}B_{01}^{\mathsf T}\right)}.M∈R2×2M=MT, M+2i​Ω⪰0​inf​max{0,(yM​+21​)log(yM​+21​)−(yM​−21​)log(yM​−21​)},yM​=det(B00​−B01​(B11​+M)−1B01T​)​.

Here ⪰0\succeq0⪰0 denotes complex positive semidefiniteness, and the matrix MMM has no additional determinant or purity constraint. The matrix inverse is zero when its matrix is singular, the real square root is zero on negative inputs, and the real logarithm satisfies log⁡0=0\log0=0log0=0 and log⁡t=log⁡∣t∣\log t=\log|t|logt=log∣t∣ for t<0t<0t<0. The maximum with zero expresses conversion to an extended nonnegative real number; an infimum over an empty indexing set would be +∞+\infty+∞.

QAlgorithms.Papers.Independent.Advance50.P48.covarianceInvariant

For every real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1} and every k∈{0,1,2,3}k\in\{0,1,2,3\}k∈{0,1,2,3}, let BijB_{ij}Bij​ be the 2×22\times22×2 matrix with entries (Bij)ab=V(i,a),(j,b)(B_{ij})_{ab}=V_{(i,a),(j,b)}(Bij​)ab​=V(i,a),(j,b)​, for a,b∈{0,1}a,b\in\{0,1\}a,b∈{0,1}. The definition returns

Ik(V)={det⁡B00,k=0,det⁡B11,k=1,det⁡B01,k=2,det⁡V,k=3.I_k(V)= \begin{cases} \det B_{00},&k=0,\\ \det B_{11},&k=1,\\ \det B_{01},&k=2,\\ \det V,&k=3. \end{cases}Ik​(V)=⎩⎨⎧​detB00​,detB11​,detB01​,detV,​k=0,k=1,k=2,k=3.​

It applies to arbitrary VVV, with no symmetry or positivity assumption.

QAlgorithms.Papers.Independent.Advance50.P48.covarianceModeBlock

For any real matrix VVV whose rows and columns are indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, and any i,j∈{0,1}i,j\in\{0,1\}i,j∈{0,1}, this definition returns the real 2×22\times22×2 matrix whose rows and columns are indexed by {0}×{0,1}\{0\}\times\{0,1\}{0}×{0,1} and whose entries are

Bij((0,a),(0,b))=V(i,a),(j,b)(a,b∈{0,1}).B_{ij}\bigl((0,a),(0,b)\bigr)=V_{(i,a),(j,b)} \qquad(a,b\in\{0,1\}).Bij​((0,a),(0,b))=V(i,a),(j,b)​(a,b∈{0,1}).

Thus it extracts the block at mode indices i,ji,ji,j, retaining the second coordinates as its row and column indices. No symmetry, positivity, or covariance assumption is imposed on VVV.

QAlgorithms.Papers.Independent.Advance50.P48.dampedArgument

For arbitrary real numbers g1,g2,tg_1,g_2,tg1​,g2​,t and any real vector xxx indexed by pairs (a,b)∈{0,1}×{0,1}(a,b)\in\{0,1\}\times\{0,1\}(a,b)∈{0,1}×{0,1}, this defines another vector on the same four-element index set by

(Dg1,g2,tx)(a,b)=e−gat/2x(a,b),g0=g1,g1mode=g2,(\mathcal D_{g_1,g_2,t}x)_{(a,b)} =e^{-g_a t/2}x_{(a,b)}, \qquad g_0=g_1,\quad g_1^{\mathrm{mode}}=g_2,(Dg1​,g2​,t​x)(a,b)​=e−ga​t/2x(a,b)​,g0​=g1​,g1mode​=g2​,

where, unambiguously, the exponential uses g1g_1g1​ when a=0a=0a=0 and g2g_2g2​ when a=1a=1a=1. Thus both coordinates of each mode receive the same factor. The parameters may be negative or zero; no decay or positivity condition is required.

QAlgorithms.Papers.Independent.Advance50.P48.gaussianClassicalCorrelationA

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2, this defines

r(H(Rρ))−r(I(ρ))∈R,Rρ(i,j)=∑b≥0ρ((i,b),(j,b)),r\bigl(\mathcal H(R_\rho)\bigr)-r\bigl(\mathcal I(\rho)\bigr)\in\mathbb R, \qquad R_\rho(i,j)=\sum_{b\ge0}\rho\bigl((i,b),(j,b)\bigr),r(H(Rρ​))−r(I(ρ))∈R,Rρ​(i,j)=b≥0∑​ρ((i,b),(j,b)),

where rrr preserves finite extended nonnegative numbers and sends +∞+\infty+∞ to 000, and

H(X)=sup⁡F finitemax⁡{Re⁡(tr⁡XF)log⁡ ⁣(Re⁡(tr⁡XF))−Re⁡tr⁡(XFcfc⁡(log⁡,XF)),0}.\mathcal H(X)=\sup_{F\text{ finite}} \max\left\{ \operatorname{Re}(\operatorname{tr}X_F)\log\!\bigl(\operatorname{Re}(\operatorname{tr}X_F)\bigr) -\operatorname{Re}\operatorname{tr}\bigl(X_F\operatorname{cfc}(\log,X_F)\bigr),0 \right\}.H(X)=F finitesup​max{Re(trXF​)log(Re(trXF​))−Retr(XF​cfc(log,XF​)),0}.

Here XFX_FXF​ is a principal submatrix, the empty set is included, and cfc⁡\operatorname{cfc}cfc is the continuous functional calculus in the supplied expression. The quantity I(ρ)\mathcal I(\rho)I(ρ) is the infimum of ∫C−H(Pz) dν(z)\int_{\mathbb C}^{-}\mathcal H(P_z)\,d\nu(z)∫C−​H(Pz​)dν(z) over seeds (R,V)(R,V)(R,V) satisfying: R(a,b)=∑rur(a)vr(b)‾R(a,b)=\sum_r u_r(a)\overline{v_r(b)}R(a,b)=∑r​ur​(a)vr​(b)​ for square-summable vectors with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞; real nonnegative finite quadratic forms of RRR; a summable real diagonal of sum 111; symmetry of the real 2×22\times22×2 matrix VVV; positive semidefiniteness of V+i2(01−10)V+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}V+2i​(0−1​10​); and ∑a∑bR(a,b)D(−p+iq)/2(b,a)=e−(q,p)V(q,p)T/2\sum_a\sum_bR(a,b)D_{(-p+iq)/\sqrt2}(b,a)=e^{-(q,p)V(q,p)^{\mathsf T}/2}∑a​∑b​R(a,b)D(−p+iq)/2​​(b,a)=e−(q,p)V(q,p)T/2 for every real q,pq,pq,p. The arrays and measure in this integral are

Dz(a,b)=e−∣z∣2/2a!b!∑j=0min⁡(a,b)za−j(−zˉ)b−jj!(a−j)!(b−j)!,Ez(a,b)=∑r∑tDz(a,r)R(r,t)Dz(b,t)‾,Cz(m,n)=∑u∑vρ((m,u),(n,v))Ez(v,u),bz=Re⁡∑mCz(m,m),dν(z)=max⁡{bz,0} d2zπ;\begin{gathered} D_z(a,b)=e^{-|z|^2/2}\sqrt{a!b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\bar z)^{b-j}}{j!(a-j)!(b-j)!},\\ E_z(a,b)=\sum_r\sum_tD_z(a,r)R(r,t)\overline{D_z(b,t)},\qquad C_z(m,n)=\sum_u\sum_v\rho((m,u),(n,v))E_z(v,u),\\ b_z=\operatorname{Re}\sum_m C_z(m,m),\qquad d\nu(z)=\max\{b_z,0\}\,\frac{d^2z}{\pi}; \end{gathered}Dz​(a,b)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−zˉ)b−j​,Ez​(a,b)=r∑​t∑​Dz​(a,r)R(r,t)Dz​(b,t)​,Cz​(m,n)=u∑​v∑​ρ((m,u),(n,v))Ez​(v,u),bz​=Rem∑​Cz​(m,m),dν(z)=max{bz​,0}πd2z​;​

Pz=Cz/bzP_z=C_z/b_zPz​=Cz​/bz​ for bz>0b_z>0bz​>0, and otherwise it has sole nonzero entry Pz(0,0)=1P_z(0,0)=1Pz​(0,0)=1. No density or Gaussian hypothesis on ρ\rhoρ, or nonnegativity assertion for the defined difference, is imposed. Nonsummable complex sums have value 000; an empty seed infimum is +∞+\infty+∞, which becomes 000 under rrr.

QAlgorithms.Papers.Independent.Advance50.P48.gaussianConditionalInf

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2, this defines

I(ρ)=inf⁡s=(R,V)∫C−H(Pρ,s,z) dνρ,s(z)∈[0,∞].\mathcal I(\rho)=\inf_{s=(R,V)} \int_{\mathbb C}^{-}\mathcal H(P_{\rho,s,z})\,d\nu_{\rho,s}(z) \in[0,\infty].I(ρ)=s=(R,V)inf​∫C−​H(Pρ,s,z​)dνρ,s​(z)∈[0,∞].

The infimum ranges over all pairs (R,V)(R,V)(R,V) such that R(a,b)=∑rur(a)vr(b)‾R(a,b)=\sum_r u_r(a)\overline{v_r(b)}R(a,b)=∑r​ur​(a)vr​(b)​ with ur,vr∈ℓ2(N;C)u_r,v_r\in\ell^2(\mathbb N;\mathbb C)ur​,vr​∈ℓ2(N;C) and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, all finite quadratic forms of RRR are real and nonnegative, its real diagonal is summable with sum 111, VVV is a symmetric real 2×22\times22×2 matrix with V+i2(01−10)V+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}V+2i​(0−1​10​) positive semidefinite, and

∑a≥0∑b≥0R(a,b)D(−p+iq)/2(b,a)=e−(q,p)V(q,p)T/2(q,p∈R),\sum_{a\ge0}\sum_{b\ge0}R(a,b)D_{(-p+iq)/\sqrt2}(b,a) =e^{-(q,p)V(q,p)^{\mathsf T}/2} \quad(q,p\in\mathbb R),a≥0∑​b≥0∑​R(a,b)D(−p+iq)/2​​(b,a)=e−(q,p)V(q,p)T/2(q,p∈R),

where

Dz(a,b)=e−∣z∣2/2a!b!∑j=0min⁡(a,b)za−j(−zˉ)b−jj!(a−j)!(b−j)!.D_z(a,b)=e^{-|z|^2/2}\sqrt{a!b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\bar z)^{b-j}}{j!(a-j)!(b-j)!}.Dz​(a,b)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−zˉ)b−j​.

For each such seed, set Ez(a,b)=∑r∑tDz(a,r)R(r,t)Dz(b,t)‾E_z(a,b)=\sum_r\sum_tD_z(a,r)R(r,t)\overline{D_z(b,t)}Ez​(a,b)=∑r​∑t​Dz​(a,r)R(r,t)Dz​(b,t)​, Cz(m,n)=∑u∑vρ((m,u),(n,v))Ez(v,u)C_z(m,n)=\sum_u\sum_v\rho((m,u),(n,v))E_z(v,u)Cz​(m,n)=∑u​∑v​ρ((m,u),(n,v))Ez​(v,u), and bz=Re⁡∑mCz(m,m)b_z=\operatorname{Re}\sum_m C_z(m,m)bz​=Re∑m​Cz​(m,m); the measure is dνρ,s=max⁡{bz,0} d2z/πd\nu_{\rho,s}=\max\{b_z,0\}\,d^2z/\pidνρ,s​=max{bz​,0}d2z/π, and Pρ,s,z=Cz/bzP_{\rho,s,z}=C_z/b_zPρ,s,z​=Cz​/bz​ for bz>0b_z>0bz​>0, while otherwise it is the array with sole nonzero entry P(0,0)=1P(0,0)=1P(0,0)=1. For any array XXX,

H(X)=sup⁡F finitemax⁡{Re⁡(tr⁡XF)log⁡ ⁣(Re⁡(tr⁡XF))−Re⁡tr⁡(XFcfc⁡(log⁡,XF)),0},\mathcal H(X)=\sup_{F\text{ finite}} \max\left\{ \operatorname{Re}(\operatorname{tr}X_F)\log\!\bigl(\operatorname{Re}(\operatorname{tr}X_F)\bigr) -\operatorname{Re}\operatorname{tr}\bigl(X_F\operatorname{cfc}(\log,X_F)\bigr),0 \right\},H(X)=F finitesup​max{Re(trXF​)log(Re(trXF​))−Retr(XF​cfc(log,XF​)),0},

with XFX_FXF​ the principal submatrix and cfc⁡\operatorname{cfc}cfc the continuous functional calculus used in the source. No density hypothesis on ρ\rhoρ, finiteness, or attainment is asserted; an empty seed type would give infimum +∞+\infty+∞, and every nonsummable complex sum is assigned 000.

QAlgorithms.Papers.Independent.Advance50.P48.gaussianDiscordA

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2, this defines the real number

r(H(Lρ))−r(H(ρ))+r(I(ρ)),Lρ(i,j)=∑a≥0ρ((a,i),(a,j)),r\bigl(\mathcal H(L_\rho)\bigr)-r\bigl(\mathcal H(\rho)\bigr)+r\bigl(\mathcal I(\rho)\bigr), \qquad L_\rho(i,j)=\sum_{a\ge0}\rho\bigl((a,i),(a,j)\bigr),r(H(Lρ​))−r(H(ρ))+r(I(ρ)),Lρ​(i,j)=a≥0∑​ρ((a,i),(a,j)),

where r:[0,∞]→Rr:[0,\infty]\to\mathbb Rr:[0,∞]→R sends each finite number to itself and sends +∞+\infty+∞ to 000. For any array XXX,

H(X)=sup⁡F finitemax⁡{Re⁡(tr⁡XF)log⁡ ⁣(Re⁡(tr⁡XF))−Re⁡tr⁡(XFcfc⁡(log⁡,XF)),0},\mathcal H(X)=\sup_{F\text{ finite}} \max\left\{ \operatorname{Re}(\operatorname{tr}X_F)\log\!\bigl(\operatorname{Re}(\operatorname{tr}X_F)\bigr) -\operatorname{Re}\operatorname{tr}\bigl(X_F\operatorname{cfc}(\log,X_F)\bigr),0 \right\},H(X)=F finitesup​max{Re(trXF​)log(Re(trXF​))−Retr(XF​cfc(log,XF​)),0},

using principal submatrices XFX_FXF​, including the empty submatrix, and the continuous functional calculus in the source. The quantity I(ρ)\mathcal I(\rho)I(ρ) is the infimum over all Gaussian seeds (R,V)(R,V)(R,V) of ∫C−H(Pz) dν(z)\int_{\mathbb C}^{-}\mathcal H(P_z)\,d\nu(z)∫C−​H(Pz​)dν(z): such a seed requires a representation R(a,b)=∑rur(a)vr(b)‾R(a,b)=\sum_r u_r(a)\overline{v_r(b)}R(a,b)=∑r​ur​(a)vr​(b)​ with square-summable vectors and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, real nonnegative finite quadratic forms, a summable real diagonal of sum 111, a symmetric real VVV with V+i2(01−10)V+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}V+2i​(0−1​10​) positive semidefinite, and ∑a∑bR(a,b)D(−p+iq)/2(b,a)=e−(q,p)V(q,p)T/2\sum_a\sum_bR(a,b)D_{(-p+iq)/\sqrt2}(b,a)=e^{-(q,p)V(q,p)^{\mathsf T}/2}∑a​∑b​R(a,b)D(−p+iq)/2​​(b,a)=e−(q,p)V(q,p)T/2 for every real q,pq,pq,p. Here

Dz(a,b)=e−∣z∣2/2a!b!∑j=0min⁡(a,b)za−j(−zˉ)b−jj!(a−j)!(b−j)!,D_z(a,b)=e^{-|z|^2/2}\sqrt{a!b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\bar z)^{b-j}}{j!(a-j)!(b-j)!},Dz​(a,b)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−zˉ)b−j​,

Ez(a,b)=∑r∑tDz(a,r)R(r,t)Dz(b,t)‾E_z(a,b)=\sum_r\sum_tD_z(a,r)R(r,t)\overline{D_z(b,t)}Ez​(a,b)=∑r​∑t​Dz​(a,r)R(r,t)Dz​(b,t)​, Cz(m,n)=∑u∑vρ((m,u),(n,v))Ez(v,u)C_z(m,n)=\sum_u\sum_v\rho((m,u),(n,v))E_z(v,u)Cz​(m,n)=∑u​∑v​ρ((m,u),(n,v))Ez​(v,u), bz=Re⁡∑mCz(m,m)b_z=\operatorname{Re}\sum_m C_z(m,m)bz​=Re∑m​Cz​(m,m), and dν=max⁡{bz,0} d2z/πd\nu=\max\{b_z,0\}\,d^2z/\pidν=max{bz​,0}d2z/π; Pz=Cz/bzP_z=C_z/b_zPz​=Cz​/bz​ when bz>0b_z>0bz​>0, and otherwise PzP_zPz​ has sole nonzero entry Pz(0,0)=1P_z(0,0)=1Pz​(0,0)=1. The input need not be a density or Gaussian array; no nonnegativity or finiteness assertion accompanies the resulting real number. All complex sums are nested as written and take value 000 when nonsummable; an infimum over no seeds is +∞+\infty+∞, hence contributes 000 after applying rrr.

QAlgorithms.Papers.Independent.Advance50.P48.gaussianSchurCovariance

For any real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, and any real matrix MMM indexed by {0}×{0,1}\{0\}\times\{0,1\}{0}×{0,1}, define the 2×22\times22×2 blocks (Bij)ab=V(i,a),(j,b)(B_{ij})_{ab}=V_{(i,a),(j,b)}(Bij​)ab​=V(i,a),(j,b)​. This definition returns the real 2×22\times22×2 matrix

B00−B01(B11+M)−1B01T.B_{00}-B_{01}(B_{11}+M)^{-1}B_{01}^{\mathsf T}.B00​−B01​(B11​+M)−1B01T​.

There are no symmetry, positivity, or invertibility hypotheses on either input. The inverse is the total matrix inverse, which is the zero matrix when B11+MB_{11}+MB11​+M is singular; in that case the returned matrix is B00B_{00}B00​.

QAlgorithms.Papers.Independent.Advance50.P48.halfUnitEntropy

For every real xxx, this definition returns the real number

h(x)=(x+12)log⁡(x+12)−(x−12)log⁡(x−12).h(x)=\left(x+\tfrac12\right)\log\left(x+\tfrac12\right) -\left(x-\tfrac12\right)\log\left(x-\tfrac12\right).h(x)=(x+21​)log(x+21​)−(x−21​)log(x−21​).

There is no restriction x≥12x\ge\frac12x≥21​: the formula uses the total real logarithm, for which log⁡0=0\log0=0log0=0 and log⁡t=log⁡∣t∣\log t=\log|t|logt=log∣t∣ when t<0t<0t<0; consequently a term 0log⁡00\log00log0 is zero.

QAlgorithms.Papers.Independent.Advance50.P48.heterodyneAverage

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2, this defines the extended nonnegative integral

∫C−max⁡{bz,0} H(Pz) d2zπ,\int_{\mathbb C}^{-} \max\{b_z,0\}\,\mathcal H(P_z)\,\frac{d^2z}{\pi},∫C−​max{bz​,0}H(Pz​)πd2z​,

where

Hz(a,b)=e−∣z∣2zazˉ ba!b!,Cz(m,n)=∑u≥0∑v≥0ρ((m,u),(n,v))Hz(v,u),bz=Re⁡∑m≥0Cz(m,m).H_z(a,b)=e^{-|z|^2}\frac{z^a\bar z^{\,b}}{\sqrt{a!}\sqrt{b!}}, \qquad C_z(m,n)=\sum_{u\ge0}\sum_{v\ge0} \rho\bigl((m,u),(n,v)\bigr)H_z(v,u), \qquad b_z=\operatorname{Re}\sum_{m\ge0}C_z(m,m).Hz​(a,b)=e−∣z∣2a!​b!​zazˉb​,Cz​(m,n)=u≥0∑​v≥0∑​ρ((m,u),(n,v))Hz​(v,u),bz​=Rem≥0∑​Cz​(m,m).

The array PzP_zPz​ is Cz/bzC_z/b_zCz​/bz​ when bz>0b_z>0bz​>0; when bz≤0b_z\le0bz​≤0, its sole nonzero entry is Pz(0,0)=1P_z(0,0)=1Pz​(0,0)=1. For any complex array XXX, the entropy expression is

H(X)=sup⁡F finitemax⁡{Re⁡(tr⁡XF)log⁡ ⁣(Re⁡(tr⁡XF))−Re⁡tr⁡(XFcfc⁡(log⁡,XF)),0},\mathcal H(X)=\sup_{F\text{ finite}} \max\left\{ \operatorname{Re}(\operatorname{tr}X_F)\log\!\bigl(\operatorname{Re}(\operatorname{tr}X_F)\bigr) -\operatorname{Re}\operatorname{tr}\bigl(X_F\operatorname{cfc}(\log,X_F)\bigr),0 \right\},H(X)=F finitesup​max{Re(trXF​)log(Re(trXF​))−Retr(XF​cfc(log,XF​)),0},

with XFX_FXF​ the principal submatrix, including the empty submatrix, and cfc⁡\operatorname{cfc}cfc the continuous functional calculus used in the source. No positivity, normalization, measurability, integrability, or finiteness assumptions are imposed on ρ\rhoρ. The integral and multiplication take place in [0,∞][0,\infty][0,∞], where 0⋅∞=00\cdot\infty=00⋅∞=0; nonsummable complex sums have value 000, and the displayed sums are nested.

QAlgorithms.Papers.Independent.Advance50.P48.heterodyneEffect

For every z∈Cz\in\mathbb Cz∈C, this defines the complex array

Hz(m,n)=(e−∣z∣2/2zmm!)(e−∣z∣2/2znn!)‾=e−∣z∣2zmzˉ nm!n!(m,n∈N).H_z(m,n)= \left(e^{-|z|^2/2}\frac{z^m}{\sqrt{m!}}\right) \overline{\left(e^{-|z|^2/2}\frac{z^n}{\sqrt{n!}}\right)} = e^{-|z|^2}\frac{z^m\bar z^{\,n}}{\sqrt{m!}\sqrt{n!}} \qquad(m,n\in\mathbb N).Hz​(m,n)=(e−∣z∣2/2m!​zm​)(e−∣z∣2/2n!​zn​)​=e−∣z∣2m!​n!​zmzˉn​(m,n∈N).

The indices include 000, with z0=1z^0=1z0=1, including at z=0z=0z=0; thus at z=0z=0z=0 the sole nonzero entry is H0(0,0)=1H_0(0,0)=1H0​(0,0)=1.

QAlgorithms.Papers.Independent.Advance50.P48.infiniteEnergyDiscord

For every real number ttt, this defines

D∞(t)=(1+2t)log⁡ ⁣(1+2t2t)−1.D_\infty(t)=(1+2t)\log\!\left(\frac{1+2t}{2t}\right)-1.D∞​(t)=(1+2t)log(2t1+2t​)−1.

No positivity or nonzero hypothesis is imposed on ttt. Here real division is totalized, with division by zero equal to zero, and the real logarithm satisfies log⁡0=0\log 0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. In particular, the definition gives D∞(0)=D∞(−12)=−1D_\infty(0)=D_\infty(-\tfrac12)=-1D∞​(0)=D∞​(−21​)=−1.

QAlgorithms.Papers.Independent.Advance50.P48.oneModeVacuum

The defined complex kernel indexed by natural numbers has entries

ρmn={1,m=0 and n=0,0,otherwise.\rho_{mn}= \begin{cases} 1,&m=0\ \text{and}\ n=0,\\ 0,&\text{otherwise}. \end{cases}ρmn​={1,0,​m=0 and n=0,otherwise.​

It is obtained by evaluating the one-mode vacuum kernel on the constant one-coordinate number strings with values mmm and nnn.

QAlgorithms.Papers.Independent.Advance50.P48.posteriorDensity

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2 and every complex array EEE indexed by N2\mathbb N^2N2, put

C(m,n)=∑u≥0∑v≥0ρ((m,u),(n,v))E(v,u),b=Re⁡∑m≥0C(m,m).C(m,n)=\sum_{u\ge0}\sum_{v\ge0} \rho\bigl((m,u),(n,v)\bigr)E(v,u), \qquad b=\operatorname{Re}\sum_{m\ge0}C(m,m).C(m,n)=u≥0∑​v≥0∑​ρ((m,u),(n,v))E(v,u),b=Rem≥0∑​C(m,m).

This defines the complex array

Pρ,E(m,n)={C(m,n)/b,b>0,1,b≤0, m=n=0,0,b≤0, (m,n)≠(0,0).P_{\rho,E}(m,n)= \begin{cases} C(m,n)/b,&b>0,\\ 1,&b\le0,\ m=n=0,\\ 0,&b\le0,\ (m,n)\ne(0,0). \end{cases}Pρ,E​(m,n)=⎩⎨⎧​C(m,n)/b,1,0,​b>0,b≤0, m=n=0,b≤0, (m,n)=(0,0).​

Thus the fallback is the array supported only at the (0,0)(0,0)(0,0) entry, and it is used both when b=0b=0b=0 and when b<0b<0b<0. No density or convergence assumptions are required on the inputs, and the declaration itself imposes no density condition on the resulting array. All infinite sums are nested as displayed and assign 000 to nonsummable complex families.

QAlgorithms.Papers.Independent.Advance50.P48.ptMinus

For any real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, write VijV_{ij}Vij​ for the 2×22\times22×2 block with entries (Vij)a,b=V(i,a),(j,b)(V_{ij})_{a,b}=V_{(i,a),(j,b)}(Vij​)a,b​=V(i,a),(j,b)​, and set

D=det⁡V00+det⁡V11−2det⁡V01.D=\det V_{00}+\det V_{11}-2\det V_{01}.D=detV00​+detV11​−2detV01​.

This defines the real number

ptMinus⁡(V)=D−D2−4det⁡V2.\operatorname{ptMinus}(V) =\sqrt{\frac{D-\sqrt{D^2-4\det V}}2}.ptMinus(V)=2D−D2−4detV​​​.

No symmetry, positivity, or physical covariance assumption is required. Both square roots are total real square roots, with value zero for negative arguments.

QAlgorithms.Papers.Independent.Advance50.P48.seedAverage

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2 and every Gaussian seed s=(R,V)s=(R,V)s=(R,V), this defines the extended nonnegative number

∫C−H(Pz) dν(z),\int_{\mathbb C}^{-}\mathcal H(P_z)\,d\nu(z),∫C−​H(Pz​)dν(z),

where

Ez(a,b)=∑r≥0∑t≥0Dz(a,r)R(r,t)Dz(b,t)‾,Cz(m,n)=∑u≥0∑v≥0ρ((m,u),(n,v))Ez(v,u),bz=Re⁡∑m≥0Cz(m,m),E_z(a,b)=\sum_{r\ge0}\sum_{t\ge0}D_z(a,r)R(r,t)\overline{D_z(b,t)},\quad C_z(m,n)=\sum_{u\ge0}\sum_{v\ge0}\rho\bigl((m,u),(n,v)\bigr)E_z(v,u), \quad b_z=\operatorname{Re}\sum_{m\ge0}C_z(m,m),Ez​(a,b)=r≥0∑​t≥0∑​Dz​(a,r)R(r,t)Dz​(b,t)​,Cz​(m,n)=u≥0∑​v≥0∑​ρ((m,u),(n,v))Ez​(v,u),bz​=Rem≥0∑​Cz​(m,m),

Pz=Cz/bzP_z=C_z/b_zPz​=Cz​/bz​ when bz>0b_z>0bz​>0, and otherwise Pz(m,n)=1P_z(m,n)=1Pz​(m,n)=1 exactly when m=n=0m=n=0m=n=0, with all other entries zero; ν\nuν is the measure obtained from d2z/πd^2z/\pid2z/π by the nonnegative density max⁡{bz,0}\max\{b_z,0\}max{bz​,0}. The displacement array is

Dz(a,b)=e−∣z∣2/2a!b!∑j=0min⁡(a,b)za−j(−zˉ)b−jj!(a−j)!(b−j)!,D_z(a,b)=e^{-|z|^2/2}\sqrt{a!b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\bar z)^{b-j}}{j!(a-j)!(b-j)!},Dz​(a,b)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−zˉ)b−j​,

and the entropy expression, for any complex array XXX, is

H(X)=sup⁡F⊆index setF finitemax⁡ ⁣{Re⁡(tr⁡XF)log⁡ ⁣(Re⁡(tr⁡XF))−Re⁡tr⁡ ⁣(XF cfc⁡(log⁡,XF)), 0}.\mathcal H(X)= \sup_{\substack{F\subseteq\text{index set}\\F\text{ finite}}} \max\!\left\{ \operatorname{Re}(\operatorname{tr}X_F)\log\!\bigl(\operatorname{Re}(\operatorname{tr}X_F)\bigr) -\operatorname{Re}\operatorname{tr}\!\bigl(X_F\,\operatorname{cfc}(\log,X_F)\bigr),\,0 \right\}.H(X)=F⊆index setF finite​sup​max{Re(trXF​)log(Re(trXF​))−Retr(XF​cfc(log,XF​)),0}.

Here XFX_FXF​ is the principal submatrix on FFF, including F=∅F=\varnothingF=∅, and cfc⁡\operatorname{cfc}cfc is the continuous functional calculus with the total conventions of the supplied expression. The seed conditions are that R(a,b)=∑rur(a)vr(b)‾R(a,b)=\sum_r u_r(a)\overline{v_r(b)}R(a,b)=∑r​ur​(a)vr​(b)​ for square-summable vectors with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, every finite quadratic form of RRR is real and nonnegative, its real diagonal is summable with sum 111, VVV is symmetric with V+i2(01−10)V+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}V+2i​(0−1​10​) positive semidefinite, and ∑a,bR(a,b)D(−p+iq)/2(b,a)=e−(q,p)V(q,p)T/2\sum_{a,b}R(a,b)D_{(-p+iq)/\sqrt2}(b,a)=e^{-(q,p)V(q,p)^{\mathsf T}/2}∑a,b​R(a,b)D(−p+iq)/2​​(b,a)=e−(q,p)V(q,p)T/2 for every real q,pq,pq,p, with nested sums. No hypotheses on ρ\rhoρ, integrability, or finiteness are imposed; the integral is the extended nonnegative Lebesgue integral, and nonsummable complex sums have value 000.

QAlgorithms.Papers.Independent.Advance50.P48.seedEffect

For every Gaussian seed sss and every z∈Cz\in\mathbb Cz∈C, this defines a complex array Es,zE_{s,z}Es,z​ indexed by m,n∈Nm,n\in\mathbb Nm,n∈N by

Es,z(m,n)=∑u=0∞∑v=0∞Dz(m,u) R(u,v) Dz(n,v)‾,R=s.density,E_{s,z}(m,n)=\sum_{u=0}^{\infty}\sum_{v=0}^{\infty} D_z(m,u)\,R(u,v)\,\overline{D_z(n,v)}, \qquad R=s.\mathrm{density},Es,z​(m,n)=u=0∑∞​v=0∑∞​Dz​(m,u)R(u,v)Dz​(n,v)​,R=s.density,

where

Dz(a,b)=e−∣z∣2/2a! b!∑j=0min⁡(a,b)za−j(−zˉ)b−jj!(a−j)!(b−j)!.D_z(a,b)=e^{-|z|^2/2}\sqrt{a!\,b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\bar z)^{b-j}}{j!(a-j)!(b-j)!}.Dz​(a,b)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−zˉ)b−j​.

Here a Gaussian seed consists of R:N2→CR:\mathbb N^2\to\mathbb CR:N2→C and a real 2×22\times22×2 matrix VVV satisfying the following conditions: R(a,b)=∑r≥0ur(a)vr(b)‾R(a,b)=\sum_{r\ge0}u_r(a)\overline{v_r(b)}R(a,b)=∑r≥0​ur​(a)vr​(b)​ for some ur,vr∈ℓ2(N;C)u_r,v_r\in\ell^2(\mathbb N;\mathbb C)ur​,vr​∈ℓ2(N;C) with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞; every finite quadratic form ∑a,b∈FcˉaR(a,b)cb\sum_{a,b\in F}\bar c_aR(a,b)c_b∑a,b∈F​cˉa​R(a,b)cb​ is real and nonnegative; the real diagonal of RRR is summable with sum 111; VVV is symmetric and V+i2(01−10)V+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}V+2i​(0−1​10​) is positive semidefinite; and, for every q,p∈Rq,p\in\mathbb Rq,p∈R,

∑a≥0∑b≥0R(a,b)D(−p+iq)/2(b,a)=exp⁡ ⁣(−12(q,p)V(q,p)T).\sum_{a\ge0}\sum_{b\ge0}R(a,b)D_{(-p+iq)/\sqrt2}(b,a) =\exp\!\left(-\frac12(q,p)V(q,p)^{\mathsf T}\right).a≥0∑​b≥0∑​R(a,b)D(−p+iq)/2​​(b,a)=exp(−21​(q,p)V(q,p)T).

The two infinite sums defining Es,zE_{s,z}Es,z​ are nested in the displayed order; no summability hypothesis is added by this declaration, and each nonsummable complex sum has the total-function value 000.

QAlgorithms.Papers.Independent.Advance50.P48.seedLaw

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2 and every Gaussian seed s=(R,V)s=(R,V)s=(R,V), this defines a measure νρ,s\nu_{\rho,s}νρ,s​ on C\mathbb CC by

νρ,s(A)=∫Amax⁡{bs(z),0} d2zπ,bs(z)=Re⁡∑m≥0∑u≥0∑v≥0ρ((m,u),(m,v))Es,z(v,u),\nu_{\rho,s}(A)=\int_A \max\{b_s(z),0\}\,\frac{d^2z}{\pi}, \quad b_s(z)=\operatorname{Re}\sum_{m\ge0}\sum_{u\ge0}\sum_{v\ge0} \rho\bigl((m,u),(m,v)\bigr)E_{s,z}(v,u),νρ,s​(A)=∫A​max{bs​(z),0}πd2z​,bs​(z)=Rem≥0∑​u≥0∑​v≥0∑​ρ((m,u),(m,v))Es,z​(v,u),

for measurable AAA, where the sums are nested in the displayed order and

Es,z(a,b)=∑r≥0∑t≥0Dz(a,r)R(r,t)Dz(b,t)‾,Dz(a,b)=e−∣z∣2/2a!b!∑j=0min⁡(a,b)za−j(−zˉ)b−jj!(a−j)!(b−j)!.E_{s,z}(a,b)=\sum_{r\ge0}\sum_{t\ge0} D_z(a,r)R(r,t)\overline{D_z(b,t)},\qquad D_z(a,b)=e^{-|z|^2/2}\sqrt{a!b!} \sum_{j=0}^{\min(a,b)} \frac{z^{a-j}(-\bar z)^{b-j}}{j!(a-j)!(b-j)!}.Es,z​(a,b)=r≥0∑​t≥0∑​Dz​(a,r)R(r,t)Dz​(b,t)​,Dz​(a,b)=e−∣z∣2/2a!b!​j=0∑min(a,b)​j!(a−j)!(b−j)!za−j(−zˉ)b−j​.

A Gaussian seed requires that RRR admit an expansion R(a,b)=∑rur(a)vr(b)‾R(a,b)=\sum_r u_r(a)\overline{v_r(b)}R(a,b)=∑r​ur​(a)vr​(b)​ with ur,vr∈ℓ2(N;C)u_r,v_r\in\ell^2(\mathbb N;\mathbb C)ur​,vr​∈ℓ2(N;C) and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, that all its finite quadratic forms be real and nonnegative, and that its real diagonal be summable with sum 111; it also requires VVV symmetric, V+i2(01−10)V+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}V+2i​(0−1​10​) positive semidefinite, and

∑a≥0∑b≥0R(a,b)D(−p+iq)/2(b,a)=e−(q,p)V(q,p)T/2(q,p∈R).\sum_{a\ge0}\sum_{b\ge0}R(a,b)D_{(-p+iq)/\sqrt2}(b,a) =e^{-(q,p)V(q,p)^{\mathsf T}/2} \quad(q,p\in\mathbb R).a≥0∑​b≥0∑​R(a,b)D(−p+iq)/2​​(b,a)=e−(q,p)V(q,p)T/2(q,p∈R).

Negative values of bsb_sbs​ contribute zero density. No assumption on ρ\rhoρ or probability-normalization assertion is included; nonsummable complex sums have value 000.

QAlgorithms.Papers.Independent.Advance50.P48.seedMeasurableSpace

On the type of seeds, whose data are a complex kernel ρ\rhoρ indexed by N\mathbb NN and a real covariance matrix VVV indexed by {0}×{0,1}\{0\}\times\{0,1\}{0}×{0,1}, subject to the seed’s normalization, positivity, and centered characteristic conditions, the assigned measurable structure is the pullback under s↦(ρs,Vs)s\mapsto(\rho_s,V_s)s↦(ρs​,Vs​) of the product of the two matrix spaces’ Borel measurable structures. Explicitly, a set of seeds is measurable exactly when it is the inverse image of a measurable set in that product measurable space. The matrix spaces have their usual coordinatewise topologies; the proof fields impose membership conditions on seeds but contribute no additional coordinates to this measurable structure.

QAlgorithms.Papers.Independent.Advance50.P48.squeezeCoefficient

For every real rrr and every pair of output and input indices out=(a,b)∈N2\mathrm{out}=(a,b)\in\mathbb N^2out=(a,b)∈N2 and inp=(p,q)∈N2\mathrm{inp}=(p,q)\in\mathbb N^2inp=(p,q)∈N2, this definition returns

a! b! p! q!∑j=0min⁡(p,q){(−tanh⁡r)j(tanh⁡r)a−(p−j)j! [a−(p−j)]! (p−j)! (q−j)! (cosh⁡r)p+q−2j+1,p−j≤a,q−j≤b,a−(p−j)=b−(q−j),0,otherwise.\sqrt{a!\,b!\,p!\,q!} \sum_{j=0}^{\min(p,q)} \begin{cases} \displaystyle \frac{(-\tanh r)^j(\tanh r)^{a-(p-j)}} {j!\,[a-(p-j)]!\,(p-j)!\,(q-j)!\, (\cosh r)^{p+q-2j+1}}, & \begin{gathered} p-j\le a,\quad q-j\le b,\\ a-(p-j)=b-(q-j), \end{gathered}\\[6pt] 0,&\text{otherwise}. \end{cases}a!b!p!q!​j=0∑min(p,q)​⎩⎨⎧​j![a−(p−j)]!(p−j)!(q−j)!(coshr)p+q−2j+1(−tanhr)j(tanhr)a−(p−j)​,0,​p−j≤a,q−j≤b,a−(p−j)=b−(q−j),​otherwise.​

Factorials are converted to real numbers before the displayed arithmetic. All subtractions in indices and exponents are natural-number subtraction, truncated at zero; the summation range ensures j≤p,qj\le p,qj≤p,q, and the nonzero branch ensures p−j≤ap-j\le ap−j≤a and q−j≤bq-j\le bq−j≤b. Zero input or output indices and r=0r=0r=0 are included, with zeroth powers—including 000^000—equal to 111.

QAlgorithms.Papers.Independent.Advance50.P48.squeezingPhotons

For every real number rrr, this defines

squeezingPhotons⁡(r)=(sinh⁡r)2.\operatorname{squeezingPhotons}(r)=(\sinh r)^2.squeezingPhotons(r)=(sinhr)2.

There is no restriction on rrr; in particular, the value at r=0r=0r=0 is zero.

QAlgorithms.Papers.Independent.Advance50.P48.stateGaussianCharacteristic

For any natural number nnn, real arrays d,x:Qn→Rd,x:Q_n\to\mathbb Rd,x:Qn​→R, and arbitrary real matrix VVV indexed by Qn={0,…,n−1}×{0,1}Q_n=\{0,\ldots,n-1\}\times\{0,1\}Qn​={0,…,n−1}×{0,1}, the defined complex value is

exp⁡ ⁣(−12∑a∈Qn∑b∈QnxaVabxb+i∑a∈Qndaxa).\exp\!\left(-\frac12\sum_{a\in Q_n}\sum_{b\in Q_n}x_aV_{ab}x_b +i\sum_{a\in Q_n}d_ax_a\right).exp​−21​a∈Qn​∑​b∈Qn​∑​xa​Vab​xb​+ia∈Qn​∑​da​xa​​.

No symmetry, positivity, or covariance condition on VVV is assumed. For n=0n=0n=0, both sums are empty and the value is 111.

QAlgorithms.Papers.Independent.Advance50.P48.sts

For arbitrary real numbers N1,N2,rN_1,N_2,rN1​,N2​,r, this defines a complex matrix indexed by pairs of natural numbers. For m=(m1,m2)m=(m_1,m_2)m=(m1​,m2​) and n=(n1,n2)n=(n_1,n_2)n=(n1​,n2​), its entry is

sts⁡(N1,N2,r)m,n=∑k1,k2≥0(N1/(N1+1))k1N1+1(N2/(N2+1))k2N2+1Sr(m,k)Sr(n,k),\operatorname{sts}(N_1,N_2,r)_{m,n} =\sum_{k_1,k_2\ge0} \frac{(N_1/(N_1+1))^{k_1}}{N_1+1} \frac{(N_2/(N_2+1))^{k_2}}{N_2+1} S_r(m,k)S_r(n,k),sts(N1​,N2​,r)m,n​=k1​,k2​≥0∑​N1​+1(N1​/(N1​+1))k1​​N2​+1(N2​/(N2​+1))k2​​Sr​(m,k)Sr​(n,k),

where the real summands are embedded in C\mathbb CC, and, for a=(a1,a2)a=(a_1,a_2)a=(a1​,a2​) and k=(k1,k2)k=(k_1,k_2)k=(k1​,k2​),

Sr(a,k)=a1!a2!k1!k2!∑j=0min⁡(k1,k2){(−tanh⁡r)j(tanh⁡r)a1−(k1−j)j! [a1−(k1−j)]! (k1−j)! (k2−j)! (cosh⁡r)k1+k2−2j+1,k1−j≤a1,k2−j≤a2,a1−(k1−j)=a2−(k2−j),0,otherwise.S_r(a,k)= \sqrt{a_1!a_2!k_1!k_2!} \sum_{j=0}^{\min(k_1,k_2)} \begin{cases} \displaystyle \frac{(-\tanh r)^j(\tanh r)^{a_1-(k_1-j)}} {j!\,[a_1-(k_1-j)]!\,(k_1-j)!\,(k_2-j)!\, (\cosh r)^{k_1+k_2-2j+1}}, & \begin{gathered} k_1-j\le a_1,\quad k_2-j\le a_2,\\ a_1-(k_1-j)=a_2-(k_2-j), \end{gathered}\\[3pt] 0,&\text{otherwise}. \end{cases}Sr​(a,k)=a1​!a2​!k1​!k2​!​j=0∑min(k1​,k2​)​⎩⎨⎧​j![a1​−(k1​−j)]!(k1​−j)!(k2​−j)!(coshr)k1​+k2​−2j+1(−tanhr)j(tanhr)a1​−(k1​−j)​,0,​k1​−j≤a1​,k2​−j≤a2​,a1​−(k1​−j)=a2​−(k2​−j),​otherwise.​

All subtractions in natural-number indices are truncated at zero. The infinite sum is over N×N\mathbb N\times\mathbb NN×N, with no summability hypothesis; the total complex summation operation returns zero if the family is not summable. No nonnegativity assumptions on N1,N2N_1,N_2N1​,N2​, or density properties of the resulting matrix, are imposed. Division by zero is defined to be zero, and zeroth powers, including 000^000, equal one.

QAlgorithms.Papers.Independent.Advance50.P48.stsA

For arbitrary real numbers N1,N2,rN_1,N_2,rN1​,N2​,r, this defines the real number

stsA⁡(N1,N2,r)=(sinh⁡r)2+12+N1(1+(sinh⁡r)2)+N2(sinh⁡r)2.\operatorname{stsA}(N_1,N_2,r) =(\sinh r)^2+\frac12 +N_1\bigl(1+(\sinh r)^2\bigr) +N_2(\sinh r)^2.stsA(N1​,N2​,r)=(sinhr)2+21​+N1​(1+(sinhr)2)+N2​(sinhr)2.

Neither N1N_1N1​ nor N2N_2N2​ is required to be nonnegative.

QAlgorithms.Papers.Independent.Advance50.P48.stsB

For arbitrary real numbers N1,N2,rN_1,N_2,rN1​,N2​,r, this defines the real number

stsB⁡(N1,N2,r)=(sinh⁡r)2+12+N2(1+(sinh⁡r)2)+N1(sinh⁡r)2.\operatorname{stsB}(N_1,N_2,r) =(\sinh r)^2+\frac12 +N_2\bigl(1+(\sinh r)^2\bigr) +N_1(\sinh r)^2.stsB(N1​,N2​,r)=(sinhr)2+21​+N2​(1+(sinhr)2)+N1​(sinhr)2.

Neither N1N_1N1​ nor N2N_2N2​ is required to be nonnegative.

QAlgorithms.Papers.Independent.Advance50.P48.stsC

For arbitrary real numbers N1,N2,rN_1,N_2,rN1​,N2​,r, this defines

stsC⁡(N1,N2,r)=(1+N1+N2)(sinh⁡r)2(1+(sinh⁡r)2).\operatorname{stsC}(N_1,N_2,r) =(1+N_1+N_2) \sqrt{(\sinh r)^2\bigl(1+(\sinh r)^2\bigr)}.stsC(N1​,N2​,r)=(1+N1​+N2​)(sinhr)2(1+(sinhr)2)​.

There are no sign restrictions on the parameters. The square-root argument is nonnegative for every real rrr, and the value is zero when r=0r=0r=0.

QAlgorithms.Papers.Independent.Advance50.P48.stsCovariance

For arbitrary real numbers N1,N2,rN_1,N_2,rN1​,N2​,r, this defines a real matrix indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}. In the order (0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1)(0,0),(0,1),(1,0),(1,1), it is

(a0c00a0−cc0b00−c0b),a=(sinh⁡r)2+12+N1(1+(sinh⁡r)2)+N2(sinh⁡r)2,b=(sinh⁡r)2+12+N2(1+(sinh⁡r)2)+N1(sinh⁡r)2,c=(1+N1+N2)(sinh⁡r)2(1+(sinh⁡r)2).\begin{pmatrix} a&0&c&0\\ 0&a&0&-c\\ c&0&b&0\\ 0&-c&0&b \end{pmatrix}, \qquad \begin{aligned} a&=(\sinh r)^2+\tfrac12+N_1(1+(\sinh r)^2)+N_2(\sinh r)^2,\\ b&=(\sinh r)^2+\tfrac12+N_2(1+(\sinh r)^2)+N_1(\sinh r)^2,\\ c&=(1+N_1+N_2)\sqrt{(\sinh r)^2(1+(\sinh r)^2)}. \end{aligned}​a0c0​0a0−c​c0b0​0−c0b​​,abc​=(sinhr)2+21​+N1​(1+(sinhr)2)+N2​(sinhr)2,=(sinhr)2+21​+N2​(1+(sinhr)2)+N1​(sinhr)2,=(1+N1​+N2​)(sinhr)2(1+(sinhr)2)​.​

No parameter restrictions or physical covariance conditions are part of this definition.

QAlgorithms.Papers.Independent.Advance50.P48.swapOscillators

For every arbitrary complex kernel ρ\rhoρ indexed by pairs of natural numbers, the defined swapped kernel is

(swap⁡ρ)(m1,m2),(n1,n2)=ρ(m2,m1),(n2,n1)(\operatorname{swap}\rho)_{(m_1,m_2),(n_1,n_2)} =\rho_{(m_2,m_1),(n_2,n_1)}(swapρ)(m1​,m2​),(n1​,n2​)​=ρ(m2​,m1​),(n2​,n1​)​

for all m1,m2,n1,n2∈Nm_1,m_2,n_1,n_2\in\mathbb Nm1​,m2​,n1​,n2​∈N. No positivity, normalization, or summability assumption is required.

QAlgorithms.Papers.Independent.Advance50.P48.symmetricState

For arbitrary real numbers μ,t\mu,tμ,t, set

N=1/μ−12,R=12log⁡ ⁣(12tμ).N=\frac{1/\sqrt\mu-1}{2}, \qquad R=\frac12\log\!\left(\frac1{2t\sqrt\mu}\right).N=21/μ​−1​,R=21​log(2tμ​1​).

This defines a complex matrix indexed by m,n∈N×Nm,n\in\mathbb N\times\mathbb Nm,n∈N×N, with entries

symmetricState⁡(μ,t)m,n=∑k∈N×N(N/(N+1))k1N+1(N/(N+1))k2N+1SR(m,k)SR(n,k),\operatorname{symmetricState}(\mu,t)_{m,n} =\sum_{k\in\mathbb N\times\mathbb N} \frac{(N/(N+1))^{k_1}}{N+1} \frac{(N/(N+1))^{k_2}}{N+1} S_R(m,k)S_R(n,k),symmetricState(μ,t)m,n​=k∈N×N∑​N+1(N/(N+1))k1​​N+1(N/(N+1))k2​​SR​(m,k)SR​(n,k),

where the real summands are embedded in C\mathbb CC, and

SR(a,k)=a1!a2!k1!k2!∑j=0min⁡(k1,k2){(−tanh⁡R)j(tanh⁡R)a1−(k1−j)j! [a1−(k1−j)]! (k1−j)! (k2−j)! (cosh⁡R)k1+k2−2j+1,k1−j≤a1,k2−j≤a2,a1−(k1−j)=a2−(k2−j),0,otherwise.S_R(a,k)= \sqrt{a_1!a_2!k_1!k_2!} \sum_{j=0}^{\min(k_1,k_2)} \begin{cases} \displaystyle \frac{(-\tanh R)^j(\tanh R)^{a_1-(k_1-j)}} {j!\,[a_1-(k_1-j)]!\,(k_1-j)!\,(k_2-j)!\, (\cosh R)^{k_1+k_2-2j+1}}, & \begin{gathered} k_1-j\le a_1,\quad k_2-j\le a_2,\\ a_1-(k_1-j)=a_2-(k_2-j), \end{gathered}\\[3pt] 0,&\text{otherwise}. \end{cases}SR​(a,k)=a1​!a2​!k1​!k2​!​j=0∑min(k1​,k2​)​⎩⎨⎧​j![a1​−(k1​−j)]!(k1​−j)!(k2​−j)!(coshR)k1​+k2​−2j+1(−tanhR)j(tanhR)a1​−(k1​−j)​,0,​k1​−j≤a1​,k2​−j≤a2​,a1​−(k1​−j)=a2​−(k2​−j),​otherwise.​

Natural-number subtraction is truncated at zero, and zeroth powers equal one. No domain or density hypothesis is imposed: negative square-root arguments give zero, division by zero gives zero, and the real logarithm at zero is zero and at negative arguments uses the absolute value. In particular, μ≤0\mu\le0μ≤0 or t=0t=0t=0 gives R=0R=0R=0. The complex infinite sum returns zero if its family is not summable.

QAlgorithms.Papers.Independent.Advance50.P48.symplecticDiscriminant

For every real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, form the real 2×22\times22×2 blocks (Bij)ab=V(i,a),(j,b)(B_{ij})_{ab}=V_{(i,a),(j,b)}(Bij​)ab​=V(i,a),(j,b)​. This definition returns

Δ(V)=det⁡B00+det⁡B11+2det⁡B01.\Delta(V)=\det B_{00}+\det B_{11}+2\det B_{01}.Δ(V)=detB00​+detB11​+2detB01​.

No symmetry or positivity hypothesis is required, and no sign condition on the returned real number is asserted.

QAlgorithms.Papers.Independent.Advance50.P48.symplecticMinus

For every real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, let (Bij)ab=V(i,a),(j,b)(B_{ij})_{ab}=V_{(i,a),(j,b)}(Bij​)ab​=V(i,a),(j,b)​ and Δ=det⁡B00+det⁡B11+2det⁡B01\Delta=\det B_{00}+\det B_{11}+2\det B_{01}Δ=detB00​+detB11​+2detB01​. The definition returns

ν−(V)=Δ−Δ2−4det⁡V2.\nu_-(V)= \sqrt{\frac{\Delta-\sqrt{\Delta^2-4\det V}}{2}}.ν−​(V)=2Δ−Δ2−4detV​​​.

There is no symmetry, positivity, or physicality hypothesis on VVV. Both square roots are total real square roots: a square root of a negative argument is zero, including at either the inner or outer occurrence.

QAlgorithms.Papers.Independent.Advance50.P48.symplecticPlus

For every real matrix VVV indexed by {0,1}×{0,1}\{0,1\}\times\{0,1\}{0,1}×{0,1}, let (Bij)ab=V(i,a),(j,b)(B_{ij})_{ab}=V_{(i,a),(j,b)}(Bij​)ab​=V(i,a),(j,b)​ and Δ=det⁡B00+det⁡B11+2det⁡B01\Delta=\det B_{00}+\det B_{11}+2\det B_{01}Δ=detB00​+detB11​+2detB01​. The definition returns

ν+(V)=Δ+Δ2−4det⁡V2.\nu_+(V)= \sqrt{\frac{\Delta+\sqrt{\Delta^2-4\det V}}{2}}.ν+​(V)=2Δ+Δ2−4detV​​​.

No symmetry, positivity, or physicality condition on VVV is assumed. Each square root is the total real square root, taking value zero when its argument is negative.

QAlgorithms.Papers.Independent.Advance50.P48.teleportationFidelity

For every real number ttt, this defines the real-valued function

F(t)=11+2t.F(t)=\frac{1}{1+2t}.F(t)=1+2t1​.

There is no restriction on ttt. Division is totalized, so F(−12)=0F(-\tfrac12)=0F(−21​)=0.

QAlgorithms.Papers.Independent.Advance50.P48.totalPhotonEnergy

For any complex matrix ρ\rhoρ indexed by N×N\mathbb N\times\mathbb NN×N, this defines the extended nonnegative real number

totalPhotonEnergy⁡(ρ)=∑m1,m2≥0max⁡ ⁣{(m1+m2)Re⁡ρ(m1,m2),(m1,m2), 0}.\operatorname{totalPhotonEnergy}(\rho) =\sum_{m_1,m_2\ge0} \max\!\left\{(m_1+m_2)\operatorname{Re}\rho_{(m_1,m_2),(m_1,m_2)},\,0\right\}.totalPhotonEnergy(ρ)=m1​,m2​≥0∑​max{(m1​+m2​)Reρ(m1​,m2​),(m1​,m2​)​,0}.

Each summand is embedded in [0,∞][0,\infty][0,∞], and the sum may equal +∞+\infty+∞. No density, positivity, normalization, or finite-energy hypothesis is imposed; negative diagonal contributions are individually replaced by zero.

QAlgorithms.Papers.Independent.Advance50.P48.tracePurity

For any complex matrix ρ\rhoρ indexed by N×N\mathbb N\times\mathbb NN×N, this defines

tracePurity⁡(ρ)=Re⁡ ⁣(∑m∈N×N(∑n∈N×Nρm,nρn,m)).\operatorname{tracePurity}(\rho) =\operatorname{Re}\!\left( \sum_{m\in\mathbb N\times\mathbb N} \left(\sum_{n\in\mathbb N\times\mathbb N} \rho_{m,n}\rho_{n,m}\right)\right).tracePurity(ρ)=Re(m∈N×N∑​(n∈N×N∑​ρm,n​ρn,m​)).

The sums are nested in the displayed order. No density, Hermitian, positivity, or summability hypothesis is imposed; each complex infinite sum is the total summation operation, which returns zero when its corresponding family is not summable.

QAlgorithms.Papers.Independent.Advance50.P48.unnormalizedConditional

For every complex array ρ\rhoρ indexed by (N×N)2(\mathbb N\times\mathbb N)^2(N×N)2 and every complex array EEE indexed by N2\mathbb N^2N2, this defines the array Cρ,E:N2→CC_{\rho,E}:\mathbb N^2\to\mathbb CCρ,E​:N2→C by

Cρ,E(m,n)=∑u=0∞∑v=0∞ρ((m,u),(n,v)) E(v,u).C_{\rho,E}(m,n)= \sum_{u=0}^{\infty}\sum_{v=0}^{\infty} \rho\bigl((m,u),(n,v)\bigr)\,E(v,u).Cρ,E​(m,n)=u=0∑∞​v=0∑∞​ρ((m,u),(n,v))E(v,u).

There are no positivity, normalization, boundedness, or summability assumptions on either input. The sums are nested, with the sum over vvv evaluated first; a nonsummable complex sum is assigned 000.

QAlgorithms.Papers.Independent.Advance50.P48.variableAverage

For every complex kernel ρ\rhoρ indexed by N×N\mathbb N\times\mathbb NN×N, without assuming it is a density, and every noncovariant measurement MMM, this definition returns an element of [0,∞][0,\infty][0,∞]. Write the measurement data as an outcome measure μ\muμ on pairs (z,s)(z,s)(z,s) and a measurable nonnegative weight w(z,s)w(z,s)w(z,s). A seed sss contains a kernel σs\sigma_sσs​ with a countable expansion (σs)mn=∑juj(m)vj(n)‾(\sigma_s)_{mn}=\sum_j u_j(m)\overline{v_j(n)}(σs​)mn​=∑j​uj​(m)vj​(n)​, where uj,vj∈ℓ2(N;C)u_j,v_j\in\ell^2(\mathbb N;\mathbb C)uj​,vj​∈ℓ2(N;C) and ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞, real nonnegative finite quadratic forms, and a summable real diagonal of sum 111; its covariance VsV_sVs​ is symmetric, Vs+i2(01−10)V_s+\frac{i}{2}\begin{pmatrix}0&1\\-1&0\end{pmatrix}Vs​+2i​(0−1​10​) is positive semidefinite, and ∑m∑n(σs)mnD((−xp+ixq)/2)nm=e−xTVsx/2\sum_m\sum_n(\sigma_s)_{mn}D((-x_p+ix_q)/\sqrt2)_{nm}=e^{-x^{\mathsf T}V_sx/2}∑m​∑n​(σs​)mn​D((−xp​+ixq​)/2​)nm​=e−xTVs​x/2 for every x∈R2x\in\mathbb R^2x∈R2. The seed measurable structure is pulled back from the Borel structure on the kernel and covariance pair. Set

D(z)mn=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!,Es,z(m,n)=∑u∑vD(z)mu(σs)uvD(z)nv‾,Fz,s=w(z,s)Es,z,Cz,s(m,n)=∑u∑vρ(m,u),(n,v)Fz,s(v,u),b(z,s)=Re⁡∑mCz,s(m,m).\begin{gathered} D(z)_{mn}=e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}}{j!\,(m-j)!\,(n-j)!},\\ E_{s,z}(m,n)=\sum_u\sum_vD(z)_{mu}(\sigma_s)_{uv}\overline{D(z)_{nv}}, \qquad F_{z,s}=w(z,s)E_{s,z},\\ C_{z,s}(m,n)=\sum_u\sum_v\rho_{(m,u),(n,v)}F_{z,s}(v,u), \qquad b(z,s)=\operatorname{Re}\sum_m C_{z,s}(m,m). \end{gathered}D(z)mn​=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​,Es,z​(m,n)=u∑​v∑​D(z)mu​(σs​)uv​D(z)nv​​,Fz,s​=w(z,s)Es,z​,Cz,s​(m,n)=u∑​v∑​ρ(m,u),(n,v)​Fz,s​(v,u),b(z,s)=Rem∑​Cz,s​(m,m).​

The measurement assumptions are that, for every finite F⊆NF\subseteq\mathbb NF⊆N and every a:N→Ca:\mathbb N\to\mathbb Ca:N→C, the function w(z,s)∑m,n∈Fam‾Es,z(m,n)anw(z,s)\sum_{m,n\in F}\overline{a_m}E_{s,z}(m,n)a_nw(z,s)∑m,n∈F​am​​Es,z​(m,n)an​ is integrable with integral ∑m∈F∣am∣2\sum_{m\in F}|a_m|^2∑m∈F​∣am​∣2. Define a posterior kernel Pz,s=Cz,s/b(z,s)P_{z,s}=C_{z,s}/b(z,s)Pz,s​=Cz,s​/b(z,s) when b(z,s)>0b(z,s)>0b(z,s)>0, and otherwise set Pz,s(m,n)=1P_{z,s}(m,n)=1Pz,s​(m,n)=1 if m=n=0m=n=0m=n=0, and 000 otherwise. Let ν\nuν be μ\muμ with density max⁡{b(z,s),0}\max\{b(z,s),0\}max{b(z,s),0}. For any kernel PPP, define

H(P)=sup⁡F⊆NF finitemax⁡ ⁣{0, tFlog⁡tF−Re⁡tr⁡(PFlog⁡cfcPF)},tF=Re⁡tr⁡PF,H(P)=\sup_{\substack{F\subseteq\mathbb N\\F\ \mathrm{finite}}} \max\!\left\{0,\, t_F\log t_F-\operatorname{Re}\operatorname{tr} \bigl(P_F\log_{\mathrm{cfc}}P_F\bigr)\right\}, \qquad t_F=\operatorname{Re}\operatorname{tr}P_F,H(P)=F⊆NF finite​sup​max{0,tF​logtF​−Retr(PF​logcfc​PF​)},tF​=RetrPF​,

where PFP_FPF​ is the principal submatrix on FFF, and log⁡cfc\log_{\mathrm{cfc}}logcfc​ is the continuous functional calculus of the total real logarithm, with its default zero on matrices outside its required self-adjoint class. The returned value is the extended nonnegative lower integral

variableAverage⁡(ρ,M)=∫−H(Pz,s) dν(z,s).\operatorname{variableAverage}(\rho,M)=\int^- H(P_{z,s})\,d\nu(z,s).variableAverage(ρ,M)=∫−H(Pz,s​)dν(z,s).

The supremum includes the empty submatrix, and both the entropy and the integral may equal +∞+\infty+∞. No posterior-density, probability-normalization, or integrability conclusion is part of this definition. Complex infinite sums take zero when nonsummable, and the real logarithm has log⁡0=0\log0=0log0=0 and log⁡t=log⁡∣t∣\log t=\log|t|logt=log∣t∣ for t<0t<0t<0.

QAlgorithms.Papers.Independent.Advance50.P48.variableEffect

Let MMM be a noncovariant measurement, consisting of a measure μ\muμ on C×S\mathbb C\times\mathcal SC×S and a measurable function w:C×S→[0,∞)w:\mathbb C\times\mathcal S\to[0,\infty)w:C×S→[0,∞), where S\mathcal SS is the space of Gaussian seeds. A seed sss consists of a kernel σs:N2→C\sigma_s:\mathbb N^2\to\mathbb Cσs​:N2→C and a real 2×22\times22×2 matrix VsV_sVs​: the kernel admits an expansion (σs)mn=∑j=0∞uj(m)vj(n)‾(\sigma_s)_{mn}=\sum_{j=0}^\infty u_j(m)\overline{v_j(n)}(σs​)mn​=∑j=0∞​uj​(m)vj​(n)​, with uj,vj∈ℓ2(N;C)u_j,v_j\in\ell^2(\mathbb N;\mathbb C)uj​,vj​∈ℓ2(N;C) and ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞; every finite quadratic form of σs\sigma_sσs​ is real and nonnegative; its real diagonal is summable with sum 111; VsV_sVs​ is symmetric and Vs+i2ΩV_s+\frac{i}{2}\OmegaVs​+2i​Ω is positive semidefinite, where Ω=(01−10)\Omega=\begin{pmatrix}0&1\\-1&0\end{pmatrix}Ω=(0−1​10​); and, for every x=(xq,xp)∈R2x=(x_q,x_p)\in\mathbb R^2x=(xq​,xp​)∈R2, ∑m∑n(σs)mnD((−xp+ixq)/2)nm=exp⁡(−xTVsx/2)\sum_m\sum_n(\sigma_s)_{mn}D((-x_p+ix_q)/\sqrt2)_{nm}=\exp(-x^{\mathsf T}V_sx/2)∑m​∑n​(σs​)mn​D((−xp​+ixq​)/2​)nm​=exp(−xTVs​x/2). Here the displacement coefficients are

D(z)mn=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!,D(z)_{mn} =e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}}{j!\,(m-j)!\,(n-j)!},D(z)mn​=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​,

and the seed space carries the measurable structure pulled back from the Borel structure on (σs,Vs)(\sigma_s,V_s)(σs​,Vs​). Write

Es,z(m,n)=∑u=0∞∑v=0∞D(z)mu(σs)uvD(z)nv‾.E_{s,z}(m,n)=\sum_{u=0}^\infty\sum_{v=0}^\infty D(z)_{mu}(\sigma_s)_{uv}\overline{D(z)_{nv}}.Es,z​(m,n)=u=0∑∞​v=0∑∞​D(z)mu​(σs​)uv​D(z)nv​​.

The measurement data must satisfy, for every finite F⊆NF\subseteq\mathbb NF⊆N and every a:N→Ca:\mathbb N\to\mathbb Ca:N→C, integrability of w(z,s)∑m,n∈Fam‾Es,z(m,n)anw(z,s)\sum_{m,n\in F}\overline{a_m}E_{s,z}(m,n)a_nw(z,s)∑m,n∈F​am​​Es,z​(m,n)an​ with respect to μ\muμ, and its integral must equal ∑m∈F∣am∣2\sum_{m\in F}|a_m|^2∑m∈F​∣am​∣2. For every outcome (z,s)(z,s)(z,s), the definition returns the kernel

variableEffect⁡(M,(z,s))mn=w(z,s)Es,z(m,n).\operatorname{variableEffect}(M,(z,s))_{mn}=w(z,s)E_{s,z}(m,n).variableEffect(M,(z,s))mn​=w(z,s)Es,z​(m,n).

In particular, zero weight gives the zero kernel. The infinite complex sums use the total sum convention, which assigns zero to a nonsummable family; the definition itself adds no summability assertion.

QAlgorithms.Papers.Independent.Advance50.P48.variableLaw

For any complex kernel ρ\rhoρ indexed by N×N\mathbb N\times\mathbb NN×N, with no density or positivity hypothesis, and any noncovariant measurement MMM, this definition constructs a measure on pairs (z,s)∈C×S(z,s)\in\mathbb C\times\mathcal S(z,s)∈C×S. The measurement consists of an outcome measure μ\muμ and a measurable, everywhere nonnegative real weight www. Each seed sss contains a kernel σs\sigma_sσs​ admitting a countable expansion (σs)mn=∑juj(m)vj(n)‾(\sigma_s)_{mn}=\sum_j u_j(m)\overline{v_j(n)}(σs​)mn​=∑j​uj​(m)vj​(n)​ with uj,vj∈ℓ2(N;C)u_j,v_j\in\ell^2(\mathbb N;\mathbb C)uj​,vj​∈ℓ2(N;C) and ∑j∥uj∥∥vj∥<∞\sum_j\|u_j\|\|v_j\|<\infty∑j​∥uj​∥∥vj​∥<∞, real nonnegative finite quadratic forms, and a summable real diagonal of sum 111; it also contains a symmetric real 2×22\times22×2 matrix VsV_sVs​ with Vs+i2ΩV_s+\frac{i}{2}\OmegaVs​+2i​Ω positive semidefinite, where Ω=(01−10)\Omega=\begin{pmatrix}0&1\\-1&0\end{pmatrix}Ω=(0−1​10​), such that

∑m∑n(σs)mnD((−xp+ixq)/2)nm=e−xTVsx/2(x=(xq,xp)∈R2).\sum_m\sum_n(\sigma_s)_{mn} D((-x_p+ix_q)/\sqrt2)_{nm} =e^{-x^{\mathsf T}V_sx/2} \quad(x=(x_q,x_p)\in\mathbb R^2).m∑​n∑​(σs​)mn​D((−xp​+ixq​)/2​)nm​=e−xTVs​x/2(x=(xq​,xp​)∈R2).

The seed measurable structure is pulled back from the Borel structure on its kernel and covariance matrix. Define

D(z)mn=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!,Es,z(m,n)=∑u∑vD(z)mu(σs)uvD(z)nv‾,D(z)_{mn}=e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}}{j!\,(m-j)!\,(n-j)!}, \qquad E_{s,z}(m,n)=\sum_u\sum_vD(z)_{mu}(\sigma_s)_{uv}\overline{D(z)_{nv}},D(z)mn​=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​,Es,z​(m,n)=u∑​v∑​D(z)mu​(σs​)uv​D(z)nv​​,

and Fz,s=w(z,s)Es,zF_{z,s}=w(z,s)E_{s,z}Fz,s​=w(z,s)Es,z​. The measurement assumptions require, for every finite F⊆NF\subseteq\mathbb NF⊆N and every a:N→Ca:\mathbb N\to\mathbb Ca:N→C, that w(z,s)∑m,n∈Fam‾Es,z(m,n)anw(z,s)\sum_{m,n\in F}\overline{a_m}E_{s,z}(m,n)a_nw(z,s)∑m,n∈F​am​​Es,z​(m,n)an​ be μ\muμ-integrable with integral ∑m∈F∣am∣2\sum_{m\in F}|a_m|^2∑m∈F​∣am​∣2. With

bρ(z,s)=Re⁡∑m(∑u∑vρ(m,u),(m,v)Fz,s(v,u)),b_\rho(z,s)=\operatorname{Re}\sum_m\left(\sum_u\sum_v \rho_{(m,u),(m,v)}F_{z,s}(v,u)\right),bρ​(z,s)=Rem∑​(u∑​v∑​ρ(m,u),(m,v)​Fz,s​(v,u)),

the returned measure is

variableLaw⁡(ρ,M)=μ with density max⁡{bρ(z,s),0}.\operatorname{variableLaw}(\rho,M)=\mu\text{ with density }\max\{b_\rho(z,s),0\}.variableLaw(ρ,M)=μ with density max{bρ​(z,s),0}.

Thus negative values of the displayed real expression contribute zero density. Neither normalization to a probability measure nor measurability of this density is asserted by the definition; the operation of forming a measure with density is used as a total operation. The complex infinite sums are likewise total, taking value zero when their respective families are nonsummable.

QAlgorithms.Papers.Independent.Advance50.P48.weylArg

For arbitrary real numbers qx,pxq_x,p_xqx​,px​, the defined complex argument is

−px+iqx2.\frac{-p_x+iq_x}{\sqrt2}.2​−px​+iqx​​.
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