Definitions for Restrictions on realizable unitary operations imposed by symmetry and locality
DefinitionQAlgorithms_Papers_Independent_Extend50_P14The objects the formalized statements of Restrictions on realizable unitary operations imposed by symmetry and locality (arXiv:2003.05524) are stated in. Each was checked against the paper by a blind read-back and a moderator.
SiteBasisTensorSupported: PDF pp.1,13: support means an operator on the selected tensor factors, with the identity on every complementary factor.SiteLocal: PDF p.1: a single k-local operator, as opposed to a sum of local terms.OnSite: PDF p.13, A1–A2: on-site unitary representations, allowing heterogeneous sites.OnSite.total: PDF p.13, A2: the specified tensor product representation.CommutesWithAction: PDF pp.1,13: the commutant of a representation.localGates: PDF p.13, A4: the actual generator set.symmetricLocalGroup: PDF p.13, A4: algebraic submonoid closure consists of finite gate products. The generators contain their inverses, so it is the generated group.symmetricLocalLie: PDF p.13, A5: real Lie closure, with the ordinary matrix commutator.localTermSpan: PDF p.2: a sum of local terms need not have individually invariant terms.schrodingerEvolution: PDF p.13: Schrödinger sign convention.Propagator: PDF pp.14–15,31: entrywise integral Schrödinger equation from I. Integrability on the closed interval and the integral equation include finite pulses; unitarity is an invariant of the stipulated physical propagator.QMatqubitWeight: PDF p.23: Hamming weight.zString: PDF p.23, C2: unnormalized Pauli Z string on a bit mask.chargeSector: PDF p.23: full physical charge-sector projector, including the end sectors.u1Central: PDF p.23, C2: sum of all Z strings of weight l, with no normalization.phaseWeight: PDF p.23, C3: integer Krawtchouk coefficient; the s≤l guard prevents natural subtraction from counting spurious terms when s>l.totalZ: PDF p.23, C1: total Z; commuting with it is exactly U(1) invariance.U1Invariant: PDF p.23: this definition is used for Hermitian and skew-Hermitian operators.U1Unitary: PDF p.1: a physical U(1)-invariant unitary.rotations: PDF p.23, C1: all rotations, not one selected group element.u1Lie: PDF p.24, C7.u1Group: PDF p.2: finite local symmetric circuits on the actual qubit register.xyExchange: PDF p.26, C23: R=(XX+YY)/2, for distinct sites.exchangeControls: PDF pp.24,32, C9/D8: all exchange and single-site Z Hamiltonians.xyZLie: PDF p.24, C10: real Lie algebra with the source's factor 1/2.controlGenerated: PDF pp.24,32: finite exchange/Z circuits. All real angles give exactly the same gates as [0,2π), since R and Z have integer spectra.xyZGroup: PDF p.32, D8.chargeSectorDet: PDF pp.31–32: determinant of the full physical sector, by identity extension.u1BodyPhase: PDF p.32, D7: l-body phase in ℝ/(2πℤ), including l=0.u1DualCentral: PDF p.33, D11: dual central element; only l≤n is used in theorems.u1FinitePhaseGroup: PDF p.33, D15: integer powers of the prescribed generators.u1PhaseFactor: PDF p.33, D16: principal representatives are chosen before exponentiation.initialString: PDF p.33, D17: one fixed initial string per weight; l=0 is I.stringPhaseFactor: PDF p.33, D17: includes the displayed factor i missing in the preceding prose.lowerBit: PDF pp.35–36: remove the occupied input bit participating in the Bell pair.bellInterference: PDF p.35, E5: the actual Bell-input/interference-outcome probability.restrictedInterference: PDF p.36, E12: probability from the restricted one-exchange circuit.withZero: PDF pp.5,41: ground-state ancilla embedding, in the fixed wire order.Catalyzes: PDF pp.5,41: exact coherent action with the same returned ancilla for all inputs.qubitCatalystControls: PDF p.41: only the ancilla has a single-site Z control.geometricCatalystControls: PDF p.42: chain system edges, with either all ancilla spokes or one endpoint. The endpoint scheme also has ZZ on every chain edge and the ancilla edge.diagonalChainControls: PDF p.28, C34: diagonal controls and adjacent exchanges, with j<n.geometricGroup: PDF p.2: connected-support k-local gates on a specified graph.CompactConnectedMatrixLieGroup: PDF p.14: finite-dimensional embedded matrix Lie structure can be specified by its local exponential chart: small skew-Hermitian logarithms belong precisely to the indicated real Lie algebra. Ambient matrix exponential is a chart near zero.EnergyBasisEMatintrinsicEnergy: PDF p.43, G8–G9: additive intrinsic energy with a strictly positive gap in every theorem that uses energy conservation.lowerLevel: PDF p.44, G10: local adjacent-level lowering; level index l.val+1≥1.energyOnWire: PDF p.44: insert a local matrix on a named qudit.energyExchange: PDF p.44, G10b: energy transfer with no extraneous factor 1/2.ancillaExchange: PDF p.44, G10a: system/ancilla transfer with the same energy gap.ancillaZ: PDF p.44: the sole single-site ancilla control.energyControls: PDF p.44, G12/G15: chain edges j<n, ancilla couplings to every j≤n.energyLie: PDF p.44, G12: the actual generated real Lie algebra.energyDrift: PDF pp.43–46: additive system-plus-ancilla drift, with no energy shift.PulseReachable: PDF p.45, G17–G18: finite piecewise-constant control pulses, including drift. Nonnegative durations and span coefficients are free. A finite list automatically has compact time support; list order is the matrix product order.groundEmbed: PDF p.44, G13: append the exact ground-state ancillary vector.HamiltonianLift: PDF p.44, G13: one Hamiltonian lift acts correctly on the entire ground slice.secondAncillaExchange: PDF p.46, G25: second-ancilla transfer, identity on ancilla a.twoAncillaControls: PDF p.46, G26 corrected using G22–G23/G27: both local ancilla Z controls, and no direct system/system interaction. Printed G26 repeats an a-exchange in place of Z_b; this correction is subject to independent moderation.twoAncillaDrift: PDF p.46, G27: both ancillas have energy gap gap, retaining the drift.energyDiagonalControls: PDF p.49, G52: arbitrary real diagonal controls and adjacent transfers.energyDiagonalMonomial: PDF pp.47–48, G36–G40: each site is I or a nonzero adjacent-level difference. Option.none is I, while Option.some l denotes Z^(l.val+1), never Z^(0).EquispacedLevels: PDF pp.40,43: heterogeneous, possibly degenerate, equally spaced levels. Every integer level 0,...,last j occurs; eigenvectors sharing a level give degeneracy. The offsets are arbitrary and the common positive gap is supplied in the theorem.EquispacedLevels.energy: PDF pp.5–6,40,43: intrinsic energy is additive before and after the protocol.attachEnergy: PDF p.40: the ancilla has gap ΔE and no system/ancilla interaction at endpoints.heterogeneousEnergyGates: PDF p.40, Theorem 14: all two-local energy-conserving gates on the systems and one ancilla, either system/system or a single system with the ancilla.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Gates
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P60
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P49
/-!
Marvian, arXiv:2003.05524v3. PDF pages are used throughout.
Paper-specific definitions are distinguished from unrelated accepted names.
Equivalent accepted matrix, wire-insertion and SWAP definitions are imported. Reachability is finite composition,
without topological closure, ancillary systems, or quotienting out global phases.
Compilation and independent moderation are pending the batch handoff.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P14
open scoped Classical Matrix ComplexConjugate Matrix.Norms.Frobenius
open MeasureTheory
-- Exact accepted aliases and physical operators, without local redeclarations.
open QAlgorithms.Papers.Independent.Information100.P60 (Mat)
open QAlgorithms.Papers.Independent.Advance50.P49 (onWire multiSwap)
attribute [local instance 100] LieRing.ofAssociativeRing
abbrev SiteBasis {n : ℕ} (D : Fin n → Type*) := (j : Fin n) → D j
/-- PDF pp.1,13: support means an operator on the selected tensor factors,
with the identity on every complementary factor. -/
def TensorSupported {n : ℕ} {D : Fin n → Type*} [∀ j, Fintype (D j)]
[∀ j, DecidableEq (D j)] (s : Finset (Fin n)) (A : Mat (SiteBasis D)) : Prop :=
∃ B : Mat ((j : {j // j ∈ s}) → D j.val), ∀ x y,
A x y = B (fun j => x j.val) (fun j => y j.val) *
∏ j ∈ Finset.univ \ s, if x j = y j then 1 else 0
/-- PDF p.1: a single k-local operator, as opposed to a sum of local terms. -/
def SiteLocal {n : ℕ} {D : Fin n → Type*} [∀ j, Fintype (D j)]
[∀ j, DecidableEq (D j)] (k : ℕ) (A : Mat (SiteBasis D)) : Prop :=
∃ s : Finset (Fin n), s.card ≤ k ∧ TensorSupported s A
/-- PDF p.13, A1–A2: on-site unitary representations, allowing heterogeneous sites. -/
structure OnSite (G : Type*) [Group G] {n : ℕ} (D : Fin n → Type*)
[∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)] where
u : (j : Fin n) → G → Mat (D j)
unitary : ∀ j g, u j g ∈ Matrix.unitaryGroup (D j) ℂ
one : ∀ j, u j 1 = 1
mul : ∀ j g h, u j (g * h) = u j g * u j h
/-- PDF p.13, A2: the specified tensor product representation. -/
def OnSite.total {G : Type*} [Group G] {n : ℕ} {D : Fin n → Type*}
[∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)] (r : OnSite G D)
(g : G) : Mat (SiteBasis D) := fun x y => ∏ j, r.u j g (x j) (y j)
/-- PDF pp.1,13: the commutant of a representation. -/
def CommutesWithAction {G I : Type*} [Fintype I] (U : G → Mat I) (A : Mat I) : Prop :=
∀ g, A * U g = U g * A
/-- PDF p.13, A4: the actual generator set. -/
def localGates {G : Type*} {n : ℕ} {D : Fin n → Type*}
[∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)]
(U : G → Mat (SiteBasis D)) (k : ℕ) : Set (Mat (SiteBasis D)) :=
{V | V ∈ Matrix.unitaryGroup (SiteBasis D) ℂ ∧ CommutesWithAction U V ∧ SiteLocal k V}
/-- PDF p.13, A4: algebraic submonoid closure consists of finite gate products.
The generators contain their inverses, so it is the generated group. -/
def symmetricLocalGroup {G : Type*} {n : ℕ} {D : Fin n → Type*}
[∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)]
(U : G → Mat (SiteBasis D)) (k : ℕ) : Submonoid (Mat (SiteBasis D)) :=
Submonoid.closure (localGates U k)
/-- PDF p.13, A5: real Lie closure, with the ordinary matrix commutator. -/
def symmetricLocalLie {G : Type*} {n : ℕ} {D : Fin n → Type*}
[∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)]
(U : G → Mat (SiteBasis D)) (k : ℕ) : LieSubalgebra ℝ (Mat (SiteBasis D)) :=
LieSubalgebra.lieSpan ℝ (Mat (SiteBasis D))
{A | A + Aᴴ = 0 ∧ CommutesWithAction U A ∧ SiteLocal k A}
/-- PDF p.2: a sum of local terms need not have individually invariant terms. -/
def localTermSpan {n : ℕ} {D : Fin n → Type*}
[∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)] (k : ℕ) : Submodule ℂ (Mat (SiteBasis D)) :=
Submodule.span ℂ {A | SiteLocal k A}
/-- PDF p.13: Schrödinger sign convention. -/
def schrodingerEvolution {I : Type*} [Fintype I] [DecidableEq I] (H : Mat I) (t : ℝ) : Mat I :=
NormedSpace.exp ((-Complex.I * (t : ℂ)) • H)
/-- PDF pp.14–15,31: entrywise integral Schrödinger equation from I.
Integrability on the closed interval and the integral equation include finite pulses;
unitarity is an invariant of the stipulated physical propagator. -/
def Propagator {I : Type*} [Fintype I] [DecidableEq I]
(H V : ℝ → Mat I) (T : ℝ) : Prop :=
0 ≤ T ∧
(∀ x y, IntegrableOn (fun t => H t x y) (Set.Icc 0 T)) ∧
(∀ x y, IntegrableOn (fun t => ((-Complex.I) • (H t * V t)) x y) (Set.Icc 0 T)) ∧
(∀ t ∈ Set.Icc 0 T, (H t).IsHermitian ∧ V t ∈ Matrix.unitaryGroup I ℂ) ∧
∀ t ∈ Set.Icc 0 T, ∀ x y,
V t x y = (1 : Mat I) x y + ∫ s in (0 : ℝ)..t, ((-Complex.I) • (H s * V s)) x y
abbrev QMat (n : ℕ) := Mat (Qubits n)
/-- PDF p.23: Hamming weight. -/
def qubitWeight {n : ℕ} (x : Qubits n) : ℕ :=
(Finset.univ.filter fun j => x j = true).card
/-- PDF p.23, C2: unnormalized Pauli Z string on a bit mask. -/
def zString {n : ℕ} (b : Qubits n) : QMat n :=
Matrix.diagonal fun x => ∏ j, if b j ∧ x j then -1 else 1
/-- PDF p.23: full physical charge-sector projector, including the end sectors. -/
def chargeSector (n m : ℕ) : QMat n := Matrix.diagonal fun x => if qubitWeight x = m then 1 else 0
/-- PDF p.23, C2: sum of all Z strings of weight l, with no normalization. -/
def u1Central (n l : ℕ) : QMat n := ∑ b ∈ Finset.univ.filter (fun b => qubitWeight b = l), zString b
/-- PDF p.23, C3: integer Krawtchouk coefficient; the s≤l guard prevents
natural subtraction from counting spurious terms when s>l. -/
def phaseWeight (n l m : ℕ) : ℤ :=
∑ s ∈ (Finset.range (m+1)).filter (fun s => s ≤ l),
(-1 : ℤ)^s * (Nat.choose m s : ℤ) * (Nat.choose (n-m) (l-s) : ℤ)
/-- PDF p.23, C1: total Z; commuting with it is exactly U(1) invariance. -/
def totalZ (n : ℕ) : QMat n := Matrix.diagonal fun x => (n : ℂ) - 2 * (qubitWeight x : ℂ)
/-- PDF p.23: this definition is used for Hermitian and skew-Hermitian operators. -/
def U1Invariant {n : ℕ} (A : QMat n) : Prop := A * totalZ n = totalZ n * A
/-- PDF p.1: a physical U(1)-invariant unitary. -/
def U1Unitary {n : ℕ} (V : QMat n) : Prop :=
V ∈ Matrix.unitaryGroup (Qubits n) ℂ ∧ U1Invariant V
/-- PDF p.23, C1: all rotations, not one selected group element. -/
def rotations (n : ℕ) (theta : ℝ) : QMat n := schrodingerEvolution (totalZ n) (-theta)
/-- PDF p.24, C7. -/
def u1Lie (n k : ℕ) := symmetricLocalLie (rotations n) k
/-- PDF p.2: finite local symmetric circuits on the actual qubit register. -/
def u1Group (n k : ℕ) := symmetricLocalGroup (rotations n) k
/-- PDF p.26, C23: R=(XX+YY)/2, for distinct sites. -/
def xyExchange {n : ℕ} (a b : Fin n) : QMat n :=
(1/2 : ℂ) • (onWire a pauliX * onWire b pauliX + onWire a pauliY * onWire b pauliY)
/-- PDF pp.24,32, C9/D8: all exchange and single-site Z Hamiltonians. -/
def exchangeControls (n : ℕ) : Set (QMat n) :=
{H | (∃ a : Fin n, H = onWire a pauliZ) ∨
∃ a b : Fin n, a ≠ b ∧ H = xyExchange a b}
/-- PDF p.24, C10: real Lie algebra with the source's factor 1/2. -/
def xyZLie (n : ℕ) : LieSubalgebra ℝ (QMat n) :=
LieSubalgebra.lieSpan ℝ (QMat n) ((fun H => Complex.I • H) '' exchangeControls n)
/-- PDF pp.24,32: finite exchange/Z circuits. All real angles give exactly the
same gates as [0,2π), since R and Z have integer spectra. -/
def controlGenerated {I : Type*} [Fintype I] [DecidableEq I] (controls : Set (Mat I)) : Submonoid (Mat I) :=
Submonoid.closure {V | ∃ H ∈ controls, ∃ theta : ℝ, V = schrodingerEvolution H (-theta)}
/-- PDF p.32, D8. -/
def xyZGroup (n : ℕ) := controlGenerated (exchangeControls n)
/-- PDF pp.31–32: determinant of the full physical sector, by identity extension. -/
def chargeSectorDet {n : ℕ} (V : QMat n) (m : Fin (n+1)) : ℂ :=
Matrix.det (V * chargeSector n m.val + (1 - chargeSector n m.val))
/-- PDF p.32, D7: l-body phase in ℝ/(2πℤ), including l=0. -/
def u1BodyPhase {n : ℕ} (V : QMat n) (l : ℕ) : Real.Angle :=
∑ m : Fin (n+1), phaseWeight n l m.val • ((Complex.arg (chargeSectorDet V m) : ℝ) : Real.Angle)
/-- PDF p.33, D11: dual central element; only l≤n is used in theorems. -/
def u1DualCentral (n l : ℕ) : QMat n :=
((2 : ℂ)^n * (Nat.choose n l : ℂ))⁻¹ • u1Central n l
/-- PDF p.33, D15: integer powers of the prescribed generators. -/
def u1FinitePhaseGroup (n : ℕ) : Submonoid (QMat n) :=
Submonoid.closure {V | ∃ l : Fin (n+1), ∃ z : ℤ,
V = NormedSpace.exp ((Complex.I * (2*Real.pi : ℝ) * (z : ℂ)) • u1DualCentral n l.val)}
/-- PDF p.33, D16: principal representatives are chosen before exponentiation. -/
def u1PhaseFactor {n : ℕ} (V : QMat n) : QMat n :=
(List.ofFn fun l : Fin (n+1) =>
NormedSpace.exp ((Complex.I * ((u1BodyPhase V l.val).toReal : ℂ)) • u1DualCentral n l.val)).prod
/-- PDF p.33, D17: one fixed initial string per weight; l=0 is I. -/
def initialString (n l : ℕ) : QMat n := zString (fun j => decide (j.val < l))
/-- PDF p.33, D17: includes the displayed factor i missing in the preceding prose. -/
def stringPhaseFactor {n : ℕ} (V : QMat n) : QMat n :=
(List.ofFn fun l : Fin (n+1) => NormedSpace.exp
((Complex.I * ((u1BodyPhase V l.val).toReal : ℂ) / (2 : ℂ)^n) • initialString n l.val)).prod
/-- PDF pp.35–36: remove the occupied input bit participating in the Bell pair. -/
def lowerBit {n : ℕ} (x : Qubits n) (r : Fin n) : Qubits n := Function.update x r false
/-- PDF p.35, E5: the actual Bell-input/interference-outcome probability. -/
def bellInterference {n : ℕ} (V : QMat n) (x : Qubits n) (r : Fin n)
(y z : Qubits n) (theta : ℝ) : ℝ :=
(1/4 : ℝ) * Complex.normSq (V y x + Complex.exp (-Complex.I * theta) * V z (lowerBit x r))
/-- PDF p.36, E12: probability from the restricted one-exchange circuit. -/
def restrictedInterference (V : QMat 3) (x y : Qubits 3) (r s : Fin 3) (alpha : ℝ) : ℝ :=
(1/4 : ℝ) * Complex.normSq (V y x + Complex.I * Complex.exp (-2*Complex.I*alpha) *
V (lowerBit y s) (lowerBit x r))
/-- PDF pp.5,41: ground-state ancilla embedding, in the fixed wire order. -/
def withZero {n : ℕ} (psi : EuclideanSpace ℂ (Qubits n)) : EuclideanSpace ℂ (Qubits (n+1)) :=
WithLp.toLp 2 fun x => if x (Fin.last n) then 0 else psi (x ∘ Fin.castSucc)
/-- PDF pp.5,41: exact coherent action with the same returned ancilla for all inputs. -/
def Catalyzes {n : ℕ} (W : QMat (n+1)) (V : QMat n) : Prop :=
∀ psi : EuclideanSpace ℂ (Qubits n), act W (withZero psi) = withZero (act V psi)
/-- PDF p.41: only the ancilla has a single-site Z control. -/
def qubitCatalystControls (n : ℕ) : Set (QMat (n+1)) :=
{H | H = onWire (Fin.last n) pauliZ ∨
∃ a b : Fin (n+1), a ≠ b ∧ H = xyExchange a b}
/-- PDF p.42: chain system edges, with either all ancilla spokes or one endpoint.
The endpoint scheme also has ZZ on every chain edge and the ancilla edge. -/
def geometricCatalystControls (n : ℕ) (endpoint : Bool) : Set (QMat (n+1)) :=
{H | H = onWire (Fin.last n) pauliZ ∨
∃ a b : Fin (n+1), a ≠ b ∧
((a.val < n ∧ b.val < n ∧ a.val + 1 = b.val) ∨
(b = Fin.last n ∧ a.val < n ∧ (endpoint = true → a.val = 0))) ∧
(H = xyExchange a b ∨ (endpoint = true ∧ H = onWire a pauliZ * onWire b pauliZ))}
/-- PDF p.28, C34: diagonal controls and adjacent exchanges, with j<n. -/
def diagonalChainControls (n : ℕ) : Set (QMat n) :=
{H | (H.IsHermitian ∧ Matrix.IsDiag H) ∨
∃ a b : Fin n, a.val + 1 = b.val ∧ H = xyExchange a b}
/-- A sanity check on the physical one-qubit conventions. -/
example : zString (fun _ : Fin 1 => true) (fun _ => true) (fun _ => true) = -1 := by
simp [zString, Matrix.diagonal, Matrix.of_apply]
/-- The binomial sign and the guarded natural subtraction agree at l=0. -/
example : phaseWeight 1 0 1 = 1 := by
norm_num [phaseWeight, Finset.sum_filter, Finset.sum_range_succ]
/-- The two one-qubit charge weights for Φ₁ have opposite signs. -/
example : phaseWeight 1 1 0 = 1 ∧ phaseWeight 1 1 1 = -1 := by
norm_num [phaseWeight, Finset.sum_filter, Finset.sum_range_succ]
section General
variable {G : Type*} [Group G] {n : ℕ} {D : Fin n → Type*}
variable [∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)] [hD : ∀ j, Nonempty (D j)]
-- Positive local dimensions are a physical standing assumption even when unused
-- in the displayed formula; include it in each theorem's elaborated binders.
include hD
end General
/-- PDF p.2: connected-support k-local gates on a specified graph. -/
def geometricGroup {G A : Type*} [Fintype A] [DecidableEq A] {n : ℕ}
(U : G → Mat (Fin n → A)) (graph : SimpleGraph (Fin n)) (k : ℕ) : Submonoid (Mat (Fin n → A)) :=
Submonoid.closure {V | V ∈ localGates U k ∧ ∃ s : Finset (Fin n),
s.card ≤ k ∧ TensorSupported s V ∧ (graph.induce (s : Set (Fin n))).Connected}
/-- PDF p.14: finite-dimensional embedded matrix Lie structure can be specified
by its local exponential chart: small skew-Hermitian logarithms belong precisely
to the indicated real Lie algebra. Ambient matrix exponential is a chart near zero. -/
def CompactConnectedMatrixLieGroup {I : Type*} [Fintype I] [DecidableEq I]
(S : Submonoid (Mat I)) (L : LieSubalgebra ℝ (Mat I)) : Prop :=
IsCompact (S : Set (Mat I)) ∧ IsConnected (S : Set (Mat I)) ∧
(∀ V ∈ S, V ∈ Matrix.unitaryGroup I ℂ ∧ Vᴴ ∈ S) ∧
∃ epsilon : ℝ, 0 < epsilon ∧ ∀ C : Mat I,
C + Cᴴ = 0 → ‖C‖ < epsilon → (NormedSpace.exp C ∈ S ↔ C ∈ L)
abbrev EnergyBasis (n d : ℕ) := Fin n → Fin d
abbrev EMat (n d : ℕ) := Mat (EnergyBasis n d)
/-- PDF p.43, G8–G9: additive intrinsic energy with a strictly positive gap
in every theorem that uses energy conservation. -/
def intrinsicEnergy (n d : ℕ) (gap : ℝ) : EMat n d :=
Matrix.diagonal fun x => ((gap * ∑ j : Fin n, (x j).val : ℝ) : ℂ)
/-- PDF p.44, G10: local adjacent-level lowering; level index l.val+1≥1. -/
def lowerLevel (d : ℕ) (l : Fin (d-1)) : Mat (Fin d) :=
Matrix.single ⟨l.val, by omega⟩ ⟨l.val+1, by omega⟩ 1
/-- PDF p.44: insert a local matrix on a named qudit. -/
def energyOnWire {n d : ℕ} (j : Fin n) (A : Mat (Fin d)) : EMat n d :=
fun x y => A (x j) (y j) * ∏ q ∈ Finset.univ.erase j, if x q = y q then 1 else 0
/-- PDF p.44, G10b: energy transfer with no extraneous factor 1/2. -/
def energyExchange {n d : ℕ} (j q : Fin n) (l m : Fin (d-1)) : EMat n d :=
let A := energyOnWire j (lowerLevel d l) * energyOnWire q (lowerLevel d m)ᴴ
A + Aᴴ
/-- PDF p.44, G10a: system/ancilla transfer with the same energy gap. -/
def ancillaExchange {n d : ℕ} (j : Fin n) (l : Fin (d-1)) : Mat (EnergyBasis n d × Bool) :=
let A := Matrix.kronecker (energyOnWire j (lowerLevel d l)) (Matrix.single true false (1 : ℂ))
A + Aᴴ
/-- PDF p.44: the sole single-site ancilla control. -/
def ancillaZ (n d : ℕ) : Mat (EnergyBasis n d × Bool) :=
Matrix.kronecker (1 : EMat n d) pauliZ
/-- PDF p.44, G12/G15: chain edges j<n, ancilla couplings to every j≤n. -/
def energyControls (n d : ℕ) : Set (Mat (EnergyBasis n d × Bool)) :=
{H | H = ancillaZ n d ∨
(∃ j : Fin n, ∃ l : Fin (d-1), H = ancillaExchange j l) ∨
∃ j q : Fin n, j.val+1 = q.val ∧ ∃ l m : Fin (d-1),
H = Matrix.kronecker (energyExchange j q l m) (1 : Mat Bool)}
/-- PDF p.44, G12: the actual generated real Lie algebra. -/
def energyLie (n d : ℕ) : LieSubalgebra ℝ (Mat (EnergyBasis n d × Bool)) :=
LieSubalgebra.lieSpan ℝ _ ((fun H => Complex.I • H) '' energyControls n d)
/-- PDF pp.43–46: additive system-plus-ancilla drift, with no energy shift. -/
def energyDrift (n d : ℕ) (gap : ℝ) : Mat (EnergyBasis n d × Bool) :=
Matrix.kronecker (intrinsicEnergy n d gap) (1 : Mat Bool) +
Matrix.kronecker (1 : EMat n d) ((gap : ℂ) • Matrix.single true true 1)
/-- PDF p.45, G17–G18: finite piecewise-constant control pulses, including drift.
Nonnegative durations and span coefficients are free. A finite list automatically
has compact time support; list order is the matrix product order. -/
def PulseReachable {I : Type*} [Fintype I] [DecidableEq I]
(drift : Mat I) (controls : Set (Mat I)) (V : Mat I) : Prop :=
∃ pulses : List (ℝ × Mat I),
(∀ p ∈ pulses, 0 ≤ p.1 ∧ p.2 - drift ∈ Submodule.span ℝ controls) ∧
(pulses.map fun p => schrodingerEvolution p.2 p.1).prod = V
/-- PDF p.44, G13: append the exact ground-state ancillary vector. -/
def groundEmbed {I : Type*} (psi : EuclideanSpace ℂ I) : EuclideanSpace ℂ (I × Bool) :=
WithLp.toLp 2 fun x => if x.2 then 0 else psi x.1
/-- PDF p.44, G13: one Hamiltonian lift acts correctly on the entire ground slice. -/
def HamiltonianLift {I : Type*} [Fintype I] (K : Mat (I × Bool)) (H : Mat I) : Prop :=
∀ psi : EuclideanSpace ℂ I, act K (groundEmbed psi) = groundEmbed (act H psi)
/-- PDF p.46, G25: second-ancilla transfer, identity on ancilla a. -/
def secondAncillaExchange {n d : ℕ} (j : Fin n) (l : Fin (d-1)) :
Mat ((EnergyBasis n d × Bool) × Bool) :=
let A : Mat ((EnergyBasis n d × Bool) × Bool) := fun x y =>
energyOnWire j (lowerLevel d l) x.1.1 y.1.1 *
(if x.1.2 = y.1.2 then 1 else 0) * Matrix.single true false (1 : ℂ) x.2 y.2
A + Aᴴ
/-- PDF p.46, G26 corrected using G22–G23/G27: both local ancilla Z controls,
and no direct system/system interaction. Printed G26 repeats an a-exchange in
place of Z_b; this correction is subject to independent moderation. -/
def twoAncillaControls (n d : ℕ) : Set (Mat ((EnergyBasis n d × Bool) × Bool)) :=
{H | H = Matrix.kronecker (ancillaZ n d) (1 : Mat Bool) ∨
H = Matrix.kronecker (1 : Mat (EnergyBasis n d × Bool)) pauliZ ∨
(∃ j : Fin n, ∃ l : Fin (d-1), H = Matrix.kronecker (ancillaExchange j l) (1 : Mat Bool)) ∨
∃ j : Fin n, ∃ l : Fin (d-1), H = secondAncillaExchange j l}
/-- PDF p.46, G27: both ancillas have energy gap gap, retaining the drift. -/
def twoAncillaDrift (n d : ℕ) (gap : ℝ) : Mat ((EnergyBasis n d × Bool) × Bool) :=
Matrix.kronecker (energyDrift n d gap) (1 : Mat Bool) +
Matrix.kronecker (1 : Mat (EnergyBasis n d × Bool)) ((gap : ℂ) • Matrix.single true true 1)
/-- PDF p.49, G52: arbitrary real diagonal controls and adjacent transfers. -/
def energyDiagonalControls (n d : ℕ) : Set (EMat n d) :=
{H | (H.IsHermitian ∧ Matrix.IsDiag H) ∨
∃ j q : Fin n, j.val+1 = q.val ∧ ∃ l m : Fin (d-1), H = energyExchange j q l m}
/-- PDF pp.47–48, G36–G40: each site is I or a nonzero adjacent-level difference.
Option.none is I, while Option.some l denotes Z^(l.val+1), never Z^(0). -/
def energyDiagonalMonomial (n d : ℕ) (a : Fin n → Option (Fin (d-1))) : EMat n d :=
Matrix.diagonal fun x => ∏ j, match a j with
| none => 1
| some l => if (x j).val = l.val then 1 else if (x j).val = l.val+1 then -1 else 0
/-- At d=1 the identity monomial still acts on the full one-dimensional register. -/
example (n d : ℕ) : energyDiagonalMonomial n d (fun _ => none) = 1 := by
ext x y
simp [energyDiagonalMonomial, Matrix.one_apply]
/-- The ground embedding suppresses the excited ancilla component exactly. -/
example {I : Type*} (psi : EuclideanSpace ℂ I) (x : I) : groundEmbed psi (x, true) = 0 := by rfl
/-- PDF pp.40,43: heterogeneous, possibly degenerate, equally spaced levels.
Every integer level 0,...,last j occurs; eigenvectors sharing a level give degeneracy.
The offsets are arbitrary and the common positive gap is supplied in the theorem. -/
structure EquispacedLevels {n : ℕ} (D : Fin n → Type*) where
last : Fin n → ℕ
level : (j : Fin n) → D j → ℕ
bounded : ∀ j x, level j x ≤ last j
complete : ∀ j m, m ≤ last j → ∃ x, level j x = m
offset : Fin n → ℝ
/-- PDF pp.5–6,40,43: intrinsic energy is additive before and after the protocol. -/
def EquispacedLevels.energy {n : ℕ} {D : Fin n → Type*}
[∀ j, DecidableEq (D j)] (e : EquispacedLevels D) (gap : ℝ) : Mat (SiteBasis D) :=
Matrix.diagonal fun x => ((∑ j, (e.offset j + gap * (e.level j (x j) : ℝ)) : ℝ) : ℂ)
/-- PDF p.40: the ancilla has gap ΔE and no system/ancilla interaction at endpoints. -/
def attachEnergy {I : Type*} [DecidableEq I] (H : Mat I) (gap : ℝ) : Mat (I × Bool) :=
Matrix.kronecker H (1 : Mat Bool) +
Matrix.kronecker (1 : Mat I) ((gap : ℂ) • Matrix.single true true 1)
/-- PDF p.40, Theorem 14: all two-local energy-conserving gates on the systems
and one ancilla, either system/system or a single system with the ancilla. -/
def heterogeneousEnergyGates {n : ℕ} {D : Fin n → Type*}
[∀ j, Fintype (D j)] [∀ j, DecidableEq (D j)]
(Htot : Mat (SiteBasis D × Bool)) : Set (Mat (SiteBasis D × Bool)) :=
{V | V ∈ Matrix.unitaryGroup (SiteBasis D × Bool) ℂ ∧ V*Htot = Htot*V ∧
((∃ A : Mat (SiteBasis D), SiteLocal 2 A ∧ V = Matrix.kronecker A (1 : Mat Bool)) ∨
∃ j : Fin n, ∃ B : Mat (D j × Bool), ∀ x y,
V x y = B (x.1 j, x.2) (y.1 j, y.2) *
∏ q ∈ Finset.univ.erase j, if x.1 q = y.1 q then 1 else 0)}
end QAlgorithms.Papers.Independent.Extend50.P14
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Extend50.P14.Catalyzes
For every natural number , every complex matrix indexed by -bit strings, and every complex matrix indexed by -bit strings, this property means that, for every complex vector indexed by -bit strings, , where matrix action is ordinary matrix-vector multiplication and equals when the appended bit is false and equals zero when it is true. The quantifier covers all vectors, including zero and unnormalized vectors; neither matrix is assumed unitary. The definition also applies when .
QAlgorithms.Papers.Independent.Extend50.P14.CommutesWithAction
For any types , with finite, any family of complex matrices indexed by and labelled by , and any complex matrix indexed by , this predicate means
There is no group structure assumed on and no representation, unitarity, or continuity assumption on . If is empty, the condition is vacuous; if is empty, all the matrix equalities hold automatically.
QAlgorithms.Papers.Independent.Extend50.P14.CompactConnectedMatrixLieGroup
For any finite index type with decidable equality, any submonoid of complex matrices, and any real Lie subalgebra of those matrices, this predicate asserts that is compact and connected in the ambient matrix topology, that every is unitary and has its conjugate transpose in , and that there exists a real such that, for every complex matrix ,
The norm here is the ambient matrix norm appearing in the declaration. The equivalence is asserted only for skew-Hermitian matrices satisfying the strict norm bound. No nonemptiness assumption on is made, so the empty index type is included.
QAlgorithms.Papers.Independent.Extend50.P14.EMat
For natural numbers , this abbreviation denotes all complex square matrices indexed by assignments of one label from to each of sites. For these are matrices, including when ; for and the index set is empty and there is a unique empty matrix.
QAlgorithms.Papers.Independent.Extend50.P14.EnergyBasis
For natural numbers , this abbreviation denotes the set of all assignments , so that each of the sites receives one of labels. For there is exactly one assignment, including when ; for and there are no assignments.
QAlgorithms.Papers.Independent.Extend50.P14.EquispacedLevels.energy
For any natural number , any family of types indexed by , each with decidable equality, let . Let specify, for each site , a natural number , a level function , and a real offset , with for every and with every integer from through attained by . For any real number , this definition gives the complex matrix indexed by whose entries are
The real diagonal entries are regarded as complex numbers. The types need not be finite, distinct elements may have the same level, and may be zero or negative. When , has one element and the empty sum gives the zero matrix.
QAlgorithms.Papers.Independent.Extend50.P14.EquispacedLevels
For any natural number and any family of types , indexed by , this structure consists of a natural number for each site, a function for each site, proofs that for every and , proofs that for every and natural number there exists with , and an arbitrary real offset for each site. Thus each level from through occurs, and no larger level occurs; distinct elements may have the same level. No finiteness, decidable-equality, or injectivity assumption is imposed on the types or level functions, and the offsets satisfy no further conditions. When , all site-indexed requirements are vacuous.
QAlgorithms.Papers.Independent.Extend50.P14.HamiltonianLift
For every finite index type , complex matrix indexed by , and complex matrix indexed by , this predicate means that for every vector , including unnormalized and zero vectors,
Matrix action is ordinary matrix–vector multiplication. Equivalently, and for all , with no restrictions on columns having Boolean label . Neither matrix is assumed Hermitian. The index type may be empty, in which case the condition is vacuous.
QAlgorithms.Papers.Independent.Extend50.P14.OnSite
Given a group , a natural number , and finite types with decidable equality for every , an object of this structure consists of complex matrices indexed by , for every site and every , satisfying
for every and , where denotes conjugate transpose. Thus each site carries a unitary representation of . No topology or continuity condition on or these representations is specified. There are no site data or conditions when , and the types need not be nonempty.
QAlgorithms.Papers.Independent.Extend50.P14.OnSite.total
For any group , natural number , finite types with decidable equality, and a family of site matrices satisfying unitarity, , and for every site and every , the total matrix assigned to is the complex matrix indexed by whose entries are
For , the configuration basis has one element and this entry is the empty product . If any is empty, the total matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P14.Propagator
For any finite type with decidable equality, functions , and real number , this predicate requires ; Lebesgue integrability on of every entry and every entry ; Hermiticity of and unitarity of for every ; and, for every such and every ,
where is the identity matrix entry. In particular, . No condition is imposed on or outside . The case is included: it requires to be Hermitian and , while the integrability requirements are automatic on the singleton interval. If is empty, the matrix and entry conditions are automatic, leaving only .
QAlgorithms.Papers.Independent.Extend50.P14.PulseReachable
For every finite index type with decidable equality, complex matrices indexed by , and set of such matrices, this predicate means that there exists a finite ordered list such that every , every belongs to the real linear span of , and
The exponentials are matrix exponentials and the product follows the displayed list order. The list may be empty, in which case its product is the identity, and zero durations are allowed. No Hermiticity assumptions are imposed on , the controls, or the pulse matrices, and may be empty.
QAlgorithms.Papers.Independent.Extend50.P14.QMat
For every natural number , denotes the space of complex square matrices whose rows and columns are indexed by all Boolean strings ; thus these are matrices. This includes , when there is one empty string and the matrices are .
QAlgorithms.Papers.Independent.Extend50.P14.SiteBasis
For any natural number and any family of types , the site basis is the set of assignments choosing an element at every site. No finiteness or nonemptiness assumption is imposed on the . When , there is exactly one assignment, the empty assignment; if any is empty, there are no assignments.
QAlgorithms.Papers.Independent.Extend50.P14.SiteLocal
For any natural numbers , finite types with decidable equality for every , and a complex matrix indexed by , this predicate means that there exist a site set with and a complex matrix indexed by such that
It requires one such support set for , rather than a decomposition into a sum of supported matrices. The case allows exactly scalar multiples of the identity, and allows every matrix. The case is included, with a singleton configuration basis; empty local types are also permitted.
QAlgorithms.Papers.Independent.Extend50.P14.TensorSupported
For any natural number , finite types equipped with decidable equality for every , a set of sites , and a complex matrix indexed by , this predicate means that there exists a complex matrix indexed by such that, for every ,
Thus the entries are those of on the selected sites, multiplied by identity matrix entries on all other sites. The matrix has no additional restrictions. Empty products equal ; in particular, gives precisely scalar multiples of the identity, and choosing every site allows every . The local types may be empty, in which case is empty and the universally quantified entry equalities are vacuous.
QAlgorithms.Papers.Independent.Extend50.P14.U1Invariant
For every natural number and every complex matrix indexed by Boolean strings of length , means precisely , where is diagonal with . No Hermiticity or unitarity condition on is included. When , , so the condition holds for every such .
QAlgorithms.Papers.Independent.Extend50.P14.U1Unitary
For every natural number and every complex matrix indexed by Boolean strings of length , means that is unitary, so , and that , where is diagonal with . For , the commutation condition is automatic, while unitarity still requires the single complex entry of to have modulus .
QAlgorithms.Papers.Independent.Extend50.P14.ancillaExchange
For natural numbers , a site , and a level , this defines a matrix on by
where sends a coordinate basis configuration with value at site to the configuration with that value replaced by , annihilates configurations with any other value there, and acts identically on the other sites. There is no permissible site when , and no permissible level when .
QAlgorithms.Papers.Independent.Extend50.P14.ancillaZ
For all natural numbers , this defines on the complex coordinate space indexed by , where is the identity on the configuration register and in the order . Equivalently, its entry at is zero unless and , and its diagonal entry is for and for . This includes , when there is one configuration, and , when there are no configurations if .
QAlgorithms.Papers.Independent.Extend50.P14.attachEnergy
For any type with decidable equality, any complex matrix indexed by , and any real number , this definition gives the complex matrix on
Explicitly, writing for the equality indicator,
No finiteness or nonemptiness assumption is imposed on , no Hermiticity assumption is imposed on , and is unrestricted.
QAlgorithms.Papers.Independent.Extend50.P14.bellInterference
For every natural number , every complex matrix whose rows and columns are indexed by -bit strings, all -bit strings , every index , and every real number , this defines the real number
where agrees with except that its bit at is false, and is the squared complex modulus. No unitarity assumption on , distinctness assumption on the strings, or requirement that be true is imposed. For , there is no admissible .
QAlgorithms.Papers.Independent.Extend50.P14.chargeSector
For any natural numbers , is the complex diagonal matrix indexed by Boolean strings of length , whose entry at is if exactly coordinates of are true, and otherwise. All off-diagonal entries are zero. No restriction is imposed; if , the matrix is zero. For , it is the identity when , and zero otherwise.
QAlgorithms.Papers.Independent.Extend50.P14.chargeSectorDet
For every natural number , every complex matrix indexed by -bit strings, and every integer , this defines
where is the number of true bits in . No unitarity or commutation assumption is imposed on , and the determinant may be zero. For , the bit-string index set is a singleton, , and .
QAlgorithms.Papers.Independent.Extend50.P14.controlGenerated
For every finite index type equipped with decidable equality and every set of complex matrices, this defines the smallest multiplicative submonoid containing
Indeed, the evolution used in the definition is , evaluated at . Membership therefore means being a finite product of such exponentials, including the empty product, which is the identity; no topological closure is taken. There is no assumption that the controls are Hermitian. The definition includes empty and empty ; an empty control set generates only the identity.
QAlgorithms.Papers.Independent.Extend50.P14.diagonalChainControls
For every natural number , this defines the set of all complex matrices on qubits that either are Hermitian and diagonal, or equal for indices with . Here and , in the order false, true, and act on bit and as the identity on the other bits. The first alternative allows arbitrary real diagonal entries. When , there are no adjacent indices, and the set consists of all Hermitian matrices on the one-dimensional space indexed by the empty bit string.
QAlgorithms.Papers.Independent.Extend50.P14.energyControls
For all natural numbers , this defines the set of complex matrices on consisting exactly of
Here in Boolean order ; is the matrix unit on site , tensored with identities on all other sites. The second family ranges over all sites and levels ; the third ranges over sites satisfying and independently chosen levels . There is no requirement that . Subtraction in is truncated at zero, so when or , only remains.
QAlgorithms.Papers.Independent.Extend50.P14.energyDiagonalControls
For natural numbers , let . For a site and an index , define
The defined set of complex matrices on contains exactly all Hermitian diagonal matrices, together with every matrix
for sites satisfying and indices . The diagonal entries in the first class may be arbitrary real numbers. The subtraction is truncated at zero, so the second class is absent when , and it is also absent when . The definition includes and , with the singleton empty configuration when , and empty when .
QAlgorithms.Papers.Independent.Extend50.P14.energyDiagonalMonomial
For natural numbers , let , and let assign to each site either no index or an index , where is truncated natural-number subtraction. The defined complex matrix is diagonal:
No requirement is imposed that any site carry an index; the assignment with no indices gives the identity matrix. For , the empty product is . For , no site can carry an index; if , the matrix has no entries.
QAlgorithms.Papers.Independent.Extend50.P14.energyDrift
For all natural numbers and every real number , this defines the diagonal complex matrix on whose diagonal entry at is
and whose off-diagonal entries are zero. No positivity or nonzero assumption is imposed on . The empty sum is zero, so for the two diagonal entries are and ; for and , the indexing set is empty.
QAlgorithms.Papers.Independent.Extend50.P14.energyExchange
For natural numbers , sites , and levels , this defines the matrix on configurations in , where
The dagger denotes conjugate transpose. There is no requirement that , that the sites be adjacent, or that . No such arguments exist when or .
QAlgorithms.Papers.Independent.Extend50.P14.energyLie
For all natural numbers , this defines the smallest real Lie subalgebra of complex matrices on containing for every matrix in the following set:
Here in Boolean order, and applies at site and identities elsewhere. The second family ranges over and ; the third over and , with natural subtraction truncated at zero. The Lie bracket is : the resulting algebra consists of finite real linear combinations of these generators and their iterated commutators, including zero, without any topological closure. If or , the only listed generator is .
QAlgorithms.Papers.Independent.Extend50.P14.energyOnWire
For natural numbers , a site , and any complex matrix , this defines a complex matrix indexed by configurations , with entries
Here is when holds and otherwise, and an empty product equals . The matrix therefore applies on site and the identity on every other site. No Hermiticity or unitarity assumption is imposed on . When , there is no permissible site .
QAlgorithms.Papers.Independent.Extend50.P14.exchangeControls
For every natural number , this defines the set of complex matrices on -bit strings consisting exactly of all , for , together with all , for distinct . Here
and has entries . This set is empty when ; when , it consists only of .
QAlgorithms.Papers.Independent.Extend50.P14.geometricCatalystControls
For every natural number and Boolean parameter , this defines a set of matrices on qubits containing , together with the following matrices: for any distinct indices satisfying either , , and , or , , and , it contains , and it also contains if . Here the single-bit matrices are , , and , in the order false, true; a subscript indicates action on that bit and identity on every other bit. Thus the condition restricting to on an edge to bit applies only when the Boolean parameter is true; the option then applies to every pair satisfying the stated geometric condition. When , only occurs.
QAlgorithms.Papers.Independent.Extend50.P14.geometricGroup
For any type , any finite type with decidable equality, any natural numbers , any family of complex matrices indexed by configurations , and any simple graph on the sites, this definition gives the smallest multiplicatively closed set containing the identity and every matrix with the following properties: is unitary; for every ; and there is a subset of at most sites whose induced graph is connected and a complex matrix indexed by assignments on such that
Thus membership means being a finite product of such matrices, including the empty product; no topological closure is taken. The definition requires no group structure on , no representation laws for , and no nonemptiness assumption on , and it includes and ; a connected induced graph must be nonempty.
QAlgorithms.Papers.Independent.Extend50.P14.groundEmbed
For any index type and any complex coordinate vector indexed by , this defines the vector indexed by whose coordinate at is and whose coordinate at is zero. No finiteness, decidable-equality, nonemptiness, or normalization assumption is imposed on or .
QAlgorithms.Papers.Independent.Extend50.P14.heterogeneousEnergyGates
For any natural number , any family of finite types , each with decidable equality, put , and let be any complex matrix on . This definition gives the set of all unitary matrices on that index set satisfying and at least one of the following two conditions: either there exist a matrix on , a set of sites with , and a matrix indexed by , such that
or there exist a site and a matrix on such that
Here is the equality indicator and an empty product is . The two alternatives need not be exclusive. The definition does not require to be Hermitian or to arise from an energy construction. Empty site types are allowed; is also allowed, in which case the second alternative has no possible site .
QAlgorithms.Papers.Independent.Extend50.P14.initialString
For every pair of natural numbers , this defines the diagonal complex matrix on -bit strings whose diagonal entry at is
All off-diagonal entries are zero. Equivalently, it places on the first wires and the identity on the remaining wires. For , or for , it is the identity; for , every wire contributes a factor.
QAlgorithms.Papers.Independent.Extend50.P14.intrinsicEnergy
For any natural numbers and any real number , this definition gives the complex diagonal matrix indexed by assignments with entries
where each label is interpreted as its natural-number value and the diagonal value is embedded into . The parameter may be positive, zero, or negative. For the result is the zero matrix; for it is the empty matrix; and for it is zero.
QAlgorithms.Papers.Independent.Extend50.P14.localGates
For any type , natural numbers , finite types with decidable equality for every , and arbitrary family of complex matrices indexed by , this is the set of matrices satisfying all three conditions: is unitary; for every ; and there exist with and a complex matrix indexed by such that
No group structure on or representation property of is assumed. Empty supports are allowed, so for these are unitary scalar multiples of the identity. The definitions also include and empty local types.
QAlgorithms.Papers.Independent.Extend50.P14.localTermSpan
For any natural numbers and finite types with decidable equality, this is the complex linear span of all matrices on for which some site set with and some complex matrix satisfy
Its elements are finite complex linear combinations of such matrices, with possibly different support sets for different summands. There is no Hermiticity, symmetry, or unitarity requirement. Empty supports are allowed; for the span is the scalar multiples of the identity, and for it is the whole matrix space. The cases and empty local types are included.
QAlgorithms.Papers.Independent.Extend50.P14.lowerBit
For every natural number , every bit string , and every index , this defines the bit string by and for . There is no requirement that was true. When , there is no possible index .
QAlgorithms.Papers.Independent.Extend50.P14.lowerLevel
For every natural number and every integer with , where natural-number subtraction is truncated at zero, this defines the complex matrix whose entry in row , column is and whose other entries are zero. Thus and for , where denotes the coordinate basis vector. For or , there is no permissible argument .
QAlgorithms.Papers.Independent.Extend50.P14.phaseWeight
For any natural numbers , the integer is
The binomial coefficients are computed as natural numbers and then regarded as integers. There are no assumptions or ; in particular, the subtraction is truncated at zero. The sum always includes , including when or .
QAlgorithms.Papers.Independent.Extend50.P14.qubitCatalystControls
For every natural number , this defines a set of complex matrices on qubits consisting exactly of and the matrices for distinct indices . Here act on bit by, respectively,
in the order false, true, and act as the identity on all other bits: their matrix entry at strings is the corresponding single-bit entry times . When , the set consists only of .
QAlgorithms.Papers.Independent.Extend50.P14.qubitWeight
For every natural number and every Boolean string of length , is the number of indices for which . For the empty string, this number is .
QAlgorithms.Papers.Independent.Extend50.P14.restrictedInterference
For every complex matrix indexed by three-bit strings, all three-bit strings , all indices , and every real number , this defines
where replacing a bit by means setting it to false and leaving the other bits unchanged. The indices may coincide, either replaced bit may already be false, and need not be unitary.
QAlgorithms.Papers.Independent.Extend50.P14.rotations
For every natural number and every real number , is the matrix exponential
with rows and columns indexed by Boolean strings of length . The positive sign results from evaluating the evolution at . All real are allowed; for , the result is the identity.
QAlgorithms.Papers.Independent.Extend50.P14.schrodingerEvolution
For any finite type equipped with decidable equality, any complex matrix indexed by , and any real number , this definition assigns the matrix
The exponential is the matrix exponential. No Hermiticity assumption on or sign restriction on is imposed, so unitarity is not part of this definition. At the value is the identity; an empty index type is permitted.
QAlgorithms.Papers.Independent.Extend50.P14.secondAncillaExchange
For natural numbers , a site , and a level , this defines the complex matrix
on . Here applies the matrix unit on site and identities on every other site; acts on the first Boolean register, while the displayed matrix units act on the second Boolean register. There is no permissible site when , and no permissible level when , since natural subtraction in is truncated at zero.
QAlgorithms.Papers.Independent.Extend50.P14.stringPhaseFactor
For every natural number and every complex matrix on -bit strings, this defines the ordered product
with factors in increasing . Here is diagonal, with entry at an -bit string , and is the specified real representative of an angle modulo . The angle used is
where is diagonal with entry on bit strings having exactly true bits and otherwise, and brackets denote reduction modulo . There is no unitarity or invariance hypothesis on ; zero determinants use . The denominator is always nonzero, and for the product contains its single factor.
QAlgorithms.Papers.Independent.Extend50.P14.symmetricLocalGroup
For any type , natural numbers , finite types with decidable equality, and arbitrary complex matrix family on , this is the smallest multiplicative submonoid containing every unitary matrix that commutes with every and admits a site set with and a matrix satisfying
Equivalently, it consists of all finite products of such matrices, including the empty product ; the closure used here is algebraic and does not add limits of products. The product itself need not have a support of size at most . No group or representation assumptions are imposed on and . Empty supports, , , and empty local types are included.
QAlgorithms.Papers.Independent.Extend50.P14.symmetricLocalLie
For any type , natural numbers , finite types with decidable equality, and arbitrary complex matrix family on , this is the smallest real Lie subalgebra of the complex matrices on containing every matrix for which , for every , and there exist with and a complex matrix such that
Here is conjugate transpose and the Lie bracket is . The generated algebra is closed under real linear combinations and Lie brackets, without a topological closure requirement; generated elements need not retain a support of size at most . No group or representation assumption on or is made. Empty supports are allowed, including when , and and empty local types are permitted.
QAlgorithms.Papers.Independent.Extend50.P14.totalZ
For every natural number , is the complex diagonal matrix indexed by Boolean strings of length , with diagonal entry at , and zero off-diagonal entries. For , this is the zero matrix.
QAlgorithms.Papers.Independent.Extend50.P14.twoAncillaControls
For natural numbers , let , and index the full space by , with the two Boolean coordinates in that order. Write and for the identity matrices, , and . For and , define the data matrix by
The defined set consists exactly of the following matrices:
where the last two forms range over all such . Here denote false and true, and denotes conjugate transpose. Subtraction in is truncated natural-number subtraction, so the last two forms are absent when , and also when . The definition permits ; then is empty if , while for it contains the unique empty configuration.
QAlgorithms.Papers.Independent.Extend50.P14.twoAncillaDrift
For natural numbers and any real number , let , and identify false and true with and . The defined matrix on is diagonal, with entries
Thus each Boolean coordinate contributes precisely when it is true. There is no positivity assumption on . For the data sum is empty and equals zero; if , there are no data configurations and the matrix has an empty index set.
QAlgorithms.Papers.Independent.Extend50.P14.u1BodyPhase
For every natural number , every complex matrix on -bit strings, and every natural number , this defines the angle modulo
Here brackets denote the class of a real number modulo , integer coefficients act by integer multiplication in that angle group, , and is diagonal with entry precisely on bit strings having true bits and otherwise. No assumption is made on ; zero determinants use the defined value . The definition includes and all ; for , every coefficient is zero.
QAlgorithms.Papers.Independent.Extend50.P14.u1Central
For any natural numbers , is the sum, over all Boolean strings of length having exactly true coordinates, of the diagonal matrix whose entry at is . Equivalently, its off-diagonal entries vanish and
An empty sum is zero, so gives the zero matrix; for , the value is the identity if , and zero otherwise.
QAlgorithms.Papers.Independent.Extend50.P14.u1DualCentral
For every pair of natural numbers , this defines
as a complex matrix indexed by -bit strings. Thus sums the diagonal sign matrices associated with all bit strings of weight . Division uses the total complex inverse, whose value at zero is zero: if , both the sum and the resulting matrix are zero. For , the result is the identity on the singleton set of empty bit strings.
QAlgorithms.Papers.Independent.Extend50.P14.u1FinitePhaseGroup
For every natural number , this defines the smallest multiplicative submonoid of complex matrices on -bit strings containing
where , and is diagonal with
Membership means being a finite product of these generators, including the empty product; no topological closure or finiteness condition is part of this definition. The denominators are nonzero for the allowed indices . When , every generator is the identity.
QAlgorithms.Papers.Independent.Extend50.P14.u1Group
For any natural numbers , is the submonoid of complex matrices indexed by Boolean strings of length generated by all unitary matrices that commute with for every real , where is diagonal with , and for which there exist , , and a complex matrix indexed by Boolean assignments on satisfying
Thus membership means being a finite product of such generating matrices, including the empty product ; no topological closure is taken. The definition permits , , and empty , with empty giving scalar identity matrices subject to unitarity. No assumption is imposed.
QAlgorithms.Papers.Independent.Extend50.P14.u1Lie
For any natural numbers , is the smallest real Lie subalgebra of complex matrices indexed by Boolean strings of length , with bracket , containing every matrix satisfying all three conditions: ; for every real , where and is diagonal; and there exist a set with and a complex matrix indexed by Boolean assignments on such that, for all length- Boolean strings ,
The generated algebra is closed under real linear combinations and commutators. Both and are allowed; may be empty, in which case the displayed support condition describes a scalar multiple of the identity. No assumption is imposed.
QAlgorithms.Papers.Independent.Extend50.P14.u1PhaseFactor
For every natural number and every complex matrix on -bit strings, this defines the ordered matrix product
with factors listed in increasing , where is the specified real representative of an angle modulo . Here , with diagonal and , the sum ranging over subsets of the wire indices. The angle is
where is the diagonal indicator of bit strings with true bits. No condition is imposed on , and applies to zero determinants. For , the product still has one factor, indexed by .
QAlgorithms.Papers.Independent.Extend50.P14.withZero
For every natural number and every vector in the complex Euclidean space indexed by -bit strings, this defines a vector indexed by -bit strings through
No normalization assumption on is imposed. This includes , when has one coordinate, indexed by the empty string.
QAlgorithms.Papers.Independent.Extend50.P14.xyExchange
For every natural number and indices , this defines the complex matrix on -bit strings
where , , and placing a matrix on wire means . The indices are not required to be distinct; when , the result is the identity. When , there are no possible choices of .
QAlgorithms.Papers.Independent.Extend50.P14.xyZGroup
For every natural number , this defines the multiplicative submonoid of complex matrices on -bit strings consisting of finite products of matrices
Here , , , and has entries . All wire indices lie in . The empty product is included, and no topological closure is taken. For , the resulting submonoid contains only the identity.
QAlgorithms.Papers.Independent.Extend50.P14.xyZLie
For every natural number , this defines the smallest real Lie subalgebra of the complex matrices on -bit strings containing every and every with . Thus it is the smallest real vector subspace containing these matrices and closed under the bracket . Here , , , and acts by on bit and by the identity on every other bit, explicitly . For , the generating set is empty and this Lie subalgebra is .
QAlgorithms.Papers.Independent.Extend50.P14.zString
For every natural number and every Boolean string of length , is the complex matrix indexed by Boolean strings of length , with zero off-diagonal entries and diagonal entries
For , the empty product is , so this is the identity matrix.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.