gaussCorr
def
2-qubit correlation matrix of qubits 1 and 2: A_{ij} = ⟨σ_i ⊗ σ_j ⊗ I⟩.
Statement
noncomputable def gaussCorr (ψ : EuclideanSpace ℂ (Fin 3 → 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 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
/-- Correlation matrix A_{ij} = Re⟨ψ|σ_i⊗σ_j⊗I|ψ⟩ of the first two qubits. -/ noncomputable def gaussCorr (ψ : EuclideanSpace ℂ (Fin 3 → Fin 2)) : Matrix (Fin 3) (Fin 3) ℝ := fun i j => gaussPauliExpect ψ (fun q => if q = 0 then gaussAxis i else if q = 1 then gaussAxis j else PauliBasis.I)