Quantum signal processing (single qubit) — Fourier basis (trigonometric) #
The Fourier-basis single-qubit QSP characterizations: the YZY and
YZZYZ (W-Z-W) quantum-neural-network forms of [YYLW22,
neurips_2022.tex:283] and [YYLW22, neurips_2022.tex:333]. These use the
encoding rotation R_Z(x) = e^{-ixZ/2} and trainable R_Y/R_Z gates (all in
Core.Components.Gates), and produce Laurent polynomials in e^{ix/2}.
A Laurent polynomial of degree ≤ L and parity L mod 2 is exactly
e^{-iLx/2}·A(e^{ix}) for a unique ordinary A : ℂ[X] with deg A ≤ L,
encoded here by lEval L A x. Under this encoding, conjugation on the unit
circle is the conjugate-reflection A ↦ reflect L (conjP A) (conj_lEval),
and the pointwise normalization becomes the polynomial identity
A·reflect L (conjP A) + B·reflect L (conjP B) = X^L
(qspYZ_normalization_iff).
LeanPool.LeanQuantumAlg.qsp_yzy_iff and
LeanPool.LeanQuantumAlg.qsp_yzzyz_iff are the YZY and YZZYZ
characterizations, with pair conditions IsYZYPair/IsYZPair and a
Laurent-side induction (this is the single-qubit precursor of the
controlled-unitary / QET-QPP transformations). The polynomial normalization
matches the pointwise |P|² + |Q|² = 1 via
LeanPool.LeanQuantumAlg.qspYZ_normalization_iff.
This module is one half of the single-qubit QSP development; the Chebyshev-basis
(reflection + Wx) forms live in
LeanPool.LeanQuantumAlg.Primitives.QSP.Chebyshev, and
LeanPool.LeanQuantumAlg.Primitives.QSP re-exports both.
Main results #
LeanPool.LeanQuantumAlg.qspYZY_mem_unitaryGroup,LeanPool.LeanQuantumAlg.qspYZZYZ_mem_unitaryGroup— the QNN products are unitary.LeanPool.LeanQuantumAlg.qspYZZYZ_forward/LeanPool.LeanQuantumAlg.qspYZZYZ_converseandLeanPool.LeanQuantumAlg.qspYZY_forward/LeanPool.LeanQuantumAlg.qspYZY_converse— soundness and completeness via Laurent-encoded induction.LeanPool.LeanQuantumAlg.qsp_yzzyz_iff,LeanPool.LeanQuantumAlg.qsp_yzy_iff— the trigonometric characterizations (registered targets).
Pinned Mathlib API: Polynomial.reflect, Polynomial.divX,
Complex.exp_mul_I, Complex.norm_mul_exp_arg_mul_I,
Complex.exp_eq_exp_iff_exists_int, Complex.cos_arg, Complex.sin_arg,
Set.Ioo.infinite, List.reverseRecOn.
Trigonometric QSP: the YZY and YZZYZ (W-Z-W) forms #
[YYLW22, neurips_2022.tex:283] and [YYLW22, neurips_2022.tex:333]
characterize the single-qubit QNNs R_Y(θ₀)·∏_j R_Z(x)R_Y(θ_j) and
R_Z(φ)·W(θ₀,φ₀)·∏_j R_Z(x)W(θ_j,φ_j) (with W(θ,φ) = R_Y(θ)R_Z(φ) and
encoding gate R_Z(x) = e^{-ixZ/2}) through Laurent polynomials
P, Q ∈ ℂ[e^{ix/2}, e^{-ix/2}] with degree ≤ L, parity L mod 2, and
|P(x)|² + |Q(x)|² = 1 on ℝ.
A Laurent polynomial of degree ≤ L and parity L mod 2 has exponent
support in {-L, -L+2, …, L}, so it is exactly e^{-iLx/2}·A(e^{ix}) for a
unique ordinary A : ℂ[X] with deg A ≤ L (lEval below). Under this
encoding, conjugation on the unit circle becomes the conjugate-reflection
A ↦ reflect L (conjP A) (conj_lEval), and the pointwise normalization
becomes the polynomial identity
A·reflect L (conjP A) + B·reflect L (conjP B) = X^L
(qspYZ_normalization_iff).
e^{-iLx/2}·F(e^{ix}): the value at z = e^{ix/2} of the Laurent
polynomial z^{-L}·F(z²) encoded by F : ℂ[X].
Equations
- QuantumAlg.lEval L F x = Complex.exp (-(↑(↑L * x / 2) * Complex.I)) * Polynomial.eval (Complex.exp (↑x * Complex.I)) F
Instances For
Raising the budget while multiplying by X multiplies by e^{ix/2}.
The encoded value of a constant at budget 0.
Conjugating the encoded value reflects the conjugated coefficients.
Gates and products #
The YZY QNN U^{YZY}_{θ,L}(x) = R_Y(θ₀)·∏_{j=1}^L R_Z(x)·R_Y(θ_j)
[YYLW22, neurips_2022.tex:266].
Equations
- QuantumAlg.qspYZY θ₀ θs x = List.foldl (fun (U : QuantumAlg.Gate 1) (θ : ℝ) => U * (QuantumAlg.rotZStd x * QuantumAlg.rotY θ)) (QuantumAlg.rotY θ₀) θs
Instances For
The YZZYZ (W-Z-W) QNN
U^{WZW}_{θ,φ,L}(x) = R_Z(φ)·W(θ₀,φ₀)·∏_{j=1}^L R_Z(x)·W(θ_j,φ_j) with
trainable blocks W(θ,φ) = R_Y(θ)·R_Z(φ) [YYLW22, neurips_2022.tex:316].
Equations
- One or more equations did not get rendered due to their size.
Instances For
The YZY product is the φ = φ₀ = 0 special case of the YZZYZ product: it
sets every R_Z processing angle in the trainable blocks to 0. This is the
gate-level form of "YZZYZ subsumes YZY" — the encoding/normalization theory of
the trigonometric family is shared, and the two characterizations differ only
in their completeness arguments (one real angle per block vs. three SU(2)
angles).
The trigonometric QSP target form [[P, -Q], [Q*, P*]] with
P = e^{-iLx/2}·A(e^{ix}) and Q = e^{-iLx/2}·B(e^{ix})
[YYLW22, neurips_2022.tex:286].
Equations
- QuantumAlg.qspMatYZ L A B x = !![QuantumAlg.lEval L A x, -QuantumAlg.lEval L B x; (starRingEnd ℂ) (QuantumAlg.lEval L B x), (starRingEnd ℂ) (QuantumAlg.lEval L A x)]
Instances For
The pair conditions and the one-step recurrence #
Conditions of [YYLW22, neurips_2022.tex:333] in the encoded form: degree
bounds and the circle normalization
A·reflect L (conjP A) + B·reflect L (conjP B) = X^L, the polynomial form of
|P(x)|² + |Q(x)|² = 1 on ℝ (qspYZ_normalization_iff). Degree ≤ L and
parity L mod 2 of the Laurent pair are built into the encoding.
Instances For
The YZY pair conditions [YYLW22, neurips_2022.tex:283]: an IsYZPair
with real coefficients.
Instances For
Build the degree conditions from coefficient bounds.
Soundness of the YZY and YZZYZ forms #
Soundness for the YZY form: every qspYZY product realizes the target
form for a real pair satisfying the conditions
[YYLW22, neurips_2022.tex:283, forward direction].
Normalization on the circle #
The polynomial normalization identity is equivalent to the pointwise
circle normalization |P(x)|² + |Q(x)|² = 1 on ℝ
[YYLW22, neurips_2022.tex:288].
Completeness (converse direction) #
Degree-reduction induction following [YYLW22, neurips_2022.tex:848]: the
norm identity forces the edge-coefficient relation
a₀·a*_{L+1} + b₀·b*_{L+1} = 0 (IsYZPair.edge_rel), so some unit pair
(v, w) with real product kills both the top coefficient of v·A + w·B
and the bottom coefficient of v*·B - w*·A (exists_unstep_vw); the
inverse recurrence then factors the pair through one trainable block
(isYZPair_unstep), which is realized by angles via
exists_rotYZ_angles.
Completeness for the YZZYZ form [YYLW22, neurips_2022.tex:848, converse
direction]: every IsYZPair pair is realized by some angle sequence with
exactly L encoding blocks.
The characterization theorems #
Trigonometric QSP, YZZYZ (W-Z-W) form
[YYLW22, neurips_2022.tex:333] (lem:qnn_yzzyz, encoded form): a pair
(A, B) satisfies the degree and normalization conditions IsYZPair L
iff some angles (φ, θ₀, φ₀, ps) with L encoding gates realize the
matrix form [[P, -Q], [Q*, P*]] with P = e^{-iLx/2}·A(e^{ix}) and
Q = e^{-iLx/2}·B(e^{ix}) for all x : ℝ.
Trigonometric QSP, YZY form [YYLW22, neurips_2022.tex:283]
(lem:qnn_yzy, encoded form): real-coefficient pairs IsYZYPair L are
exactly those realized by R_Y angles (θ₀, θs) with L encoding
gates.