Exact truncated phase-swap circuit equivalences
OpenQAlgorithms.Papers.Independent.Intakethird100.P39.truncated_cpSwap_panelsOn two five-bit blocks, a type- phase-swap exchanges the blocks and contributes one pair phase for each occupied bit pair . Delete angles strictly below , retaining equality. Let denote this truncated module. Define panels A, B, C by moving each second-block bit left across the five first-block bits with adjacent phase-SWAP crossings, in the order drawn in Fig. 17. Then
Panel A retains all 25 pair phases, from to . Panel B retains exactly , with angles through . Panel C is the pure block exchange. These are exact equalities of truncated modules and do not assert the undefined whole-QFT relative-error claim.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P39
namespace QAlgorithms.Papers.Independent.Intakethird100.P39
open scoped BigOperators
/-- PDF pp.10,19, Appendix B Fig.17: exact equivalence of all three
truncated circuits. This makes no whole-QFT approximation-error claim. -/
theorem truncated_cpSwap_panels :
(truncatedCpSwap 5 1 10 = cpSwap 5 1 ∧
truncatedCpSwap 5 1 10 = blockCircuitMatrix 10 panelA) ∧
truncatedCpSwap 5 2 10 = blockCircuitMatrix 10 panelB ∧
(∀ j : ℕ, 3 ≤ j → truncatedCpSwap 5 j 10 = blockSwap 5 ∧
truncatedCpSwap 5 j 10 = blockCircuitMatrix 10 panelC) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P39
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let the rows and columns of all matrices below be indexed by ten-bit strings , identify each bit with or when used numerically, let exchange the first five bits with the last five, and put and . For every natural number , define unless , and otherwise define
where . Define unless , with , and define to be when and otherwise. To describe the three circuit matrices, a local phase-swap of offset and phase index exchanges bits , leaves all other bits unchanged, and assigns the resulting transition the coefficient ; its other entries are zero. A local swap has the same bit exchange with coefficient . Form three ordered lists by taking in increasing order and, for each , in decreasing order: list A uses local phase-swaps of offset and index ; list B uses local phase-swaps of offset and index when , and local swaps otherwise; list C uses local swaps of offset . Let be the products of their respective matrices with the last listed matrix on the left, so that the first listed step acts first. The theorem asserts
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.