ppt_pauli_error_rates
For an implicit natural number n, a function p : PauliString n → ℝ, and a Pauli string b : PauliString n, ppt_pauli_error_rates p b is the real number in ℝ defined as ((1 : ℝ) / (4 : ℝ)^n) * ∑ a : PauliString n, pauli_theta a * pauli_eigenvalues p a * pauli_comm_factor a b.
Statement
open Classical in open scoped BigOperators in noncomputable def ppt_pauli_error_rates {n : ℕ} (p : PauliString n → ℝ) (b : PauliString n) : ℝ
- Defined in
- arXiv:2611.34872, eq. (4)
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Built on 5
- pauli_thetaFor an implicit natural number n and a Pauli string P : PauliString n, pauli_theta P is the real sign factor (-1 : ℝ) ^ k in ℝ, where k is…
- pauli_comm_factorFor an implicit natural number n and two Pauli strings a b : PauliString n, pauli_comm_factor a b is the real sign factor (-1 : ℝ) ^ k in…
- pauli_eigenvaluesFor an implicit natural number n, a probability distribution p : PauliString n → ℝ, and a Pauli string a : PauliString n,…
- PauliStringA Pauli string of length $n$ is a function $p : \mathrm{Fin}\,n \to \mathrm{PauliBasis}$.
- instFintypePauliStringinstFintypePauliString
Read back from the Lean
Given a natural number n, a function p : PauliString n → ℝ, and a Pauli string b : PauliString n, ppt_pauli_error_rates p b is defined as the real number:
(1 / 4^n) * ∑ a : PauliString n, pauli_theta a * pauli_eigenvalues p a * pauli_comm_factor a b
where:
- PauliString n is Fin n → PauliBasis (with basis elements I, X, Y, Z),
- pauli_theta a is (-1 : ℝ) ^ (cardinality of {i : Fin n | a i = PauliBasis.Y}),
- pauli_eigenvalues p a is ∑ c : PauliString n, p c * pauli_comm_factor a c,
- pauli_comm_factor x y is (-1 : ℝ) ^ (cardinality of {i : Fin n | x i ≠ PauliBasis.I ∧ y i ≠ PauliBasis.I ∧ x i ≠ y i}).
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 Classical in open scoped BigOperators in /-- The transformed error rates q_b = 4^(-n) sum_a theta_a lambda_a (-1)^[a,b] of T o E. -/ noncomputable def ppt_pauli_error_rates {n : ℕ} (p : PauliString n → ℝ) (b : PauliString n) : ℝ := ((1 : ℝ) / (4 : ℝ)^n) * ∑ a : PauliString n, pauli_theta a * pauli_eigenvalues p a * pauli_comm_factor a b