AFTD Auto-Formalizing Theoretical Domains

gaussPauliFrame

def

The single-qubit Pauli frame C(m)_{ij} = Re tr(m^* σ_i m σ_j)/2 of a 2x2 matrix m.

Statement

noncomputable def gaussPauliFrame (m : Matrix (Fin 2) (Fin 2) ℂ) : Matrix (Fin 3) (Fin 3) ℝ
Source
step towards three_qubit_gaussian_witness_not_locally_real
Verified
14 Nov 2026
Axioms
none listed
Built on 2
  • gaussAxisThe standard Bloch axis order X, Y, Z.
  • PauliBasis.toMatrixMaps each Pauli basis element $\{I,X,Y,Z\}$ to its corresponding $2\times 2$ matrix $\{\sigma_I,\sigma_X,\sigma_Y,\sigma_Z\}$.

Lean source view module on GitHub

/-- Single-qubit Pauli frame C(m)_{ij} = Re tr(m† σ_i m σ_j)/2. -/
noncomputable def gaussPauliFrame (m : Matrix (Fin 2) (Fin 2) ℂ) : Matrix (Fin 3) (Fin 3) ℝ := fun i j => (Matrix.trace (m.conjTranspose * (gaussAxis i).toMatrix * m * (gaussAxis j).toMatrix)).re / 2
See it in the graphDiscuss this resultChallenge it