The residual program is independent of the data
OpenQAlgorithms.Papers.Independent.Extend50.P43.output_program_independenceLet be a fixed unitary on data qubits and program qubits, let be a unitary on the data register, and let be a normalized program. Assume that for every normalized data vector there exists a normalized residual program satisfying . Then there is one normalized residual program such that
This justifies using one residual program for a selected operation. In particular, the hypothesis allows the residual witness to depend on the input, while the conclusion removes that dependence.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P43
namespace QAlgorithms.Papers.Independent.Extend50.P43
open scoped ComplexConjugate
noncomputable section
/-- PDF p.1, paragraph after Eqs.(3)–(5): the output program is independent
of the data. The source's inner-product cancellation omits orthogonal inputs;
linearity and a superposition connect those inputs without a new hypothesis. -/
theorem output_program_independence (m n : ℕ)
(G : Matrix (Qubits m × Qubits n) (Qubits m × Qubits n) ℂ)
(hG : G ∈ Matrix.unitaryGroup (Qubits m × Qubits n) ℂ)
(U : Matrix (Qubits m) (Qubits m) ℂ)
(hU : U ∈ Matrix.unitaryGroup (Qubits m) ℂ)
(P : EuclideanSpace ℂ (Qubits n)) (hImplements : ImplementsProgramUnitary G U P) :
∃ q : EuclideanSpace ℂ (Qubits n), IsState q ∧
∀ d : EuclideanSpace ℂ (Qubits m), IsState d →
act G (tensorVec d P) = tensorVec (act U d) q := by sorry
end
end QAlgorithms.Papers.Independent.Extend50.P43
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For any natural numbers , any unitary complex matrix on , any unitary complex matrix on , and any vector , suppose that and that every unit vector admits some unit vector with . Then there exists a single vector with such that
Matrix action is ordinary matrix-vector multiplication, and . Both zero values of are included, giving one-dimensional spaces for the corresponding registers.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.