AFTD Auto-Formalizing Theoretical Domains

is_signed_pauli

def

A signed $n$-qubit Pauli operator is of the form $\pm P$ for an $n$-qubit Pauli string $P$.

Statement

def is_signed_pauli {n : ℕ} (A : Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ) : Prop
Defined in
arXiv:2611.34872, line 151
Verified
26 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 1
  • is_pure_stabilizer_stateA pure $n$-qubit stabilizer state is the rank-$1$ projection $(1/2^n) \sum_{g \in S} g$ for an abelian subgroup $S$ of $2^n$ signed Pauli…

Read back from the Lean

For a fixed natural number n, the definition is_signed_pauli A asserts that a complex matrix A (with rows and columns indexed by Fin n → Fin 2) is equal to a Pauli string matrix scaled by a sign: specifically, there exist a Pauli string P : Fin n → PauliBasis and a complex scalar s : ℂ such that s = 1 ∨ s = -1 and A = s • pauliMatrix P.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- A signed n-qubit Pauli operator is a Pauli matrix multiplied by +1 or -1. -/
def is_signed_pauli {n : ℕ} (A : Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ) : Prop := ∃ (P : PauliString n) (s : ℂ), (s = 1 ∨ s = -1) ∧ A = s • pauliMatrix P
See it in the graphDiscuss this resultChallenge it