Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Controlled-phase feedforward propagation preserves the output channel

Open
QAlgorithms.Papers.Independent.Advance50.P34.controlledPhase_feedforward_composes

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Use the full two-oscillator Hilbert space, with optical quadratures [xj,pk]=iδjk/2[x_j,p_k]=i\delta_{jk}/2[xj​,pk​]=iδjk​/2 and vacuum variance 1/41/41/4. Put R=(x1,p1,x2,p2)TR=(x_1,p_1,x_2,p_2)^TR=(x1​,p1​,x2​,p2​)T, and let MMM send (a,b,c,d)(a,b,c,d)(a,b,c,d) to (a,b+c,c,d+a)(a,b+c,c,d+a)(a,b+c,c,d+a). There exists a bounded controlled-phase unitary UUU, characterized up to scalar phase by U∗eikTRU=ei(MTk)TRU^*e^{i k^T R}U=e^{i (M^T k)^T R}U∗eikTRU=ei(MTk)TR for every real kkk; it represents CZ=e2ix1x2C_Z=e^{2i x_1x_2}CZ​=e2ix1​x2​.

For every real displacement vector s=(a,b,c,d)s=(a,b,c,d)s=(a,b,c,d) there are actual Weyl displacement unitaries D(s)D(s)D(s) and D(Ms)D(Ms)D(Ms), fixed independently of the input. Let U(ρ)=UρU∗\mathcal U(\rho)=U\rho U^*U(ρ)=UρU∗ and Ds(ρ)=D(s)ρD(s)∗\mathcal D_s(\rho)=D(s)\rho D(s)^*Ds​(ρ)=D(s)ρD(s)∗. For every normalized density operator ρ\rhoρ on the two modes and any countable-basis spectator system AAA, including arbitrary correlations with AAA,

(U⊗id⁡A)((Ds⊗id⁡A)(ρ))=(DMs⊗id⁡A)((U⊗id⁡A)(ρ)).(\mathcal U\otimes\operatorname{id}_A)\bigl((\mathcal D_s\otimes\operatorname{id}_A)(\rho)\bigr) =(\mathcal D_{Ms}\otimes\operatorname{id}_A)\bigl((\mathcal U\otimes\operatorname{id}_A)(\rho)\bigr).(U⊗idA​)((Ds​⊗idA​)(ρ))=(DMs​⊗idA​)((U⊗idA​)(ρ)).

This is the ideal displacement propagation rule used to incorporate the gate into a larger cluster computation while retaining its wire continuations. It makes no assertion that finite-squeezing noise is removed.

Formalization Note Densities are positive nuclear trace-class operators of trace one on the completed Fock space. Symmetric Weyl displacements and the source's ordered position/momentum displacements differ only by scalar phase, which cancels at the channel level.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P34
Formal statement
noncomputable section

open scoped BigOperators

namespace QAlgorithms.Papers.Independent.Advance50.P34

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33 (State productCoeff tensorApply)

open QAlgorithms.Papers.Independent.Dependency50.P39 (displacementMatrix)

open QAlgorithms.Papers.Independent.Frontier30.P14
  (unitaryCoeff boundedUnitaryConjugation)

/-- PDF p.2, Fig.1(b), and PDF p.4, authors' note [18]: displacement feedforward
can be moved through the ideal C_Z by the classical update s -> M s, preserving
the output density, including correlations with arbitrary spectator modes.
The same gate and the same displacement realizations work for every input.
This is the ideal gate propagation rule used when retaining the wire continuations;
it neither discards finite-squeezing noise nor postulates an infinite-squeezing state. -/
theorem controlledPhase_feedforward_composes :
    ∃ U : Hilbert (ℕ × ℕ) ≃ₗᵢ[ℂ] Hilbert (ℕ × ℕ),
      RealizesControlledPhase U ∧
      ∀ s : Fin 4 → ℝ,
        ∃ V Vout : Hilbert (ℕ × ℕ) ≃ₗᵢ[ℂ] Hilbert (ℕ × ℕ),
          unitaryCoeff V = twoModeDisplacement s ∧
          unitaryCoeff Vout = twoModeDisplacement (controlledPhaseShear s) ∧
          ∀ (A : Type) [Countable A] (rho : State ((ℕ × ℕ) × A)),
            tensorApply (boundedUnitaryConjugation U)
              (tensorApply (boundedUnitaryConjugation V) rho.coefficients) =
            tensorApply (boundedUnitaryConjugation Vout)
              (tensorApply (boundedUnitaryConjugation U) rho.coefficients) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P34

end
Source
Demonstration of a Controlled-Phase Gate for Continuous-Variable One-Way Quantum Computation, arXiv:1107.0514v1, PDF p. 2, Fig.1(b) and authors’ note [18], PDF p.4
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Put B=N×NB=\mathbb N\times\mathbb NB=N×N and H=ℓ2(B;C)H=\ell^2(B;\mathbb C)H=ℓ2(B;C), and let eae_aea​ denote the coordinate vector at a∈Ba\in Ba∈B. There exists a bijective complex-linear norm-preserving map U:H→HU:H\to HU:H→H such that, for every k∈R4k\in\mathbb R^4k∈R4,

CU−1(Ok)=OP(k),P(k)=(k0+k3,k1,k2+k1,k3),C_{U^{-1}}(O_k)=O_{P(k)}, \qquad P(k)=(k_0+k_3,k_1,k_2+k_1,k_3),CU−1​(Ok​)=OP(k)​,P(k)=(k0​+k3​,k1​,k2​+k1​,k3​),

