Appendix C, Eqs.(C10)–(C11): exponentiating a Hermitian unitary
OpenQAlgorithms.Papers.Independent.Intakethird100.P67.hermitian_unitary_simulationLet be Hermitian and unitary, , and let be its controlled version. For the ancillary Pauli ,
The second identity holds for every normalized system vector. Tensor factors are displayed system first. Thus two controlled- applications and one ancillary rotation realize the exponential, returning the extra ancilla exactly to . The positive sign is intentional.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P67
noncomputable section
open scoped ComplexConjugate Matrix Matrix.Norms.L2Operator
attribute [local instance] Classical.propDecidable
open MeasureTheory Filter
namespace QAlgorithms.Papers.Independent.Intakethird100.P67
variable {I J K L A : Type*} [Fintype I] [DecidableEq I]
[Fintype J] [DecidableEq J] [Fintype K] [DecidableEq K]
[Fintype L] [DecidableEq L] [Fintype A] [DecidableEq A]
/-- PDF pp.20–21, C10–C11: the exponential has the intentional plus sign; the extra
ancilla returns to |plus> after two systemControlled-V gates and one ancillary rotation. -/
theorem hermitian_unitary_simulation (V : Matrix.unitaryGroup I ℂ)
(hV : (V : Matrix I I ℂ).IsHermitian) (theta : ℝ) (psi : EuclideanSpace ℂ I) (hpsi : IsState psi) :
systemControlled (V : Matrix I I ℂ) * Matrix.kronecker (1 : Matrix I I ℂ) (positivePhaseEvolution pauliX theta) *
systemControlled (V : Matrix I I ℂ) = positivePhaseEvolution (Matrix.kronecker (V : Matrix I I ℂ) pauliX) theta ∧
act (systemControlled (V : Matrix I I ℂ) * Matrix.kronecker (1 : Matrix I I ℂ) (positivePhaseEvolution pauliX theta) *
systemControlled (V : Matrix I I ℂ)) (tensorVec psi (act hadamard (ket false))) =
tensorVec (act (positivePhaseEvolution (V : Matrix I I ℂ) theta) psi) (act hadamard (ket false)) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P67
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be a finite index type with decidable equality, let be a unitary matrix on that is also Hermitian, let be arbitrary, and let have norm . Write , let , and let . Then both
and
hold, where all exponentials are matrix exponentials. There is no restriction on ; if is empty, the norm- hypothesis on cannot be satisfied.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.