Example 11: rank-one one-to-three evaluation, Eq.(45)
OpenQAlgorithms.Papers.Independent.Extend50.P12.example11_rankOneLet , let be product-basis labels, and let . Under Eq. (2)'s permutation convention,
Here is ordinary partial transpose, the partial trace is unnormalized, and exchanges ket site with bra site . The first reshuffling is and the second is .
This gives both the explicit rank-one output and its ordered-reshuffling form. Direct index substitution confirms that the printed forward-cycle kernel agrees with Eq. (2), contrary to the plan's orientation objection.
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 11, PDF pp.7-8, Eq.(45). Both the explicit summed matrix-unit kernel
and the two ordered reshufflings are retained. Under Eq.(2), the named forward
four-cycle expands exactly as its printed kernel; no cycle correction is made. -/
theorem example11_rankOne (d : ℕ) (hd : 0 < d) (alpha beta : Fin d) :
let L := productInputContraction (r := 1) (m := 3)
(transposeRegisterSet {3} (permutation d 4 (finRotate 4))) ![Matrix.single alpha beta (1 : ℂ)]
L = rankOneThreeOutput alpha beta ∧
L = reshuffleSites 2 0 (reshuffleSites 2 1
(leadingInput 3 (by omega) (Matrix.single alpha beta (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 indices , define on by when for every , and otherwise. Write , where are obtained by exchanging and and leaving the other coordinates unchanged, and define the matrix on by
Then both
hold. Here , and, for a matrix on , , where is with coordinate replaced by , and is with coordinate replaced by . Every Kronecker delta is for equal indices and otherwise; is allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.