Repeated qudit test and local implementation
OpenQAlgorithms.Papers.Independent.Extend50.P30.repeatedQuditTestingFix and coprime to . There is , depending only on these fixed parameters, such that for every and , a test using copies accepts every stabilizer certainly and rejects every normalized state with stabilizer fidelity at most with probability at least . The effect is the tensor product of copies of . Moreover is a product of embedded copies of a fixed -qudit unitary; its controlled version is therefore a circuit of fixed-size controlled blocks.
This gives the source's repeated qudit test and local implementation 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.26, Corollary 3.13: constants may depend on fixed d,s, never on n,epsilon,psi.
The displayed local-unitary factorization supplies the efficient implementation at fixed d,s. -/
theorem repeatedQuditTesting (d s : ℕ) [NeZero d] (hd : 2 ≤ d)
(hs : 2 ≤ s) (hcop : Nat.Coprime d s) :
(quditInvolution d 1 s ∈ Matrix.unitaryGroup (QuditCopies d 1 (2 * s)) ℂ) ∧
(∀ n : ℕ, quditInvolution d n s =
(List.ofFn (fun j : Fin n => embeddedLocal j (quditInvolution d 1 s))).prod) ∧
∃ C : ℝ, 0 < C ∧ ∀ n : ℕ, ∀ epsilon : ℝ, 0 < epsilon →
∃ r : ℕ, ∃ A : CopyTest d n,
A.copies = 2 * s * r ∧ HEq A.accept (repeatEffect r (quditTest d n s)) ∧
(A.copies : ℝ) ≤ C / (soundnessConstant d s * epsilon ^ 2) ∧
∀ v : EuclideanSpace ℂ (ResidueRegister d n), ‖v‖ = 1 →
(IsStabilizer v → A.prob v = 1) ∧
(FarFromStabilizers v epsilon → A.prob v ≤ 1 / 3) := 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 natural numbers , assume , , , and . For each natural number , put , , and , and define if , and otherwise, with standard integer representatives. Define
Then is unitary, and for every , is the product, in increasing site order, of the matrices obtained by applying to that site's values across all copies and the identity to every other site. Explicitly, the factor for site has entry when for every copy and every , and entry otherwise. Furthermore, there is a real such that for every and every real , there exist a natural number and a test with a natural copy count and an acceptance matrix satisfying , ,
where the matrix equality uses the identification of indices supplied by . To define the relevant stabilizer set , take , with for even and otherwise; for every subset containing , closed under products and adjoints, and having no scalar element except with , form , and retain exactly when it is for a unit vector , using total scalar inverses. For every unit , the test's probability is ; it equals if , and is at most if for every . The constant is chosen before ; both and are allowed, with empty matrix products equal to the identity.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.