Real trace fidelity and Frobenius distance
OpenQAlgorithms.Papers.Independent.Intakethird100.P39.traceFidelity_frobeniusprove2quantum
Let , , and let be unitary matrices in the computational basis. Define the phase-sensitive real trace fidelity by . Then
This identity uses the Frobenius norm and retains global phase. In particular the fidelity can be negative; for it is .
Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P39
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P39
open scoped BigOperators
/-- PDF p.5, Eq. (14). The distance is explicitly the squared Frobenius
norm; arbitrary real trace fidelity, including -1, is allowed. -/
theorem traceFidelity_frobenius (n : ℕ)
(U V : Matrix (Qubits n) (Qubits n) ℂ)
(hU : U ∈ Matrix.unitaryGroup (Qubits n) ℂ)
(hV : V ∈ Matrix.unitaryGroup (Qubits n) ℂ) :
traceFidelity U V = (Matrix.trace (star V * U)).re / (2 : ℝ) ^ n ∧
traceFidelity U V = 1 -
(∑ a : Qubits n, ∑ b : Qubits n, Complex.normSq ((V - U) a b)) /
(2 * (2 : ℝ) ^ n) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P39
Source
Quantum CISC Compilation by Optimal Control and Scalable Assembly of Complex Instruction Sets beyond Two-Qubit Gates, arXiv:0712.3227v2, PDF p. 5, Real trace fidelity and Frobenius identity, Eq. (14)
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number and complex unitary matrices indexed by , both of the following equalities hold, where denotes conjugate transpose and is defined as :
The case is included: the index set then has one element, so these are identities for unitary matrices.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.