AFTD Auto-Formalizing Theoretical Domains

gaussBlochB

def

Bloch vector of the second qubit: b_i = ⟨I ⊗ σ_i ⊗ I⟩.

Statement

noncomputable def gaussBlochB (ψ : EuclideanSpace ℂ (Fin 3 → Fin 2)) : Fin 3 → ℝ
Source
step towards three_qubit_gaussian_witness_not_locally_real
Verified
14 Nov 2026
Axioms
none listed
Built on 3
  • gaussPauliExpectReal part of the Pauli expectation of the 3-qubit Pauli string p in the pure state ψ, i.e. Re⟨ψ|P_p|ψ⟩.
  • gaussAxisThe standard Bloch axis order X, Y, Z.
  • PauliBasisThe four Pauli basis elements $\{I,X,Y,Z\}$, represented as an inductive type.
Used by 1
  • gaussInvariantThe local-unitary invariant: determinant of the 3x3 real matrix with rows a, A·b, A·Aᵀ·a.

Lean source view module on GitHub

/-- Bloch vector of the second qubit, b_i = Re⟨ψ|I⊗σ_i⊗I|ψ⟩. -/
noncomputable def gaussBlochB (ψ : EuclideanSpace ℂ (Fin 3 → Fin 2)) : Fin 3 → ℝ := fun i => gaussPauliExpect ψ (fun q => if q = 1 then gaussAxis i else PauliBasis.I)
See it in the graphDiscuss this resultChallenge it