Jordan powers and power-of-two indirect CNOT
OpenQAlgorithms.Papers.Independent.Intakethird100.P39.jordan_power_and_indirect_cnotFor , let be the lower bidiagonal matrix with ones on the diagonal and first lower diagonal. Over the natural numbers,
If with , reduction modulo two gives
Consequently, repetitions of either neighboring CNOT sweep (targets in increasing order, or in decreasing order) apply the endpoint CNOT: , with all other bits fixed, for every input bit string. Thus both Fig. 12 circuits restore every borrowed intermediate bit. Equality of these basis permutations gives the corresponding exact quantum circuit identities by linear extension.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P39
namespace QAlgorithms.Papers.Independent.Intakethird100.P39
open scoped BigOperators
/-- PDF pp.13-14, Eqs. (36)-(38) and both Fig.12 identities: the natural
binomial formula and its binary reduction, together with the exact actions
of both repeated neighboring sweeps. Intermediate bits are borrowed,
never initialized. The bit identities extend linearly to quantum registers. -/
theorem jordan_power_and_indirect_cnot :
(∀ (ell : ℕ) (i j : Fin (ell + 1)),
(jordanMatrix ℕ ell ^ ell) i j =
if j.val ≤ i.val then Nat.choose ell (i.val - j.val) else 0) ∧
(∀ p : ℕ, 1 ≤ p →
jordanMatrix (ZMod 2) (2 ^ p) ^ (2 ^ p) = endpointMatrix (2 ^ p) ∧
∀ x : Qubits (2 ^ p + 1),
(ascendingSweep (2 ^ p))^[2 ^ p] x = endpointCnot (2 ^ p) x ∧
(descendingSweep (2 ^ p))^[2 ^ p] x = endpointCnot (2 ^ p) x) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P39
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For a natural number and or , let be the matrix with rows and columns indexed by , whose -entry is if or , and otherwise. The assertion is the conjunction of the following two claims. First, for every , including , and every ,
For , this uses the zeroth matrix power, namely the identity matrix. Second, for every natural number , putting , one has , where has a single in row , column , and zero elsewhere; and, for every Boolean string , both repetitions of the ascending sweep and repetitions of the descending sweep yield the string whose last bit is and whose other bits equal those of . Each ascending sweep successively updates the current bit for ; each descending sweep performs those updates in the reverse order, and each update leaves all other bits unchanged. Here repetitions mean function iteration, is Boolean exclusive-or, and the restriction excludes .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.