Clifford testing via Choi states
OpenQAlgorithms.Papers.Independent.Extend50.P30.cliffordTestingFor a unitary on qubits, let be its normalized Choi state. This state is a stabilizer exactly when is Clifford. Its pure-state trace distance from equals . Preparing six Choi states and running Algorithm 1 gives a perfectly complete test using alone. There exists a function , independent of , such that a unitary at distance at least from every Clifford is accepted with probability at most . The anti-identity verification factors into fixed-size local blocks, supplying efficient implementation.
This gives the source's clifford testing via choi states in the fixed computational-basis and phase conventions.
Formalization Note Pure states carry norm one; stabilizer averages use density matrices to discard global phases. All finite tensor indices are explicitly ordered by copy, then physical qudit.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
noncomputable section
open scoped BigOperators ComplexConjugate Matrix
namespace QAlgorithms.Papers.Independent.Extend50.P30
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
open QAlgorithms.Papers.Independent.Gap20.P06 (ketBra)
attribute [local instance] Classical.propDecidable
/-- PDF p.22, Remark 3.7: exact Choi characterization and dimension-independent unitary soundness.
The concrete tester prepares six Choi vectors using U alone, then applies Algorithm 1.
No numerical Clifford-distance constant is substituted for the source's qualitative guarantee. -/
theorem cliffordTesting :
(∀ n : ℕ, QAlgorithms.IsEffect (qubitTest (n + n)) ∧
∀ U : QuditOperator 2 n, IsClifford U →
QAlgorithms.effectProb (qubitTest (n + n))
(tensorPower 6 (QAlgorithms.pureDensity (unitaryChoiVector n U))) = 1) ∧
(∀ n : ℕ, ∀ U : QuditOperator 2 n, U ∈ Matrix.unitaryGroup (ResidueRegister 2 n) ℂ →
(IsStabilizer (unitaryChoiVector n U) ↔ IsClifford U)) ∧
(∀ n : ℕ, ∀ U V : QuditOperator 2 n,
U ∈ Matrix.unitaryGroup (ResidueRegister 2 n) ℂ → V ∈ Matrix.unitaryGroup (ResidueRegister 2 n) ℂ →
QAlgorithms.traceNorm (QAlgorithms.pureDensity (unitaryChoiVector n U) -
QAlgorithms.pureDensity (unitaryChoiVector n V)) / 2 = unitaryDistance U V) ∧
(∃ eta : ℝ → ℝ, ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ 1 →
0 < eta epsilon ∧ ∀ n : ℕ, ∀ U : QuditOperator 2 n,
U ∈ Matrix.unitaryGroup (ResidueRegister 2 n) ℂ →
(∀ C : QuditOperator 2 n, IsClifford C → epsilon ≤ unitaryDistance U C) →
QAlgorithms.effectProb (qubitTest (n + n))
(tensorPower 6 (QAlgorithms.pureDensity (unitaryChoiVector n U))) ≤ 1 - eta epsilon) ∧
(∀ m : ℕ, quditInvolution 2 m 3 =
(List.ofFn (fun j : Fin m => embeddedLocal j (quditInvolution 2 1 3))).prod) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For , let , , and define if , and zero otherwise. Write . A matrix is called Clifford here precisely when it is unitary and . Put , , , and . Let consist of the rank-one unit-vector matrices among , where , contains , is closed under multiplication and adjoints, and satisfies . A vector is a stabilizer here when and . For a matrix on , define by , identifying the first and last coordinates with , and define . The theorem asserts the conjunction of the following statements: for every , and , and every Clifford on satisfies ; for every and unitary , is a stabilizer if and only if is Clifford; for every and unitary matrices ,
where the matrix square root is given by spectral functional calculus; there exists a function such that, for every , and, for every and unitary , the hypothesis for every Clifford implies
and, for every ,
Here acts by on site across six copies and has zero matrix entries unless row and column agree at every other site; the product is in increasing site order. All tensor powers have entries equal to products over their copies. All natural-number quantifiers include zero, with empty site products equal to the identity. The function is independent of and , and no condition on it is asserted outside .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.