and such that, for every s∈R4s\in\mathbb R^4s∈R4, there exist bijective complex-linear norm-preserving maps V,Vout:H→HV,V_{\mathrm{out}}:H\to HV,Vout​:H→H satisfying

(Veq)p=(Ts)p,q,(Vouteq)p=(TS(s))p,qfor every p,q∈B,S(s)=(s0,s1+s2,s2,s3+s0),(Ve_q)_p=(T_s)_{p,q}, \qquad (V_{\mathrm{out}}e_q)_p=(T_{S(s)})_{p,q} \quad\text{for every }p,q\in B, \qquad S(s)=(s_0,s_1+s_2,s_2,s_3+s_0),(Veq​)p​=(Ts​)p,q​,(Vout​eq​)p​=(TS(s)​)p,q​for every p,q∈B,S(s)=(s0​,s1​+s2​,s2​,s3​+s0​),

with the following additional property: for every countable type AAA and every state ρ\rhoρ indexed by B×AB\times AB×A, its coefficient matrix RRR satisfies

CUA ⁣(CVA(R))=CVoutA ⁣(CUA(R)).C_U^A\!\bigl(C_V^A(R)\bigr) =C_{V_{\mathrm{out}}}^A\!\bigl(C_U^A(R)\bigr).CUA​(CVA​(R))=CVout​A​(CUA​(R)).

All the notation here is defined by the entrywise formulas

CW(X)p,q=∑a∈B(Wea)p(∑b∈BXa,b(Web)q‾),CWA(X)(p,α),(q,β)=∑a∈B(Wea)p(∑b∈BX(a,α),(b,β)(Web)q‾),(Ts)(a,c),(b,d)=D(s0+is1)a,b D(s2+is3)c,d,(Ok)(a,c),(b,d)=D ⁣(−k1+ik02)a,b D ⁣(−k3+ik22)c,d,D(z)m,n=e−∣z∣2/2m! n!∑j=0min⁡(m,n)zm−j(−z‾)n−jj! (m−j)! (n−j)!.\begin{aligned} C_W(X)_{p,q} &=\sum_{a\in B}(We_a)_p \left(\sum_{b\in B}X_{a,b}\overline{(We_b)_q}\right),\\ C_W^A(X)_{(p,\alpha),(q,\beta)} &=\sum_{a\in B}(We_a)_p \left(\sum_{b\in B}X_{(a,\alpha),(b,\beta)} \overline{(We_b)_q}\right),\\ (T_s)_{(a,c),(b,d)} &=D(s_0+\mathrm i s_1)_{a,b}\, D(s_2+\mathrm i s_3)_{c,d},\\ (O_k)_{(a,c),(b,d)} &=D\!\left(\frac{-k_1+\mathrm i k_0}{2}\right)_{a,b}\, D\!\left(\frac{-k_3+\mathrm i k_2}{2}\right)_{c,d},\\ D(z)_{m,n} &=e^{-|z|^2/2}\sqrt{m!\,n!} \sum_{j=0}^{\min(m,n)} \frac{z^{m-j}(-\overline z)^{n-j}} {j!\,(m-j)!\,(n-j)!}. \end{aligned}CW​(X)p,q​CWA​(X)(p,α),(q,β)​(Ts​)(a,c),(b,d)​(Ok​)(a,c),(b,d)​D(z)m,n​​=a∈B∑​(Wea​)p​(b∈B∑​Xa,b​(Web​)q​​),=a∈B∑​(Wea​)p​(b∈B∑​X(a,α),(b,β)​(Web​)q​​),=D(s0​+is1​)a,b​D(s2​+is3​)c,d​,=D(2−k1​+ik0​​)a,b​D(2−k3​+ik2​​)c,d​,=e−∣z∣2/2m!n!​j=0∑min(m,n)​j!(m−j)!(n−j)!zm−j(−z)n−j​.​

Precisely, a state here consists of a complex matrix RRR indexed by L=B×AL=B\times AL=B×A satisfying all of these conditions: there are sequences ur,vr∈ℓ2(L;C)u_r,v_r\in\ell^2(L;\mathbb C)ur​,vr​∈ℓ2(L;C), indexed by r∈Nr\in\mathbb Nr∈N, for which ∑r∥ur∥∥vr∥\sum_r\|u_r\|\|v_r\|∑r​∥ur​∥∥vr​∥ is summable and

Rx,y=∑r=0∞ur(x)vr(y)‾for every x,y∈L;R_{x,y}=\sum_{r=0}^{\infty}u_r(x)\overline{v_r(y)} \quad\text{for every }x,y\in L;Rx,y​=r=0∑∞​ur​(x)vr​(y)​for every x,y∈L;

for every finite subset F⊆LF\subseteq LF⊆L and every function z:L→Cz:L\to\mathbb Cz:L→C, the number ∑x∈F∑y∈Fz(x)‾Rx,yz(y)\sum_{x\in F}\sum_{y\in F}\overline{z(x)}R_{x,y}z(y)∑x∈F​∑y∈F​z(x)​Rx,y​z(y) has imaginary part zero and nonnegative real part; and the real diagonal entries form a summable family with ∑x∈LRe⁡Rx,x=1\sum_{x\in L}\operatorname{Re}R_{x,x}=1∑x∈L​ReRx,x​=1. The same UUU works for every sss, and the maps V,VoutV,V_{\mathrm{out}}V,Vout​ are chosen before, and work for every, AAA and ρ\rhoρ. Countable AAA may be finite, infinite, or empty; when it is empty there are no states satisfying the diagonal-sum condition, so that instance of the universal assertion is vacuous. All natural indices include zero, and the infinite complex sums above use the total convention that an individual nonsummable family has sum zero.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me