AFTD Auto-Formalizing Theoretical Domains

gaussPauliExpect

def

Real part of the Pauli expectation of the 3-qubit Pauli string p in the pure state ψ, i.e. Re⟨ψ|P_p|ψ⟩.

Statement

noncomputable def gaussPauliExpect (ψ : EuclideanSpace ℂ (Fin 3 → Fin 2)) (p : PauliString 3) : ℝ
Source
step towards three_qubit_gaussian_witness_not_locally_real
Verified
14 Nov 2026
Axioms
none listed
Built on 2
  • PauliStringA Pauli string of length $n$ is a function $p : \mathrm{Fin}\,n \to \mathrm{PauliBasis}$.
  • pauliMatrixFor a Pauli string $p$ on $n$ qubits, the $2^n\times 2^n$ matrix obtained as the tensor product of the single-qubit Pauli matrices…
Used by 3
  • gaussBlochBBloch vector of the second qubit: b_i = ⟨I ⊗ σ_i ⊗ I⟩.
  • gaussBlochABloch vector of the first qubit: a_i = ⟨σ_i ⊗ I ⊗ I⟩.
  • gaussCorr2-qubit correlation matrix of qubits 1 and 2: A_{ij} = ⟨σ_i ⊗ σ_j ⊗ I⟩.

Lean source view module on GitHub

/-- Real part of the quadratic form ⟨ψ| P_p |ψ⟩ of a Pauli string in a pure state. -/
noncomputable def gaussPauliExpect (ψ : EuclideanSpace ℂ (Fin 3 → Fin 2)) (p : PauliString 3) : ℝ := (∑ s : Fin 3 → Fin 2, ∑ t : Fin 3 → Fin 2, (starRingEnd ℂ) (ψ s) * pauliMatrix p s t * ψ t).re
See it in the graphDiscuss this resultChallenge it