Explicit empty-first-mode conditional update
OpenQAlgorithms.Papers.Independent.Intake100.P22.first_mode_updateFix a finite number of fermionic modes. Let have Hermitian Majorana generators satisfying . The symbol map sends each ordered Majorana monomial linearly to the corresponding ordered Grassmann monomial; it is not multiplicative. Gaussian states, operators, and maps have the meanings of Definitions 1–3 of the paper. All maps act on the full complex operator algebra, including its odd sector.
Assume . Let be a Gaussian density with real covariance and , all other entries zero. Let , , and suppose . Then , , and with ,
The output trace equals , and is a Gaussian density. If , also . No inverse of a singular is used for the update itself. This gives the conditional first-mode evolution, with an empty trailing block at .
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P22
noncomputable section
open scoped BigOperators Matrix ComplexConjugate ComplexOrder
namespace QAlgorithms.Papers.Independent.Intake100.P22
open QAlgorithms.Papers.Independent.Advance50.P19
(CARSystem Major monomial wick totalFermionParity)
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF pp.11-12: explicit conditional empty-first-mode symbol. Nonzero outcome
probability implies the required inverse exists; invertibility of M is needed
only for the signed Pfaffian probability expression. -/
theorem first_mode_update {n : ℕ} (hn : 0 < n) (s : CARSystem n)
(rho : Op (Qubits n)) (M : Matrix (Major n) (Major n) ℝ) (h : StateWith s rho M)
(hprob : (rho * modeProjector s ⟨0, hn⟩ false).trace ≠ 0) :
let p := (rho * modeProjector s ⟨0, hn⟩ false).trace
let Mc := M.map Complex.ofReal
let Y := conjSuperop (modeProjector s ⟨0, hn⟩ false) rho
(1 - Mc * firstK n).det ≠ 0 ∧
majoranaSymbol s Y = firstOutcomeSymbol p ((1 - Mc * firstK n)⁻¹ * Mc) ∧
Y.trace = p ∧ 0 < p.re ∧ FermionicGaussianState s (normalizeComplexTrace Y) ∧
(Mc.det ≠ 0 → p = (1 / 2 : ℂ) * pfaffian Mc * pfaffian (firstK n - Mc⁻¹)) := by sorry
end QAlgorithms.Papers.Independent.Intake100.P22
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every positive natural number , let , , and let be Hermitian complex matrices on satisfying . For , let be the increasing product, with , and define . Exterior generators anticommute and square to zero, and . Let be a positive semidefinite complex matrix with , and let be a real matrix with and
Put , and assume . Define , let be regarded as a complex matrix, put , and let be the complex matrix with , , and every other entry zero. Then , and, with ,
Furthermore, is positive semidefinite with trace , and there exists a real skew matrix such that . If , then
Here the Pfaffian uses the full increasing index list; its empty-list value is , and recursively pairing the first index with the -th member of the remaining list contributes the matrix entry times times the value on the list with that pair removed. The positive- hypothesis supplies indices ; at , the displayed sum over indices at least is empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.