12The number-basis indices for
nbosonic modes.
abbrev NumberIndex (n : ℕ) := Fin n → ℕ 15The full, untruncated bosonic Fock space
ℓ²(ℕⁿ, ℂ).
abbrev Fock (n : ℕ) := lp (fun _ : NumberIndex n => ℂ) 2 18A number-basis vector.
def numberKet {n : ℕ} (k : NumberIndex n) : Fock n := lp.single 2 k 1 21Matrix entries of an operator in the number basis.
def entry {n : ℕ} (T : Fock n →L[ℂ] Fock n) (k l : NumberIndex n) : ℂ := body · 1 line
inner ℂ (numberKet k) (T (numberKet l))27Positive trace-one operators. For a positive bounded operator on this Hilbert space, summability of its diagonal is the positive trace-class criterion;
HasSum ... 1includes summability as well as normalization.
structure State (n : ℕ) where body · 3 lines
op : Fock n →L[ℂ] Fock n
positive : op.IsPositive
trace_one : HasSum (fun k => (entry op k k).re) 133Total number of quanta in a number-basis vector.
def totalNumber {n : ℕ} (k : NumberIndex n) : ℕ := ∑ j, k j 36Exactly finiteness of the expectation of the nonnegative number operator.
def FiniteEnergy {n : ℕ} (ρ : State n) : Prop := body · 1 line
Summable (fun k => (totalNumber k : ℝ) * (entry ρ.op k k).re)41
−Tr ρ log ρ, using the continuous extension of−t log tat zero and continuous functional calculus for the positive operatorρ.
def entropy {n : ℕ} (ρ : State n) : ℝ := body · 1 line
∑' k, (entry (cfc (fun z : ℂ => (-(z.re * Real.log z.re) : ℂ)) ρ.op) k k).re46The thermal entropy per mode; Lean's
Real.log 0 = 0implements exactly the stated convention0 log 0 = 0.
def g (t : ℝ) : ℝ := (t + 1) * Real.log (t + 1) - t * Real.log t 50The inverse of increasing
g : [0,∞) → [0,∞), expressed by its lower level cut. Only its values on[0,∞)occur in the main theorem.
def gInv (s : ℝ) : ℝ := sInf {t : ℝ | 0 ≤ t ∧ s ≤ g t} 56One-mode passive beam-splitter coefficient, in number bases. It is the coefficient of
(c†)^k (d†)^ein(√η c† − √(1−η) d†)^a (√(1−η) c† + √η d†)^b, with the normalized number-vector factorials.
def oneModeBeamCoefficient (η : ℝ) (k e a b : ℕ) : ℝ := body · 9 lines
if k + e = a + b then
Real.sqrt (((k.factorial : ℝ) * e.factorial) / (a.factorial * b.factorial)) *
∑ p ∈ Finset.range (a + 1), ∑ q ∈ Finset.range (b + 1),
if p + q = k then
(a.choose p : ℝ) * b.choose q *
Real.sqrt η ^ p * (-Real.sqrt (1 - η)) ^ (a - p) *
Real.sqrt (1 - η) ^ q * Real.sqrt η ^ (b - q)
else 0
else 068The same passive rotation is performed on all mode indices.
def beamCoefficient {n : ℕ} (η : ℝ) (k e a b : NumberIndex n) : ℝ := body · 1 line
∏ j, oneModeBeamCoefficient η (k j) (e j) (a j) (b j)72Choices of the first input number in the total-number sector of
(k,e).
abbrev SectorSplit {n : ℕ} (k e : NumberIndex n) := ∀ j, Fin (k j + e j + 1) def splitLeft {n : ℕ} {k e : NumberIndex n} (a : SectorSplit k e) : NumberIndex n := body · 1 line
fun j => a jdef splitRight {n : ℕ} {k e : NumberIndex n} (a : SectorSplit k e) : NumberIndex n := body · 1 line
fun j => k j + e j - a j83A single discarded-number diagonal block of
U(ρA ⊗ ρB)U†. The sums are finite because passive mixing preserves number in each paired mode. The two unrestricted density matrices allow all internal entanglement.
def outputBlock {n : ℕ} (η : ℝ) (ρA ρB : State n)
(k l e : NumberIndex n) : ℂ := body · 5 lines
∑ a : SectorSplit k e, ∑ b : SectorSplit l e,
(beamCoefficient η k e (splitLeft a) (splitRight a) : ℂ) *
entry ρA.op (splitLeft a) (splitLeft b) *
entry ρB.op (splitRight a) (splitRight b) *
(beamCoefficient η l e (splitLeft b) (splitRight b) : ℂ)95Reduced state after passive beam-splitter mixing of independent ports. The second row of the orthogonal rotation is
(-√(1−η),√η); changing its sign has no effect on this reduced state.HasSumrecords the actual partial trace, not a default value for a possibly divergent series.
def IsBeamSplitterOutput {n : ℕ} (η : ℝ) (ρA ρB ρC : State n) : Prop := body · 1 line
∀ k l, HasSum (outputBlock η ρA ρB k l) (entry ρC.op k l)Outline
Xet Storage Details
- Size:
- 4.39 kB
- Xet hash:
- 3d085a1ab220cae479e4822b1f35a899da9b8a718caebbf29a3267334d0e13eb
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.