is_pure_stabilizer_state
A 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 operators not containing $-I$.
Statement
open scoped BigOperators in def is_pure_stabilizer_state {n : ℕ} (ρ : Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ) : Prop
- Defined in
- Gottesman 1997; arXiv:2611.34872, lines 166, 196
- Verified
- 26 Nov 2026
- Axioms
- none listed
- Built on 1
- is_signed_pauliA signed $n$-qubit Pauli operator is of the form $\pm P$ for an $n$-qubit Pauli string $P$.
- Used by 1
- stab_polytopeThe stabilizer polytope $\mathrm{STAB}_n$ is the convex hull of all pure $n$-qubit stabilizer states.
Read back from the Lean
For a natural number $n$ (implicit) and a complex matrix $\rho$ indexed by $(\text{Fin } n \to \text{Fin } 2) \times (\text{Fin } n \to \text{Fin } 2)$, $\rho$ satisfies is_pure_stabilizer_state if and only if there exists a finite set $S$ of such matrices such that:
1. The cardinality of $S$ is $2^n$;
2. Every matrix $A \in S$ is a signed Pauli matrix (i.e., of the form $s \cdot \text{pauliMatrix}(P)$ for some Pauli string $P : \text{Fin } n \to \text{PauliBasis}$ and scalar $s \in \{1, -1\}$);
3. The identity matrix $1$ is in $S$;
4. The negative identity matrix $-1$ is not in $S$;
5. $S$ is closed under matrix multiplication (for all $A, B \in S$, $A * B \in S$); and
6. $\rho = \frac{1}{2^n} \sum_{A \in S} A$.
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
open scoped BigOperators in /-- A pure n-qubit stabilizer state is the rank-1 projection onto the joint +1 eigenspace of an abelian subgroup of 2^n signed Paulis not containing -I. -/ def is_pure_stabilizer_state {n : ℕ} (ρ : Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ) : Prop := ∃ S : Finset (Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ), S.card = 2^n ∧ (∀ A ∈ S, is_signed_pauli A) ∧ (1 : Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ) ∈ S ∧ (-1 : Matrix (Fin n → Fin 2) (Fin n → Fin 2) ℂ) ∉ S ∧ (∀ A ∈ S, ∀ B ∈ S, A * B ∈ S) ∧ ρ = ((1 : ℂ) / (2 : ℂ)^n) • ∑ A ∈ S, A