Example 6: 3-to-2 evaluation, Eq.(37)
OpenQAlgorithms.Papers.Independent.Extend50.P12.example6_threeToTwoLet and be arbitrary complex matrices. Use the permutation action of Eq. (2), ordinary partial transpose , the unnormalized partial trace, and the two-site reshuffling of Eq. (6). Then
The right-hand side acts on the two output registers. No Hermiticity, positivity or trace restriction is imposed on the inputs.
This identity evaluates the specified three-input, two-output contraction using matrix multiplication, transpose and reshuffling.
Formalization Note A direct index audit shows that the printed matrix-unit kernel agrees with the forward cycle under Eq. (2). The plan's proposed inverse-cycle obstruction was incorrect; the source formula is retained unchanged.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P12
noncomputable section
open scoped BigOperators Matrix ComplexOrder
namespace QAlgorithms.Papers.Independent.Extend50.P12
attribute [local instance] Classical.propDecidable
/-- Example 6, PDF p.6, Eq.(37), with the fixed Eq.(2) cycle convention.
The printed kernel is that convention's forward five-cycle with site 2
transposed, as a direct coordinate substitution verifies. -/
theorem example6_threeToTwo (d : ℕ) (hd : 0 < d) (X1 X2 X3 : LocalMatrix d) :
productInputContraction (r := 3) (m := 2)
(transposeRegisterSet {1} (permutation d 5 (finRotate 5))) ![X1, X2, X3] =
transposeRegisterSet {1}
(reshuffleTwo (homogeneousTensorPair (X3 * X2.transpose * X1) 1)) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P12
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number and arbitrary complex matrices , let . Define a matrix on by when for every , and otherwise. Let denote the matrix obtained by exchanging coordinate between its row and column arguments: , where , , and all other coordinates retain their original values. Then, for every ,
Here is when and otherwise, and the transpose is ordinary transpose without conjugation.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.