Circuit simulation: controlled-phase gates update graph weights exactly
OpenQAlgorithms.Papers.Independent.Intakethird100.P57.exact_phase_gate_updateLet , let be admissible data, take final rotations , and let . For any real angle , update the two symmetric entries of the selected edge to , leaving every other entry fixed. The resulting graph is admissible and
If the raw MPS is nonzero, normalization gives the same equality for unit vectors. Negative input angles are allowed. The gate acts once on the unordered pair; the simple rule applies in the stated setting.
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 pp.3–4, circuit update: with V=I, phase gates are exact graph-weight updates.
The same equality is asserted for normalized states only when the raw MPS is nonzero. -/
theorem exact_phase_gate_update {N D : ℕ} (hN : 1 ≤ N) (hD : 1 ≤ D)
(A : Tensors N D) (G : PhaseGraph N) (j k : Fin N) (hjk : j ≠ k) (theta : ℝ) :
∃ Gnew : PhaseGraph N, Gnew.weight = updatedWeights G j k theta ∧
rage A Gnew (fun _ => 1) = controlledPhaseAction j k (Complex.exp (Complex.I * (theta : ℂ)))
(rage A G (fun _ => 1)) ∧
(traceMPS A ≠ 0 → IsState (normalizeRageVector (rage A Gnew (fun _ => 1))) ∧
normalizeRageVector (rage A Gnew (fun _ => 1)) =
controlledPhaseAction j k (Complex.exp (Complex.I * (theta : ℂ)))
(normalizeRageVector (rage A G (fun _ => 1)))) := 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 every pair of natural numbers with and , every collection of complex matrices , every graph with real weights , , and , every pair of distinct sites , and every real , there exists a graph satisfying the same symmetry, zero-diagonal, nonnegativity, and strict bounds, whose weights are
To state the remaining conclusions, define , using increasing site order, and ; this is the vector obtained using identity single-site rotations. Let multiply an amplitude by when , and by otherwise, and define , with . The graph can be chosen so that
The nonzero condition is required only for the conditional conclusion, not for existence of the graph or the unnormalized equality. When , the required distinct sites cannot be supplied.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.