Circuit simulation: local coordinate updates for the overlap objective
OpenQAlgorithms.Papers.Independent.Intakethird100.P57.local_gate_variational_updateLet . Normalize a nonzero initial RAGE vector with and apply a single-qubit unitary at site , giving the unit target . Fix admissible nonzero trial data with the same nonincident edges, and vary one trial site tensor pair. Let be its physical-state map, , and . The normal equations
have a solution. Every solution gives the orthogonal projection of onto . If , it maximizes over all nonzero trial vectors; if , all such objectives equal zero. Singular is allowed.
With the trial tensors fixed, varying one edge incident on keeps the norm squared constant and gives
with coefficients explicitly obtained from the complementary edge components. A maximum on this circle is attained. These are coordinate optima in an alternating sweep, with all other edges frozen.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P57
noncomputable section
open scoped ComplexConjugate Matrix
namespace QAlgorithms.Papers.Independent.Intakethird100.P57
attribute [local instance] Classical.propDecidable
/-- PDF p.4, Eq.(5) and following paragraph: coordinate optima in an alternating sweep.
The singular normal equations and zero-projection case are retained. Nonincident edges are
frozen by edgeTrial. The statement makes no claim of global convergence of the sweep. -/
theorem local_gate_variational_update {N D : ℕ} (hN : 1 ≤ N) (hD : 1 ≤ D)
(A Atr : Tensors N D) (G Gtr : PhaseGraph N) (hv : traceMPS A ≠ 0)
(htrial : traceMPS Atr ≠ 0) (q : Fin N) (U : Matrix.unitaryGroup Bool ℂ)
(hfixed : ∀ i j, i ≠ q → j ≠ q → Gtr.weight i j = G.weight i j) (k : Fin N) :
let chi := act (localGate q U) (normalizeRageVector (rage A G (fun _ => 1)))
let L := siteMap Atr Gtr (fun _ => 1) k
let G := L.conjTranspose * L
let b := L.conjTranspose.mulVec (WithLp.ofLp chi)
(∃ x : SiteCoordinates D → ℂ, G.mulVec x = b) ∧
(∀ x : SiteCoordinates D → ℂ, G.mulVec x = b →
(∀ y : SiteCoordinates D → ℂ,
inner ℂ (siteVector L y) (chi - siteVector L x) = 0) ∧
(siteVector L x ≠ 0 → ∀ y : SiteCoordinates D → ℂ, siteVector L y ≠ 0 →
overlapObjective (siteVector L y) chi ≤ overlapObjective (siteVector L x) chi) ∧
(siteVector L x = 0 → ∀ y : SiteCoordinates D → ℂ, siteVector L y ≠ 0 →
overlapObjective (siteVector L y) chi = 0)) ∧
(∀ j : Fin N, j ≠ q →
let c := overlapCoefficients Atr Gtr q j chi
let Z := ‖traceMPS Atr‖ ^ 2
(∀ z : ℂ, ‖z‖ = 1 →
overlapObjective (edgeTrial Atr Gtr (fun _ => 1) q j z) chi =
(c.1 + 2 * (c.2 * z).re) / Z) ∧
(∃ z : ℂ, ‖z‖ = 1 ∧ ∀ w : ℂ, ‖w‖ = 1 →
overlapObjective (edgeTrial Atr Gtr (fun _ => 1) q j w) chi ≤
overlapObjective (edgeTrial Atr Gtr (fun _ => 1) q j z) chi)) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P57
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For all natural numbers with and , let and be two collections of complex matrices, and let be graphs whose respective real weights are symmetric, vanish on the diagonal, and lie in . Assume both vectors
are nonzero, where products are in increasing site order. Choose sites and a unitary complex matrix , and assume whenever and . Define , and define using . Let , and let be obtained from by applying at site and the identity at all other sites; explicitly, . Index site coordinates by . For , replace the trial tensor at site by the matrices whose entry for bit is if , and otherwise, leaving all other trial tensors unchanged; call this collection . Define the matrix , with rows indexed by bit strings and columns by , by
and write , taking . The theorem asserts that has a solution , and that every solution satisfies
It also asserts the following for every site : set
let be restricted to strings whose selected bits are not both , extended by zero, and let be its restriction to strings whose selected bits are both , extended by zero. With
one has
and there exists with such that for every with . The site need not differ from ; when , the final assertions quantified over are vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.