Definitions for Lambda's, V's and optimal cloning with stimulated emission
DefinitionQAlgorithms_Papers_Independent_Intake100_P37The objects the formalized statements of Lambda's, V's and optimal cloning with stimulated emission (arXiv:quant-ph/0003025) are stated in. Each was checked against the paper by a blind read-back and a moderator.
PhotonCounts: PDF pp.2,4: r photon occupations, each bounded by the conserved energy.AtomWord: PDF pp.2,9: atomic words, with excited level r and ground levels 0,...,r-1.excitedCount: PDF p.2 Eq.(1): number of atoms at the excited level.LambdaEnergyBasis: PDF p.2 Eqs.(1),(2): full conserved sector, including nonsymmetric atoms and all polarizations. No emission-chain restriction appears in this type.OscBasis: PDF p.4 Eqs.(12)-(17): r photon modes and r+1 atomic modes. Both conservation equations are enforced, including all allowed polarizations.applyMatrix: Rectangular matrix action, with the same Euclidean convention asact.emits: PDF p.2: emission of one mode-a photon by a single specified atom. The equalities, rather than truncated updates, guard every boundary.physicalH: PDF p.2 Eq.(1), p.4 Eq.(16): real equal gamma, dipole/RWA interaction in one spatial field mode. Literal sqrt(n_a+1) factors and Hermitian conjugate.physicalEmbedding: PDF p.4, Appendix A: the actual occupation-to-individual-atoms matrix. It is the accepted positive normalized multinomial embedding, with fixed alphabet.oscEmits: PDF p.4 Eq.(12), Appendix A: oscillator emission with a shared pump c. The ground index b may differ from the photon index a after relabeling.oscH: PDF p.4 Eqs.(12),(17): matrix of gamma sum a_a^dagger b_a^dagger c+h.c.groundRelabel: PDF p.4: fixed unitary ground relabeling g1 -> b2, g2 -> -b1. Row p is in the singlet convention; column q is in the original convention.fiveH: PDF p.4 Eq.(14): the five-mode Hamiltonian, defined by literal square-root matrix elements on the whole oscillator sector, with the a2-b1 minus sign.singletEmbedding: PDF p.4: embedding of singlet-convention oscillator coordinates into the original distinguishable atomic Hilbert space. The inverse relabeling is essential.physicalInput: PDF p.2 Eq.(2): normalized bosonic m-copy input, all A atoms excited. No unknown-polarization-dependent dynamics occur in this definition.emissionSectorKet: PDF p.5 Eq.(19): signed, normalized sector vector in the five-mode basis. Out-of-range l is defined as zero and never used as a normalized state.emissionTransfer: PDF p.5 Eq.(21): derived tridiagonal transfer matrix (not the definition of physical evolution). Both zero endpoints, including A=0, are explicit.emissionAmplitude: PDF p.5 Eq.(18): exact chain coefficient, obtained from the physical transfer.physicalOutput: PDF p.5: actual physical state, using the full conserved-sector exponential.atomicRotation: PDF p.2: atomic conjugate action for ACTIVE photon creation-state action U. The excited level is fixed; this differs from the passive basis wording.wordCounts: Occupation counts of a finite word.bosonAction: PDF pp.2,4: actual normalized bosonic tensor representation. The finite word sum is the matrix element between normalized occupation kets.physicalRotation: PDF p.2: polarization action on the entire physical energy sector.fiveRotation: PDF p.4: simultaneous fundamental SU(2) action on a and b, pump fixed.polarizationLift: PDF pp.2,4: a specified SU(2) lift taking polarization (1,0) to psi. It is unitary with determinant one when psi has unit norm.polarizedSector: PDF p.5 Eq.(19) in an arbitrary polarization, in oscillator coordinates.physicalSector: PDF pp.2,5: sector ket in the ORIGINAL individual-atom convention.selectExcited: PDF p.5: projective measurement outcome with A-l excited atoms.excitedOutcomeProbability: PDF p.5: Born probability of the measured excited-atom outcome.conditionalPhysical: PDF p.5: conditional physical DENSITY, defined only operationally when success is positive. No vector phase equality is imposed by conditioning.sectorReadout: PDF pp.5,7: actual embedding of the l-sector into M=m+l clone qubits and l ground-state anti-clone qubits; the pump is fixed at A-l.physicalReadout: PDF pp.5-7: readout from the full physical space, including the explicit atomic relabeling, projection onto the measured sector and Bose identification.sampledPhysical: PDF p.7 Eqs.(27)-(30): sampled clone density, after the actual atomic measurement and after discarding the ground-state and pump ancillas.sectorFidelity: PDF p.5 Eq.(20): relative frequency evaluated on the normalized sector ket itself; it is not a free scalar constrained to equal a binomial sum.benchmark: PDF p.5 Eq.(20): optimal m-to-M single-copy benchmark, M>0 in uses.photonDensity: PDF p.7: clone density from photon occupation coordinates.photonSample: PDF pp.7-8: the sampled-photon density for a fixed output count.PolarizationCovariant: PDF p.8: polarization covariance of a fixed input-independent photon map. This is a condition on a single operation, never an input-dependent algorithm.excitedInputEmbedding: PDF pp.5,8: fixed input injection of the m-photon Bose space into the full physical sector, with all atoms excited.branchKraus: PDF pp.5,8: Kraus matrix for measuring output photon number m+l and tracing out one particular individual-atom word.physicalBranch: PDF pp.5,8: physical CP branch for fixed output number. The operation is constructed BEFORE the unknown polarization is supplied.emissionBranchWeight: PDF pp.5,8: fixed scalar branch weight evaluated on a reference input. Theorems derive its independence of the input; that is not a definition premise.normalizedBranch: PDF p.8: scalar normalization on ALL operators. It is a channel only when the proved scalar success effect is positive.collectiveLower: PDF p.9 Eq.(A2): sum_k |g_a><e| on individual atoms alone.occupationLower: PDF p.9 Eq.(A2): b_a^dagger c in the actual atomic occupation coordinates. Its factor excludes photon stimulation, which is left unapplied in (A2).pairKet: PDF p.6 Eq.(25): all three signed normalized pair columns.VWord: PDF pp.6-7: A fixed ordered pairs, containing 2A individual V atoms.vExcited: PDF p.6: true physical excitation count of the V atoms, including the one residual physical excitation of each effective ground-state pair.VBasis: PDF p.6 Eq.(22): entire conserved V sector, not just antisymmetric pairs.vEmits: PDF p.6 Eq.(22): physical single-atom emission, with no pair restriction.vH: PDF p.6 Eq.(22): common equal coupling to all 2A individual V atoms.pairEmbedding: PDF pp.6-7 Eqs.(25),(26): tensor product of the explicit pair columns, with photons unchanged. Domain is the full original Lambda sector.vInput: PDF p.6 Eq.(23), p.7 Eq.(26): normalized photon input times A pair singlets.vOutput: PDF pp.6-7: V evolution on its full energy sector.vBranchKraus: PDF p.6: V branch Kraus matrices, tracing out all individual V atoms.vBranch: PDF pp.6-7: the actual V photonic instrument branch.oneAtomKet: PDF p.3 Eqs.(5),(7): original atomic g1,g2 coefficients, both positive.bhReadout: PDF p.3 Eq.(8): original atomic g1 is down=0, g2 is up=1. Our false qubit denotes the source's photon state |1>.bhKet: PDF p.3 Eq.(8): BH three-qubit state in the explicit computational basis.meanCloneFidelity: PDF p.7 Eq.(30): mean single-site fidelity on an arbitrary M-qubit density.ExchangeInvariant: PDF pp.7-8: invariance under every exchange, without assuming Bose support.photonFrequency: PDF p.7 Eq.(30): photon relative frequency, pulled back through the actual Bose occupation embedding, for any desired polarization.FiniteKrausBranch: PDF p.8: physical finite-dimensional selected operation in Kraus form, with its trace-nonincreasing effect explicitly positive.toQubitMap: PDF p.8: equivalence map on physical totally symmetric qubit operators, zero-extended on the orthogonal complement of the input Bose space.toPhotonMap: PDF p.8: inverse map, compression into the real occupation coordinates.BoseChannel: PDF p.8: physical channel on the Bose corner in Bool tensor coordinates. A finite Kraus extension is CP; only the Bose corner has trace preservation.mapWeight: PDF p.8: scalar success probability of a covariant selected photon map, computed on a fixed reference input.normalizeMap: PDF p.8: fixed scalar normalization, not nonlinear division by rho's trace.leadingTransfer: PDF pp.9-10 Eq.(B1): leading large-m generator, with exact zero boundaries.leadingAmplitude: PDF p.10 Eq.(B2): coefficients obtained by exponentiating B1.leadingProbability: PDF p.10 Eq.(B3): the actual measurement probabilities in the B1 model.atomPermutation: PDF pp.3-4: atom permutations act on the full energy sector.BoseUniversal: PDF p.8: universal operation on the physical Bose input/output corners.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P15
import Definitions.Def_QAlgorithms_Papers_Independent_Support21_P16
import Definitions.Def_QAlgorithms_Papers_Independent_Support21_P18
/-!
Kempe, Simon, Weihs, arXiv:quant-ph/0003025v1. PDF page locators throughout.
The physical Hamiltonian acts on the ENTIRE finite conserved energy sector.
The symmetric occupation embedding and the emission chain are derived targets,
never assumptions restricting the Hamiltonian. Atomic alphabet: g1=0,g2=1,e=2.
A counts Lambda atoms or ordered V pairs; m counts incident photons; l counts
additional photons. The oscillator coordinates after ground relabeling are
(a1,a2,b1,b2,c), with g1 -> b2 and g2 -> -b1.
The classical-pump limiting assertion is deferred in HARD.md. Compilation pending.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Intake100.P37
open QAlgorithms
open scoped Matrix ComplexOrder ComplexConjugate Matrix.Norms.L2Operator
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF pp.2,4: r photon occupations, each bounded by the conserved energy. -/
abbrev PhotonCounts (r E : ℕ) := Fin r → Fin (E + 1)
/-- PDF pp.2,9: atomic words, with excited level r and ground levels 0,...,r-1. -/
abbrev AtomWord (r A : ℕ) := Fin A → Fin (r + 1)
/-- PDF p.2 Eq.(1): number of atoms at the excited level. -/
def excitedCount {r A : ℕ} (w : AtomWord r A) : ℕ :=
(Finset.univ.filter fun k => (w k).val = r).card
/-- PDF p.2 Eqs.(1),(2): full conserved sector, including nonsymmetric atoms
and all polarizations. No emission-chain restriction appears in this type. -/
abbrev LambdaEnergyBasis (r A m : ℕ) :=
{x : PhotonCounts r (m + A) × AtomWord r A //
(∑ a, (x.1 a).val) + excitedCount x.2 = m + A}
/-- PDF p.4 Eqs.(12)-(17): r photon modes and r+1 atomic modes.
Both conservation equations are enforced, including all allowed polarizations. -/
abbrev OscBasis (r A m : ℕ) :=
{x : PhotonCounts r (m + A) × QAlgorithms.Papers.Independent.Support21.P16.BoseOccupation (r + 1) A //
(∑ a, (x.1 a).val) + (x.2.val (Fin.last r)).val = m + A}
/-- Rectangular matrix action, with the same Euclidean convention as `act`. -/
def applyMatrix {I J : Type*} [Fintype I]
(B : Matrix J I ℂ) (v : EuclideanSpace ℂ I) : EuclideanSpace ℂ J :=
WithLp.toLp 2 (B.mulVec (WithLp.ofLp v))
/-- PDF p.2: emission of one mode-a photon by a single specified atom.
The equalities, rather than truncated updates, guard every boundary. -/
def emits {r A m : ℕ} (a : Fin r) (k : Fin A)
(p q : LambdaEnergyBasis r A m) : Prop :=
(q.val.2 k).val = r ∧
p.val.2 = Function.update q.val.2 k a.castSucc ∧
(p.val.1 a).val = (q.val.1 a).val + 1 ∧
∀ b, b ≠ a → p.val.1 b = q.val.1 b
/-- PDF p.2 Eq.(1), p.4 Eq.(16): real equal gamma, dipole/RWA interaction
in one spatial field mode. Literal sqrt(n_a+1) factors and Hermitian conjugate. -/
def physicalH (r A m : ℕ) (gamma : ℝ) :
Matrix (LambdaEnergyBasis r A m) (LambdaEnergyBasis r A m) ℂ :=
fun p q => (gamma : ℂ) * ∑ k : Fin A, ∑ a : Fin r,
((if emits a k p q then (Real.sqrt ((q.val.1 a).val + 1 : ℝ) : ℂ) else 0) +
(if emits a k q p then (Real.sqrt ((p.val.1 a).val + 1 : ℝ) : ℂ) else 0))
/-- PDF p.4, Appendix A: the actual occupation-to-individual-atoms matrix.
It is the accepted positive normalized multinomial embedding, with fixed alphabet. -/
def physicalEmbedding (r A m : ℕ) :
Matrix (LambdaEnergyBasis r A m) (OscBasis r A m) ℂ :=
fun p q => if p.val.1 = q.val.1 then
QAlgorithms.Papers.Independent.Support21.P16.occupationEmbedding (r + 1) A p.val.2 q.val.2 else 0
/-- PDF p.4 Eq.(12), Appendix A: oscillator emission with a shared pump c.
The ground index b may differ from the photon index a after relabeling. -/
def oscEmits {r A m : ℕ} (a b : Fin r) (p q : OscBasis r A m) : Prop :=
(p.val.1 a).val = (q.val.1 a).val + 1 ∧
(∀ d, d ≠ a → p.val.1 d = q.val.1 d) ∧
(p.val.2.val b.castSucc).val = (q.val.2.val b.castSucc).val + 1 ∧
(q.val.2.val (Fin.last r)).val = (p.val.2.val (Fin.last r)).val + 1 ∧
∀ d : Fin r, d ≠ b → p.val.2.val d.castSucc = q.val.2.val d.castSucc
/-- PDF p.4 Eqs.(12),(17): matrix of gamma sum a_a^dagger b_a^dagger c+h.c. -/
def oscH (r A m : ℕ) (gamma : ℝ) :
Matrix (OscBasis r A m) (OscBasis r A m) ℂ :=
fun p q => (gamma : ℂ) * ∑ a : Fin r,
((if oscEmits a a p q then
(Real.sqrt (((q.val.1 a).val + 1 : ℝ) *
((q.val.2.val a.castSucc).val + 1) *
(q.val.2.val (Fin.last r)).val) : ℂ) else 0) +
(if oscEmits a a q p then
(Real.sqrt (((p.val.1 a).val + 1 : ℝ) *
((p.val.2.val a.castSucc).val + 1) *
(p.val.2.val (Fin.last r)).val) : ℂ) else 0))
/-- PDF p.4: fixed unitary ground relabeling g1 -> b2, g2 -> -b1.
Row p is in the singlet convention; column q is in the original convention. -/
def groundRelabel (A m : ℕ) : Matrix (OscBasis 2 A m) (OscBasis 2 A m) ℂ :=
fun p q => if p.val.1 = q.val.1 ∧
p.val.2.val 0 = q.val.2.val 1 ∧ p.val.2.val 1 = q.val.2.val 0 ∧
p.val.2.val 2 = q.val.2.val 2 then
(-1 : ℂ) ^ (q.val.2.val 1).val else 0
/-- PDF p.4 Eq.(14): the five-mode Hamiltonian, defined by literal square-root
matrix elements on the whole oscillator sector, with the a2-b1 minus sign. -/
def fiveH (A m : ℕ) (gamma : ℝ) : Matrix (OscBasis 2 A m) (OscBasis 2 A m) ℂ :=
fun p q => (gamma : ℂ) * ∑ a : Fin 2,
(-1 : ℂ) ^ a.val *
((if oscEmits a (Fin.rev a) p q then
(Real.sqrt (((q.val.1 a).val + 1 : ℝ) *
((q.val.2.val (Fin.rev a).castSucc).val + 1) *
(q.val.2.val 2).val) : ℂ) else 0) +
(if oscEmits a (Fin.rev a) q p then
(Real.sqrt (((p.val.1 a).val + 1 : ℝ) *
((p.val.2.val (Fin.rev a).castSucc).val + 1) *
(p.val.2.val 2).val) : ℂ) else 0))
/-- PDF p.4: embedding of singlet-convention oscillator coordinates into the
original distinguishable atomic Hilbert space. The inverse relabeling is essential. -/
def singletEmbedding (A m : ℕ) : Matrix (LambdaEnergyBasis 2 A m) (OscBasis 2 A m) ℂ :=
physicalEmbedding 2 A m * (groundRelabel A m)ᴴ
/-- PDF p.2 Eq.(2): normalized bosonic m-copy input, all A atoms excited.
No unknown-polarization-dependent dynamics occur in this definition. -/
def physicalInput (A m : ℕ) (psi : EuclideanSpace ℂ (Fin 2)) :
EuclideanSpace ℂ (LambdaEnergyBasis 2 A m) :=
WithLp.toLp 2 fun p =>
if (∀ k, (p.val.2 k).val = 2) ∧
(p.val.1 0).val + (p.val.1 1).val = m then
(Real.sqrt (Nat.choose m (p.val.1 1).val : ℝ) : ℂ) *
psi 0 ^ (p.val.1 0).val * psi 1 ^ (p.val.1 1).val else 0
/-- PDF p.5 Eq.(19): signed, normalized sector vector in the five-mode basis.
Out-of-range l is defined as zero and never used as a normalized state. -/
def emissionSectorKet (A m l : ℕ) : EuclideanSpace ℂ (OscBasis 2 A m) :=
WithLp.toLp 2 fun p =>
if l ≤ A ∧ (p.val.1 0).val + (p.val.1 1).val = m + l ∧
(p.val.2.val 2).val = A - l ∧
(p.val.2.val 0).val = (p.val.1 1).val ∧
(p.val.2.val 1).val + (p.val.1 1).val = l then
(-1 : ℂ) ^ (p.val.1 1).val *
(Real.sqrt (Nat.choose (m + l - (p.val.1 1).val) m : ℝ) : ℂ) /
(Real.sqrt (Nat.choose (m + l + 1) l : ℝ) : ℂ) else 0
/-- PDF p.5 Eq.(21): derived tridiagonal transfer matrix (not the definition
of physical evolution). Both zero endpoints, including A=0, are explicit. -/
def emissionTransfer (A m : ℕ) (gamma : ℝ) : Matrix (Fin (A + 1)) (Fin (A + 1)) ℂ :=
fun k l => if k.val = l.val + 1 then
(gamma * Real.sqrt ((l.val + 1 : ℝ) * (A - l.val) * (m + l.val + 2)) : ℂ)
else if l.val = k.val + 1 then
(gamma * Real.sqrt ((k.val + 1 : ℝ) * (A - k.val) * (m + k.val + 2)) : ℂ)
else 0
/-- PDF p.5 Eq.(18): exact chain coefficient, obtained from the physical transfer. -/
def emissionAmplitude (A m : ℕ) (gamma t : ℝ) (l : Fin (A + 1)) : ℂ :=
QAlgorithms.Papers.Independent.Claimed50.P15.propagator (emissionTransfer A m gamma) t l 0
/-- PDF p.5: actual physical state, using the full conserved-sector exponential. -/
def physicalOutput (A m : ℕ) (gamma t : ℝ) (psi : EuclideanSpace ℂ (Fin 2)) :
EuclideanSpace ℂ (LambdaEnergyBasis 2 A m) :=
act (QAlgorithms.Papers.Independent.Claimed50.P15.propagator (physicalH 2 A m gamma) t) (physicalInput A m psi)
/-- PDF p.2: atomic conjugate action for ACTIVE photon creation-state action U.
The excited level is fixed; this differs from the passive basis wording. -/
def atomicRotation (U : Matrix (Fin 2) (Fin 2) ℂ) : Matrix (Fin 3) (Fin 3) ℂ :=
fun a b => if ha : a.val < 2 then
if hb : b.val < 2 then conj (U ⟨a.val, ha⟩ ⟨b.val, hb⟩) else 0
else if b.val = 2 then 1 else 0
/-- Occupation counts of a finite word. -/
def wordCounts {r n : ℕ} (x : Fin n → Fin r) (a : Fin r) : ℕ :=
(Finset.univ.filter fun k => x k = a).card
/-- PDF pp.2,4: actual normalized bosonic tensor representation. The finite
word sum is the matrix element between normalized occupation kets. -/
def bosonAction (r n : ℕ) (U : Matrix (Fin r) (Fin r) ℂ)
(out inp : Fin r → ℕ) : ℂ :=
(Real.sqrt ((∏ a, (Nat.factorial (out a) : ℝ)) / Nat.factorial n) : ℂ) *
(Real.sqrt ((∏ a, (Nat.factorial (inp a) : ℝ)) / Nat.factorial n) : ℂ) *
∑ x : Fin n → Fin r, ∑ y : Fin n → Fin r,
if wordCounts x = out ∧ wordCounts y = inp then ∏ k, U (x k) (y k) else 0
/-- PDF p.2: polarization action on the entire physical energy sector. -/
def physicalRotation (A m : ℕ) (U : Matrix (Fin 2) (Fin 2) ℂ) :
Matrix (LambdaEnergyBasis 2 A m) (LambdaEnergyBasis 2 A m) ℂ :=
fun p q => if (∑ a, (p.val.1 a).val) = (∑ a, (q.val.1 a).val) then
bosonAction 2 (∑ a, (q.val.1 a).val) U
(fun a => (p.val.1 a).val) (fun a => (q.val.1 a).val) *
∏ k, atomicRotation U (p.val.2 k) (q.val.2 k) else 0
/-- PDF p.4: simultaneous fundamental SU(2) action on a and b, pump fixed. -/
def fiveRotation (A m : ℕ) (U : Matrix (Fin 2) (Fin 2) ℂ) :
Matrix (OscBasis 2 A m) (OscBasis 2 A m) ℂ :=
fun p q => if p.val.2.val 2 = q.val.2.val 2 then
bosonAction 2 (∑ a, (q.val.1 a).val) U
(fun a => (p.val.1 a).val) (fun a => (q.val.1 a).val) *
bosonAction 2 (A - (q.val.2.val 2).val) U
(fun a => (p.val.2.val a.castSucc).val)
(fun a => (q.val.2.val a.castSucc).val) else 0
/-- PDF pp.2,4: a specified SU(2) lift taking polarization (1,0) to psi.
It is unitary with determinant one when psi has unit norm. -/
def polarizationLift (psi : EuclideanSpace ℂ (Fin 2)) : Matrix (Fin 2) (Fin 2) ℂ :=
!![psi 0, -conj (psi 1); psi 1, conj (psi 0)]
/-- PDF p.5 Eq.(19) in an arbitrary polarization, in oscillator coordinates. -/
def polarizedSector (A m l : ℕ) (psi : EuclideanSpace ℂ (Fin 2)) :
EuclideanSpace ℂ (OscBasis 2 A m) :=
act (fiveRotation A m (polarizationLift psi)) (emissionSectorKet A m l)
/-- PDF pp.2,5: sector ket in the ORIGINAL individual-atom convention. -/
def physicalSector (A m l : ℕ) (psi : EuclideanSpace ℂ (Fin 2)) :
EuclideanSpace ℂ (LambdaEnergyBasis 2 A m) :=
applyMatrix (singletEmbedding A m) (polarizedSector A m l psi)
/-- PDF p.5: projective measurement outcome with A-l excited atoms. -/
def selectExcited (A m l : ℕ) : Matrix (LambdaEnergyBasis 2 A m) (LambdaEnergyBasis 2 A m) ℂ :=
Matrix.diagonal fun p => if l ≤ A ∧ excitedCount p.val.2 = A - l then 1 else 0
/-- PDF p.5: Born probability of the measured excited-atom outcome. -/
def excitedOutcomeProbability (A m l : ℕ) (gamma t : ℝ) (psi : EuclideanSpace ℂ (Fin 2)) : ℝ :=
‖act (selectExcited A m l) (physicalOutput A m gamma t psi)‖ ^ 2
/-- PDF p.5: conditional physical DENSITY, defined only operationally when
success is positive. No vector phase equality is imposed by conditioning. -/
def conditionalPhysical (A m l : ℕ) (gamma t : ℝ)
(psi : EuclideanSpace ℂ (Fin 2)) : Matrix (LambdaEnergyBasis 2 A m) (LambdaEnergyBasis 2 A m) ℂ :=
((excitedOutcomeProbability A m l gamma t psi : ℂ)⁻¹) •
pureDensity (act (selectExcited A m l) (physicalOutput A m gamma t psi))
/-- PDF pp.5,7: actual embedding of the l-sector into M=m+l clone qubits
and l ground-state anti-clone qubits; the pump is fixed at A-l. -/
def sectorReadout (A m l : ℕ) :
Matrix (Qubits (m + l) × Qubits l) (OscBasis 2 A m) ℂ :=
fun x p => if hp : (p.val.1 1).val < m + l + 1 then
if hb : (p.val.2.val 1).val < l + 1 then
if l ≤ A ∧ (p.val.1 0).val + (p.val.1 1).val = m + l ∧
(p.val.2.val 0).val + (p.val.2.val 1).val = l ∧
(p.val.2.val 2).val = A - l then
QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding (m + l) x.1 ⟨(p.val.1 1).val, hp⟩ *
QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding l x.2 ⟨(p.val.2.val 1).val, hb⟩ else 0
else 0 else 0
/-- PDF pp.5-7: readout from the full physical space, including the explicit
atomic relabeling, projection onto the measured sector and Bose identification. -/
def physicalReadout (A m l : ℕ) :
Matrix (Qubits (m + l) × Qubits l) (LambdaEnergyBasis 2 A m) ℂ :=
sectorReadout A m l * groundRelabel A m * (physicalEmbedding 2 A m)ᴴ
/-- PDF p.7 Eqs.(27)-(30): sampled clone density, after the actual atomic
measurement and after discarding the ground-state and pump ancillas. -/
def sampledPhysical (A m l : ℕ) (gamma t : ℝ)
(psi : EuclideanSpace ℂ (Fin 2)) (k : Fin (m + l)) : Matrix (Fin 2) (Fin 2) ℂ :=
QAlgorithms.Papers.Independent.Support21.P18.siteReduction (traceRight (physicalReadout A m l *
conditionalPhysical A m l gamma t psi * (physicalReadout A m l)ᴴ)) k
/-- PDF p.5 Eq.(20): relative frequency evaluated on the normalized sector
ket itself; it is not a free scalar constrained to equal a binomial sum. -/
def sectorFidelity (A m l : ℕ) : ℝ :=
∑ p : OscBasis 2 A m, Complex.normSq (emissionSectorKet A m l p) *
((p.val.1 0).val : ℝ) / (m + l)
/-- PDF p.5 Eq.(20): optimal m-to-M single-copy benchmark, M>0 in uses. -/
def benchmark (m M : ℕ) : ℝ :=
((M * m + M + m : ℕ) : ℝ) / ((M : ℝ) * (m + 2))
/-- PDF p.7: clone density from photon occupation coordinates. -/
def photonDensity (M : ℕ) (rho : Matrix (Fin (M + 1)) (Fin (M + 1)) ℂ) :
Matrix (Qubits M) (Qubits M) ℂ :=
QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M * rho * (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M)ᴴ
/-- PDF pp.7-8: the sampled-photon density for a fixed output count. -/
def photonSample (M : ℕ) (rho : Matrix (Fin (M + 1)) (Fin (M + 1)) ℂ)
(k : Fin M) : Matrix (Fin 2) (Fin 2) ℂ :=
QAlgorithms.Papers.Independent.Support21.P18.siteReduction (photonDensity M rho) k
/-- PDF p.8: polarization covariance of a fixed input-independent photon map.
This is a condition on a single operation, never an input-dependent algorithm. -/
def PolarizationCovariant (m M : ℕ) (T : Superop (Fin (m + 1)) (Fin (M + 1))) : Prop :=
∀ U : Matrix.unitaryGroup (Fin 2) ℂ, ∀ rho,
T (QAlgorithms.Papers.Independent.Support21.P18.symmetricAction m U.val * rho * (QAlgorithms.Papers.Independent.Support21.P18.symmetricAction m U.val)ᴴ) =
QAlgorithms.Papers.Independent.Support21.P18.symmetricAction M U.val * T rho * (QAlgorithms.Papers.Independent.Support21.P18.symmetricAction M U.val)ᴴ
/-- PDF pp.5,8: fixed input injection of the m-photon Bose space into the
full physical sector, with all atoms excited. -/
def excitedInputEmbedding (A m : ℕ) : Matrix (LambdaEnergyBasis 2 A m) (Fin (m + 1)) ℂ :=
fun p j => if (∀ k, (p.val.2 k).val = 2) ∧
(p.val.1 0).val + (p.val.1 1).val = m ∧ (p.val.1 1).val = j.val then 1 else 0
/-- PDF pp.5,8: Kraus matrix for measuring output photon number m+l and
tracing out one particular individual-atom word. -/
def branchKraus (A m l : ℕ) (gamma t : ℝ) (w : AtomWord 2 A) :
Matrix (Fin (m + l + 1)) (Fin (m + 1)) ℂ :=
fun o j => ∑ p : LambdaEnergyBasis 2 A m,
if p.val.2 = w ∧ (p.val.1 0).val = m + l - o.val ∧
(p.val.1 1).val = o.val then
(QAlgorithms.Papers.Independent.Claimed50.P15.propagator (physicalH 2 A m gamma) t * excitedInputEmbedding A m) p j else 0
/-- PDF pp.5,8: physical CP branch for fixed output number. The operation is
constructed BEFORE the unknown polarization is supplied. -/
def physicalBranch (A m l : ℕ) (gamma t : ℝ) :
Superop (Fin (m + 1)) (Fin (m + l + 1)) :=
krausApply (branchKraus A m l gamma t)
/-- PDF pp.5,8: fixed scalar branch weight evaluated on a reference input.
Theorems derive its independence of the input; that is not a definition premise. -/
def emissionBranchWeight (A m l : ℕ) (gamma t : ℝ) : ℝ :=
(physicalBranch A m l gamma t (pureDensity (ket (0 : Fin (m + 1))))).trace.re
/-- PDF p.8: scalar normalization on ALL operators. It is a channel only
when the proved scalar success effect is positive. -/
def normalizedBranch (A m l : ℕ) (gamma t : ℝ) :
Superop (Fin (m + 1)) (Fin (m + l + 1)) :=
fun rho => ((emissionBranchWeight A m l gamma t : ℂ)⁻¹) • physicalBranch A m l gamma t rho
/-! Atomic collective lowering operators for Appendix A and its r-ground extension. -/
/-- PDF p.9 Eq.(A2): sum_k |g_a><e| on individual atoms alone. -/
def collectiveLower (r A : ℕ) (a : Fin r) : Matrix (AtomWord r A) (AtomWord r A) ℂ :=
fun x y => ∑ k : Fin A,
if (y k).val = r ∧ x = Function.update y k a.castSucc then 1 else 0
/-- PDF p.9 Eq.(A2): b_a^dagger c in the actual atomic occupation coordinates.
Its factor excludes photon stimulation, which is left unapplied in (A2). -/
def occupationLower (r A : ℕ) (a : Fin r) :
Matrix (QAlgorithms.Papers.Independent.Support21.P16.BoseOccupation (r + 1) A) (QAlgorithms.Papers.Independent.Support21.P16.BoseOccupation (r + 1) A) ℂ :=
fun p q => if (p.val a.castSucc).val = (q.val a.castSucc).val + 1 ∧
(q.val (Fin.last r)).val = (p.val (Fin.last r)).val + 1 ∧
(∀ b : Fin r, b ≠ a → p.val b.castSucc = q.val b.castSucc) then
(Real.sqrt (((q.val a.castSucc).val + 1 : ℝ) * (q.val (Fin.last r)).val) : ℂ) else 0
/-! Small sanity checks of definitions, with no source-result proofs. -/
example (r : ℕ) (w : AtomWord r 0) : excitedCount w = 0 := by
simp [excitedCount]
example {I J : Type*} [Fintype I] (v : EuclideanSpace ℂ I) :
applyMatrix (0 : Matrix J I ℂ) v = 0 := by
simp [applyMatrix]
example (r m : ℕ) (gamma : ℝ) : physicalH r 0 m gamma = 0 := by
ext p q
simp [physicalH]
example (A m : ℕ) (p q : LambdaEnergyBasis 2 A m) : physicalH 2 A m 0 p q = 0 := by
simp [physicalH]
example (psi : EuclideanSpace ℂ (Fin 2)) :
polarizationLift psi 0 0 = psi 0 ∧ polarizationLift psi 1 0 = psi 1 := by
simp [polarizationLift]
example (m : ℕ) (gamma : ℝ) : emissionTransfer 0 m gamma = 0 := by
ext k l
have hk : k.val = 0 := by omega
have hl : l.val = 0 := by omega
simp [emissionTransfer, hk, hl]
example : benchmark 1 2 = 5 / 6 := by norm_num [benchmark]
example (r : ℕ) (a : Fin r) : collectiveLower r 0 a = 0 := by
ext x y
simp [collectiveLower]
/-! V atoms: ordered pairs are explicit; individual level labels e1=0,e2=1,g=2. -/
/-- PDF p.6 Eq.(25): all three signed normalized pair columns. -/
def pairKet : Matrix (Fin 3 × Fin 3) (Fin 3) ℂ :=
fun p q => (Real.sqrt 2 : ℂ)⁻¹ *
(if q = 2 then
(if p = (0, 1) then 1 else if p = (1, 0) then -1 else 0)
else if q = 0 then
(if p = (2, 1) then 1 else if p = (1, 2) then -1 else 0)
else (if p = (0, 2) then 1 else if p = (2, 0) then -1 else 0))
/-- PDF pp.6-7: A fixed ordered pairs, containing 2A individual V atoms. -/
abbrev VWord (A : ℕ) := Fin A → Fin 2 → Fin 3
/-- PDF p.6: true physical excitation count of the V atoms, including the
one residual physical excitation of each effective ground-state pair. -/
def vExcited {A : ℕ} (w : VWord A) : ℕ :=
∑ k, (Finset.univ.filter fun s : Fin 2 => (w k s).val < 2).card
/-- PDF p.6 Eq.(22): entire conserved V sector, not just antisymmetric pairs. -/
abbrev VBasis (A m : ℕ) :=
{x : PhotonCounts 2 (m + 2 * A) × VWord A //
(∑ a, (x.1 a).val) + vExcited x.2 = m + 2 * A}
/-- PDF p.6 Eq.(22): physical single-atom emission, with no pair restriction. -/
def vEmits {A m : ℕ} (a : Fin 2) (k : Fin A) (s : Fin 2)
(p q : VBasis A m) : Prop :=
q.val.2 k s = a.castSucc ∧
p.val.2 = Function.update q.val.2 k (Function.update (q.val.2 k) s 2) ∧
(p.val.1 a).val = (q.val.1 a).val + 1 ∧
∀ b, b ≠ a → p.val.1 b = q.val.1 b
/-- PDF p.6 Eq.(22): common equal coupling to all 2A individual V atoms. -/
def vH (A m : ℕ) (gamma : ℝ) : Matrix (VBasis A m) (VBasis A m) ℂ :=
fun p q => (gamma : ℂ) * ∑ k : Fin A, ∑ s : Fin 2, ∑ a : Fin 2,
((if vEmits a k s p q then (Real.sqrt ((q.val.1 a).val + 1 : ℝ) : ℂ) else 0) +
(if vEmits a k s q p then (Real.sqrt ((p.val.1 a).val + 1 : ℝ) : ℂ) else 0))
/-- PDF pp.6-7 Eqs.(25),(26): tensor product of the explicit pair columns,
with photons unchanged. Domain is the full original Lambda sector. -/
def pairEmbedding (A m : ℕ) : Matrix (VBasis A m) (LambdaEnergyBasis 2 A m) ℂ :=
fun p q => if (∀ a, (p.val.1 a).val = (q.val.1 a).val) then
∏ k, pairKet (p.val.2 k 0, p.val.2 k 1) (q.val.2 k) else 0
/-- PDF p.6 Eq.(23), p.7 Eq.(26): normalized photon input times A pair singlets. -/
def vInput (A m : ℕ) (psi : EuclideanSpace ℂ (Fin 2)) :
EuclideanSpace ℂ (VBasis A m) :=
applyMatrix (pairEmbedding A m) (physicalInput A m psi)
/-- PDF pp.6-7: V evolution on its full energy sector. -/
def vOutput (A m : ℕ) (gamma t : ℝ) (psi : EuclideanSpace ℂ (Fin 2)) :
EuclideanSpace ℂ (VBasis A m) :=
act (QAlgorithms.Papers.Independent.Claimed50.P15.propagator (vH A m gamma) t) (vInput A m psi)
/-- PDF p.6: V branch Kraus matrices, tracing out all individual V atoms. -/
def vBranchKraus (A m l : ℕ) (gamma t : ℝ) (w : VWord A) :
Matrix (Fin (m + l + 1)) (Fin (m + 1)) ℂ :=
fun o j => ∑ p : VBasis A m,
if p.val.2 = w ∧ (p.val.1 0).val = m + l - o.val ∧
(p.val.1 1).val = o.val then
(QAlgorithms.Papers.Independent.Claimed50.P15.propagator (vH A m gamma) t * pairEmbedding A m * excitedInputEmbedding A m) p j else 0
/-- PDF pp.6-7: the actual V photonic instrument branch. -/
def vBranch (A m l : ℕ) (gamma t : ℝ) :
Superop (Fin (m + 1)) (Fin (m + l + 1)) := krausApply (vBranchKraus A m l gamma t)
/-! One atom, in the ORIGINAL atomic convention, and the explicit BH readout. -/
/-- PDF p.3 Eqs.(5),(7): original atomic g1,g2 coefficients, both positive. -/
def oneAtomKet : EuclideanSpace ℂ (LambdaEnergyBasis 2 1 1) :=
WithLp.toLp 2 fun p =>
if p.val.2 0 = 0 ∧ (p.val.1 0).val = 2 ∧ (p.val.1 1).val = 0 then
(Real.sqrt (2 / 3 : ℝ) : ℂ)
else if p.val.2 0 = 1 ∧ (p.val.1 0).val = 1 ∧ (p.val.1 1).val = 1 then
(Real.sqrt (1 / 3 : ℝ) : ℂ) else 0
/-- PDF p.3 Eq.(8): original atomic g1 is down=0, g2 is up=1.
Our false qubit denotes the source's photon state |1>. -/
def bhReadout : Matrix (Qubits 2 × Fin 2) (LambdaEnergyBasis 2 1 1) ℂ :=
fun x p => if h : (p.val.1 1).val < 3 then
if (p.val.1 0).val + (p.val.1 1).val = 2 ∧ (p.val.2 0).val = x.2.val then
QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding 2 x.1 ⟨(p.val.1 1).val, h⟩ else 0 else 0
/-- PDF p.3 Eq.(8): BH three-qubit state in the explicit computational basis. -/
def bhKet : EuclideanSpace ℂ (Qubits 2 × Fin 2) :=
(Real.sqrt (2 / 3 : ℝ) : ℂ) • tensorVec (ket ![false, false]) (ket (0 : Fin 2)) +
(Real.sqrt (1 / 6 : ℝ) : ℂ) •
tensorVec (ket ![false, true] + ket ![true, false]) (ket (1 : Fin 2))
/-! Section IV: sampled fidelities and physical operations, including instruments. -/
/-- PDF p.7 Eq.(30): mean single-site fidelity on an arbitrary M-qubit density. -/
def meanCloneFidelity (M : ℕ) (rho : Matrix (Qubits M) (Qubits M) ℂ)
(psi : EuclideanSpace ℂ (Fin 2)) : ℝ :=
(∑ k : Fin M, effectProb (pureDensity psi) (QAlgorithms.Papers.Independent.Support21.P18.siteReduction rho k)) / M
/-- PDF pp.7-8: invariance under every exchange, without assuming Bose support. -/
def ExchangeInvariant (M : ℕ) (rho : Matrix (Qubits M) (Qubits M) ℂ) : Prop :=
∀ i j : Fin M, ∀ x y : Qubits M,
rho (x ∘ Equiv.swap i j) (y ∘ Equiv.swap i j) = rho x y
/-- PDF p.7 Eq.(30): photon relative frequency, pulled back through the actual
Bose occupation embedding, for any desired polarization. -/
def photonFrequency (M : ℕ) (rho : Matrix (Fin (M + 1)) (Fin (M + 1)) ℂ)
(psi : EuclideanSpace ℂ (Fin 2)) : ℝ :=
meanCloneFidelity M (photonDensity M rho) psi
/-- PDF p.8: physical finite-dimensional selected operation in Kraus form,
with its trace-nonincreasing effect explicitly positive. -/
def FiniteKrausBranch {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I]
(T : Superop I J) : Prop :=
∃ n : ℕ, ∃ E : Fin n → Matrix J I ℂ,
(1 - ∑ k, (E k)ᴴ * E k).PosSemidef ∧ ∀ rho, T rho = krausApply E rho
/-- PDF p.8: equivalence map on physical totally symmetric qubit operators,
zero-extended on the orthogonal complement of the input Bose space. -/
def toQubitMap (m M : ℕ) (T : Superop (Fin (m + 1)) (Fin (M + 1))) :
Superop (Qubits m) (Qubits M) :=
fun rho => QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M *
T ((QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding m)ᴴ * rho * QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding m) * (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M)ᴴ
/-- PDF p.8: inverse map, compression into the real occupation coordinates. -/
def toPhotonMap (m M : ℕ) (T : Superop (Qubits m) (Qubits M)) :
Superop (Fin (m + 1)) (Fin (M + 1)) :=
fun rho => (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M)ᴴ *
T (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding m * rho * (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding m)ᴴ) * QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M
/-- PDF p.8: physical channel on the Bose corner in Bool tensor coordinates.
A finite Kraus extension is CP; only the Bose corner has trace preservation. -/
def BoseChannel (m M : ℕ) (T : Superop (Qubits m) (Qubits M)) : Prop :=
let P := QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding m * (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding m)ᴴ
let Q := QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M * (QAlgorithms.Papers.Independent.Support21.P18.occupationEmbedding M)ᴴ
(∃ n : ℕ, ∃ E : Fin n → Matrix (Qubits M) (Qubits m) ℂ,
∀ rho, T rho = krausApply E rho) ∧
(∀ rho, T rho = T (P * rho * P)) ∧
(∀ rho, Q * T rho * Q = T rho) ∧
∀ rho, (T rho).trace = (P * rho * P).trace
/-- PDF p.8: scalar success probability of a covariant selected photon map,
computed on a fixed reference input. -/
def mapWeight (m M : ℕ) (T : Superop (Fin (m + 1)) (Fin (M + 1))) : ℝ :=
(T (pureDensity (ket (0 : Fin (m + 1))))).trace.re
/-- PDF p.8: fixed scalar normalization, not nonlinear division by rho's trace. -/
def normalizeMap (m M : ℕ) (T : Superop (Fin (m + 1)) (Fin (M + 1))) :
Superop (Fin (m + 1)) (Fin (M + 1)) :=
fun rho => ((mapWeight m M T : ℂ)⁻¹) • T rho
/-! Appendix B is an explicitly different Hamiltonian approximation. -/
/-- PDF pp.9-10 Eq.(B1): leading large-m generator, with exact zero boundaries. -/
def leadingTransfer (A m : ℕ) (gamma : ℝ) :
Matrix (Fin (A + 1)) (Fin (A + 1)) ℂ :=
fun k l => if k.val = l.val + 1 then
(gamma * Real.sqrt m * Real.sqrt ((l.val + 1 : ℝ) * (A - l.val)) : ℂ)
else if l.val = k.val + 1 then
(gamma * Real.sqrt m * Real.sqrt ((k.val + 1 : ℝ) * (A - k.val)) : ℂ)
else 0
/-- PDF p.10 Eq.(B2): coefficients obtained by exponentiating B1. -/
def leadingAmplitude (A m : ℕ) (gamma t : ℝ) (l : Fin (A + 1)) : ℂ :=
QAlgorithms.Papers.Independent.Claimed50.P15.propagator (leadingTransfer A m gamma) t l 0
/-- PDF p.10 Eq.(B3): the actual measurement probabilities in the B1 model. -/
def leadingProbability (A m : ℕ) (gamma t : ℝ) (l : Fin (A + 1)) : ℝ :=
Complex.normSq (leadingAmplitude A m gamma t l)
/-! Additional construction sanity checks. -/
example : pairKet (0, 1) 2 = (Real.sqrt 2 : ℂ)⁻¹ ∧
pairKet (1, 0) 2 = -(Real.sqrt 2 : ℂ)⁻¹ := by
norm_num [pairKet]
example (m : ℕ) (gamma : ℝ) : leadingTransfer 0 m gamma = 0 := by
ext k l
have hk : k.val = 0 := by omega
have hl : l.val = 0 := by omega
simp [leadingTransfer, hk, hl]
example (M : ℕ) (psi : EuclideanSpace ℂ (Fin 2)) :
meanCloneFidelity M 0 psi = 0 := by
have hsite (k : Fin M) :
QAlgorithms.Papers.Independent.Support21.P18.siteReduction
(0 : Matrix (Qubits M) (Qubits M) ℂ) k = 0 := by
ext a b
simp [QAlgorithms.Papers.Independent.Support21.P18.siteReduction]
simp [meanCloneFidelity, hsite, effectProb]
example (A m l : ℕ) (gamma t : ℝ)
(rho : Matrix (Fin (m + 1)) (Fin (m + 1)) ℂ) :
normalizedBranch A m l gamma t rho =
((emissionBranchWeight A m l gamma t : ℂ)⁻¹) • physicalBranch A m l gamma t rho := rfl
example (A m l : ℕ) (hl : A < l) : emissionSectorKet A m l = 0 := by
ext p
simp [emissionSectorKet, Nat.not_le.mpr hl]
example (A m l : ℕ) (hl : A < l) : selectExcited A m l = 0 := by
ext p q
simp [selectExcited, Nat.not_le.mpr hl]
example (A m : ℕ) (p q : OscBasis 2 A m) : fiveH A m 0 p q = 0 := by
simp [fiveH]
example (A m : ℕ) (p q : VBasis A m) : vH A m 0 p q = 0 := by
simp [vH]
example (A : ℕ) (w : VWord A) : vExcited w =
∑ k, (Finset.univ.filter fun s : Fin 2 => (w k s).val < 2).card := rfl
example (A m l : ℕ) (gamma t : ℝ) (psi : EuclideanSpace ℂ (Fin 2)) :
excitedOutcomeProbability A m l gamma t psi =
‖act (selectExcited A m l) (physicalOutput A m gamma t psi)‖ ^ 2 := rfl
/-- PDF pp.3-4: atom permutations act on the full energy sector. -/
def atomPermutation (A m : ℕ) (pi : Equiv.Perm (Fin A)) :
Matrix (LambdaEnergyBasis 2 A m) (LambdaEnergyBasis 2 A m) ℂ :=
fun p q => if p.val.1 = q.val.1 ∧ p.val.2 = q.val.2 ∘ pi.symm then 1 else 0
/-- PDF p.8: universal operation on the physical Bose input/output corners. -/
def BoseUniversal (m M : ℕ) (T : Superop (Qubits m) (Qubits M)) : Prop :=
∀ U : Matrix.unitaryGroup (Fin 2) ℂ, ∀ rho,
T (QAlgorithms.Papers.Independent.Support21.P18.tensorRotation m U.val * rho *
(QAlgorithms.Papers.Independent.Support21.P18.tensorRotation m U.val)ᴴ) =
QAlgorithms.Papers.Independent.Support21.P18.tensorRotation M U.val * T rho *
(QAlgorithms.Papers.Independent.Support21.P18.tensorRotation M U.val)ᴴ
end QAlgorithms.Papers.Independent.Intake100.P37
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P37.AtomWord
For natural numbers , this denotes the set of functions . Thus each of indexed positions receives one of labels, including the label . When , there is exactly one such function, the empty function; when , every position has label zero.
QAlgorithms.Papers.Independent.Intake100.P37.BoseChannel
For any natural numbers and any function from complex matrices indexed by length- bitstrings to those indexed by length- bitstrings, let have entry at row , column , when has exactly true bits, and otherwise, and put , . This predicate requires the existence of a natural number and matrices from the input bitstring space to the output bitstring space such that, for every complex input matrix , all four equalities hold:
These conditions apply to all matrices, without positivity or normalization restrictions on . The parameters may be zero; , and when the first sum is zero while the remaining conditions are still required.
QAlgorithms.Papers.Independent.Intake100.P37.BoseUniversal
For natural numbers , including zero, let be any function from complex matrices indexed by -bit strings to complex matrices indexed by -bit strings; no linearity, positivity, or normalization assumption on is part of this definition. For a matrix , define , indexed by -bit strings, by
Then satisfies the defined property precisely when, for every unitary complex matrix and every complex matrix indexed by -bit strings,
Here denotes conjugate transpose. When , there is one empty bit string and the empty product defining is .
QAlgorithms.Papers.Independent.Intake100.P37.ExchangeInvariant
For any natural number and any complex matrix indexed by length- bitstrings, this predicate means that, for every pair of positions and every pair of bitstrings , simultaneously exchanging positions and in both matrix indices leaves the entry unchanged:
The positions may coincide. No positivity or normalization is required of . When , there are no positions , so the predicate holds vacuously.
QAlgorithms.Papers.Independent.Intake100.P37.FiniteKrausBranch
For any finite index types , with decidable equality on , and any function from complex matrices to complex matrices, this predicate means that there exist a natural number and matrices such that
The types may be empty, and is allowed; an empty Kraus sum gives the zero map. The equality is required on all input matrices, without a density-matrix restriction.
QAlgorithms.Papers.Independent.Intake100.P37.LambdaEnergyBasis
For natural numbers , this denotes the set of pairs , where and , satisfying the exact constraint
All three parameters may be zero, and empty sums and counts are zero. In particular, when , this set has one element if and is empty otherwise; when , the constraint reduces to .
QAlgorithms.Papers.Independent.Intake100.P37.OscBasis
For natural numbers , this denotes the set of pairs , where and , subject to both constraints
Here the coordinate is the last occupation coordinate. Zero values of the parameters are included: when , the set has one element if and is empty otherwise; when , all occupation coordinates vanish and .
QAlgorithms.Papers.Independent.Intake100.P37.PhotonCounts
For natural numbers , this denotes the set of functions . Thus each of indexed coordinates has an independently chosen integer value between and , inclusive; no condition is imposed on their sum. When , there is exactly one such function, the empty function; when , every coordinate is zero.
QAlgorithms.Papers.Independent.Intake100.P37.PolarizationCovariant
For natural numbers and an arbitrary function from complex matrices to complex matrices, this is the property that, for every unitary matrix and every complex matrix ,
Here , where has rows indexed by length- Boolean strings and entries if has true entries, and otherwise; moreover,
The quantifier over includes matrices that are not density matrices, and the definition assumes no linearity, positivity, or trace preservation of . Both and are allowed, with empty products equal to .
QAlgorithms.Papers.Independent.Intake100.P37.VBasis
For natural numbers , this is the finite set of pairs , where has integer entries , and assigns a label to each and , satisfying
Both and are allowed; when , the label assignment is empty and the condition is .
QAlgorithms.Papers.Independent.Intake100.P37.VWord
For every natural number , this abbreviates the type of functions assigning to each a function from to . Equivalently, it is the set of length- lists of ordered pairs of labels from . When , it contains exactly the empty function.
QAlgorithms.Papers.Independent.Intake100.P37.applyMatrix
For any types , with a specified finite enumeration of and no finiteness assumption on , any complex matrix with rows indexed by and columns indexed by , and any vector in the complex Euclidean coordinate space indexed by , this defines the vector indexed by whose coordinates are
No normalization or other condition is imposed on or . If is empty, the result is the zero vector; if is empty, the result has no coordinates.
QAlgorithms.Papers.Independent.Intake100.P37.atomPermutation
For any natural numbers and any permutation of the positions , this defines a complex matrix indexed by pairs , where , , and
For any two such indices , its entry is precisely when and , and is otherwise. Thus the photon-count coordinates are held fixed while the atomic word is permuted by the inverse permutation. Zero values of are permitted; when , the atomic word and its permutation are unique and the matrix is the identity on the remaining index set.
QAlgorithms.Papers.Independent.Intake100.P37.atomicRotation
For any complex two-by-two matrix , without assuming that is unitary, this defines the complex three-by-three matrix
Thus its upper-left block is the entrywise complex conjugate of , its entry at is , and its remaining entries are zero.
QAlgorithms.Papers.Independent.Intake100.P37.benchmark
For every pair of natural numbers , including zero, this defines the real number
with the numerator computed in the natural numbers and then converted to a real number. Real division by zero is defined to be zero, so gives value zero; there is no hypothesis relating and .
QAlgorithms.Papers.Independent.Intake100.P37.bhKet
This defines a complex vector indexed by a two-bit string and a label in :
Here and in the bit strings mean false and true, respectively, and each displayed basis vector has coordinate at its indicated index and zero elsewhere. Thus these are the vector’s only three nonzero coordinates.
QAlgorithms.Papers.Independent.Intake100.P37.bhReadout
This defines a complex matrix with row indices , where is a two-bit string and , and column indices , where and . Its entry is
The explicit guard is always satisfied by a column index.
QAlgorithms.Papers.Independent.Intake100.P37.bosonAction
For any natural numbers , any complex matrix indexed by , and any functions , this defines
The square roots are real and then embedded into . No unitarity assumption on , nor any requirement that the prescribed counts sum to , is imposed; if either total differs from , the value is zero. Empty products equal : for , the value is when both count functions are identically zero and is zero otherwise; for , the sums are empty and the value is zero.
QAlgorithms.Papers.Independent.Intake100.P37.branchKraus
For natural numbers , arbitrary real numbers , and a word , this defines a complex matrix with row indices and column indices . Let consist of pairs with and . For and , write when has atomic entry at , has the same atomic word with entry replaced by , and has photon counts obtained from those of by increasing count by and leaving the other count unchanged. Define
and let have photon counts and all atomic entries equal to . Then
The subtraction is natural-number subtraction, and the row-index bound ensures it is nonnegative. There is no assumption ; when , the indicated summation sets are empty and the matrix is zero. Zero values of and arbitrary signs of are included.
QAlgorithms.Papers.Independent.Intake100.P37.collectiveLower
For natural numbers and a label , this defines a complex matrix indexed by words , with
Thus each entry counts the positions at which replacing the value in by produces exactly . For , the sum is empty and the matrix is zero. For , there is no admissible parameter .
QAlgorithms.Papers.Independent.Intake100.P37.conditionalPhysical
For arbitrary natural numbers , real numbers , and , let consist of with and , where counts entries equal to . Let , for and , mean that atom changes from to , photon count increases by one, and all other atomic and photon coordinates remain equal. Define
Put and . The defined matrix has entries
Here the real number is embedded in before inversion, and the inverse of zero is zero, so gives the zero matrix. In particular, gives zero. No normalization of , positivity of , or restrictions on the real parameters are assumed; all natural parameters may be zero.
QAlgorithms.Papers.Independent.Intake100.P37.emissionAmplitude
For any natural numbers , real numbers , and index , this defines the complex number
where , is the imaginary unit, and is the matrix exponential. The parameters and may be any real numbers, including zero and negative values. In particular, at the value is for and otherwise; when , its sole value is .
QAlgorithms.Papers.Independent.Intake100.P37.emissionBranchWeight
For natural numbers and real numbers , this defines the real number
Here consists of photon counts and atomic words satisfying , while has photon counts and all atomic entries . The matrix has entry times the sum, over atomic positions and labels , of the forward-transition contribution when is obtained from by changing atomic entry at to and increasing photon count , together with the reverse-transition contribution when is obtained from in that way; other contributions are zero. Equivalently, is the real part of the trace of the matrix obtained by applying this family’s sum of conjugations to the coordinate projector at input index . No strict positivity of is required; in particular, gives .
QAlgorithms.Papers.Independent.Intake100.P37.emissionSectorKet
For any natural numbers , this defines a vector indexed by pairs , where , consists of nonnegative integers with , and . Its coordinate is
All square roots are real and the resulting value is regarded as complex. The subtractions in the natural-number expressions are truncated at zero; on the nonzero branch the displayed conditions ensure that no truncation changes or . The denominator is positive for all . If , the vector is zero; , , and are included.
QAlgorithms.Papers.Independent.Intake100.P37.emissionTransfer
For any natural numbers and real number , this defines a complex matrix with row and column indices by
The arithmetic inside the square roots is real arithmetic, and the entries are embedded into ; the index bounds make these radicands nonnegative. There is no positivity restriction on , and is allowed. For , this is the one-by-one zero matrix.
QAlgorithms.Papers.Independent.Intake100.P37.emits
For arbitrary natural numbers , indices and , and pairs , , where each has coordinates in , each has labels in , and each pair satisfies , this predicate means that all of the following hold: ; is obtained from by replacing its value at by ; ; and for every with . The required index does not exist when , and the required index does not exist when .
QAlgorithms.Papers.Independent.Intake100.P37.excitedCount
For any natural numbers and function , this defines the natural number , counting exactly the positions carrying the last label . It is zero when , and equals when .
QAlgorithms.Papers.Independent.Intake100.P37.excitedInputEmbedding
For natural numbers , let consist of pairs where has integer entries between and , , and . This defines a complex matrix with rows and columns by
Thus column is the coordinate vector for photon counts and the word whose entries are all . The definition includes , when the condition on all entries of is vacuous, and , when there is one column.
QAlgorithms.Papers.Independent.Intake100.P37.excitedOutcomeProbability
For arbitrary natural numbers , real numbers , and an arbitrary vector , let consist of with nonnegative integer photon counts, , and , where . For and , write when , the word of is obtained from that of by replacing position with , and the photon counts of are those of with count increased by . Define
and define
The defined real number is
No normalization of or restrictions on are required. The value is zero when , and empty sums, including the interaction sum when , equal zero.
QAlgorithms.Papers.Independent.Intake100.P37.fiveH
For any natural numbers and real number , this defines a complex matrix indexed by pairs , where consists of integers between and , and consists of nonnegative integers satisfying and . For , let mean that , , , , and . The matrix entry is
with the real quantities regarded as complex numbers. Zero values of and are allowed; when , every entry is zero.
QAlgorithms.Papers.Independent.Intake100.P37.fiveRotation
For any natural numbers and arbitrary complex two-by-two matrix , this defines a matrix indexed by , where , are nonnegative integers summing to , and . Its entry is
where, for nonnegative count pairs ,
The subtraction defining is natural-number subtraction truncated at zero, although the occupation constraints ensure . No unitarity assumption is imposed on , and zero values of are included with empty products equal to .
QAlgorithms.Papers.Independent.Intake100.P37.groundRelabel
For natural numbers , this defines a complex matrix indexed by pairs , where has two coordinates in , has three coordinates in , and
For any two such indices , its entry is if , , , and , and is zero otherwise. The sign uses the column occupation . Both parameters may be zero; when , all occupation coordinates vanish and the matrix is the identity on its index set.
QAlgorithms.Papers.Independent.Intake100.P37.leadingAmplitude
For any natural numbers , real numbers , and index , this defines the complex number
where is the matrix whose entries satisfy
and whose other entries are zero. The exponential is the matrix exponential, and neither nor is restricted in sign. Zero values of are allowed; if , , , or , the amplitude is for and for other available indices.
QAlgorithms.Papers.Independent.Intake100.P37.leadingProbability
For any natural numbers , real numbers , and index , this defines
where has entries for , and all other entries zero. The squared modulus means the square of the real part plus the square of the imaginary part. The real parameters are unrestricted, and may be zero. If , , , or , the value is at and at every other available index.
QAlgorithms.Papers.Independent.Intake100.P37.leadingTransfer
For any natural numbers and any real number , this defines a complex matrix with row and column indices by
with the displayed real values embedded in . The differences inside the square roots are real differences and are nonnegative for these indices. The parameter is unrestricted. If or , the matrix is zero.
QAlgorithms.Papers.Independent.Intake100.P37.mapWeight
For any natural numbers and any function , this defines
where has coordinate at index and elsewhere. No assumptions on impose positivity, linearity, or any particular value or sign on this real number. Both and are allowed.
QAlgorithms.Papers.Independent.Intake100.P37.meanCloneFidelity
For every natural number , arbitrary complex matrix indexed by -bit strings, and arbitrary complex two-coordinate vector , this defines the real number
The bits represent false and true, replaces coordinate with , and . No positivity, trace, or normalization assumptions are imposed on or . When , the sum is empty and real division by zero makes the defined value .
QAlgorithms.Papers.Independent.Intake100.P37.normalizeMap
For any natural numbers and any function , let
where is the coordinate vector at index in . This defines the function , using as a complex scalar. The definition assumes neither that is positive nor that it is nonzero, and imposes no channel or linearity condition on . If , its inverse is defined to be , and the resulting function is the zero map. Zero values of are included.
QAlgorithms.Papers.Independent.Intake100.P37.normalizedBranch
For natural numbers and arbitrary real numbers , this defines the function
on all complex matrices, with outputs of size . The words range over all maps from to ; consists of such words paired with counts satisfying ; and has counts and all atomic entries . The entry is times the sum over positions and of for each transition from to that changes atomic entry at to and increases photon count by , plus for each reverse transition. The scalar is fixed using input index , independently of , and its inverse is taken in . In particular, if , its inverse is and the defined function is zero; no positive-weight hypothesis or trace-one assertion is included.
QAlgorithms.Papers.Independent.Intake100.P37.occupationLower
For natural numbers and , this defines a complex matrix indexed by occupation lists whose entries are integers between and and whose sums are . Its entry is
The square root is the real square root, regarded as a complex number. When , the transition conditions cannot hold and the matrix is zero. When , no label is available.
QAlgorithms.Papers.Independent.Intake100.P37.oneAtomKet
This defines a complex vector indexed by triples , where , , and . Its coordinate is at , at , and zero at every other permitted triple.
QAlgorithms.Papers.Independent.Intake100.P37.oscEmits
For natural numbers , indices , and pairs , , where each has coordinates in , each has coordinates in , and each pair satisfies and , this predicate means precisely
The indices are allowed to differ. They do not exist when ; when , the required occupation changes are impossible.
QAlgorithms.Papers.Independent.Intake100.P37.oscH
For natural numbers and any real number , this defines a complex matrix indexed by pairs , with for , for , , and . For two indices , , let mean that , all other count coordinates agree, , , and all other occupation coordinates with index below agree. The matrix entry is
where indicators are one or zero according to their conditions and real values are regarded as complex. No positivity assumption is made on . When , the sum is empty; when , neither transition condition can hold, so in either case the matrix is zero.
QAlgorithms.Papers.Independent.Intake100.P37.pairEmbedding
For natural numbers , this defines a complex matrix whose row indices are configurations with , , and , and whose column indices are configurations with , , and . Its entries are
where , , and every other value of is zero. For , the product is .
QAlgorithms.Papers.Independent.Intake100.P37.pairKet
This defines a complex matrix with rows indexed by ordered pairs from and columns indexed by . Writing for the coordinate vector at row , its three columns are
All entries not specified by these columns are zero.
QAlgorithms.Papers.Independent.Intake100.P37.photonDensity
For every natural number and every arbitrary complex matrix , this defines a complex matrix indexed by length- Boolean strings. If denotes the number of true entries of a string , its entries are
Equivalently, this is , where is when and zero otherwise, for . No positivity or trace condition on is assumed. When , there is one empty Boolean string and the resulting matrix has its sole entry equal to .
QAlgorithms.Papers.Independent.Intake100.P37.photonFrequency
For any natural number , any complex matrix , and any vector , define the matrix , whose rows are length- bitstrings and columns are , by
Put . For each position , define the matrix
where false corresponds to and true to . The defined real number is
Neither nor is assumed normalized or positive. At , the sum is empty and division by zero is defined to give , so the result is .
QAlgorithms.Papers.Independent.Intake100.P37.photonSample
For every natural number , every complex matrix indexed by , and every , this defines a matrix as follows. Let have rows indexed by Boolean strings of length and columns indexed by , with when has exactly true entries and otherwise. Put . For , the defined matrix has entry
No positivity or trace condition is imposed on . When , there is no admissible index .
QAlgorithms.Papers.Independent.Intake100.P37.physicalBranch
For natural numbers and real numbers , this defines a function on arbitrary complex matrices by
where , , consists of photon counts and atomic words with , and has counts and all atomic entries . Explicitly, is times the sum over atomic positions and labels of whenever is obtained from by replacing atomic entry at by and increasing photon count by , plus whenever the same transition goes from to . The output is an matrix. The definition imposes no normalization on and states no trace-preservation condition. All natural-number edge cases are included; if , every and hence the function are zero.
QAlgorithms.Papers.Independent.Intake100.P37.physicalEmbedding
For natural numbers , this defines a complex matrix whose row indices are pairs , with counts , labels , and , and whose column indices are pairs , with the same count ranges, occupation coordinates for , and constraints and . The entry at is
with the square root regarded as complex. Zero parameters are allowed, using and the usual empty-count conventions.
QAlgorithms.Papers.Independent.Intake100.P37.physicalH
For natural numbers and any real number , this defines a complex matrix indexed by pairs with for , for , and . For two such indices , , let mean that , equals with position replaced by , , and for every . Its entry is
where is one when holds and zero otherwise, and the real quantities are regarded as complex numbers. There is no sign restriction on ; if or , the sums are empty and the matrix is zero.
QAlgorithms.Papers.Independent.Intake100.P37.physicalInput
For any natural numbers and any vector , without a normalization assumption, this defines a vector indexed by , where , , and . Its coordinate is
The square root is real and then embedded into . When , the condition on is vacuous; when , the nonzero coordinate has and value , even if , because zeroth powers are .
QAlgorithms.Papers.Independent.Intake100.P37.physicalOutput
For any natural numbers , real numbers , and arbitrary vector , this defines the vector , with ordinary matrix action. Its indices are , where , , and . Here
and
The condition means that , equals with its -th value replaced by , , and for every . No normalization of or sign restriction on is imposed; and are included, empty sums are zero, and zeroth powers are .
QAlgorithms.Papers.Independent.Intake100.P37.physicalReadout
For arbitrary natural numbers , let consist of with and , where for . This defines a matrix with rows indexed by and columns indexed by . Its entries, expanding the occupation embedding and the signed interchange of the two ground-state counts, are
where and count true bits. The displayed conditions imply the index bounds needed by the occupation embeddings. There is no restriction excluding zero parameters; empty bit strings have weight zero, , and gives the zero matrix.
QAlgorithms.Papers.Independent.Intake100.P37.physicalRotation
For any natural numbers and arbitrary complex two-by-two matrix , this defines a matrix indexed by , where , , and . Its entry is zero unless ; when these totals agree and equal , its entry is
where for , , and all other entries of are zero, and, for ,
There is no unitarity assumption on . The parameters may be zero; the atomic product for and every product over a word of length zero equal .
QAlgorithms.Papers.Independent.Intake100.P37.physicalSector
For arbitrary natural numbers and , this defines a vector on the finite set
To specify its coordinates, use the auxiliary index set
the matrix , and the vector
For count pairs , set
and set unless , in which case
For and , define unless their photon counts agree and
when these conditions hold, define
The defined physical vector has coordinate at . All three natural parameters may be zero, need not be normalized, and gives the zero vector; natural-number subtraction is truncated at zero and empty products equal .
QAlgorithms.Papers.Independent.Intake100.P37.polarizationLift
For every vector , with no normalization assumption, this defines the complex matrix
QAlgorithms.Papers.Independent.Intake100.P37.polarizedSector
For arbitrary natural numbers and an arbitrary vector , this defines a vector indexed by
Put , and, for , put
For and count pairs , define
For , let
where and . The defined vector has coordinate at . No assumption or is imposed; when the vector is zero. Natural-number subtraction is truncated at zero, and empty products equal .
QAlgorithms.Papers.Independent.Intake100.P37.sampledPhysical
For arbitrary natural numbers , real numbers , , and a site , this defines a complex matrix as follows. Let consist of with and , where counts atoms equal to . For and , let mean that atom changes from to , photon count increases by one, and all other coordinates remain equal, and set
Put and . For bit strings and , define , where
The resulting matrix has, for , entry
where replaces bit by and bit weights count true entries. The inverse of zero is zero, so , including , gives the zero matrix. No normalization of is assumed; the supplied site requires , while , , or individually may be zero.
QAlgorithms.Papers.Independent.Intake100.P37.sectorFidelity
For arbitrary natural numbers , let
and define, for ,
This defines the real number
The modulus squared is the complex norm squared. Natural-number subtraction is truncated at zero, and real division by zero is defined to be zero; consequently gives value zero. The definition also gives zero when and imposes no positivity assumptions on the natural parameters.
QAlgorithms.Papers.Independent.Intake100.P37.sectorReadout
For arbitrary natural numbers , let
This defines a complex matrix with rows indexed by pairs and columns indexed by . Writing and for the numbers of true bits, its entry is
All guards are part of the definition, and makes every entry zero. Natural-number subtraction is truncated at zero; zero-length bit strings are included and have weight zero.
QAlgorithms.Papers.Independent.Intake100.P37.selectExcited
For arbitrary natural numbers , let consist of pairs of photon counts and atomic words satisfying , where . This defines the diagonal complex matrix indexed by whose diagonal entry at is exactly when and , and is otherwise; every off-diagonal entry is zero. Subtraction is natural-number subtraction, and the explicit condition makes the entire matrix zero when . The parameters may all be zero.
QAlgorithms.Papers.Independent.Intake100.P37.singletEmbedding
For any natural numbers , this defines a complex matrix whose row indices are , with , , and , and whose column indices are , with , nonnegative integers , and . Its entry is
Equivalently, this is the matrix product of the photon-preserving occupation embedding with the conjugate transpose of the matrix that swaps the first two atomic occupation numbers and assigns the input occupation the sign . The definition includes and , with .
QAlgorithms.Papers.Independent.Intake100.P37.toPhotonMap
For any natural numbers and any function from complex matrices indexed by length- bitstrings to complex matrices indexed by length- bitstrings, this defines a function on matrices by
Here , for each natural number , has rows indexed by length- bitstrings and columns ; its entry is if the row bitstring has exactly true bits and otherwise. The resulting matrix has size . No linearity, positivity, or normalization is assumed of or the input. Zero values of are permitted, with .
QAlgorithms.Papers.Independent.Intake100.P37.toQubitMap
For any natural numbers and any function , this defines a function from matrices indexed by length- bitstrings to matrices indexed by length- bitstrings by
where, for each natural number , has rows indexed by length- bitstrings and columns , with entry when the row bitstring has exactly true bits and otherwise. No linearity, positivity, or normalization is assumed of or . Zero values of and are included; is the matrix with entry .
QAlgorithms.Papers.Independent.Intake100.P37.vBranch
For natural numbers and real numbers , this defines a function from complex matrices to complex matrices by
where ranges over all assignments , , . To specify , let consist of with and , and set
Here , , and
where , , and means that one label at becomes , photon count increases by one, and everything else is unchanged. The definition applies to every input matrix , without a positivity or trace assumption, and imposes no condition .
QAlgorithms.Papers.Independent.Intake100.P37.vBranchKraus
For natural numbers , real numbers , and any label assignment for , , this defines a complex matrix with row indices and column indices . Let consist of configurations with and . Then
where, for ,
Here , with meaning that the label at in becomes in , photon count increases by one, and all other entries stay fixed. There is no hypothesis . The subtraction is natural-number subtraction, which truncates at zero, though the row-index bound ensures no truncation here; empty sums and products have their usual values.
QAlgorithms.Papers.Independent.Intake100.P37.vEmits
For natural numbers , indices and , and configurations , , this predicate holds exactly when
Here each configuration has photon counts between and , labels in , and satisfies , with the analogous condition for . If , there is no permitted index .
QAlgorithms.Papers.Independent.Intake100.P37.vExcited
For every natural number and every function , this defines
It counts, with both positions of every ordered pair included, the entries equal to or ; entries equal to contribute zero. For , the sum is empty and its value is .
QAlgorithms.Papers.Independent.Intake100.P37.vH
For natural numbers and any real number , this defines a complex matrix indexed by configurations with , , and . For , its entry is
where means that , is obtained from by replacing that one label with , , and the other photon count is unchanged. The matrix is zero when , since the sum is empty; no sign restriction is imposed on .
QAlgorithms.Papers.Independent.Intake100.P37.vInput
For natural numbers and any complex two-coordinate vector , this defines a vector indexed by configurations with , labels , and . Unfolding the matrix multiplication, its coordinate is
There is no normalization assumption on . Empty products equal , and powers with exponent zero equal , including when their base is zero.
QAlgorithms.Papers.Independent.Intake100.P37.vOutput
For natural numbers , real numbers , and any complex two-coordinate vector , this defines the vector . Its coordinates are indexed by with , , and . The initial coordinate is zero unless ; otherwise it is
For , the matrix in the exponential is
where , , and means that , that single label becomes in , photon count increases by one, and everything else is unchanged. No normalization or sign assumptions are imposed on ; and are included.
QAlgorithms.Papers.Independent.Intake100.P37.wordCounts
For any natural numbers , any word , and any symbol , this defines the natural number
When , every such count is zero. When , there is no symbol to supply, and for there is also no word of the required type.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.