Introduction
Polynomial transformations provide a way to design quantum operations from the matrices available to an algorithm. Quantum signal processing [65 ] and qubitization [66 ] use this approach for Hamiltonian simulation, while quantum singular value transformation [45 ] supports a broad range of matrix arithmetic. Their usefulness rests on a constructive connection: a classical description of the desired polynomial determines the known gates between quantum queries. We develop such a connection for polynomials of several noncommuting matrices, including transformations that retain quantum input and output labels.
For several inputs, the order of multiplication is part of the task. A target is a finite sum of ordered matrix products, with known scalar coefficients, and even a short coefficient recurrence can describe exponentially many such products. Expanding the recurrence into separate words can therefore destroy its computational advantage. There is also a quantum cost to treating the products separately: a term-by-term linear combination [35 ] is normalized by the sum of their coefficient magnitudes, together with their encoding normalizations. This can be much larger than the norm of the complete polynomial. We seek a synthesis procedure that retains the compact coefficient description and exploits the norm bound on the joint transformation.
We receive the matrices as designated blocks of one unitary, together with a block that acts as identity on the signal. For instance, placing each matrix at a different diagonal label encodes several independent contractions. A row block [ A 1 ⋯ A k ] [A_1 \cdots A_k] [ A 1 ⋯ A k ] instead combines input labels and obeys ∑ j A j A j † ⪯ I \sum_j A_j A_j^\dagger\preceq I ∑ j A j A j † ⪯ I . The identity branch allows terms of different degrees to share a query sequence. We use the same forward unitary at every call, interleaved with known auxiliary gates; § 2 specifies the input and shows how coherent selection [45 ] can supply it, with its access and normalization costs.
For a nonconstant polynomial of degree D D D , let B B B be its norm over all allowed input tuples and all finite matrix sizes. Given a rational finite-state description of its coefficients and rational 0 < τ , ϵ < 1 0 < \tau, \epsilon< 1 0 < τ , ϵ < 1 , we construct a block encoding with error at most ϵ \epsilon ϵ and normalization
B < β ≤ ( 1 + τ ) B . B < \beta\le(1+\tau)B. B < β ≤ ( 1 + τ ) B .
The circuit uses O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) queries for a general joint input, and exactly D D D queries for a row input. Its classical synthesis cost and known-gate count are polynomial in the coefficient description, the oracle-register width, τ − 1 / 2 \tau^{-1/2} τ − 1/2 , and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) ; for a row input the dependence on the margin is polynomial in log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) . Thus the normalization approaches the exact-implementation threshold B B B , and the row construction attains the degree lower bound for exact synthesis in the stated forward-query model. Theorem 2.1 gives the scalar guarantee, and Theorem 5.1 extends it to coherent data labels.
Our construction addresses two questions. First, how can the norm of the complete polynomial determine a tractable set of gate parameters? Schur–Agler realization theory [21 ] relates a uniform norm bound to a positive defect decomposition and a common contractive update. We prove that the residual polynomials left after fixing initial letters of the coefficient recurrence already support a complete finite certificate. Their number is controlled by the recurrence, even when it describes exponentially many words. This makes the norm constraint accessible to classical computation, and the certificate factors determine known auxiliary matrices with certified precision bounds.
Second, how can those matrices be used in a finite circuit whose selected block is the desired polynomial? We construct a query sequence that coherently combines their ordered coefficient products and control the change in normalization introduced by this combination. A row input permits a stronger factorization: the certificate completes the target to a polynomial column, from which each step removes one degree and can be reversed by one row query. The two constructions therefore give different query bounds from the same finite certificate theory. § 4 develops their intermediate matrices and full unitary circuits.
Retaining an output label gives a direct application to quantum operations. For a specified coherent Kraus implementation, our algorithm can produce several polynomials F b ( K ) = ∑ w c b , w K w F_b(K) = \sum_w c_{b,w}K_w F b ( K ) = ∑ w c b , w K w on distinct labels. After a successful output test, tracing those labels realizes
M β ( ρ ) = 1 β 2 ∑ b F b ( K ) ρ F b ( K ) † . (1) \mathcal{M}_{\beta}(\rho) = \frac{1}{\beta^2}\sum_b F_b(K)\rho F_b(K)^\dagger. \tag*{(1)} M β ( ρ ) = β 2 1 b ∑ F b ( K ) ρ F b ( K ) † . (1)
Here a single certificate bounds the entire output column, so its normalization makes the operation trace-nonincreasing. Keeping a label instead allows different polynomials to act coherently on different data values, with a query count governed by the largest degree. § 5 develops these two applications. For comparison with channel-only access, Appendix § 14 gives a separate gate compiler for controllers specified by explicit causal Choi matrices.
Relation to earlier work
For a single signal, classical synthesis separates naturally into completing a polynomial to a unitary-valued function and recovering the gate parameters of that function. Haah’s factorization [48 ] and the methods of Chao et al. [28 ] and Dong et al. [37 ] give constructive phase sequences. For the completion step, Berntson and Sünderhauf [26 ] derive a canonical complementary polynomial through a scalar Riemann–Hilbert problem and give contour/FFT algorithms with error bounds. For phase recovery, Alexis, Mnatsakanyan, and Thiele [8 ] connect QSP with nonlinear Fourier analysis; the Riemann–Hilbert–Weiss algorithm of Alexis et al. [6 ] extends the analytic representation to Szegő functions and proves stability of phase recovery with a strict norm margin. Ni and Ying [80 ] exploit structured linear algebra in the Half-Cholesky method, and Ni, Sarkar, Ying, and Lin [79 ] give an inverse nonlinear Fourier algorithm with nearly linear arithmetic complexity for completed Laurent data, with stability guarantees when the designated analytic factor is zero-free on the closed unit disk. These developments distinguish the cost of completion from that of phase inversion, and both from polynomial approximation; Lin’s survey [67 ] reviews their mathematical and numerical connections. Our corresponding classical problem is to compute a norm certificate on a specified noncommutative matrix domain from a compact coefficient recurrence.
Generalized QSP enlarges the admissible single-unitary polynomial class [77 ] , and Laneve [63 ] identifies its relation to the nonlinear Fourier transform. Increasing the output dimension is another extension: Lu, Liu, and Lin [68 ] give matrix-valued polynomial synthesis on U ( N ) U(N) U ( N ) and also a bivariate construction, while Alexis et al. [1 ] develop an S U ( 2 n ) SU(2n) S U ( 2 n ) -valued nonlinear Fourier transform. For several scalar signals, Rossi and Chuang’s architecture [84 ] has factorization constraints investigated through counterexamples [75 ] , constructive decision algorithms [54 ] , and representability results [73 ] . Németh et al. [78 ] also study homogeneous noncommuting variants. Thus adding variables and adding coherent output labels have several distinct precedents; in our setting, both the admissible targets and their normalization are determined by the supplied joint block encoding.
For general square matrices, the encoding also determines which function is being transformed. Low and Su’s eigenvalue processing [72 ] combines polynomial approximation with spectral geometry, whereas regular block encodings preserve matrix powers for QSP-based evaluation [44 ] . Interpolation-based synthesis can construct a diagonal encoding of sampled function values [60 ] . Our function applications instead supply compact polynomial approximations that are uniform on the declared joint domain. Appendix § 16 .§ 1 gives such an approximation, together with its loading assumptions and success bound.
Another approach uses positive matrix data to describe quantum protocols. Semidefinite query characterizations [27 , 12 ] and completely bounded polynomial formulations [2 ] connect feasibility to quantum implementation; the associated tensor norm has an SDP formulation [41 ] , and finite Christensen–Sinclair factors can be recovered through semidefinite duality [40 ] . In state conversion, adversary data guide the algorithm [69 ] ; Laneve Laneve [64 ] uses feasible adversary data to construct QSP protocols, and transducers provide an accounting of composition and time [20 ] . We begin instead with a rational recurrence for the target coefficients. Our residual-space theorem supplies a complete polynomial-size certificate for its joint norm, and quantitative strict feasibility makes this certificate and the resulting gates computable. The exact fixed-query characterization in Appendix § 17 uses full histories, whose number can instead be exponential in the query count.
The mathematical form of our certificate comes from Agler’s defect decompositions [4 ] and noncommutative realization theory [17 ] . Bounded-real theory relates finite structured realizations to norm inequalities [18 , 19 ] , and finite rational defect decompositions on the noncommutative polydisc are available [23 ] . We state the general free Schur–Agler representation principle [21 ] in § 2.2 . The target-dependent finite certificate is then proved independently, using hereditary positivity methods [5 , 52 ] ; its Gram factors give the common contraction through Douglas factorization [39 ] . The additional requirements for synthesis are completeness in the chosen residual space, bounds in the original description length, and a circuit for the resulting numerical matrices.
For quantum operations, Choi matrices [32 , 56 ] , Kraus operators [89 ] , and Stinespring dilations [88 ] describe different aspects of the same completely positive map. Interference between Kraus histories uses the extra information retained by a specified coherent implementation [10 , 33 ] . Channel-only higher-order maps are described by supermaps [29 ] and quantum strategies [47 ] , with sequential realization under a fixed causal order given by comb theory [30 , 15 ] . Our joint polynomial construction acts on the specified coherent implementation. We treat compilation of a controller from explicit causal Choi data separately, using that existing sequential realization theory.
The synthesis problem and its mathematical foundation
To determine the gates of the transformation, we first specify the joint oracle and the classical description of the target, since they determine both the relevant norm and the cost of synthesis. The Schur–Agler representation principle then identifies a common contractive update, and a finite polynomial certificate will provide its numerical entries.
Inputs, oracle access, and the synthesis guarantee
The signal register S has n s n_s n s qubits and dimension n = 2 n s n = 2^{n_s} n = 2 n s . The matrices A 1 , … , A k A_1,\ldots,A_k A 1 , … , A k act on this same register. For a word w = j 1 ⋯ j d w = j_1\cdots j_d w = j 1 ⋯ j d over { 1 , … , k } \{1,\ldots,k\} { 1 , … , k } , we write A w = A j 1 ⋯ A j d A_w = A_{j_1}\cdots A_{j_d} A w = A j 1 ⋯ A j d and ∣ w ∣ = d |w| = d ∣ w ∣ = d , with A ∅ = I n A_{\varnothing} = I_n A ∅ = I n . Our principal target is the scalar-coefficient polynomial
p ( A ) = ∑ w c w A w , D = max { ∣ w ∣ : c w ≠ 0 } . (2) p(A) = \sum_w c_w A_w,\qquad D = \max\{|w| : c_w \ne0\}. \tag*{(2)} p ( A ) = w ∑ c w A w , D = max { ∣ w ∣ : c w = 0 } . (2)
The sum is finite, and D D D denotes the true degree of a nonzero target. We write x w x_w x w for the corresponding formal word. The rightmost factor acts first on the signal, so implementing A 1 A 2 A_1A_2 A 1 A 2 requires the multiplication by A 2 A_2 A 2 before the multiplication by A 1 A_1 A 1 . The coefficients are known classical data; the matrices A j A_j A j are accessed through the unitary specified below.
For one matrix, a block encoding identifies an ancillary input and output of a unitary whose selected block is that matrix, possibly divided by a known scale [45 ] . We use the same idea for several matrices by placing them at different ancillary labels. For example, with two separately bounded matrices the supplied unitary has the form
U A = ( I n 0 0 0 0 A 1 0 ∗ 0 0 A 2 ∗ 0 ∗ ∗ ∗ ) , ∥ A 1 ∥ , ∥ A 2 ∥ ≤ 1. (3) U_A=\begin{pmatrix}
I_n & 0 & 0 & 0\\
0 & A_1 & 0 & *\\
0 & 0 & A_2 & *\\
0 & * & * & *
\end{pmatrix},\qquad\lVert A_1\rVert,\lVert A_2\rVert\le1. \tag*{(3)} U A = I n 0 0 0 0 A 1 0 ∗ 0 0 A 2 ∗ 0 ∗ ∗ ∗ , ∥ A 1 ∥ , ∥ A 2 ∥ ≤ 1. (3)
The first three block rows and columns correspond to ancillary labels 0, 1, 2; the last group contains all remaining labels. If the oracle register O has q o q_o q o qubits and d o = 2 q o ≥ 5 d_o=2^{q_o}\ge5 d o = 2 q o ≥ 5 labels, these groups have lengths n , n , n , ( d o − 3 ) n n,n,n,(d_o-3)n n , n , n , ( d o − 3 ) n . Thus Eq. (3) denotes a complete square unitary. The stars are arbitrary compatible blocks that complete its columns and rows. On label zero the oracle acts as identity on the signal. This coherent identity branch will allow components requiring different numbers of matrix multiplications to undergo the same number of oracle calls.
One query is one forward application of the entire U A U_A U A . Let q a n c q_{\mathrm{anc}} q anc be the total number of non-signal qubits, including the oracle register. Between queries, we apply known unitaries W t W_t W t of order 2 q a n c 2^{q_{\mathrm{anc}}} 2 q anc to these qubits, leaving the signal unchanged. For Q ≥ 1 Q\ge1 Q ≥ 1 , writing U ^ A \widehat{U}_A U A for the supplied unitary extended by identity on the added registers, the resulting circuit is
U A = ( W Q ⊗ I n ) U ^ A ( W Q − 1 ⊗ I n ) ⋯ U ^ A ( W 0 ⊗ I n ) . (4) U_A=(W_Q\otimes I_n)\widehat{U}_A(W_{Q-1}\otimes I_n)\cdots\widehat{U}_A(W_0\otimes I_n). \tag*{(4)} U A = ( W Q ⊗ I n ) U A ( W Q − 1 ⊗ I n ) ⋯ U A ( W 0 ⊗ I n ) . (4)
The input on S is arbitrary. The oracle register and the added auxiliary registers start at zero. For a positive normalization β \beta β , the ideal circuit is required to satisfy
( ⟨ 0 q a n c ∣ ⊗ I n ) U A ( ∣ 0 q a n c ⟩ ⊗ I n ) = p ( A ) / β . (5) (\langle0^{q_{\mathrm{anc}}}|\otimes I_n)U_A(|0^{q_{\mathrm{anc}}}\rangle\otimes I_n)=p(A)/\beta. \tag*{(5)} (⟨ 0 q anc ∣ ⊗ I n ) U A ( ∣ 0 q anc ⟩ ⊗ I n ) = p ( A ) / β . (5)
We compute both β \beta β and the known gates. Their finite-gate approximations give the prescribed block error ϵ \epsilon ϵ . The same gate description must work for every compatible choice of the starred blocks, so its parameters depend on the coefficients and the declared block positions. The guarantee also holds when the signal is entangled with an untouched reference.
Obtaining the input and choosing its layout. The diagonal arrangement has a familiar implementation through coherent selection. Suppose U j U_j U j is a block encoding of a physical matrix M j / α j M_j/\alpha_j M j / α j , with known α j > 0 \alpha_j>0 α j > 0 . A selector U s e l U_{\mathrm{sel}} U sel applies U j U_j U j on index j j j and identity on index zero. Keeping this index and the designated encoding coordinates gives Eq. (3) , or its k k k -variable version, with loaded matrices A j = M j / α j A_j=M_j/\alpha_j A j = M j / α j . A supplied selector therefore implements one joint query. If instead the individually controlled U j U_j U j are supplied, applying each under the corresponding index condition constructs the selector using one controlled call per input. These are distinct input resources: after the joint unitary has been obtained, Eq. (4) calls it unconditionally, while constructing it from arbitrary unknown unitaries requires the additional control access [3 ] .
Other layouts are useful because they combine auxiliary labels differently. The active part of a diagonal encoding retains the variable label, a row combines input labels into one output, and a column distributes one input over several outputs. Their constraints are
Δ d i a g ( A ) = diag ( A 1 , … , A k ) , ∥ Δ d i a g ( A ) ∥ ≤ 1 ⟺ max j ∥ A j ∥ ≤ 1 , Δ r o w ( A ) = [ A 1 ⋯ A k ] , ∥ Δ r o w ( A ) ∥ ≤ 1 ⟺ ∑ j A j A j † ⪯ I n , Δ c o l ( A ) = ( A 1 ⋮ A k ) , ∥ Δ c o l ( A ) ∥ ≤ 1 ⟺ ∑ j A j † A j ⪯ I n . (6) \begin{aligned}
\Delta_{\mathrm{diag}}(A)&=\operatorname{diag}(A_1,\ldots,A_k),\qquad\lVert\Delta_{\mathrm{diag}}(A)\rVert\le1\Longleftrightarrow\max_j\lVert A_j\rVert\le1,\\
\Delta_{\mathrm{row}}(A)&=[A_1\ \cdots\ A_k],\qquad\lVert\Delta_{\mathrm{row}}(A)\rVert\le1\Longleftrightarrow\sum_j A_jA_j^\dagger\preceq I_n,\\
\Delta_{\mathrm{col}}(A)&=\begin{pmatrix}A_1\\ \vdots\\ A_k\end{pmatrix},\qquad\lVert\Delta_{\mathrm{col}}(A)\rVert\le1\Longleftrightarrow\sum_j A_j^\dagger A_j\preceq I_n. \tag*{(6)}
\end{aligned} Δ diag ( A ) Δ row ( A ) Δ col ( A ) = diag ( A 1 , … , A k ) , ∥ Δ diag ( A )∥ ≤ 1 ⟺ j max ∥ A j ∥ ≤ 1 , = [ A 1 ⋯ A k ] , ∥ Δ row ( A )∥ ≤ 1 ⟺ j ∑ A j A j † ⪯ I n , = A 1 ⋮ A k , ∥ Δ col ( A )∥ ≤ 1 ⟺ j ∑ A j † A j ⪯ I n . (6)
For a row input, the designated block, including the identity branch, is
L r o w ( A ) = ( I n 0 ⋯ 0 0 A 1 ⋯ A k ) L_{\mathrm{row}}(A)=\begin{pmatrix} I_n & 0 & \cdots& 0 \\ 0 & A_1 & \cdots& A_k \end{pmatrix} L row ( A ) = ( I n 0 0 A 1 ⋯ ⋯ 0 A k )
Its common active output allows the degree-reducing construction of § 4.4 to restore one degree with each query. A column is the natural input for a coherent Kraus implementation, where the output labels record the Kraus index. These applications motivate retaining rectangular blocks in the general theorem.
A known rotation converts a selector into a weighted row. We choose a unit column g = ( g 1 , … , g k ) T g=(g_1,\ldots,g_k)^{\mathsf T} g = ( g 1 , … , g k ) T with nonzero, efficiently computable entries, and let P g P_g P g fix index zero and send ∑ j g j ∣ j ⟩ \sum_j g_j|j\rangle ∑ j g j ∣ j ⟩ to ∣ 1 ⟩ |1\rangle ∣1 ⟩ . Then
U r o w = ( P g ⊗ I ) U s e l (7) U_{\mathrm{row}}=(P_g\otimes I)U_{\mathrm{sel}} \tag*{(7)} U row = ( P g ⊗ I ) U sel (7)
has active row [ g ‾ 1 M 1 / α 1 ⋯ g ‾ k M k / α k ] [\overline{g}_1M_1/\alpha_1\ \cdots\ \overline{g}_kM_k/\alpha_k] [ g 1 M 1 / α 1 ⋯ g k M k / α k ] . The identity acts on the common encoding register and signal. This construction uses one selector and a known rotation, as in linear-combination-of-unitaries preparation and selection [35 ] . Equal weights give a factor 1 / k 1/\sqrt{k} 1/ k , which is needed because separate contraction bounds do not imply the row bound in Eq. (6) .
The target must be expressed in the matrices actually loaded. With Z j = g ‾ j M j / α j Z_j=\overline{g}_jM_j/\alpha_j Z j = g j M j / α j , replacing each word coefficient by c w ∏ t = 1 ∣ w ∣ ( α j t / g ‾ j t ) c_w\prod_{t=1}^{|w|}(\alpha_{j_t}/\overline{g}_{j_t}) c w ∏ t = 1 ∣ w ∣ ( α j t / g j t ) gives a polynomial p ~ \widetilde{p} p with p ~ ( Z ) = p ( M ) \widetilde{p}(Z)=p(M) p ( Z ) = p ( M ) . In particular, when α 1 = α 2 = 1 \alpha_1=\alpha_2=1 α 1 = α 2 = 1 , an equally loaded two-variable row contributes a factor 1 / 2 1/2 1/2 to every quadratic product. The D D D -query row result concerns this loaded domain and the appropriately rewritten target; its normalization incorporates the loading scales. Appendix § 13 specifies all registers, gives rational choices of the weights, and counts the constituent calls. It also constructs known linear combinations of blocks using the block-encoding combination rule [45 ] .
The general joint oracle. We now give one set of assumptions covering these layouts and known linear mixtures of their entries. The active block is
Δ ( A ) = [ ∑ j = 1 k f μ ν , j A j ] μ = 1 , … , a ; ν = 1 , … , b , ∥ Δ ( A ) ∥ ≤ 1 (8) \Delta(A)=\left[\sum_{j=1}^{k}f_{\mu\nu,j}A_j\right]_{\mu=1,\ldots,a;\ \nu=1,\ldots,b},\qquad\lVert\Delta(A)\rVert\le1 \tag*{(8)} Δ ( A ) = [ j = 1 ∑ k f μν , j A j ] μ = 1 , … , a ; ν = 1 , … , b , ∥ Δ ( A )∥ ≤ 1 (8)
where the known a × b a\times b a × b matrices F j = [ f μ ν , j ] F_j=[f_{\mu\nu,j}] F j = [ f μν , j ] are linearly independent and have rational real and imaginary parts. Hence Δ ( A ) \Delta(A) Δ ( A ) has a n an an rows and b n bn bn columns. Independence means that these blocks distinguish the variables: a left inverse of the matrix of coefficients expresses every A j A_j A j as a known linear combination of the blocks. For example, F 1 = F 2 F_1=F_2 F 1 = F 2 would reveal only A 1 + A 2 A_1+A_2 A 1 + A 2 , which cannot determine a target depending separately on A 1 A_1 A 1 . The domain in Eq. (8) bounds each variable, but its individual bound need not be one; all norm statements below refer to the joint block.
The supplied oracle acts on O O O , S S S , with d o = 2 q o d_o=2^{q_o} d o = 2 q o ancillary labels. In known computational-basis input and output orders, it has the complete matrix
U A = ( I i n 0 0 0 Δ ( A ) B A 0 C A D A ) , U A † U A = U A U A † = I d o n . (9) U_A=\begin{pmatrix} I_{in} & 0 & 0 \\ 0 & \Delta(A) & B_A \\ 0 & C_A & D_A \end{pmatrix},\qquad U_A^\dagger U_A=U_AU_A^\dagger=I_{d_on}. \tag*{(9)} U A = I in 0 0 0 Δ ( A ) C A 0 B A D A , U A † U A = U A U A † = I d o n . (9)
Here i > 1 i>1 i > 1 , the block row lengths are i n in in , a n an an , ( d o − i − a ) n (d_o-i-a)n ( d o − i − a ) n , and the block column lengths are i n in in , b n bn bn , ( d o − i − b ) n (d_o-i-b)n ( d o − i − b ) n . The designated input labels are 0 , … , i + b − 1 0,\ldots,i+b-1 0 , … , i + b − 1 and the output labels are 0 , … , i + a − 1 0,\ldots,i+a-1 0 , … , i + a − 1 , selecting
L ( A ) = ( I i n 0 i n × b n 0 a n × i n Δ ( A ) ) . (10) L(A)=\begin{pmatrix} I_{in} & 0_{in\times bn} \\ 0_{an\times in} & \Delta(A) \end{pmatrix}. \tag*{(10)} L ( A ) = ( I in 0 an × in 0 in × bn Δ ( A ) ) . (10)
We assume d o ≥ i + a + b d_o \ge i+a+b d o ≥ i + a + b , so every allowed active block admits a unitary completion; Appendix § 12 proves this dimension condition. The matrices B A B_A B A , C A C_A C A , D A D_A D A are otherwise unrestricted. The identity block and its phase relative to the active entries are part of the supplied resource. Its columns already have norm one, which forces the adjoining zeros and makes this branch carry the signal unchanged. Each query in Eq. (4) uses this same full unitary, including on components outside the designated block.
Classical coefficients and normalization. A polynomial such as ( x 1 + x 2 ) D (x_1+x_2)^D ( x 1 + x 2 ) D contains 2 D 2^D 2 D ordered products, although a recurrence with D + 1 D+1 D + 1 states generates all its coefficients. We therefore measure synthesis cost against a finite linear representation of the supplied coefficients:
c w = ℓ T w r 0 , T w = T j 1 ⋯ T j d , T ∅ = I s . (11) c_w=\ell T_w r_0,\qquad T_w=T_{j_1}\cdots T_{j_d},\qquad T_{\varnothing}=I_s. \tag*{(11)} c w = ℓ T w r 0 , T w = T j 1 ⋯ T j d , T ∅ = I s . (11)
The row ℓ \ell ℓ , matrices T j T_j T j , and column r 0 r_0 r 0 have sizes 1 × s 1\times s 1 × s , s × s s\times s s × s , and s × 1 s\times1 s × 1 , with rational real and imaginary parts encoded in binary. Such representations are standard for weighted automata [34 ] and noncommutative series [25 ] ; they allow different words to share a coefficient calculation. For a loaded row, multiplying T j T_j T j by α j / g j \alpha_j/\sqrt{g_j} α j / g j performs the letter-dependent rescaling above. The rational-input theorem requires these multipliers to be rational, and Appendix § 13 gives suitable weights when the original scales are rational.
Sparse word lists and explicit branching programs also have polynomial-cost conversions to Eq. (11) . The input checks use rational weighted-automaton reduction [59 ] , followed by the polynomiality and degree tests in Appendix A.§ 3 . For a nonzero minimally represented polynomial, the resulting degree satisfies D ≤ s − 1 D\le s-1 D ≤ s − 1 . The synthesis algorithm reads these coefficient matrices and the oracle-layout data, and returns the known gates to be interleaved with the supplied quantum queries.
The uniform norm associated with the layout is the free Schur–Agler norm [21 ] ,
B = ∥ p ∥ S A , Δ = sup n ≥ 1 sup ∥ Δ ( A ) ∥ ≤ 1 ∥ p ( A ) ∥ . (12) B=\lVert p\rVert_{\mathrm{SA},\Delta}=\sup_{n\ge1}\ \sup_{\lVert\Delta(A)\rVert\le1}\lVert p(A)\rVert. \tag*{(12)} B = ∥ p ∥ SA , Δ = n ≥ 1 sup ∥ Δ ( A )∥ ≤ 1 sup ∥ p ( A )∥ . (12)
It measures the target over the entire declared domain, rather than at the particular matrices in one run. We use all finite sizes because the coefficient-based circuit must work on every signal register; zero embedding shows that power-of-two sizes suffice, and radial continuity gives the same norm on the open domain. Contractivity of a unitary block forces β ≥ B \beta\ge B β ≥ B for an exact implementation of p / β p/\beta p / β . With uniform selected-block error ϵ \epsilon ϵ , the same argument gives β ≥ B / ( 1 + ϵ ) \beta\ge B/(1+\epsilon) β ≥ B / ( 1 + ϵ ) . Our algorithm approaches the exact normalization threshold while allocating the known-gate error separately.
Theorem 2.1 (Scalar polynomial transformation). Let p p p have a rational finite-state representation of degree D ≥ 1 D\ge1 D ≥ 1 , and let 0 < τ , ϵ < 1 0<\tau,\epsilon<1 0 < τ , ϵ < 1 be rational. Under the joint-oracle assumptions above, a classical algorithm computes a rational β \beta β and a quantum circuit U A U_A U A on the signal and q a n c q_{\mathrm{anc}} q anc non-signal qubits such that
∥ ( ⟨ 0 q a n c ∣ ⊗ I n ) U A ( ∣ 0 q a n c ⟩ ⊗ I n ) − p ( A ) / β ∥ ≤ ϵ , B < β ≤ ( 1 + τ ) B . (13) \left\lVert\left(\langle0^{q_{\mathrm{anc}}}\rvert\otimes I_n\right)U_A\left(\lvert0^{q_{\mathrm{anc}}}\rangle\otimes I_n\right)-p(A)/\beta\right\rVert\le\epsilon,\qquad B<\beta\le(1+\tau)B. \tag*{(13)} ∥ ( ⟨ 0 q anc ∣ ⊗ I n ) U A ( ∣ 0 q anc ⟩ ⊗ I n ) − p ( A ) / β ∥ ≤ ϵ , B < β ≤ ( 1 + τ ) B . (13) The circuit uses O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) queries, or D D D for a row input. Classical computation and known-gate count are polynomial in the rational input length, q 0 q_0 q 0 , τ − 1 / 2 \tau^{-1/2} τ − 1/2 , and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) ; the row case depends polynomially on log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) . The guarantees hold uniformly over signal sizes, admissible tuples, compatible oracle completions, and states entangled with an untouched reference. With exact known gates, the selected block equals p ( A ) / β p(A)/\beta p ( A ) / β .
The parameter τ \tau τ controls the excess normalization, whereas ϵ \epsilon ϵ controls approximation of the known gates. The ideal success probability on a unit input ψ \psi ψ is ∥ p ( A ) ψ ∥ 2 / β 2 \lVert p(A)\psi\rVert^2/\beta^2 ∥ p ( A ) ψ ∥ 2 / β 2 , so an application that conditions on success also needs a lower bound on this quantity. § 4.3 gives the coherent-use and error guarantees. Nonzero constants use a known scalar block encoding with zero queries, and the zero polynomial has a zero-query realization at any positive normalization.
Example 2.2 (A noncommutative target used below). On the diagonal domain, we consider
p ( x ) = 1 4 + x 1 x 2 − x 2 x 1 12 (14) p(x)=\frac{1}{4}+\frac{x_1x_2-x_2x_1}{12} \tag*{(14)} p ( x ) = 4 1 + 12 x 1 x 2 − x 2 x 1 (14) Scalar substitutions give 1 / 4 1/4 1/4 , whereas the norm-one matrices
A 1 = ( 0 1 1 0 ) , A 2 = ( 0 1 − 1 0 ) . A_1=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad A_2=\begin{pmatrix}0&1\\-1&0\end{pmatrix}. A 1 = ( 0 1 1 0 ) , A 2 = ( 0 − 1 1 0 ) . give commutator diag ( − 2 , 2 ) \operatorname{diag}(-2,2) diag ( − 2 , 2 ) . This pair attains the triangle-inequality bound B = 5 / 12 B=5/12 B = 5/12 . We will follow the same target through its residual coordinates and the compensation of its quadratic coefficient, illustrating how the synthesis preserves the order of the two matrix products.
Schur–Agler representations as query parameters
The coefficient recurrence specifies the ordered products we need, but its individual transition norms may give a poor normalization. We instead seek one contraction that accounts for the norm of the whole target. Agler’s defect decompositions [4 ] and the free Schur–Agler realization theorem [21 ] provide the mathematical reason for making this choice.
We state the representation principle for a scalar free polynomial q ( x ) = ∑ w q w x w q(x)=\sum_w q_wx^w q ( x ) = ∑ w q w x w , which will later be the normalized target supplied to the synthesis routine. For an auxiliary Hilbert space H \mathcal{H} H , repeating the input block gives the a × b a\times b a × b operator matrix
Δ H ( A ) = [ ∑ j f μ ν , j ( I H ⊗ A j ) ] μ , ν . \Delta_{\mathcal{H}}(A)=\left[\sum_j f_{\mu\nu,j}(I_{\mathcal{H}}\otimes A_j)\right]_{\mu,\nu}. Δ H ( A ) = [ j ∑ f μν , j ( I H ⊗ A j ) ] μ , ν .
Here and below, a subscript n n n on a fixed block denotes its tensor product with I n I_n I n ; for a finite numerical matrix C C C , this is C n = [ C r s I n ] r , s C_n=[C_{rs}I_n]_{r,s} C n = [ C r s I n ] r , s .
Lemma 2.3 (Free Schur–Agler realization). A scalar free polynomial q q q satisfies ∥ q ∥ S A , Δ ≤ 1 \lVert q\rVert_{\mathrm{SA},\Delta}\le1 ∥ q ∥ SA , Δ ≤ 1 if and only if there are a Hilbert space H \mathcal{H} H and a contraction
V ∘ = ( A ∘ B ∘ C ∘ D ∘ ) V^\circ=\begin{pmatrix}A^\circ&B^\circ\\C^\circ&D^\circ\end{pmatrix} V ∘ = ( A ∘ C ∘ B ∘ D ∘ ) with block input [ z ; c ] [z;c] [ z ; c ] , where z z z is a column of a a a vectors in H \mathcal{H} H and c ∈ C c\in\mathbb{C} c ∈ C , and block output consisting of b b b such vectors and a scalar, such that
q ( A ) = D n ∘ + C n ∘ Δ H ( A ) ( I − A n ∘ Δ H ( A ) ) − 1 B n ∘ ( ∥ Δ ( A ) ∥ < 1 ) . (15) q(A)=D_n^\circ+C_n^\circ\Delta_{\mathcal{H}}(A)(I-A_n^\circ\Delta_{\mathcal{H}}(A))^{-1}B_n^\circ\qquad(\lVert\Delta(A)\rVert<1). \tag*{(15)} q ( A ) = D n ∘ + C n ∘ Δ H ( A ) ( I − A n ∘ Δ H ( A ) ) − 1 B n ∘ (∥ Δ ( A )∥ < 1 ) . (15) The four blocks describe injection, an update between successive uses of the input block, collection, and a constant contribution. The lemma guarantees that one contraction can perform these tasks consistently with the target norm. Its auxiliary space may be infinite dimensional, so we still need finite data from which to compute gates. We will obtain those data as a polynomial defect certificate.1
For a positive integer m m m , we use m m m internal coordinates and order the factors as block label, internal index, and signal. The resulting matrices are
F j ( m ) = [ f μ ν , j I m ] μ , ν , F j ( m ) : a m × b m , (16) F_j^{(m)}=[f_{\mu\nu,j}I_m]_{\mu,\nu},\qquad F_j^{(m)}:am\times bm, \tag*{(16)} F j ( m ) = [ f μν , j I m ] μ , ν , F j ( m ) : am × bm , (16)
Δ m ( A ) = ∑ j F j ( m ) ⊗ A j , Δ m ( A ) : a m n × b m n . (17) \Delta_m(A)=\sum_j F_j^{(m)}\otimes A_j,\qquad\Delta_m(A):amn\times bmn. \tag*{(17)} Δ m ( A ) = j ∑ F j ( m ) ⊗ A j , Δ m ( A ) : amn × bmn . (17)
It acts as Δ ( A ) \Delta(A) Δ ( A ) on each internal value, so its norm is ∥ Δ ( A ) ∥ \lVert\Delta(A)\rVert ∥ Δ ( A )∥ . The update we will compute is the numerical matrix
V = ( A B C D ) , V : ( b m + 1 ) × ( a m + 1 ) , ∥ V ∥ ≤ 1. (18) V=\begin{pmatrix} A & B \\ C & D \end{pmatrix},\qquad V:(bm+1)\times(am+1),\qquad\lVert V\rVert\le1. \tag*{(18)} V = ( A C B D ) , V : ( bm + 1 ) × ( am + 1 ) , ∥ V ∥ ≤ 1. (18)
The four block sizes are b m × a m bm\times am bm × am , b m × 1 bm\times1 bm × 1 , 1 × a m 1\times am 1 × am , and 1 × 1 1\times1 1 × 1 . The column B injects the signal into the active input coordinates, A returns a queried output to those coordinates, C collects an output, and D contributes the constant term. Their joint contraction bound says that, for an active column z z z of length a m n amn amn and a signal column ψ \psi ψ ,
∥ A n z + B n ψ ∥ 2 + ∥ C n z + D n ψ ∥ 2 ≤ ∥ z ∥ 2 + ∥ ψ ∥ 2 . (19) \lVert A_nz+B_n\psi\rVert^2+\lVert C_nz+D_n\psi\rVert^2\le\lVert z\rVert^2+\lVert\psi\rVert^2. \tag*{(19)} ∥ A n z + B n ψ ∥ 2 + ∥ C n z + D n ψ ∥ 2 ≤ ∥ z ∥ 2 + ∥ ψ ∥ 2 . (19)
This is the norm inequality we will preserve when completing the update to a unitary gate.
Each occurrence of Δ m ( A ) \Delta_m(A) Δ m ( A ) contributes one matrix letter. If q d ( A ) = ∑ ∣ w ∣ = d q w A w q_d(A)=\sum_{\lvert w\rvert=d}q_wA_w q d ( A ) = ∑ ∣ w ∣ = d q w A w is the degree-d d d part, the first required identities are
q 0 ( A ) = D n , q 1 ( A ) = C n Δ m ( A ) B n , q 2 ( A ) = C n Δ m ( A ) A n Δ m ( A ) B n . (20) \begin{aligned}
q_0(A)&=D_n,\\
q_1(A)&=C_n\Delta_m(A)B_n,\\
q_2(A)&=C_n\Delta_m(A)A_n\Delta_m(A)B_n. \tag*{(20)}
\end{aligned} q 0 ( A ) q 1 ( A ) q 2 ( A ) = D n , = C n Δ m ( A ) B n , = C n Δ m ( A ) A n Δ m ( A ) B n . (20)
Expanding the products shows how the update generates each ordered coefficient:
q ∅ = D , q j 1 ⋯ j d = C F j 1 ( m ) A F j 2 ( m ) ⋯ A F j d ( m ) B ( d ≥ 1 ) . (21) q_{\varnothing}=D,\qquad q_{j_1\cdots j_d}=C F_{j_1}^{(m)}A F_{j_2}^{(m)}\cdots A F_{j_d}^{(m)}B\quad(d\ge1). \tag*{(21)} q ∅ = D , q j 1 ⋯ j d = C F j 1 ( m ) A F j 2 ( m ) ⋯ A F j d ( m ) B ( d ≥ 1 ) . (21)
A degree-one word has no A factor. Summing this sequence gives the finite-dimensional transfer formula [17 ] .
Definition 2.4 (Finite contractive transfer realization). The contraction in Eq. (18) realizes q q q if, for every tuple with ∥ Δ ( A ) ∥ < 1 \lVert\Delta(A)\rVert<1 ∥ Δ ( A )∥ < 1 ,
q ( A ) = D n + C n Δ m ( A ) ( I b m n − A n Δ m ( A ) ) − 1 B n . (22) q(A)=D_n+C_n\Delta_m(A)\left(I_{bmn}-A_n\Delta_m(A)\right)^{-1}B_n. \tag*{(22)} q ( A ) = D n + C n Δ m ( A ) ( I bmn − A n Δ m ( A ) ) − 1 B n . (22) We call m m m the multiplicity of the realization.
Its convergent geometric expansion on the open domain gives precisely Eq. (21) . Thus the finite matrix must reproduce the entire coefficient sequence, including zero coefficients above the target degree. The circuit construction in § 4 will combine the required degrees in one output.
The finite data to be computed. For a nonconstant target of degree D D D , we seek polynomial columns G G G , H H H with t t t , b m bm bm entries and degrees at most D D D , D − 1 D-1 D − 1 , respectively, satisfying
1 − q ( x ) ∗ q ( x ) = G ( x ) ∗ G ( x ) + H ( x ) ∗ ( I b m − Δ m ( x ) ∗ Δ m ( x ) ) H ( x ) . (23) 1-q(x)^*q(x)=G(x)^*G(x)+H(x)^*\left(I_{bm}-\Delta_m(x)^*\Delta_m(x)\right)H(x). \tag*{(23)} 1 − q ( x ) ∗ q ( x ) = G ( x ) ∗ G ( x ) + H ( x ) ∗ ( I bm − Δ m ( x ) ∗ Δ m ( x ) ) H ( x ) . (23)
Here x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k are formal noncommuting letters, Δ m ( x ) = ∑ j F j ( m ) x j \Delta_m(x)=\sum_j F_j^{(m)}x_j Δ m ( x ) = ∑ j F j ( m ) x j , and the formal adjoint conjugates the coefficients and reverses the adjointed word. The evaluations of G G G , H H H have sizes t n × n tn\times n t n × n and b m n × n bmn\times n bmn × n . We call the identity a polynomial defect certificate. Applied to a signal vector ψ \psi ψ , its second term is the nonnegative difference ∥ H ( A ) ψ ∥ 2 − ∥ Δ m ( A ) H ( A ) ψ ∥ 2 \lVert H(A)\psi\rVert^2-\lVert\Delta_m(A)H(A)\psi\rVert^2 ∥ H ( A ) ψ ∥ 2 − ∥ Δ m ( A ) H ( A ) ψ ∥ 2 , and the first term supplies the remaining loss. It therefore certifies the target’s norm and, being an identity of polynomial coefficients, gives numerical data for a common update.
Lemma 2.5 (From a finite certificate to query parameters). A polynomial defect certificate for q q q determines a finite contraction V V V of the form in Eq. (18) that realizes q q q . In a common independent polynomial basis, let X X X , Y Y Y be the numerical coefficient matrices of [ Δ m H ; 1 ] [\Delta_mH;1] [ Δ m H ; 1 ] and [ H ; q ] [H;q] [ H ; q ] . Writing X + X^{+} X + for the Moore–Penrose inverse, the choice V = Y X + V=YX^{+} V = Y X + satisfies V X = Y VX=Y V X = Y and all identities in Eq. (21) .
Proof. Rearranging the certificate gives
\begin{pmatrix}\Delta_mH\\1\end{pmatrix}^{*}\begin{pmatrix}\Delta_mH\\1\end{pmatrix}-\begin{pmatrix}H\\q\end{pmatrix}^{*}\begin{pmatrix}H\\q\end{pmatrix}=G^{*}G. \tag*{(24)}\end{pmatrix}
We express the three polynomial columns [ Δ m H ; 1 ] [\Delta_mH;1] [ Δ m H ; 1 ] , [ H ; q ] [H;q] [ H ; q ] , and G G G in a common independent scalar-polynomial basis. Their numerical coefficient matrices X , Y , Z X,Y,Z X , Y , Z have a m + 1 am+1 am + 1 , b m + 1 bm+1 bm + 1 , t t t rows and the same number of columns. The unique split between starred and unstarred letters makes comparison of coefficients injective in this basis. Eq. (24) therefore gives X † X − Y † Y = Z † Z X^{\dagger}X-Y^{\dagger}Y=Z^{\dagger}Z X † X − Y † Y = Z † Z . It follows that the rule X c ↦ Y c Xc\mapsto Yc X c ↦ Y c is well defined and contractive. Extending it by zero on the orthogonal complement gives the Douglas factor [39 ] V = Y X + V=YX^{+} V = Y X + with V X = Y VX=Y V X = Y .
The block rows of this last equality give
H ( A ) = A n Δ m ( A ) H ( A ) + B n , q ( A ) = C n Δ m ( A ) H ( A ) + D n . (25) H(A)=A_n\Delta_m(A)H(A)+B_n,\qquad q(A)=C_n\Delta_m(A)H(A)+D_n. \tag*{(25)} H ( A ) = A n Δ m ( A ) H ( A ) + B n , q ( A ) = C n Δ m ( A ) H ( A ) + D n . (25)
Solving the first equation on the open domain gives Eq. (22) . The same equality can be read coefficient by coefficient. Writing H w H_w H w for the numerical column multiplying word w w w in H H H , we obtain
H ∅ = B , q ∅ = D , H_{\varnothing}=B,\qquad q_{\varnothing}=D, H ∅ = B , q ∅ = D ,
H j w = A F j ( m ) H w , q j w = C F j ( m ) H w . (26) H_{jw}=A F_j^{(m)}H_w,\qquad q_{jw}=C F_j^{(m)}H_w. \tag*{(26)} H j w = A F j ( m ) H w , q j w = C F j ( m ) H w . (26)
Iteration gives Eq. (21) in the prescribed word order. Since H H H is a polynomial of degree at most D − 1 D-1 D − 1 , these identities also verify that all target coefficients above degree D D D vanish. Thus the finite certificate determines both the numerical contraction and the complete coefficient sequence it generates.
The converse norm calculation explains the two terms in the certificate. For any finite contractive realization and an interior tuple, we form its response and queried input column,
H V ( A ) = ( I b m n − A n Δ m ( A ) ) − 1 B n , X V ( A ) = ( Δ m ( A ) H V ( A ) I n ) . H_V(A)=\left(I_{bmn}-A_n\Delta_m(A)\right)^{-1}B_n,\qquad X_V(A)=\begin{pmatrix}\Delta_m(A)H_V(A)\\I_n\end{pmatrix}. H V ( A ) = ( I bmn − A n Δ m ( A ) ) − 1 B n , X V ( A ) = ( Δ m ( A ) H V ( A ) I n ) .
The transfer equation gives V n X V ( A ) = [ H V ( A ) ; q ( A ) ] V_nX_V(A)=[H_V(A);q(A)] V n X V ( A ) = [ H V ( A ) ; q ( A )] . Subtracting the corresponding Gram matrices proves
I n − q ( A ) † q ( A ) = H V ( A ) † ( I b m n − Δ m ( A ) † Δ m ( A ) ) H V ( A ) + X V ( A ) † ( ( I a m + 1 − V † V ) ⊗ I n ) X V ( A ) . (27) I_n-q(A)^{\dagger}q(A)=H_V(A)^{\dagger}\left(I_{bmn}-\Delta_m(A)^{\dagger}\Delta_m(A)\right)H_V(A)
+X_V(A)^{\dagger}\left((I_{am+1}-V^{\dagger}V)\otimes I_n\right)X_V(A). \tag*{(27)} I n − q ( A ) † q ( A ) = H V ( A ) † ( I bmn − Δ m ( A ) † Δ m ( A ) ) H V ( A ) + X V ( A ) † ( ( I am + 1 − V † V ) ⊗ I n ) X V ( A ) . (27)
Both terms are positive by the contraction bounds on Δ ( A ) \Delta(A) Δ ( A ) and V V V . This proves the norm bound on the open domain, and radial continuity of the polynomial extends it to the closed domain.
We have identified the finite data sufficient for synthesis. The remaining classical question is whether the target’s compact recurrence supplies a complete search space for G , H G,H G , H , and whether a certificate in that space can be found with controlled precision. § 3 proves both assertions directly. This is the step that connects the representation principle to an algorithm on the supplied coefficient description.
Classical synthesis of the query parameters
The Schur–Agler criterion identifies the form of the parameters; we now compute them from the target’s coefficient recurrence. The unknowns are the coefficients of the auxiliary polynomial columns in the defect identity. Our main result in this section is that the target residuals and their one-letter extensions provide complete coordinates for the defect identity, with dimension bounded by the supplied state count. In these coordinates the certificate is an affine equation in two positive semidefinite matrices.
After constructing the coordinates, we prove that the semidefinite equation captures the norm bound exactly and show how a feasible pair determines the numerical contraction V V V . Finding that pair is the remaining computational task: a strict norm margin will control both the search and the precision of the matrix entries. Throughout this section, p p p denotes the polynomial supplied to the classical routine; the general query algorithm will also call this routine on a degree-reweighted target.
Residual coordinates for the certificate
For a polynomial f ( x ) = ∑ w f w x w f(x) = \sum_w f_w x_w f ( x ) = ∑ w f w x w , its left residual at letter j j j is
∂ j f ( x ) = ∑ w f j w x w , f ( x ) = f ∅ + ∑ j x j ∂ j f ( x ) . \partial_j f(x) = \sum_w f_{jw}x_w,\qquad f(x) = f_{\varnothing} + \sum_j x_j\partial_j f(x). ∂ j f ( x ) = w ∑ f j w x w , f ( x ) = f ∅ + j ∑ x j ∂ j f ( x ) .
A residual fixes the first letter of a coefficient word and retains its remaining letters. In the finite-state representation, the row λ \lambda λ describing coefficients λ T w r 0 \lambda T_w r_0 λ T w r 0 becomes λ T j \lambda T_j λ T j after this deletion. All residuals therefore share the supplied state coordinates, as in the theory of noncommutative rational series [25 ] . We take f 1 , … , f r f_1,\ldots,f_r f 1 , … , f r to be a basis of the span of the constant 1 1 1 and all nonempty residuals of p p p . This space is closed under every ∂ j \partial_j ∂ j , and its members have degree at most D − 1 D-1 D − 1 . Closure will allow us to reconstruct a polynomial by successively restoring its initial letters, which is the step needed in the completeness proof below.
For the running polynomial in Eq. (14) , the first residuals are ∂ 1 p = x 2 / 12 \partial_1p=x_2/12 ∂ 1 p = x 2 /12 and ∂ 2 p = − x 1 / 12 \partial_2p=-x_1/12 ∂ 2 p = − x 1 /12 . Deleting one further letter leaves a constant, so we may choose
f = ( 1 , x 1 , x 2 ) T , p = 1 4 + x 1 x 2 12 + x 2 − x 1 12 . f = (1,x_1,x_2)^{\mathsf T},\qquad p = \frac{1}{4}+x_1\frac{x_2}{12}+x_2\frac{-x_1}{12}. f = ( 1 , x 1 , x 2 ) T , p = 4 1 + x 1 12 x 2 + x 2 12 − x 1 .
We will seek the entries of the auxiliary polynomial column H H H in this three-dimensional span. Applying the query to such an entry also produces x j f ℓ x_jf_\ell x j f ℓ , so the defect identity needs the common coordinate list
g = ( 1 , x 1 , x 2 , x 1 x 2 , x 2 , x 2 x 1 , x 2 2 ) T . g = (1,x_1,x_2,x_1x_2,x_2,x_2x_1,x_2^2)^{\mathsf T}. g = ( 1 , x 1 , x 2 , x 1 x 2 , x 2 , x 2 x 1 , x 2 2 ) T .
The terms x 1 2 x_1^2 x 1 2 and x 2 2 x_2^2 x 2 2 arise from applying the entire input block to the residual space. Their coordinates belong to the certificate even though their target coefficients are zero. Rescaling its quadratic part preserves this residual span, so the later degree compensation uses the same coordinates.
The compression can retain linear relations among exponentially many words. For p D ( x ) = ( x 1 + x 2 ) D p_D(x)=(x_1+x_2)^D p D ( x ) = ( x 1 + x 2 ) D , with D ≥ 2 D\geq2 D ≥ 2 , the representation in Eq. (11) uses T 1 = T 2 = ∑ ℓ = 0 D − 1 e ℓ e ℓ + 1 T T_1=T_2=\sum_{\ell=0}^{D-1}e_\ell e_{\ell+1}^{\mathsf T} T 1 = T 2 = ∑ ℓ = 0 D − 1 e ℓ e ℓ + 1 T , initial row e 0 T e_0^{\mathsf T} e 0 T , and final column e D e_D e D , where e 0 , … , e D e_0,\ldots,e_D e 0 , … , e D are the coordinate columns of length D + 1 D+1 D + 1 . It has 2 D 2^D 2 D nonzero coefficients, but we can choose
f ℓ ( x ) = ( x 1 + x 2 ) ℓ − 1 ( 1 ≤ ℓ ≤ D ) , r = D . f_\ell(x)=(x_1+x_2)^{\ell-1}\quad(1\leq\ell\leq D),\qquad r=D. f ℓ ( x ) = ( x 1 + x 2 ) ℓ − 1 ( 1 ≤ ℓ ≤ D ) , r = D .
At either letter, taking a residual lowers each positive exponent by one and annihilates the constant; the different degrees make the displayed polynomials independent. A monomial basis containing the same residuals would have to include every word through degree D − 1 D-1 D − 1 . The constant and the two sets of one-letter successors give 1 + 2 D 1 + 2D 1 + 2 D independent coordinates. The certificate below uses these whole residual polynomials; its completeness is what makes this compression useful for synthesis. This example concerns the certificate representation, while the power itself also admits a direct specialized construction.
In general, we record the constant coefficients, the residual maps, and the target residuals in rational arrays
a 0 = ( a 0 , 1 , … , a 0 , r ) T , A j r e s = [ a j , ℓ t ] ℓ , t = 1 r , p j = ( p j , 1 , … , p j , r ) . (28) a_0 = (a_{0,1},\ldots,a_{0,r})^{\mathsf{T}}, \qquad A^{\mathrm{res}}_j = [a_{j,\ell t}]_{\ell,t=1}^{r}, \qquad p_j = (p_{j,1},\ldots,p_{j,r}). \tag*{(28)} a 0 = ( a 0 , 1 , … , a 0 , r ) T , A j res = [ a j , ℓ t ] ℓ , t = 1 r , p j = ( p j , 1 , … , p j , r ) . (28)
Their meaning is fixed by
f ℓ ( x ) = a 0 , ℓ + ∑ j = 1 k ∑ t = 1 r a j , ℓ t x j f t ( x ) , p ( x ) = c ∅ + ∑ j = 1 k ∑ t = 1 r p j , t x j f t ( x ) . (29) f_\ell(x) = a_{0,\ell} + \sum_{j=1}^{k}\sum_{t=1}^{r} a_{j,\ell t}x_j f_t(x), \qquad p(x) = c_{\emptyset} + \sum_{j=1}^{k}\sum_{t=1}^{r} p_{j,t}x_j f_t(x). \tag*{(29)} f ℓ ( x ) = a 0 , ℓ + j = 1 ∑ k t = 1 ∑ r a j , ℓ t x j f t ( x ) , p ( x ) = c ∅ + j = 1 ∑ k t = 1 ∑ r p j , t x j f t ( x ) . (29)
We then use the constant and the one-letter successors as the common basis:
g 0 ( x ) = 1 , g ( j , ℓ ) ( x ) = x j f ℓ ( x ) ( 1 ≤ j ≤ k , 1 ≤ ℓ ≤ r ) , h = 1 + k r . (30) g_0(x) = 1,\qquad g_{(j,\ell)}(x) = x_jf_\ell(x)\quad(1 \le j \le k,\ 1 \le\ell\le r),\qquad h = 1 + kr. \tag*{(30)} g 0 ( x ) = 1 , g ( j , ℓ ) ( x ) = x j f ℓ ( x ) ( 1 ≤ j ≤ k , 1 ≤ ℓ ≤ r ) , h = 1 + k r . (30)
Reachability and reduction for weighted automata compute these coordinates without expanding the word list [59 Propositions 2.1 and 3.2, Theorem 3.6] . The following construction also bounds their rational encoding lengths, as required for the semidefinite calculation.
Lemma 3.1 (Computing the residual coordinates). For a nonconstant rational s s s -state polynomial of degree D D D , the coordinates in Eqs. (28) –(30) can be computed in polynomial bit time, with r ≤ s + 1 r \le s + 1 r ≤ s + 1 . Each f ℓ f_\ell f ℓ has degree at most D − 1 D - 1 D − 1 , every product of D D D residual transition matrices vanishes, and the h h h successors are linearly independent and span p , f 1 , … , f r p, f_1,\ldots,f_r p , f 1 , … , f r .
Proof. We first adjoin one constant state to the input representation. Its transition matrices have the explicit form ( T j 0 0 0 ) \begin{pmatrix} T_j & 0 \\ 0 & 0 \end{pmatrix} ( T j 0 0 0 ) , its final column is ( r 0 1 ) \begin{pmatrix} r_0 \\ 1 \end{pmatrix} ( r 0 1 ) , and the row selecting the new state represents the constant polynomial. The columns obtained by applying transition words to this final column span the states distinguishable by an initial row. We compute a basis by repeatedly adjoining the images of the current columns under each transition and retaining independent columns. Each strict increase adds at least one dimension, so at most s + 1 s + 1 s + 1 increases occur. Restricting to these columns makes equality of represented scalar series equivalent to equality of their coordinate rows.
In this reduced representation, we start with the constant row and the rows [ ℓ 0 ] ( T j 0 0 0 ) [\ell\ 0]\begin{pmatrix} T_j & 0 \\ 0 & 0 \end{pmatrix} [ ℓ 0 ] ( T j 0 0 0 ) for 1 ≤ j ≤ k 1 \le j \le k 1 ≤ j ≤ k . We repeatedly close their row span under right multiplication by the transition matrices. Again the dimension increases at most s + 1 s + 1 s + 1 times. A retained rational basis gives f 1 , … , f r f_1,\ldots,f_r f 1 , … , f r , and coordinate solving gives Eq. (28) . The first identity in Eq. (29) is the decomposition into the constant coefficient and the possible initial letters; the second is the same decomposition for p p p . Taking a residual reduces degree, so every sufficiently long residual of any f ℓ f_\ell f ℓ vanishes, giving the joint nilpotence assertion. Constants and polynomials with different initial letters occupy disjoint coefficient positions. A relation among Eq. (30) would therefore force, for each letter, a relation among the independent f ℓ f_\ell f ℓ , as well as a zero constant coefficient. All its coefficients must be zero.
To bound the bit cost, we retain rows and columns that are products of the original rational matrices of length at most s + 1 s + 1 s + 1 . A common input denominator bounds the bit length of every such product polynomially in the input size. Coordinate solutions are ratios of minors of these retained rational arrays; fraction-free elimination controls their encoding length [11 ] . Thus the basis algorithm cited before the lemma yields the required rational coordinates with a bit bound, in addition to its arithmetic-operation bound. □ \square □
Polynomiality, the zero case, and the true degree are checked on the supplied rational matrices before this construction; Appendix A.§ 3 gives those tests and the conversion from an explicit branching program. With the order 0 , ( 1 , 1 ) , … , ( 1 , r ) , … , ( k , r ) 0,(1,1),\ldots,(1,r),\ldots,(k,r) 0 , ( 1 , 1 ) , … , ( 1 , r ) , … , ( k , r ) for the indices of g g g , we record the resulting polynomial identities in the numerical matrices
E = [ 1 0 ⋯ 0 ] , J = [ a 0 A 1 r e s ⋯ A k r e s ] , P = [ c ∅ p 1 ⋯ p k ] . (31) E=[1\ 0\ \cdots\ 0],\qquad J=[a_0\ A^{\mathrm{res}}_1\ \cdots\ A^{\mathrm{res}}_k],\qquad P=[c_{\varnothing}\ p_1\ \cdots\ p_k]. \tag*{(31)} E = [ 1 0 ⋯ 0 ] , J = [ a 0 A 1 res ⋯ A k res ] , P = [ c ∅ p 1 ⋯ p k ] . (31)
Their sizes are 1 × h 1 \times h 1 × h , r × h r \times h r × h , and 1 × h 1 \times h 1 × h . Thus f ℓ = ∑ t J ℓ t g t f_\ell=\sum_t J_{\ell t}g_t f ℓ = ∑ t J ℓ t g t and p = ∑ t P t g t p=\sum_t P_tg_t p = ∑ t P t g t . We denote by L j L_j L j the r × h r \times h r × h zero–one matrix with ( L j ) ℓ , ( j , t ) = δ ℓ t (L_j)_{\ell,(j,t)}=\delta_{\ell t} ( L j ) ℓ , ( j , t ) = δ ℓ t and every other entry zero. It records the identity x j f ℓ = ∑ t ( L j ) ℓ t g t x_jf_\ell=\sum_t(L_j)_{\ell t}g_t x j f ℓ = ∑ t ( L j ) ℓ t g t . Thus E g = 1 Eg=1 E g = 1 , J g = f Jg=f J g = f , P g = p Pg=p P g = p , and L j g = x j f L_jg=x_jf L j g = x j f . These four identities supply every coordinate map needed below.
The complete semidefinite certificate
The auxiliary column H H H enters the defect identity through its coefficient Gram matrix. Assigning an element of span f f f to each input block label α \alpha α and each memory label gives a coefficient matrix K K K with b r br b r columns, grouped by α \alpha α . Its Gram matrix T = K † K T=K^\dagger K T = K † K is one of the unknown positive matrices. Known coordinate maps express both H H H and Δ m H \Delta_mH Δ m H in the same basis, so their difference of Gram matrices is linear in T T T .
For each input block label 1 ≤ α ≤ b 1\le\alpha\le b 1 ≤ α ≤ b , we define E α E_\alpha E α to have b r br b r rows and h h h columns, with J J J in block row α \alpha α and zeros elsewhere. For each output block label 1 ≤ μ ≤ a 1\le\mu\le a 1 ≤ μ ≤ a , we define
E α = ( 0 ⋮ J ⋮ 0 ) , M μ = ( ∑ j f μ 1 , j L j ∑ j f μ 2 , j L j ⋮ ∑ j f μ b , j L j ) . (32) E_\alpha=\begin{pmatrix}0\\ \vdots\\ J\\ \vdots\\ 0\end{pmatrix},\qquad
M_\mu=\begin{pmatrix}
\sum_j f_{\mu1,j}L_j\\
\sum_j f_{\mu2,j}L_j\\
\vdots\\
\sum_j f_{\mu b,j}L_j
\end{pmatrix}. \tag*{(32)} E α = 0 ⋮ J ⋮ 0 , M μ = ∑ j f μ 1 , j L j ∑ j f μ 2 , j L j ⋮ ∑ j f μ b , j L j . (32)
The columns K E α g KE_\alpha g K E α g contain the internal polynomials at input label α \alpha α , and K M μ g KM_\mu g K M μ g contains their image at output label μ \mu μ . Their difference of squared norms is therefore represented by the real-linear map
Φ ( T ) = ∑ α = 1 b E α † T E α − ∑ μ = 1 a M μ † T M μ . (33) \Phi(T)=\sum_{\alpha=1}^{b}E_\alpha^\dagger T E_\alpha-\sum_{\mu=1}^{a}M_\mu^\dagger T M_\mu. \tag*{(33)} Φ ( T ) = α = 1 ∑ b E α † T E α − μ = 1 ∑ a M μ † T M μ . (33)
This map takes a Hermitian matrix of order b r br b r to one of order h h h , with rational coefficients in its real and imaginary coordinates. A second positive Gram matrix S S S represents G ∗ G G^\ast G G ∗ G in the basis g g g . The two terms separate polynomial sums of squares [49 ] from the input-domain constraint, as in free convex Positivstellensätze [51 ] . The desired defect certificate will consequently be the affine equation β 2 E † E − P † P = S + Φ ( T ) \beta^2E^\dagger E-P^\dagger P=S+\Phi(T) β 2 E † E − P † P = S + Φ ( T ) . Its coordinate matrices E E E , P P P and the map Φ \Phi Φ are computed from the target and the input block; only the two positive semidefinite matrices S , T S,T S , T remain to be found.
To display the certificate matrices explicitly, we use the smaller target q ( x ) = ( 1 + x 1 x 2 ) / 4 q(x)=(1+x_1x_2)/4 q ( x ) = ( 1 + x 1 x 2 ) /4 on the diagonal domain. The commutator example continues to track word order and degree compensation; this example will follow the numerical calculation from the certificate to the four update blocks. Here f = ( 1 , x 2 ) T f=(1,x_2)^{\mathsf T} f = ( 1 , x 2 ) T and
g = ( 1 , x 1 , x 1 x 2 , x 2 , x 2 2 ) T , E = ( 1 , 0 , 0 , 0 , 0 ) , P q = ( 1 , 0 , 1 , 0 , 0 ) / 4. g=(1,x_1,x_1x_2,x_2,x_2^2)^{\mathsf T},\qquad E=(1,0,0,0,0),\qquad P_q=(1,0,1,0,0)/4. g = ( 1 , x 1 , x 1 x 2 , x 2 , x 2 2 ) T , E = ( 1 , 0 , 0 , 0 , 0 ) , P q = ( 1 , 0 , 1 , 0 , 0 ) /4.
Thus the unknown matrices have orders five and four. The following pair certifies 1 − q ∗ q 1-q^*q 1 − q ∗ q :
T = 1 64 ( 1 0 0 0 0 8 0 0 0 0 16 0 0 0 0 1 ) , S = 1 64 ( 43 0 − 4 0 0 0 1 0 0 0 − 4 0 4 0 0 0 0 0 7 0 0 0 0 0 1 ) . (34) T=\frac{1}{64}\begin{pmatrix}1&0&0&0\\0&8&0&0\\0&0&16&0\\0&0&0&1\end{pmatrix},\qquad S=\frac{1}{64}\begin{pmatrix}43&0&-4&0&0\\0&1&0&0&0\\-4&0&4&0&0\\0&0&0&7&0\\0&0&0&0&1\end{pmatrix}. \tag*{(34)} T = 64 1 1 0 0 0 0 8 0 0 0 0 16 0 0 0 0 1 , S = 64 1 43 0 − 4 0 0 0 1 0 0 0 − 4 0 4 0 0 0 0 0 7 0 0 0 0 0 1 . (34)
Substitution into Eq. (33) gives Φ ( T ) = diag ( 17 , − 1 , − 8 , − 7 , − 1 ) / 64 \Phi(T)=\operatorname{diag}(17,-1,-8,-7,-1)/64 Φ ( T ) = diag ( 17 , − 1 , − 8 , − 7 , − 1 ) /64 and hence E † E − P q † P q = S + Φ ( T ) E^\dagger E-P_q^\dagger P_q=S+\Phi(T) E † E − P q † P q = S + Φ ( T ) . Both matrices are positive definite: in 64 S 64S 64 S , the only coupled 2 × 2 2\times2 2 × 2 block has positive leading entry 43 and determinant 156, and the remaining diagonal entries are positive. § 3.3 will use this pair to compute the four transfer blocks.
For the general certificate theorem, we prove completeness for every Hermitian coefficient matrix Q 0 Q_0 Q 0 of order h h h . This additional generality will also produce the interior margin for certificate discovery. We write
q Q 0 ( x ) = ∑ t , u ( Q 0 ) t u g t ( x ) ∗ g u ( x ) . (35) q_{Q_0}(x)=\sum_{t,u}(Q_0)_{tu}\,g_t(x)^*g_u(x). \tag*{(35)} q Q 0 ( x ) = t , u ∑ ( Q 0 ) t u g t ( x ) ∗ g u ( x ) . (35)
Such a polynomial is called hereditary [76 ] : its starred letters precede its unstarred letters. Each ordered word pair therefore has a fixed position in its coefficient Gram. The target defect is obtained by taking Q 0 = β 2 E † E − P † P Q_0=\beta^2E^\dagger E-P^\dagger P Q 0 = β 2 E † E − P † P .
We must prove that restricting the auxiliary polynomials to these residuals preserves every feasible norm bound. We use separation and finite-dimensional representation, following the method of hereditary positivity [5 Theorem 1.11 and Section 3] . Helton, Klep, and Nelson obtain finite positivity certificates on chip spaces spanned by monomials [52 Section 1.5 and Corollary 4.4] , while finite sum-of-squares formulas also underlie recent realization results [23 ] . Our basis can consist of whole residual polynomials, as in the preceding power example. The completeness argument must therefore preserve their linear relations, as well as the bound on the rectangular input block.
A separating matrix specifies candidate Gram vectors for the polynomials in g g g . We will construct input matrices that act on these vectors by restoring their initial letters, prove that their joint block is contractive, and use residual closure to identify the vectors with actual polynomial evaluations. The separator then becomes a counterexample to the assumed norm bound.
Theorem 3.2 (An exact certificate in residual coordinates). The polynomial q Q 0 q_{Q_0} q Q 0 is positive semidefinite on ∥ Δ ( A ) ∥ ≤ 1 \lVert\Delta(A)\rVert\leq1 ∥ Δ ( A )∥ ≤ 1 at every matrix size if and only if Q 0 = S + Φ ( T ) Q_0=S+\Phi(T) Q 0 = S + Φ ( T ) for positive semidefinite matrices S , T S,T S , T of orders h h h and b r br b r . Consequently, for β ≥ 0 \beta\geq0 β ≥ 0 ,
∥ p ∥ S A , Δ ≤ β if and only if β 2 E † E − P † P = S + Φ ( T ) , S , T ⪰ 0. (36) \lVert p\rVert_{\mathrm{SA},\Delta}\leq\beta\quad\text{if and only if}\quad\beta^2E^\dagger E-P^\dagger P=S+\Phi(T),\qquad S,T\succeq0. \tag*{(36)} ∥ p ∥ SA , Δ ≤ β if and only if β 2 E † E − P † P = S + Φ ( T ) , S , T ⪰ 0. (36)
Proof. A feasible pair gives a positive expression on the input domain. To see this, a factor K K K with T = K † K T=K^\dagger K T = K † K determines scalar polynomials
h α , ℓ ( x ) = ∑ t = 1 r K ℓ , ( α , t ) f t ( x ) , b μ , ℓ ( x ) = ∑ α = 1 b ∑ j = 1 k f μ , α , j x j h α , ℓ ( x ) . h_{\alpha,\ell}(x)=\sum_{t=1}^{r}K_{\ell,(\alpha,t)}f_t(x),\qquad b_{\mu,\ell}(x)=\sum_{\alpha=1}^{b}\sum_{j=1}^{k}f_{\mu,\alpha,j}x_jh_{\alpha,\ell}(x). h α , ℓ ( x ) = t = 1 ∑ r K ℓ , ( α , t ) f t ( x ) , b μ , ℓ ( x ) = α = 1 ∑ b j = 1 ∑ k f μ , α , j x j h α , ℓ ( x ) .
Here ℓ \ell ℓ indexes the rows of the numerical factor, and each resulting polynomial acts on the original signal. The coordinate definitions imply that the polynomials associated with K E α KE_\alpha K E α and K M μ KM_\mu K M μ are exactly h α , ℓ h_{\alpha,\ell} h α , ℓ and b μ , ℓ b_{\mu,\ell} b μ , ℓ . Therefore Φ ( T ) \Phi(T) Φ ( T ) represents
∑ ℓ , α h α , ℓ ( x ) ∗ h α , ℓ ( x ) − ∑ ℓ , μ b μ , ℓ ( x ) ∗ b μ , ℓ ( x ) . (37) \sum_{\ell,\alpha}h_{\alpha,\ell}(x)^*h_{\alpha,\ell}(x)-\sum_{\ell,\mu}b_{\mu,\ell}(x)^*b_{\mu,\ell}(x). \tag*{(37)} ℓ , α ∑ h α , ℓ ( x ) ∗ h α , ℓ ( x ) − ℓ , μ ∑ b μ , ℓ ( x ) ∗ b μ , ℓ ( x ) . (37)
At any admissible matrix tuple, contractivity of the explicit block matrix in Eq. (8) makes this expression positive semidefinite: for every signal vector, we apply Δ ( A ) \Delta(A) Δ ( A ) to the b b b components h α , ℓ ( A ) h_{\alpha,\ell}(A) h α , ℓ ( A ) for each fixed ℓ \ell ℓ and sum their norm inequalities. A factor of S S S similarly produces a sum of known polynomial squares. Hence Q 0 = S + Φ ( T ) Q_0 = S + \Phi(T) Q 0 = S + Φ ( T ) implies positivity of Eq. (35) , proving sufficiency.
For necessity, we first identify hereditary polynomials with their numerical coefficient matrices. The coefficients of the independent g t g_t g t form a full-row-rank matrix C g C_g C g , with rows indexed by t t t and columns by words. Since each x v ∗ x w x_v^*x_w x v ∗ x w has a unique starred–unstarred division, q Q 0 = 0 q_{Q_0} = 0 q Q 0 = 0 implies C g † Q 0 C g = 0 C_g^\dagger Q_0 C_g = 0 C g † Q 0 C g = 0 . Multiplication by a right inverse of C g C_g C g gives Q 0 = 0 Q_0 = 0 Q 0 = 0 , proving that this coefficient identification is injective.
Before applying separation, we prove that the image cone is closed by bounding its positive semidefinite preimages, following the finite-functional method used for noncommutative sums of squares [76 Section 3, Proposition 3.4] . For this purpose, we use the finite matrices S j ( D ) S_j^{(D)} S j ( D ) whose rows and columns are indexed by words of length at most D D D , with entry one at row j w jw j w , column w w w when ∣ w ∣ < D |w| < D ∣ w ∣ < D , and zero elsewhere. Their distinguished coordinate is the empty word. A sufficiently small positive rational ρ \rho ρ makes Δ ( ρ S ( D ) ) \Delta(\rho S^{(D)}) Δ ( ρ S ( D ) ) a contraction with norm at most 1 / 2 1/2 1/2 . Evaluation at this tuple on the empty-word coordinate defines a positive functional ℓ ρ \ell_\rho ℓ ρ on the hereditary polynomials. The weighted coefficient Grams of the independent lists f ℓ f_\ell f ℓ and g t g_t g t are positive definite. Consequently there is χ > 0 \chi> 0 χ > 0 such that, for S , T ⪰ 0 S,T \succeq0 S , T ⪰ 0 ,
ℓ ρ ( q S + Φ ( T ) ) ≥ χ ( Tr S + Tr T ) . (38) \ell_\rho(q_{S+\Phi(T)}) \ge\chi(\operatorname{Tr} S + \operatorname{Tr} T). \tag*{(38)} ℓ ρ ( q S + Φ ( T ) ) ≥ χ ( Tr S + Tr T ) . (38)
The independent coefficient lists and the strict defect bound give χ > 0 \chi> 0 χ > 0 , which suffices for closedness. Appendix A.§ 1 computes a rational choice with controlled bit length from the residual recurrence. Thus a convergent sequence S ν + Φ ( T ν ) S_\nu+ \Phi(T_\nu) S ν + Φ ( T ν ) has bounded positive semidefinite preimages S ν , T ν S_\nu,T_\nu S ν , T ν . A subsequence of these finitely many bounded matrix entries converges to positive semidefinite S , T S,T S , T , proving closedness of the image cone.
We now assume that a positive q Q 0 q_{Q_0} q Q 0 has no such representation and derive a contradiction. Finite-dimensional separation of the closed convex cone gives a Hermitian numerical matrix H H H of order h h h , acting on the coefficient basis g g g , such that
H ⪰ 0 , Φ ∗ ( H ) : = ∑ α E α H E α † − ∑ μ M μ H M μ † ⪰ 0 , Tr ( H Q 0 ) < 0. (39) H \succeq0,\qquad\Phi^*(H) := \sum_{\alpha} E_\alpha H E_\alpha^\dagger- \sum_{\mu} M_\mu H M_\mu^\dagger\succeq0,\qquad\operatorname{Tr}(H Q_0) < 0. \tag*{(39)} H ⪰ 0 , Φ ∗ ( H ) := α ∑ E α H E α † − μ ∑ M μ H M μ † ⪰ 0 , Tr ( H Q 0 ) < 0. (39)
We now realize the separator as polynomial evaluation on an allowed tuple. Its Gram vectors must support multiplication by each x j x_j x j , including when the separating matrix is singular. We adapt the finite Gram construction in hereditary positivity proofs [5 ] : its columns represent polynomials, and multiplication by a letter must reproduce the corresponding successor column. The kernel argument below makes this construction well defined for a possibly singular separator in our residual space. For the functional ℓ ( q Q 0 ) = Tr ( H Q 0 ) \ell(q_{Q_0}) = \operatorname{Tr}(H Q_0) ℓ ( q Q 0 ) = Tr ( H Q 0 ) , the coefficient pairing is ℓ ( g t ∗ g u ) = H u t \ell(g_t^*g_u) = H_{ut} ℓ ( g t ∗ g u ) = H u t ; this fixes the ordinary transpose in the factorization below.
We factor H T = W T W H^T = W^T W H T = W T W , choosing W W W with n H = rank H n_H = \operatorname{rank} H n H = rank H independent rows. With ordinary transpose in this factorization, we form
R H = W J T , Z j , H = W L j T , Y j = Z j , H R H † , ω = W E T . (40) R_H = WJ^T,\qquad Z_{j,H} = WL_j^T,\qquad Y_j = Z_{j,H}R_H^\dagger,\qquad\omega= WE^T. \tag*{(40)} R H = W J T , Z j , H = W L j T , Y j = Z j , H R H † , ω = W E T . (40)
The first two matrices have n H n_H n H rows and r r r columns, Y j Y_j Y j is n H × n H n_H \times n_H n H × n H , and ω \omega ω is a numerical column of length n H n_H n H . To justify the pseudoinverse construction, the ordinary transpose of Φ ∗ ( H ) \Phi^*(H) Φ ∗ ( H ) is the b × b b \times b b × b block matrix
[ δ α β R H T R H − ∑ μ = 1 a B μ α T B μ β ] α , β = 1 b ⪰ 0 , B μ α = ∑ j f μ , α , j Z j , H . (41) \left[
\delta_{\alpha\beta}R_H^T R_H-\sum_{\mu=1}^{a}B_{\mu\alpha}^T B_{\mu\beta}
\right]_{\alpha,\beta=1}^{b}
\succeq0,\qquad B_{\mu\alpha}=\sum_j f_{\mu,\alpha,j}Z_{j,H}. \tag*{(41)} [ δ α β R H T R H − μ = 1 ∑ a B μα T B μ β ] α , β = 1 b ⪰ 0 , B μα = j ∑ f μ , α , j Z j , H . (41)
Each block has order r r r . If R H v = 0 R_Hv=0 R H v = 0 , applying Eq. (41) with v v v in input block α \alpha α and zeros elsewhere gives B μ α v = 0 B_{\mu\alpha}v=0 B μα v = 0 for all μ , α \mu,\alpha μ , α . Independence of the coefficient matrices F j F_j F j forces Z j , H v = 0 Z_{j,H}v=0 Z j , H v = 0 for each j j j . We have therefore established ker R H ⊆ ker Z j , H \ker R_H\subseteq\ker Z_{j,H} ker R H ⊆ ker Z j , H , and hence
Y j R H = Z j , H . (42) Y_jR_H=Z_{j,H}. \tag*{(42)} Y j R H = Z j , H . (42)
Applying Eq. (41) to the columns R H R H + x α R_HR_H^+x_\alpha R H R H + x α now gives
∑ μ ∥ ∑ α , j f μ α , j Y j x α ∥ 2 ≤ ∑ α ∥ R H R H + x α ∥ 2 ≤ ∑ α ∥ x α ∥ 2 . \sum_\mu\left\|\sum_{\alpha,j}f_{\mu\alpha,j}Y_jx_\alpha\right\|^2\leq\sum_\alpha\left\|R_HR_H^+x_\alpha\right\|^2\leq\sum_\alpha\left\|x_\alpha\right\|^2. μ ∑ α , j ∑ f μα , j Y j x α 2 ≤ α ∑ R H R H + x α 2 ≤ α ∑ ∥ x α ∥ 2 .
Thus the explicit block matrix Δ ( Y ) \Delta(Y) Δ ( Y ) is contractive.
Contractivity makes Y Y Y an admissible input. To obtain the contradiction, its polynomial evaluations must also reproduce the Gram vectors prescribed by the separator. Restoring one initial letter already acts correctly by Eq. (42) ; the following induction shows that this property extends to every polynomial in the residual space because its remaining-letter polynomials stay in that space. For a row λ = ( λ 1 , … , λ r ) \lambda=(\lambda_1,\ldots,\lambda_r) λ = ( λ 1 , … , λ r ) , we write f λ = ∑ ℓ λ ℓ f ℓ f_\lambda=\sum_\ell\lambda_\ell f_\ell f λ = ∑ ℓ λ ℓ f ℓ and define its represented column by ζ ( f λ ) = R H λ T \zeta(f_\lambda)=R_H\lambda^{\mathsf T} ζ ( f λ ) = R H λ T ; the independence of the f ℓ f_\ell f ℓ ensures that this definition is unambiguous. The residual arrays give ∂ j f λ = f λ A j r e s \partial_jf_\lambda=f_\lambda A_j^{\mathrm{res}} ∂ j f λ = f λ A j res and ( f λ ) ∅ = λ a 0 (f_\lambda)_\varnothing=\lambda a_0 ( f λ ) ∅ = λ a 0 . At the level of the h h h numerical coordinates, the same identities read
J T λ T = E T ( λ a 0 ) + ∑ j L j T ( A j r e s ) T λ T . J^{\mathsf T}\lambda^{\mathsf T}=E^{\mathsf T}(\lambda a_0)+\sum_jL_j^{\mathsf T}(A_j^{\mathrm{res}})^{\mathsf T}\lambda^{\mathsf T}. J T λ T = E T ( λ a 0 ) + j ∑ L j T ( A j res ) T λ T .
Multiplication by W W W , followed by Z j , H = Y j R H Z_{j,H}=Y_jR_H Z j , H = Y j R H , therefore proves
ζ ( f λ ) = ω ( f λ ) ∅ + ∑ j Y j ζ ( ∂ j f λ ) . \zeta(f_\lambda)=\omega(f_\lambda)_\varnothing+\sum_jY_j\zeta(\partial_jf_\lambda). ζ ( f λ ) = ω ( f λ ) ∅ + j ∑ Y j ζ ( ∂ j f λ ) .
If f λ f_\lambda f λ is constant, this is already ζ ( f λ ) = f λ ( Y ) ω \zeta(f_\lambda)=f_\lambda(Y)\omega ζ ( f λ ) = f λ ( Y ) ω . Otherwise every polynomial in the sum has smaller degree, so induction gives that equality as well. In particular, the column of f ℓ f_\ell f ℓ is R H e ℓ R_He_\ell R H e ℓ , while the column of x j f ℓ x_jf_\ell x j f ℓ is Y j R H e ℓ = Z j , H e ℓ = W e ( j , ℓ ) Y_jR_He_\ell=Z_{j,H}e_\ell=We_{(j,\ell)} Y j R H e ℓ = Z j , H e ℓ = W e ( j , ℓ ) . Together with the constant column W e 0 = ω We_0=\omega W e 0 = ω , these equalities show that every successor polynomial is reproduced:
g t ( Y ) ω = W e t ( 0 ≤ t < h ) , (43) g_t(Y)\omega=We_t\qquad(0\leq t<h), \tag*{(43)} g t ( Y ) ω = W e t ( 0 ≤ t < h ) , (43)
where e t e_t e t is the coordinate column of length h h h . The induction terminates because the residual degree decreases at each step. Using the reproduced columns to evaluate q Q 0 q_{Q_0} q Q 0 now gives
ω † q Q 0 ( Y ) ω = ∑ t , u ( Q 0 ) t u ( W † W ) t u = ∑ t , u ( Q 0 ) t u H u t = Tr ( H Q 0 ) < 0. \omega^\dagger q_{Q_0}(Y)\omega=\sum_{t,u}(Q_0)_{tu}(W^\dagger W)_{tu}=\sum_{t,u}(Q_0)_{tu}H_{ut}=\operatorname{Tr}(HQ_0)<0. ω † q Q 0 ( Y ) ω = t , u ∑ ( Q 0 ) t u ( W † W ) t u = t , u ∑ ( Q 0 ) t u H u t = Tr ( H Q 0 ) < 0.
This contradicts positivity of q Q 0 q_{Q_0} q Q 0 at all admissible finite tuples. It proves the general certificate. For Q 0 = β 2 E † E − P † P Q_0=\beta^2E^\dagger E-P^\dagger P Q 0 = β 2 E † E − P † P , the hereditary expression is β 2 − p ∗ p \beta^2-p^*p β 2 − p ∗ p , so the claimed norm equivalence follows.
The separation argument uses exactly the closure that the coefficient recurrence supplies. It establishes completeness of the finite search space, including its singular boundary. The same construction gives norm witnesses of order at most h h h ; Corollary A.2 in Appendix A records that consequence. Combining the certificate theorem with the finite-matrix construction of § 2.2 now gives the following criterion.
Corollary 3.3 (Finite polynomial Schur–Agler criterion). For a nonconstant rational scalar polynomial q q q of degree D D D , the following are equivalent: ∥ q ∥ S A , Δ ≤ 1 \lVert q\rVert_{\mathrm{SA},\Delta} \le1 ∥ q ∥ SA , Δ ≤ 1 ; the existence of a polynomial defect certificate in Eq. (23) ; and the existence of a finite contractive transfer realization. The certificate can use m ≤ b r m \le br m ≤ b r , where r r r is the residual dimension of Lemma 3.1 for q q q .
Proof. Applying Theorem 3.2 to 1 − q ∗ q 1-q^{*}q 1 − q ∗ q gives the certificate in residual coordinates. A square factor of its b r × b r br \times br b r × b r Gram matrix gives m = b r m = br m = b r , with degrees at most D − 1 D-1 D − 1 for H H H and D D D for G G G . Lemma 2.5 gives the finite realization, and Eq. (27) proves its norm bound. These steps establish the equivalence and the stated finite size.
We now use a strictly feasible certificate to compute the numerical query parameters and control the precision of their evaluation.
Extracting the numerical query parameters
Suppose we have a positive definite certificate for a normalized target q q q of degree D D D . We first determine the query parameters from this certificate; the next subsection computes the certificate itself. A factor of T T T supplies the coefficients of the auxiliary column H H H , and the common basis g g g expresses both [ Δ m H ; 1 ] [\Delta_m H; 1] [ Δ m H ; 1 ] and [ H ; q ] [H; q] [ H ; q ] . We can therefore apply the Gram factorization of § 2.2 directly to numerical matrices.
Let S , T ≻ 0 S,T \succ0 S , T ≻ 0 be the rational certificate matrices for q q q . In its residual coordinates, we set m = b r m = br m = b r , take K = T 1 / 2 K = T^{1/2} K = T 1/2 to be the full m × b r m \times br m × b r positive square root, and form the two ordinary numerical matrices
X = ( K M 1 ⋮ K M a E ) , Y = ( K E 1 ⋮ K E b P q ) , X : ( a m + 1 ) × h , Y : ( b m + 1 ) × h . (44) X = \begin{pmatrix} KM_1 \\ \vdots\\ KM_a \\ E \end{pmatrix}, \qquad Y = \begin{pmatrix} KE_1 \\ \vdots\\ KE_b \\ P_q \end{pmatrix}, \qquad X : (am+1) \times h,\qquad Y : (bm+1) \times h. \tag*{(44)} X = K M 1 ⋮ K M a E , Y = K E 1 ⋮ K E b P q , X : ( am + 1 ) × h , Y : ( bm + 1 ) × h . (44)
The row P q P_q P q contains the coordinates of q q q itself, including its normalization. The rows of X X X describe the queried auxiliary column and scalar input, while those of Y Y Y describe the auxiliary column and target output. All their entries are known from the certificate. Computing their Gram matrices gives
T 0 = X † X = E † E + ∑ μ M μ † T M μ , X † X − Y † Y = S ≻ 0. (45) T_0 = X^\dagger X = E^\dagger E + \sum_\mu M_\mu^\dagger T M_\mu,\qquad X^\dagger X - Y^\dagger Y = S \succ0. \tag*{(45)} T 0 = X † X = E † E + μ ∑ M μ † T M μ , X † X − Y † Y = S ≻ 0. (45)
In particular, T 0 T_0 T 0 is rational and invertible. Independence of the a × b a \times b a × b matrices F j F_j F j implies k ≤ a b k \le ab k ≤ ab , so a m + 1 = a b r + 1 ≥ k r + 1 = h am+1 = abr+1 \ge kr+1 = h am + 1 = ab r + 1 ≥ k r + 1 = h ; thus X X X has enough rows for the full column rank forced by its positive Gram. The extraction below produces a numerical matrix with b m + 1 bm+1 bm + 1 rows and a m + 1 am+1 am + 1 columns, matching the queried coordinates and scalar endpoints in Eq. (18) . We compute
V = Y T 0 − 1 X † = ( A B C D ) (46) V = YT_0^{-1}X^\dagger= \begin{pmatrix} A & B \\ C & D \end{pmatrix} \tag*{(46)} V = Y T 0 − 1 X † = ( A C B D ) (46)
with the block sizes in Eq. (18) . Every factor in this expression is computed from the rational certificate and its known positive square root.
For the certificate in Eq. (34) , m = 4 m=4 m = 4 and h = 5 h=5 h = 5 , so X , Y X,Y X , Y have nine rows and five columns. We obtain
K = diag ( 1 , 8 , 4 , 1 ) / 8 , T 0 = diag ( 1 , 1 / 64 , 1 / 8 , 1 / 4 , 1 / 64 ) . K = \operatorname{diag}(1,\sqrt{8},4,1)/8,\qquad T_0 = \operatorname{diag}(1,1/64,1/8,1/4,1/64). K = diag ( 1 , 8 , 4 , 1 ) /8 , T 0 = diag ( 1 , 1/64 , 1/8 , 1/4 , 1/64 ) .
Let e 1 , … , e 8 e_1,\ldots,e_8 e 1 , … , e 8 denote the coordinate columns of length eight, with indices starting at one. Substituting into Eq. (46) gives all four blocks:
A = ( e 2 2 + e 8 4 ) e 7 T , B = e 1 8 + e 7 2 , C = e 2 T 2 , D = 1 4 . (47) A=\left(\frac{e_2}{\sqrt{2}}+\frac{e_8}{4}\right)e_7^{\mathsf T},\qquad B=\frac{e_1}{8}+\frac{e_7}{2},\qquad C=\frac{e_2^{\mathsf T}}{\sqrt{2}},\qquad D=\frac{1}{4}. \tag*{(47)} A = ( 2 e 2 + 4 e 8 ) e 7 T , B = 8 e 1 + 2 e 7 , C = 2 e 2 T , D = 4 1 . (47)
Here F 1 ( 4 ) = diag ( I 4 , 0 4 × 4 ) F_1^{(4)}=\operatorname{diag}(I_4,0_{4\times4}) F 1 ( 4 ) = diag ( I 4 , 0 4 × 4 ) and F 2 ( 4 ) = diag ( 0 4 × 4 , I 4 ) F_2^{(4)}=\operatorname{diag}(0_{4\times4},I_4) F 2 ( 4 ) = diag ( 0 4 × 4 , I 4 ) . The only nonzero quadratic path is
C F 1 ( 4 ) A F 2 ( 4 ) B = e 2 T 2 e 2 2 2 = 1 4 . C F_1^{(4)} A F_2^{(4)} B=\frac{e_2^{\mathsf T}}{\sqrt{2}}\frac{e_2}{2\sqrt{2}}=\frac{1}{4}. C F 1 ( 4 ) A F 2 ( 4 ) B = 2 e 2 T 2 2 e 2 = 4 1 .
The linear coefficients vanish because C C C selects coordinate two, while B B B occupies coordinates one and seven. After one nonzero transition A F j ( 4 ) A F_j^{(4)} A F j ( 4 ) , the internal output occupies coordinates two and eight, which every further such transition kills. Thus these blocks generate exactly ( 1 + x 1 x 2 ) / 4 (1+x_1x_2)/4 ( 1 + x 1 x 2 ) /4 . § 4.2 completes this example by identifying the two-query output and its selected registers; Appendix § 16 gives the detailed coordinates. For an arbitrary strict certificate, we next specify how the known matrix entries are returned with controlled precision.
For the numerical gates, we describe an h 2 × h 1 h_2\times h_1 h 2 × h 1 matrix by its dimensions and an entry algorithm that, on input ( r , s , p ) (r,s,p) ( r , s , p ) , returns a complex rational within 2 − p 2^{-p} 2 − p of entry ( r , s ) (r,s) ( r , s ) . Evaluation is polynomial-time when its cost is polynomial in the description length, dimensions, and p p p . Entry error at most η / h 1 h 2 \eta/\sqrt{h_1h_2} η / h 1 h 2 gives operator-norm error at most η \eta η . The spectral bounds of the certificate and the arithmetic in Appendix A give such evaluators for the roots, inverses, and products used below.
Lemma 3.4 (Computable transfer realization). The matrix in Eq. (46) is a strictly contractive transfer realization of q q q . It satisfies Eq. (21) at every word and has certified entry evaluators with polynomial bit cost in the rational certificate length and the requested precision bits.
Proof. The equality V X = Y VX=Y V X = Y follows from the definition of T 0 T_0 T 0 . If S ⪰ μ I h S\succeq\mu I_h S ⪰ μ I h and T 0 ⪯ t 0 I h T_0\preceq t_0I_h T 0 ⪯ t 0 I h , then
Y † Y ⪯ ( 1 − μ / t 0 ) X † X . Y^\dagger Y\preceq(1-\mu/t_0)X^\dagger X. Y † Y ⪯ ( 1 − μ / t 0 ) X † X .
On a column X z Xz X z , the inequality gives ∥ V X z ∥ ≤ 1 − μ / t 0 ∥ X z ∥ \lVert VXz\rVert\le\sqrt{1-\mu/t_0}\lVert Xz\rVert ∥ V X z ∥ ≤ 1 − μ / t 0 ∥ X z ∥ , while the factor X † X^\dagger X † makes V V V vanish on the orthogonal complement of these columns. Hence ∥ V ∥ 2 ≤ 1 − μ / t 0 < 1 \lVert V\rVert^2\le1-\mu/t_0<1 ∥ V ∥ 2 ≤ 1 − μ / t 0 < 1 , with the rational bounds μ > 0 \mu>0 μ > 0 and t 0 t_0 t 0 computed from the strictly feasible certificate. This quantitative form of Douglas factorization [39 ] supplies the contraction margin used to evaluate the known gates.
To apply Lemma 2.5, we form the polynomial column H = [ K E 1 g ; … ; K E b g ] H=[KE_1g;\ldots;KE_bg] H = [ K E 1 g ; … ; K E b g ] . The identities L j g = x j f L_jg=x_jf L j g = x j f and Eq. (32) show that the matrices in Eq. (44) are exactly the coefficient matrices of [ Δ m H ; 1 ] [\Delta_mH;1] [ Δ m H ; 1 ] and [ H ; q ] [H;q] [ H ; q ] in the independent basis g g g . Since X X X has full column rank, its Moore–Penrose inverse is T 0 − 1 X † T_0^{-1}X^\dagger T 0 − 1 X † , so the present formula is the finite factor from that lemma. In particular, Eq. (26) gives every word coefficient. The entries of H H H have degree at most D − 1 D-1 D − 1 , which makes the higher coefficients zero and supplies a polynomial solution of Eq. (25) . Here the strict bound on V V V also makes the transfer inverse well defined on the closed domain.
Exact elimination and minor bounds give rational entries of polynomial encoding length for T 0 T_0 T 0 and its inverse. Positive definiteness of the rational matrices S , T S,T S , T gives lower eigenvalue bounds with polynomial logarithmic size by the same minor estimates. Together with T 0 ⪰ S T_0\succeq S T 0 ⪰ S , these bounds control the inverse and square-root evaluations in Eq. (46) , so the finite matrix products have certified entry approximations in polynomial time. Appendix A supplies the corresponding guard-bit analysis, including the singular roots that occur later in Julia gates. Using the full square root of T T T sets m = b r m=br m = b r , so both the multiplicity and the precision cost of the contraction are controlled by the computed certificate.
Finding a certificate near the optimal normalization
We now find the certificate at a normalization strictly larger than the target norm. To bound the number of classical steps, we need both a bounded search region and a positive distance from its feasible certificate to the boundary. A strict norm promise ∥ p / γ ∥ S A , Δ ≤ ν < 1 \lVert p/\gamma\rVert_{\mathrm{SA},\Delta} \le\nu< 1 ∥ p / γ ∥ SA , Δ ≤ ν < 1 supplies these bounds through the unused squared norm 1 − ν 2 1-\nu^2 1 − ν 2 . The general hereditary statement of Theorem 3.2 first gives a certificate of the constant 1 1 1 with both Gram matrices positive definite: subtracting a sufficiently small rational multiple of the uniformly bounded polynomial represented by I h + Φ ( I b r ) I_h+\Phi(I_{br}) I h + Φ ( I b r ) preserves positivity, and its certificate can then be rearranged. Adding 1 − ν 2 1-\nu^2 1 − ν 2 times this constant certificate to one for ν 2 − p ∗ p / γ 2 \nu^2-p^{*}p/\gamma^2 ν 2 − p ∗ p / γ 2 supplies a strict certificate for the normalized target.
Lemma A.1 bounds the smallest eigenvalues of both certificate matrices, while Eq. (A.4) bounds their total trace. Appendix A.§ 1 computes these rational bounds and proves that their logarithms are polynomial in the input length and log ( 1 / ( 1 − ν ) ) \log(1/(1-\nu)) log ( 1/ ( 1 − ν )) .
Proposition 3.5 (Polynomial-bit strict certificate discovery). For rational γ > 0 \gamma> 0 γ > 0 and 0 ≤ ν < 1 0 \le\nu< 1 0 ≤ ν < 1 with ∥ p / γ ∥ S A , Δ ≤ ν \lVert p/\gamma\rVert_{\mathrm{SA},\Delta} \le\nu ∥ p / γ ∥ SA , Δ ≤ ν , a deterministic algorithm returns rational positive definite S , T S,T S , T satisfying Eq. (36) for p / γ p/\gamma p / γ exactly. Its bit complexity is polynomial in the rational finite-state and joint-encoding input length, the bit lengths of γ \gamma γ and ν \nu ν , and log ( 1 / ( 1 − ν ) ) \log(1/(1-\nu)) log ( 1/ ( 1 − ν )) .
Proof. Eliminating S S S leaves the rational matrix inequalities in Eq. (A.8) for the real coordinates of T T T . The strict margins give a contained ball and a bounded search region with polynomial logarithmic radius ratio. Exact Hermitian elimination tests each matrix inequality and supplies a rational separating vector when it fails. The rounded ellipsoid method [42 , 43 ] therefore finds a rational feasible point within a predetermined polynomial iteration cap. The recovered matrix S = E † E − P † P / γ 2 − Φ ( T ) S=E^{\dagger}E-P^{\dagger}P/\gamma^2-\Phi(T) S = E † E − P † P / γ 2 − Φ ( T ) satisfies the coefficient identity exactly. Appendix A.§ 1 proves the radius and bit bounds, and Appendix A specifies the finite-bit separation and rounding operations.
Every returned pair is checked against the exact rational inequalities, so its certificate remains valid even if the promised norm bound was false. Conversely, if the procedure reaches its cap without a verified pair, the iteration guarantee rules out the interior ball implied by that promise and hence disproves the promise itself; this provides the lower-bound test used in norm estimation below. □
For a nonzero target, we can compute positive rational lower and upper bounds on B = ∥ p ∥ S A , Δ B=\lVert p\rVert_{\mathrm{SA},\Delta} B = ∥ p ∥ SA , Δ from the same coefficient recurrence. We then use the strict search to refine this bracket. The search has two useful outcomes at a proposed threshold b 0 b_0 b 0 : a verified certificate proves a nearby upper bound, while reaching the iteration cap proves B > b 0 B>b_0 B > b 0 .
Theorem 3.6 (Relative norm estimation). For a nonzero rational finite-state polynomial and rational 0 < η < 1 0<\eta<1 0 < η < 1 , one can compute a rational number B ^ \widehat{B} B satisfying B ≤ B ^ ≤ ( 1 + η ) B B\le\widehat{B}\le(1+\eta)B B ≤ B ≤ ( 1 + η ) B in time polynomial in the input length and log ( 1 / η ) \log(1/\eta) log ( 1/ η ) .
Proof. For a rational threshold b 0 > 0 b_0>0 b 0 > 0 , we run the procedure of Proposition 3.5 with γ = ( 1 + η / 8 ) b 0 \gamma=(1+\eta/8)b_0 γ = ( 1 + η /8 ) b 0 and ν = ( 1 + η / 8 ) − 1 \nu=(1+\eta/8)^{-1} ν = ( 1 + η /8 ) − 1 . If B ≤ b 0 B\le b_0 B ≤ b 0 , its promise holds and the search returns a certificate. Every returned certificate proves B ≤ ( 1 + η / 8 ) b 0 B\le(1+\eta/8)b_0 B ≤ ( 1 + η /8 ) b 0 by exact verification. If the iteration cap is reached, the promise is false, so B > b 0 B>b_0 B > b 0 .
We use the midpoint of the current bracket [ ℓ , U ] [\ell,U] [ ℓ , U ] as b 0 b_0 b 0 . A failed search raises ℓ \ell ℓ to b 0 b_0 b 0 ; a successful search lowers U U U to min { U , ( 1 + η / 8 ) b 0 } \min\{U,(1+\eta/8)b_0\} min { U , ( 1 + η /8 ) b 0 } . These updates preserve ℓ ≤ B ≤ U \ell\le B\le U ℓ ≤ B ≤ U . Appendix A.§ 1 supplies the initial bracket and proves that its width decreases by a fixed factor whenever U > ( 1 + η ) ℓ U>(1+\eta)\ell U > ( 1 + η ) ℓ . After polynomially many iterations in the input bit length and log ( 1 / η ) \log(1/\eta) log ( 1/ η ) , the rational upper endpoint is the required B ^ \widehat{B} B . Constant targets are handled there by rational bisection of ∣ c 0 ∣ |c_0| ∣ c 0 ∣ . □
The two routines provide exactly the classical inputs needed by the quantum construction. We first estimate the norm of the requested polynomial p p p and choose its output normalization. For a row input we then certify p / β p/\beta p / β directly. For a general input, § 4 first adjusts each homogeneous degree by a known scalar and proves a strict norm bound for the resulting polynomial q q q . Applying Proposition 3.5 to that q q q , followed by Lemma 3.4 , computes its numerical realization. Thus each invocation takes an explicit coefficient recurrence and a proved margin, and returns the matrices used by the circuit.
Quantum circuit synthesis
The contraction from the preceding section provides the factors of every ordered coefficient. We now arrange these factors so that one finite circuit has selected block p ( A ) / β p(A)/\beta p ( A ) / β . The construction has two parts: a sequence of known contractions combines contributions of different degrees, and their unitary completions implement that sequence using the supplied oracle. Computing the polynomial produced by the first part tells us how to adjust the classical target before finding its realization. For a row input we will instead factor a complementary polynomial column, obtaining one query per degree.
A finite sequence and its normalization
We first fix a contraction V V V in Eq. (18) , with multiplicity m m m , and write q d q_d q d for the degree-d d d polynomial generated by its coefficient products. To combine them using Q ≥ 1 Q \ge1 Q ≥ 1 queries, we allow an amplitude to enter the active calculation at any of the known updates 0 , … , Q 0,\ldots,Q 0 , … , Q and to leave at a later update. The number of intervening active queries then determines its degree.
We store an active component h h h , a pending input s s s , and a collected output y y y on disjoint ancillary coordinates. Before an update, these are amplitude columns of lengths a m n amn amn , n n n , n n n ; afterwards the active column has length b m n bmn bmn . The next query acts by Δ m ( A ) \Delta_m(A) Δ m ( A ) on that active column and by identity on the other two. For a signal input ψ \psi ψ , we start with ( h , s , y ) = ( 0 , ψ , 0 ) (h,s,y)=(0,\psi,0) ( h , s , y ) = ( 0 , ψ , 0 ) and select y y y after the last update. Each selected contribution is thereby specified by the time at which it enters and the time at which it is collected.
We choose positive weights v 0 , … , v Q v_0,\ldots,v_Q v 0 , … , v Q with ∑ t v t 2 = 1 \sum_t v_t^2=1 ∑ t v t 2 = 1 so that injection at t t t and collection at r r r contribute amplitudes v t v_t v t and v r v_r v r . The tail norm measures the input still available at each stage, while the prefix norm determines how a newly collected output is combined with the previous outputs. These norms give the splitting and collection ratios
u t = ( ∑ s = t Q v s 2 ) 1 / 2 , z t = ( ∑ s = 0 t v s 2 ) 1 / 2 , u Q + 1 = z − 1 = 0 , α t = v t / u t , ζ t = u t + 1 / u t , ξ t = v t / z t , γ t = z t − 1 / z t . (48) \begin{aligned}
u_t &= \left(\sum_{s=t}^{Q} v_s^2\right)^{1/2}, & z_t &= \left(\sum_{s=0}^{t} v_s^2\right)^{1/2}, & u_{Q+1} &= z_{-1}=0, \\
\alpha_t &= v_t/u_t, & \zeta_t &= u_{t+1}/u_t, \\
\xi_t &= v_t/z_t, & \gamma_t &= z_{t-1}/z_t. \tag*{(48)}
\end{aligned} u t α t ξ t = ( s = t ∑ Q v s 2 ) 1/2 , = v t / u t , = v t / z t , z t ζ t γ t = ( s = 0 ∑ t v s 2 ) 1/2 , = u t + 1 / u t , = z t − 1 / z t . u Q + 1 = z − 1 = 0 , (48)
All denominators used in these definitions are positive. In particular, u 0 = z Q = 1 u_0=z_Q=1 u 0 = z Q = 1 , and α t 2 + ζ t 2 = ξ t 2 + γ t 2 = 1 \alpha_t^2+\zeta_t^2=\xi_t^2+\gamma_t^2=1 α t 2 + ζ t 2 = ξ t 2 + γ t 2 = 1 . Writing the corresponding signal amplitudes as h , s , y h,s,y h , s , y , we use the update
h ′ = A n h + α t B n s , s ′ = ζ t s , y ′ = ξ t ( C n h + α t D n s ) + γ t y . (49) \begin{aligned}
h' &= A_n h+\alpha_t B_n s, & s' &= \zeta_t s, \\
y' &= \xi_t(C_n h+\alpha_t D_n s)+\gamma_t y. \tag*{(49)}
\end{aligned} h ′ y ′ = A n h + α t B n s , = ξ t ( C n h + α t D n s ) + γ t y . s ′ = ζ t s , (49)
Thus α t s \alpha_t s α t s enters the transfer update, ζ t s \zeta_t s ζ t s remains pending, and the emitted amplitude joins the collected output. The next query sends h ′ h' h ′ to Δ m ( A ) h ′ \Delta_m(A)h' Δ m ( A ) h ′ while preserving s ′ , y ′ s',y' s ′ , y ′ . Suppressing the common signal identity, this update is the numerical matrix
M t = ( A α t B 0 b m × 1 0 1 × a m ζ t 0 ξ t C ξ t α t D γ t ) . (50) M_t =
\begin{pmatrix}
A & \alpha_t B & 0_{b_m \times1} \\
0_{1 \times a_m} & \zeta_t & 0 \\
\xi_t C & \xi_t \alpha_t D & \gamma_t
\end{pmatrix}. \tag*{(50)} M t = A 0 1 × a m ξ t C α t B ζ t ξ t α t D 0 b m × 1 0 γ t . (50)
The block order is active, pending, collected, and each numerical entry multiplies I n I_n I n . Figure 1 follows these components of the same quantum state through the update and the next query.
Figure 1. The three components in Eq. (49) . The input can remain pending, enter the active sector, or contribute its constant term directly to the output. Active amplitude can be updated or collected; collected amplitude remains there. The three right-hand arrows are sectors of one supplied query, whose full unitary is called unconditionally. The final update M Q M_Q M Q has no following query.
Each update is a contraction. To see this, we split the pending input with amplitudes α t , ζ t \alpha_t, \zeta_t α t , ζ t , apply V V V to the active and injected components, and collect the emitted and previous outputs with amplitudes ξ t , γ t \xi_t, \gamma_t ξ t , γ t . The first map is an isometry and the last a coisometry, because both pairs have squared norm one. Appendix § 12 .§ 3.1 writes these maps explicitly as M t = T t V e x t S t M_t = T_tV_{\mathrm{ext}}S_t M t = T t V ext S t in Eq. (B.8).
In these three groups of coordinates, the selected query is
B m ( A ) = ( Δ m ( A ) 0 0 0 I n 0 0 0 I n ) . (51) \mathcal{B}_m(A) =
\begin{pmatrix}
\Delta_m(A) & 0 & 0 \\
0 & I_n & 0 \\
0 & 0 & I_n
\end{pmatrix}. \tag*{(51)} B m ( A ) = Δ m ( A ) 0 0 0 I n 0 0 0 I n . (51)
Let e a m e_{a_m} e a m be the column of length a m + 2 a_m+2 a m + 2 selecting the pending input, and let e b m + 1 T e_{b_m+1}^{\mathsf{T}} e b m + 1 T be the row of length b m + 2 b_m+2 b m + 2 selecting the collected output, with indices starting at zero. The matrix whose selected action we require is
( e b m + 1 T ⊗ I n ) ( M Q ⊗ I n ) B m ( A ) ( M Q − 1 ⊗ I n ) ⋯ B m ( A ) ( M 0 ⊗ I n ) ( e a m ⊗ I n ) . (52) (e_{b_m+1}^{\mathsf{T}} \otimes I_n)(M_Q \otimes I_n)\mathcal{B}_m(A)(M_{Q-1} \otimes I_n)\cdots\mathcal{B}_m(A)(M_0 \otimes I_n)(e_{a_m} \otimes I_n). \tag*{(52)} ( e b m + 1 T ⊗ I n ) ( M Q ⊗ I n ) B m ( A ) ( M Q − 1 ⊗ I n ) ⋯ B m ( A ) ( M 0 ⊗ I n ) ( e a m ⊗ I n ) . (52)
The right endpoint supplies the input, each M t M_t M t updates the three components, and the left endpoint selects the collected output. We first evaluate this product; its embedding in the physical oracle will follow from the same coordinate assignments.
For these stage weights, we define the degree multipliers
w d = ∑ t = 0 Q − d v t v t + d ( 0 ≤ d ≤ Q ) . (53) w_d = \sum_{t=0}^{Q-d} v_t v_{t+d} \qquad(0 \le d \le Q). \tag*{(53)} w d = t = 0 ∑ Q − d v t v t + d ( 0 ≤ d ≤ Q ) . (53)
Here q d ( A ) = ∑ ∣ w ∣ = d q w A w q_d(A) = \sum_{\lvert w\rvert=d} q_w A_w q d ( A ) = ∑ ∣ w ∣ = d q w A w , with q w q_w q w from Eq. (21) . The following matrix identity applies to any contractive transfer matrix; the polynomial realization computed in § 3.3 is the case used by our algorithm.
Theorem 4.1 (The polynomial implemented by the finite sequence). For Q ≥ 1 Q \ge1 Q ≥ 1 , a positive real unit weight vector, and the contraction V V V in Eq. (18) , the matrix product in Eq. (52) equals
∑ d = 0 Q w d q d ( A ) . (54) \sum_{d=0}^{Q} w_d q_d(A). \tag*{(54)} d = 0 ∑ Q w d q d ( A ) . (54) If the coefficients define a degree-D D D polynomial with D ≤ Q D \le Q D ≤ Q , the sum ends at D D D .
Proof. We expand the selected product in Eq. (52) . Its zero blocks allow either a direct constant contribution through D D D , or one consecutive run of active queries between injection and collection. Before update t t t , the pending amplitude is u t u_t u t times the original input, since each preceding update multiplies it by ζ s = u s + 1 / u s \zeta_s = u_{s+1}/u_s ζ s = u s + 1 / u s . Its injection weight is therefore α t u t = v t \alpha_tu_t = v_t α t u t = v t . An output emitted at update r r r receives ξ r = v r / z r \xi_r = v_r/z_r ξ r = v r / z r and is retained with total later factor
∏ s = r + 1 Q γ s = z r / z Q = z r . \prod_{s=r+1}^{Q} \gamma_s = z_r/z_Q = z_r. s = r + 1 ∏ Q γ s = z r / z Q = z r .
Its final collection weight is v r v_r v r , including r = Q r=Q r = Q . Thus an input injected at t t t and collected at t + d t+d t + d contributes v t v t + d q d ( A ) v_t v_{t+d}q_d(A) v t v t + d q d ( A ) . For a word j 1 ⋯ j d j_1\cdots j_d j 1 ⋯ j d , the active path supplies precisely
C F j 1 ( m ) A F j 2 ( m ) ⋯ A F j d ( m ) B = q j 1 ⋯ j d , C F_{j_1}^{(m)} A F_{j_2}^{(m)} \cdots A F_{j_d}^{(m)} B=q_{j_1\cdots j_d}, C F j 1 ( m ) A F j 2 ( m ) ⋯ A F j d ( m ) B = q j 1 ⋯ j d ,
with the rightmost letter acting first. Summing the possible start times gives coefficient w d q j 1 ⋯ j d w_dq_{j_1\cdots j_d} w d q j 1 ⋯ j d for this word; summing the words of length d d d then gives w d q d ( A ) w_dq_d(A) w d q d ( A ) . At d = 0 d=0 d = 0 the same calculation gives w 0 D n = D n w_0D_n=D_n w 0 D n = D n , because ∑ t v t 2 = 1 \sum_t v_t^2=1 ∑ t v t 2 = 1 .
If the represented function is a polynomial of degree D D D , its coefficient identity makes every q d q_d q d with d > D d>D d > D zero. Lemma 3.4 establishes this identity for the realization computed by our algorithm, proving the final assertion. □
The multipliers w d w_d w d depend only on the degree. We can therefore cancel them in the classical target before finding its realization:
p ~ = ∑ d = 0 D p d w d , q = p ~ / β , D ≤ Q . (55) \widetilde{p}=\sum_{d=0}^{D}\frac{p_d}{w_d},\qquad q=\widetilde{p}/\beta,\qquad D\le Q. \tag*{(55)} p = d = 0 ∑ D w d p d , q = p / β , D ≤ Q . (55)
The resulting product equals p ( A ) / β p(A)/\beta p ( A ) / β . To keep β ≤ ( 1 + τ ) B \beta\le(1+\tau)B β ≤ ( 1 + τ ) B , we must choose weights for which ∥ p ~ ∥ S A , Δ \lVert\widetilde{p}\rVert_{\mathrm{SA},\Delta} ∥ p ∥ SA , Δ remains close to B B B , leaving a strict margin for the certificate search. After the following fixed-length example, we prove that smooth weights achieve this with Q = O ( D / τ ) Q=O(D/\sqrt{\tau}) Q = O ( D / τ ) .
For the polynomial of Example 2.2, two queries and three equal stage weights give w 0 = 1 w_0=1 w 0 = 1 and w 2 = 1 / 3 w_2=1/3 w 2 = 1/3 . At normalization one, we thus realize
q ( x ) = 1 4 + x 1 x 2 − x 2 x 1 4 , ∥ q ∥ S A , Δ = 3 4 < 1. q(x)=\frac{1}{4}+\frac{x_1x_2-x_2x_1}{4},\qquad\lVert q\rVert_{\mathrm{SA},\Delta}=\frac{3}{4}<1. q ( x ) = 4 1 + 4 x 1 x 2 − x 2 x 1 , ∥ q ∥ SA , Δ = 4 3 < 1.
The quadratic contribution can enter only at stage zero and leave at stage two, so its factor 1 / 3 1/3 1/3 recovers Eq. (14) . The constant contribution enters and leaves at the same stage, and its weights sum to one. This illustrates compensation at a fixed query count; the smooth-weight construction will instead bring the normalization close to the target norm 5 / 12 5/12 5/12 .
Controlling the compensation. The compensation in Eq. (55) is useful only if it preserves the target norm up to a small factor. Bounding its homogeneous terms separately could lose their interference. We instead use Fourier averaging of the whole polynomial [58 ] along A j ↦ e i θ A j A_j \mapsto e^{i\theta}A_j A j ↦ e i θ A j . The identity Δ ( e i θ A ) = e i θ Δ ( A ) \Delta(e^{i\theta}A)=e^{i\theta}\Delta(A) Δ ( e i θ A ) = e i θ Δ ( A ) ensures that this orbit stays in the same domain at every matrix size. With N = Q + 1 N=Q+1 N = Q + 1 and D < N D<N D < N , we denote the resulting degree-weighting map by W v p = ∑ d = 0 D w d p d \mathcal{W}_v p=\sum_{d=0}^{D}w_dp_d W v p = ∑ d = 0 D w d p d . Smooth stage weights make this averaging map close to the identity in the same uniform norm.
Lemma 4.2 (A rational choice of weights). For every integer N ≥ 2 N\geq2 N ≥ 2 , a positive rational vector r = ( r 0 , … , r N − 1 ) r=(r_0,\ldots,r_{N-1}) r = ( r 0 , … , r N − 1 ) can be computed in polynomial time in N N N such that v = r / ∥ r ∥ 2 v=r/\lVert r\rVert_2 v = r / ∥ r ∥ 2 has positive rational autocorrelations w d w_d w d for 0 ≤ d < N 0\leq d<N 0 ≤ d < N . For every integer 0 ≤ D < N 0\leq D<N 0 ≤ D < N , these weights satisfy, on degree-at-most-D D D scalar polynomials,
∥ p − W v p ∥ S A , Δ ≤ ρ N ∥ p ∥ S A , Δ , ρ N = 64 D 2 ( N + 1 ) 2 . (56) \lVert p-\mathcal{W}_v p\rVert_{\mathrm{SA},\Delta}\leq\rho_N\lVert p\rVert_{\mathrm{SA},\Delta},\qquad\rho_N=\frac{64D^2}{(N+1)^2}. \tag*{(56)} ∥ p − W v p ∥ SA , Δ ≤ ρ N ∥ p ∥ SA , Δ , ρ N = ( N + 1 ) 2 64 D 2 . (56) The entries of r r r and the w d w_d w d have bit length polynomial in log N \log N log N . If ρ N < 1 \rho_N<1 ρ N < 1 , then
W v − 1 p = ∑ d = 0 D p d / w d , ∥ W v − 1 p ∥ S A , Δ ≤ ∥ p ∥ S A , Δ 1 − ρ N . (57) \mathcal{W}_v^{-1}p=\sum_{d=0}^{D}p_d/w_d,\qquad\lVert\mathcal{W}_v^{-1}p\rVert_{\mathrm{SA},\Delta}\leq\frac{\lVert p\rVert_{\mathrm{SA},\Delta}}{1-\rho_N}. \tag*{(57)} W v − 1 p = d = 0 ∑ D p d / w d , ∥ W v − 1 p ∥ SA , Δ ≤ 1 − ρ N ∥ p ∥ SA , Δ . (57)
Proof. We use the real unit vector
s t = 2 N + 1 sin ( t + 1 ) π N + 1 , 0 ≤ t < N . s_t=\sqrt{\frac{2}{N+1}}\sin\frac{(t+1)\pi}{N+1},\qquad0\leq t<N. s t = N + 1 2 sin N + 1 ( t + 1 ) π , 0 ≤ t < N .
With s − 1 = s N = 0 s_{-1}=s_N=0 s − 1 = s N = 0 , the recurrence s t − 1 + s t + 1 = 2 cos ( π / ( N + 1 ) ) s t s_{t-1}+s_{t+1}=2\cos(\pi/(N+1))s_t s t − 1 + s t + 1 = 2 cos ( π / ( N + 1 )) s t gives ∑ t s t s t + 1 = cos ( π / ( N + 1 ) ) \sum_t s_ts_{t+1}=\cos(\pi/(N+1)) ∑ t s t s t + 1 = cos ( π / ( N + 1 )) . We compute dyadic approximations r t r_t r t with error at most [ 1000 N ( N + 1 ) 2 ] − 1 [1000N(N+1)^2]^{-1} [ 1000 N ( N + 1 ) 2 ] − 1 , using convergent sine and square-root series. The bound sin x ≥ 2 x / π \sin x\geq2x/\pi sin x ≥ 2 x / π on [ 0 , π / 2 ] [0,\pi/2] [ 0 , π /2 ] puts every s t s_t s t above a fixed positive multiple of ( N + 1 ) − 3 / 2 (N+1)^{-3/2} ( N + 1 ) − 3/2 , so all r t r_t r t are positive and require O ( log N ) O(\log N) O ( log N ) bits.
The normalized rational approximation obeys ∥ v − s ∥ 2 ≤ [ 100 ( N + 1 ) 2 ] − 1 \lVert v-s\rVert_2\leq[100(N+1)^2]^{-1} ∥ v − s ∥ 2 ≤ [ 100 ( N + 1 ) 2 ] − 1 . The shift matrix with ones on its first superdiagonal has norm one, and therefore
1 − w 1 ≤ 1 − cos π N + 1 + 2 ∥ v − s ∥ 2 < 5 ( N + 1 ) 2 . (58) 1-w_1\leq1-\cos\frac{\pi}{N+1}+2\lVert v-s\rVert_2<\frac{5}{(N+1)^2}. \tag*{(58)} 1 − w 1 ≤ 1 − cos N + 1 π + 2 ∥ v − s ∥ 2 < ( N + 1 ) 2 5 . (58)
The normalization of r r r cancels from its autocorrelations, leaving the rational ratios w d = ( ∑ t r t r t + d ) / ( ∑ t r t 2 ) w_d=(\sum_t r_tr_{t+d})/(\sum_t r_t^2) w d = ( ∑ t r t r t + d ) / ( ∑ t r t 2 ) . Positivity of r r r gives w d > 0 w_d>0 w d > 0 for d < N d<N d < N . A common dyadic denominator and sums of N N N terms give the claimed logarithmic bit bounds.
For D = 0 D=0 D = 0 , both claims are immediate from w 0 = 1 w_0=1 w 0 = 1 . We therefore assume D ≥ 1 D\geq1 D ≥ 1 and prove a norm estimate independent of the number of words. For an admissible tuple A A A , let g ( θ ) = p ( e i θ A ) g(\theta)=p(e^{i\theta}A) g ( θ ) = p ( e i θ A ) . On the real line its norm is at most B = ∥ p ∥ S A , Δ B=\lVert p\rVert_{\mathrm{SA},\Delta} B = ∥ p ∥ SA , Δ . More generally, the reversed polynomial z D p ( A / z ) z^Dp(A/z) z D p ( A / z ) is analytic at zero and has norm at most B B B on ∣ z ∣ = 1 \lvert z\rvert=1 ∣ z ∣ = 1 . Applying the scalar maximum principle after left and right multiplication by arbitrary unit vectors gives ∥ p ( t A ) ∥ ≤ ∣ t ∣ D B \lVert p(tA)\rVert\leq\lvert t\rvert^DB ∥ p ( t A )∥ ≤ ∣ t ∣ D B when ∣ t ∣ ≥ 1 \lvert t\rvert\geq1 ∣ t ∣ ≥ 1 ; when ∣ t ∣ ≤ 1 \lvert t\rvert\leq1 ∣ t ∣ ≤ 1 , the tuple t A tA t A is admissible. On the complex θ \theta θ -circle of radius 2 / D 2/D 2/ D around a real point, it follows that ∥ g ( θ ) ∥ ≤ e 2 B \lVert g(\theta)\rVert\leq e^2B ∥ g ( θ )∥ ≤ e 2 B . For D ≥ 1 D\geq1 D ≥ 1 , Cauchy’s estimate consequently gives
∥ g ′ ′ ( θ ) ∥ ≤ e 2 D 2 2 B ( θ ∈ R ) . \lVert g''(\theta)\rVert\leq\frac{e^2D^2}{2}B\qquad(\theta\in\mathbb{R}). ∥ g ′′ ( θ )∥ ≤ 2 e 2 D 2 B ( θ ∈ R ) .
The nonnegative even kernel K v ( θ ) = ∣ ∑ t v t e i t θ ∣ 2 K_v(\theta)=\lvert\sum_t v_te^{it\theta}\rvert^2 K v ( θ ) = ∣ ∑ t v t e i tθ ∣ 2 has normalized integral one and Fourier coefficients w d w_d w d . Thus its average of g g g is exactly W v p ( A ) \mathcal{W}_vp(A) W v p ( A ) . Because the kernel is even, we may integrate the central second difference of g g g , whose norm is at most θ 2 sup ∥ g ′ ′ ∥ / 2 \theta^2 \sup\|g''\|/2 θ 2 sup ∥ g ′′ ∥/2 . This yields
∥ p ( A ) − W v p ( A ) ∥ ≤ e 2 D 2 B 4 ∫ − π π θ 2 K v ( θ ) d θ 2 π ≤ e 2 π 2 D 2 B 8 ( 1 − w 1 ) < 64 D 2 B ( N + 1 ) 2 . (59) \|p(A)-\mathcal{W}_v p(A)\| \le\frac{e^2D^2B}{4}\int_{-\pi}^{\pi}\theta^2K_v(\theta)\frac{\mathrm{d}\theta}{2\pi}
\le\frac{e^2\pi^2D^2B}{8}(1-w_1)<\frac{64D^2B}{(N+1)^2}. \tag*{(59)} ∥ p ( A ) − W v p ( A ) ∥ ≤ 4 e 2 D 2 B ∫ − π π θ 2 K v ( θ ) 2 π d θ ≤ 8 e 2 π 2 D 2 B ( 1 − w 1 ) < ( N + 1 ) 2 64 D 2 B . (59)
The second inequality uses θ 2 ≤ π 2 ( 1 − cos θ ) / 2 \theta^2\le\pi^2(1-\cos\theta)/2 θ 2 ≤ π 2 ( 1 − cos θ ) /2 on this interval, and the last follows from Eq. (58) . Taking the supremum over the same input tuples and all finite sizes proves Eq. (56) . The finite-dimensional normed polynomial space has a linear map W v \mathcal{W}_v W v within ρ N < 1 \rho_N<1 ρ N < 1 of the identity, so the geometric-series bound for its inverse is 1 / ( 1 − ρ N ) 1/(1-\rho_N) 1/ ( 1 − ρ N ) . Its explicit inverse is division of each degree by the nonzero rational w d w_d w d , proving Eq. (57) . □
The bound on W v − 1 \mathcal{W}_v^{-1} W v − 1 controls the cost of compensation for the entire polynomial. Section 4.3 chooses Q Q Q and β \beta β so that q = W v − 1 p / β q=\mathcal{W}_v^{-1}p/\beta q = W v − 1 p / β has a certified strict margin. We next implement the weighted product with the original oracle; its value will remain p ( A ) / β p(A)/\beta p ( A ) / β .
Unitary implementation with the supplied oracle
We place the product in Eq. (52) on the physical oracle and memory registers. We retain κ = min { i , 2 } \kappa=\min\{i,2\} κ = min { i , 2 } identity labels and allocate
R = max { m , ⌈ 2 κ ⌉ } . (60) R=\max\left\{m,\left\lceil\frac{2}{\kappa}\right\rceil\right\}. \tag*{(60)} R = max { m , ⌈ κ 2 ⌉ } . (60)
memory labels. The inequality R ≥ m R\ge m R ≥ m provides the active memory, while κ R ≥ 2 \kappa R\ge2 κ R ≥ 2 provides distinct pending and collected coordinates even when i = 1 i=1 i = 1 .
These choices give d − = κ + b d_-=\kappa+b d − = κ + b retained input labels and d + = κ + a d_+=\kappa+a d + = κ + a output labels, each with R R R memory values. The zero–one matrices J − J_- J − and J + J_+ J + have sizes d − R × ( b m + 2 ) d_-R\times(bm+2) d − R × ( bm + 2 ) and d + R × ( a m + 2 ) d_+R\times(am+2) d + R × ( am + 2 ) . They place the active block index and its multiplicity on the oracle and memory labels, and place the last two coordinates on flat idle indices zero and one. Appendix B.3.1 gives their entries and verifies the query identity in Eq. (B.12). The known matrices between queries are then
C 0 = J − M 0 e a m , C t = J − M t J + † ( 1 ≤ t < Q ) , C Q = e b m + 1 T M Q J + † . (61) \begin{aligned}
C_0&=J_-M_0e_{am},\\
C_t&=J_-M_tJ_+^\dagger\qquad(1\le t<Q),\\
C_Q&=e_{bm+1}^{\mathsf T}M_QJ_+^\dagger. \tag*{(61)}
\end{aligned} C 0 C t C Q = J − M 0 e am , = J − M t J + † ( 1 ≤ t < Q ) , = e bm + 1 T M Q J + † . (61)
Their sizes are d − R × 1 d_-R\times1 d − R × 1 , d − R × d + R d_-R\times d_+R d − R × d + R , and 1 × d + R 1\times d_+R 1 × d + R , respectively. Since each packing matrix has orthonormal columns, the C t C_t C t are contractions. Their selected product is Eq. (52) , whose value is given by Theorem 4.1.
Each known update is a contraction, and each query contributes only a designated block of its unitary. The complementary amplitudes remain in the quantum state. We record their first exit in an extra register, so that the amplitude still carrying label zero follows exactly the product just calculated. This is the block-encoding product principle [45 ] , implemented with one fresh label for each possible first exit.
For a general contraction product, let 1 ≤ κ ≤ i 1\le\kappa\le i 1 ≤ κ ≤ i be the number of retained identity labels. The retained query block is
L κ ( A ) = ( I κ n 0 κ n × b n 0 a n × κ n Δ ( A ) ) , d − = κ + b , d + = κ + a . (62) L_\kappa(A)=\begin{pmatrix}I_{\kappa n}&0_{\kappa n\times bn}\\0_{an\times\kappa n}&\Delta(A)\end{pmatrix},
\qquad d_-=\kappa+b,\qquad d_+=\kappa+a. \tag*{(62)} L κ ( A ) = ( I κn 0 an × κn 0 κn × bn Δ ( A ) ) , d − = κ + b , d + = κ + a . (62)
With R R R memory labels, we write Λ R ( A ) \Lambda_R(A) Λ R ( A ) for this block acting identically on each memory value. Its entries and the original physical label offsets are specified in Eqs. (B.7) and (B.3). Let C 0 C_0 C 0 be a contraction column of length d − R d_{-R} d − R , let C t C_t C t have size d − R × d + R d_{-R} \times d_{+R} d − R × d + R for 1 ≤ t < Q 1 \le t < Q 1 ≤ t < Q , and let C Q C_Q C Q be a contraction row of length d + R d_{+R} d + R . The product to be implemented is
( C Q ⊗ I n ) Λ R ( A ) ( C Q − 1 ⊗ I n ) ⋯ Λ R ( A ) ( C 0 ⊗ I n ) . (63) (C_Q \otimes I_n)\Lambda_R(A)(C_{Q-1} \otimes I_n)\cdots\Lambda_R(A)(C_0 \otimes I_n). \tag*{(63)} ( C Q ⊗ I n ) Λ R ( A ) ( C Q − 1 ⊗ I n ) ⋯ Λ R ( A ) ( C 0 ⊗ I n ) . (63)
For the window construction, the packing in Eq. (B.12) identifies this product with Eq. (52) . The same implementation will also serve the row factors below.
We now construct a block encoding of each known auxiliary contraction C t C_t C t , so that its selected action becomes a gate in the quantum circuit. Because the entries of C t C_t C t are computed classically, we can also compute its defect matrices and complete all columns of the gate. For a contraction C C C with h 2 h_2 h 2 rows and h 1 h_1 h 1 columns, we use the explicit unitary
J ( C ) = ( C ( I h 2 − C C † ) 1 / 2 ( I h 1 − C † C ) 1 / 2 − C † ) . (64) J(C) =
\begin{pmatrix}
C & (I_{h_2}-CC^\dagger)^{1/2} \\
(I_{h_1}-C^\dagger C)^{1/2} & -C^\dagger
\end{pmatrix}. \tag*{(64)} J ( C ) = ( C ( I h 1 − C † C ) 1/2 ( I h 2 − C C † ) 1/2 − C † ) . (64)
The row groups have lengths h 2 , h 1 h_2,h_1 h 2 , h 1 , while the column groups have lengths h 1 , h 2 h_1,h_2 h 1 , h 2 . The first h 2 h_2 h 2 output coordinates therefore contain C C C applied to the selected h 1 h_1 h 1 input coordinates. This is a rectangular Julia completion, which in the square case is the Halmos dilation [85 Theorems 0–2] . The defect-operator block encoding used by Low and Su [72 Section 2.4] differs only by a known sign on the complementary input columns. We use Eq. (64) because it supplies every column explicitly, accommodates rectangular updates, and is computable with the precision bounds established for our certificate factors.
It is useful to distinguish this single-step completion from a power dilation. A Sz.-Nagy unitary dilation of a square contraction preserves every nonnegative power after compression, and finite N N N -dilations preserve the first N N N powers [71 Theorems 1.1 and 1.3] . A Julia completion guarantees the chosen block for one use: for the scalar contraction c = 0 c=0 c = 0 , J ( 0 ) = ( 1 0 0 1 ) J(0)=\begin{pmatrix}1&0\\0&1\end{pmatrix} J ( 0 ) = ( 1 0 0 1 ) , so J ( 0 ) 2 = I 2 J(0)^2=I_2 J ( 0 ) 2 = I 2 has selected entry one rather than c 2 = 0 c^2=0 c 2 = 0 . The complementary amplitude has returned. Our circuit combines different, possibly rectangular contractions and intervening oracle blocks; recording each first exit will give their required product. After the row groups are embedded on a common padded register, the selected input columns form a Stinespring isometry [88 , 89 ] . Its selected outcome implements ρ ↦ C ρ C † \rho\mapsto C\rho C^\dagger ρ ↦ C ρ C † , and the complementary outcome completes a trace-preserving operation on that register. We retain the outcome information until the final selection to obtain the coherent block product.
We store the processing label in M, use one qubit d to distinguish this output from the Julia complement, and use a register E to record the first failed step. Their widths are
q M = ⌈ log 2 R ⌉ , q d = 1 , q E = ⌈ log 2 ( 2 Q + 1 ) ⌉ . q_M=\lceil\log_2 R\rceil,\qquad q_d=1,\qquad q_E=\lceil\log_2(2Q+1)\rceil. q M = ⌈ log 2 R ⌉ , q d = 1 , q E = ⌈ log 2 ( 2 Q + 1 )⌉ .
All three registers and the supplied oracle register O start at zero; a zero-width memory is omitted. The input on S is arbitrary and may be entangled with an untouched reference. The event value zero denotes the continuing component, and values 1 , … , 2 Q 1,\ldots,2Q 1 , … , 2 Q record the possible first exits from it.
We embed each J ( C t ) J(C_t) J ( C t ) on its specified input and output coordinate lists, obtaining a known full unitary J C t \mathcal{J}_{C_t} J C t . The construction of these lists in Appendix § 12 includes all reverse columns. The known gate G t G_t G t applies J C t \mathcal{J}_{C_t} J C t on E = 0 =0 = 0 and identity on the other event values. For 0 ≤ t < Q 0 \le t < Q 0 ≤ t < Q , D t D_t D t exchanges event zero with 2 t + 1 2t+1 2 t + 1 conditional on d = 1 =1 = 1 . For 1 ≤ t ≤ Q 1 \le t \le Q 1 ≤ t ≤ Q , F t F_t F t exchanges zero with 2 t 2t 2 t conditional on d = 0 =0 = 0 and an oracle output outside the retained list. Each marker fixes all other basis strings. We combine these known gates into
W 0 = D 0 G 0 , W t = D t G t F t ( 1 ≤ t < Q ) , W Q = G Q F Q . W_0=D_0G_0,\qquad W_t=D_tG_tF_t\quad(1\le t<Q),\qquad W_Q=G_QF_Q. W 0 = D 0 G 0 , W t = D t G t F t ( 1 ≤ t < Q ) , W Q = G Q F Q .
Using U ^ A \widehat{U}_A U A for U A U_A U A on O, S and identity on M, d, E, the full circuit is
U A = ( W Q ⊗ I n ) U ^ A ( W Q − 1 ⊗ I n ) ⋯ ( W 1 ⊗ I n ) U ^ A ( W 0 ⊗ I n ) . (65) U_A=(W_Q\otimes I_n)\widehat{U}_A(W_{Q-1}\otimes I_n)\cdots(W_1\otimes I_n)\widehat{U}_A(W_0\otimes I_n). \tag*{(65)} U A = ( W Q ⊗ I n ) U A ( W Q − 1 ⊗ I n ) ⋯ ( W 1 ⊗ I n ) U A ( W 0 ⊗ I n ) . (65)
Every query acts on every event value, whereas the known Julia gates act trivially on values that already record a failure. The fresh labels keep those components separate from the continuing component, whose contribution is selected by requiring O, M, d, E to be zero at the end. This also rejects the last Julia complement. The phase qubit and clean workspace for elementary-gate synthesis are counted in § 4.3 .
Theorem 4.3 (Unitary implementation of a contraction product). For the contractions and coordinate lists above, the all-zero ancillary block of Eq. (65) equals Eq. (63) for every allowed oracle completion. The circuit uses Q Q Q original forward queries and 3 Q + 1 3Q+1 3 Q + 1 known unitary primitives on q O + q M + 1 + q E q_O+q_M+1+q_E q O + q M + 1 + q E non-signal qubits.
Proof. We place the known Julia gates on the designated coordinates and apply them only when the failure register is zero. Their action is identity on the other failure labels. After each of the first Q Q Q Julia gates, a reversible marker swaps label zero with a new odd label on its complementary output. After each query, a second marker swaps zero with a new even label on outputs outside the retained oracle rows.
A marker is a permutation, so its reverse action must also be considered. Immediately before that marker, its new label is unoccupied: earlier markers used different labels, the known gates preserve all occupied nonzero labels, and the raw oracle acts as identity on the failure register. The reverse swap therefore acts on zero amplitude. Once a component is marked, subsequent markers use fresh labels and preserve it. Induction shows that the component with failure label zero follows precisely C 0 C_0 C 0 , the retained query block, C 1 C_1 C 1 , and so on. The final selection also checks the last dilation output. Thus its matrix is Eq. (63) for every oracle completion.
Counting the layers gives Q + 1 Q+1 Q + 1 known Julia gates, Q Q Q markers for their earlier complements, and Q Q Q query markers, for a total of 3 Q + 1 3Q+1 3 Q + 1 known primitives. The circuit contains exactly Q Q Q unconditional calls to the original unitary. The coordinate construction in Appendix § 12 places all of them on the declared registers. □
For Q = 2 Q=2 Q = 2 , Figure 2 places these gates on their physical registers. We denote the selected contraction product in Eq. (63) by K 2 ( A ) K_2(A) K 2 ( A ) in the diagram. The symbol X 0 j X_{0j} X 0 j exchanges the two event values 0 and j j j ; an open control tests the entire zero string of E. The gates F 1 , F 2 F_1,F_2 F 1 , F 2 perform the retained-output test defined above.
Figure 2. The complete two-query matrix-gate circuit. The four ancillary bras specify a joint final zero selection; the signal expression is its unnormalized output. The d d d -controlled transpositions are D 0 , D 1 D_0,D_1 D 0 , D 1 , and the open controls give G 0 , G 1 , G 2 G_0,G_1,G_2 G 0 , G 1 , G 2 . Both oracle calls act on every failure component. When the C t C_t C t are the synthesized target parameters, K 2 ( A ) \mathcal{K}_2(A) K 2 ( A ) is the corresponding polynomial block. Elementary-gate synthesis adds the phase and clean work qubits counted in Theorem B.1 .
The numerical example in Eq. (47) now gives a complete instance of this construction. Its diagonal input has i = 1 i=1 i = 1 , a = b = 2 a=b=2 a = b = 2 and a three-qubit oracle register. With three equal stage weights and Q = 2 Q=2 Q = 2 , the realization of q = ( 1 + x 1 x 2 ) / 4 q=(1+x_1x_2)/4 q = ( 1 + x 1 x 2 ) /4 produces p 0 ( A ) = I n / 4 + A 1 A 2 / 12 p_0(A)=I_n/4+A_1A_2/12 p 0 ( A ) = I n /4 + A 1 A 2 /12 at normalization one. Its multiplicity is m = R = 4 m=R=4 m = R = 4 , so the known factors have sizes 12 × 1 12\times1 12 × 1 , 12 × 12 12\times12 12 × 12 and 1 × 12 1\times12 1 × 12 . Selecting zero on the three oracle qubits, two memory qubits, dilation qubit and three event qubits gives exactly p 0 ( A ) p_0(A) p 0 ( A ) in the ideal circuit. Appendix § 16 supplies the full coordinates and elementary-gate resource bound. This example fixes a convenient normalization to display the computation; the algorithm below also searches for a normalization close to the target norm.
Applying Theorem 4.3 to the matrices in Eq. (61) places the output of Theorem 4.1 in the all-zero ancillary block of a Q Q Q -query circuit. Its processing multiplicity is R R R from Eq. (60) . For a fixed realization, this uses one pending and one collected coordinate independently of Q Q Q ; the failure register and the list of known gates retain their stated dependence on the sequence length.
The synthesis algorithm, resources, and error
Algorithm 1 combines the classical routines with the query construction. Its only additional coefficient operation is degree reweighting. After obtaining B ≤ B ^ ≤ ( 1 + τ / 8 ) B B \le\widehat{B} \le(1+\tau/8)B B ≤ B ≤ ( 1 + τ /8 ) B , we use β = ( 1 + τ / 2 ) B ^ \beta=(1+\tau/2)\widehat{B} β = ( 1 + τ /2 ) B and choose the least N > D N>D N > D with ( N + 1 ) 2 τ ≥ 1024 D 2 (N+1)^2\tau\ge1024D^2 ( N + 1 ) 2 τ ≥ 1024 D 2 . The weights of Lemma 4.2 then define Q = N − 1 Q=N-1 Q = N − 1 and an auxiliary target whose strict norm bound is proved below.
We represent the reweighted polynomial by adding a degree coordinate to the supplied recurrence. In block row and column indices 0 , … , D 0,\ldots,D 0 , … , D , each of length s s s , its transitions and endpoints are
T ~ j = ( 0 T j 0 ⋯ 0 0 0 T j ⋱ ⋮ ⋮ ⋱ ⋱ ⋱ 0 0 ⋯ 0 0 T j 0 ⋯ ⋯ 0 0 ) , ℓ ~ = [ ℓ 0 ⋯ 0 ] , r ~ = ( r 0 / ( β w 0 ) r 0 / ( β w 1 ) ⋮ r 0 / ( β w D ) ) . (66) \widetilde{T}_j =
\begin{pmatrix}
0 & T_j & 0 & \cdots& 0 \\
0 & 0 & T_j & \ddots& \vdots\\
\vdots& \ddots& \ddots& \ddots& 0 \\
0 & \cdots& 0 & 0 & T_j \\
0 & \cdots& \cdots& 0 & 0
\end{pmatrix},
\qquad
\widetilde{\ell}=[\ell\ 0\ \cdots\ 0],
\qquad
\widetilde{r}=
\begin{pmatrix}
r_0/(\beta w_0)\\
r_0/(\beta w_1)\\
\vdots\\
r_0/(\beta w_D)
\end{pmatrix}. \tag*{(66)} T j = 0 0 ⋮ 0 0 T j 0 ⋱ ⋯ ⋯ 0 T j ⋱ 0 ⋯ ⋯ ⋱ ⋱ 0 0 0 ⋮ 0 T j 0 , ℓ = [ ℓ 0 ⋯ 0 ] , r = r 0 / ( β w 0 ) r 0 / ( β w 1 ) ⋮ r 0 / ( β w D ) . (66)
The transition size is ( D + 1 ) s × ( D + 1 ) s (D+1)s \times(D+1)s ( D + 1 ) s × ( D + 1 ) s . Multiplication by the initial row advances along the superdiagonal, so ℓ ~ T ~ w r ~ = c w / ( β w ∣ w ∣ ) \widetilde{\ell}\widetilde{T}_w\widetilde{r}=c_w/(\beta w_{|w|}) ℓ T w r = c w / ( β w ∣ w ∣ ) for ∣ w ∣ ≤ D |w|\le D ∣ w ∣ ≤ D , and all longer coefficients vanish. We call the resulting polynomial q q q . Its degree index belongs to the classical coefficient representation, whose matrices we use to compute the circuit parameters.
Algorithm 1 applies the certificate and contraction routines to this compensated recurrence, then forms the known updates and their full unitary implementation. Only after these exact objects have been specified do we compile the known gates to the requested error.
Proof of the general-input assertion of Theorem 2.1. For D ≥ 1 D\ge1 D ≥ 1 , Theorem 3.6 gives the stated rational norm estimate in polynomial bit time. Its normalization satisfies
B < β ≤ ( 1 + τ / 2 ) ( 1 + τ / 8 ) B ≤ ( 1 + τ ) B . B<\beta\le(1+\tau/2)(1+\tau/8)B\le(1+\tau)B. B < β ≤ ( 1 + τ /2 ) ( 1 + τ /8 ) B ≤ ( 1 + τ ) B .
The chosen N N N is O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) and gives ρ N ≤ τ / 16 \rho_N\le\tau/16 ρ N ≤ τ /16 . Lemma 4.2 therefore proves the strict promise
∥ q ∥ S A , Δ ≤ 1 ( 1 + τ / 2 ) ( 1 − τ / 16 ) ≤ 1 − τ / 4. (67) \lVert q\rVert_{\mathrm{SA},\Delta}
\le\frac{1}{(1+\tau/2)(1-\tau/16)}
\le1-\tau/4. \tag*{(67)} ∥ q ∥ SA , Δ ≤ ( 1 + τ /2 ) ( 1 − τ /16 ) 1 ≤ 1 − τ /4. (67)
For 0 < τ ≤ 1 0<\tau\le1 0 < τ ≤ 1 , the last inequality follows after multiplication by its positive denominator from τ ( 24 − 18 τ + τ 2 ) ≥ 0 \tau(24-18\tau+\tau^2)\ge0 τ ( 24 − 18 τ + τ 2 ) ≥ 0 . This establishes the rational margin required by the strict feasibility subroutine.
Algorithm 1 Classical synthesis for a scalar target under a general joint input
Require: Rational finite-state coefficients ( ℓ , T 1 , … , T k , r 0 ) (\ell,T_1,\ldots,T_k,r_0) ( ℓ , T 1 , … , T k , r 0 ) , joint-oracle metadata, and rational 0 < τ , ϵ < 1 0<\tau,\epsilon<1 0 < τ , ϵ < 1 .
Ensure: A positive rational normalization β \beta β and known layers of a forward-query circuit with selected-block error at most ϵ \epsilon ϵ .
We reduce the coefficient representation and test polynomiality as in Appendix A.§ 3 .
if the representation is not polynomial then
return rejection of the classical input promise
else if the target is zero or constant then
return the corresponding zero-query construction
end if
We determine its true degree D D D by Eq. (A.14).
We compute B ≤ B ^ ≤ ( 1 + τ / 8 ) B B\le\widehat{B}\le(1+\tau/8)B B ≤ B ≤ ( 1 + τ /8 ) B by Theorem 3.6 ; we set β = ( 1 + τ / 2 ) B ^ \beta=(1+\tau/2)\widehat{B} β = ( 1 + τ /2 ) B .
We choose the least N > D N>D N > D with ( N + 1 ) 2 τ ≥ 1024 D 2 (N+1)^{2}\tau\ge1024D^{2} ( N + 1 ) 2 τ ≥ 1024 D 2 ; we set Q = N − 1 Q=N-1 Q = N − 1 .
We compute the rational vector r r r and degree weights w d w_d w d of Lemma 4.2 , then the representation of q q q in Eq. (66) .
We compute residual coordinates for q q q and its strict certificate by Proposition 3.5 , with γ = 1 \gamma=1 γ = 1 and ν = 1 − τ / 4 \nu=1-\tau/4 ν = 1 − τ /4 .
We compute X , Y , T 0 , V X,Y,T_0,V X , Y , T 0 , V by Lemma 3.4 , then M t M_t M t and C t C_t C t by Eqs. (50) and (61) .
We form the complete known layers by Theorem 4.3 and compile them with total operator-norm error at most ϵ \epsilon ϵ by Theorem B.1 .
return β \beta β and the known-layer descriptions, interleaved with Q Q Q calls to the supplied oracle
The reweighted representation has at most ( D + 1 ) s (D+1)s ( D + 1 ) s states, so its residual construction has r ≤ ( D + 1 ) s + 1 r\le(D+1)s+1 r ≤ ( D + 1 ) s + 1 . Lemma 3.4 permits m = b r m=br m = b r and provides polynomial-time certified entry evaluations of V V V . In particular, it proves Eq. (21) for every word, including every coefficient above degree D D D . Theorem 4.1 consequently implements
∑ d = 0 D w d ∑ ∣ w ∣ = d c w β w d A w = p ( A ) / β \sum_{d=0}^{D}w_d\sum_{\lvert w\rvert=d}\frac{c_w}{\beta w_d}A_w=p(A)/\beta d = 0 ∑ D w d ∣ w ∣ = d ∑ β w d c w A w = p ( A ) / β
exactly before the known gates are approximated. The selected output therefore acts on the original signal register.
Each classical matrix in Eq. (66) has polynomial dimension and rational bit length. The norm algorithm, strict search, and matrix extraction have polynomial bit complexity in those data and log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) . Computing the Q + 1 Q+1 Q + 1 updates and compiling them is polynomial also in Q Q Q . Theorem 4.3 gives the full unitary circuit; Theorem B.1 in Appendix § 12 .§ 3.2 supplies its known-gate count and uniform error. The ideal registers use q o + ⌈ log 2 R ⌉ + 1 + ⌈ log 2 ( 2 Q + 1 ) ⌉ q_o+\lceil\log_2 R\rceil+1+\lceil\log_2(2Q+1)\rceil q o + ⌈ log 2 R ⌉ + 1 + ⌈ log 2 ( 2 Q + 1 )⌉ qubits, and elementary-gate compilation adds at most a constant multiple of this width. All known gate parameters are computed from the target description and the joint-encoding data. If the oracle is implemented inexactly, Corollary 4.4 adds its designated-block error separately.
For a scalar constant c ≠ 0 c\ne0 c = 0 , rational bisection of ∣ c ∣ \lvert c\rvert ∣ c ∣ gives a rational β \beta β in the required interval. The known 2 × 2 2\times2 2 × 2 Julia matrix of the scalar c / β c/\beta c / β , acting on one ancillary qubit, has the desired selected block and requires no oracle call. For the zero polynomial, a Pauli X X X on a selected ancillary qubit gives a zero selected block; any fixed positive normalization may be reported. These cases are separated before the residual construction, completing the general assertion.
The register and supported-gate constructions give the ancillary bound
q a n c = O ( q o + log ( ( Q + 1 ) R ) ) , R = max { m , ⌈ 2 / i ⌉ } , m ≤ b ( ( D + 1 ) s + 1 ) . (68) q_{\mathrm{anc}} = O\bigl(q_o + \log((Q+1)R)\bigr), \qquad R = \max\{m,\lceil2/i\rceil\}, \qquad m \le b\bigl((D+1)s+1\bigr). \tag*{(68)} q anc = O ( q o + log (( Q + 1 ) R ) ) , R = max { m , ⌈ 2/ i ⌉} , m ≤ b ( ( D + 1 ) s + 1 ) . (68)
Here q a n c q_{\mathrm{anc}} q anc includes the supplied oracle register and the clean workspace for elementary gates; R R R counts processing labels. Addressing a physical oracle label costs polynomially in its q o q_o q o -bit width, rather than in 2 q o 2^{q_o} 2 q o . Theorem B.1 gives the support-dependent gate count. Its full-unitary error telescope also permits errors in the designated query block, as follows.
Corollary 4.4 (Error in the encoded block). If the t t t th implemented unitary query has a designated submatrix differing from Eq. (10) by at most η t \eta_t η t , then the circuit with exact known gates differs from Eq. (63) by at most ∑ t = 1 Q η t \sum_{t=1}^{Q}\eta_t ∑ t = 1 Q η t . Known-gate synthesis adds ϵ g \epsilon_g ϵ g , so a uniform bound η t ≤ η o \eta_t \le\eta_o η t ≤ η o gives total error at most Q η o + ϵ g Q\eta_o+\epsilon_g Q η o + ϵ g .
Proof. The markers in Theorem 4.3 test membership in the designated coordinates. They therefore implement the product of the actual compressed query matrices, each of which is a contraction. A product telescope bounds the change caused by each designated submatrix by η t \eta_t η t . The same full-unitary telescope used in Theorem B.1 , now with the actual queries, pays for the known-gate error. The retained corner is a further input and output compression of the full designated corner in Eq. (10) , so its error is at most η t \eta_t η t . The estimate permits arbitrary compatible completions and includes the same stated error in the designated identity block. The separate constant and zero constructions use no query and hence incur only their known-gate error.
For a scalar circuit with total ancillary width q a n c q_{\mathrm{anc}} q anc , the embedding J 0 = ∣ 0 q a n c ⟩ ⊗ I n J_0 = \lvert0^{q_{\mathrm{anc}}}\rangle\otimes I_n J 0 = ∣ 0 q anc ⟩ ⊗ I n specifies the selected input and output subspace. An exact block M = J 0 † U A J 0 = p ( A ) / β M = J_0^\dagger U_A J_0 = p(A)/\beta M = J 0 † U A J 0 = p ( A ) / β succeeds on a unit input ψ \psi ψ with probability
p s u c c ( ψ ) = ∥ p ( A ) ψ ∥ 2 / β 2 . (69) p_{\mathrm{succ}}(\psi) = \lVert p(A)\psi\rVert^2/\beta^2. \tag*{(69)} p succ ( ψ ) = ∥ p ( A ) ψ ∥ 2 / β 2 . (69)
At β = 1 \beta=1 β = 1 , success is determined entirely by the norm of the target output on the chosen input. For example, the norm-one row polynomial in Example B.2 vanishes when both input matrices vanish, and its success probability is then zero. A unitary target behaves differently: because it preserves every input norm, accuracy of its selected block also controls the complete output state. The next lemma derives this relation directly from the columns of the circuit unitary.
Lemma 4.5 (Coherent use of a unitary target). Let U U U be a unitary of order 2 q a n c n 2^{q_{\mathrm{anc}}}n 2 q anc n , with selected block M = J 0 † U J 0 M=J_0^\dagger UJ_0 M = J 0 † U J 0 , and let V t a r V_{\mathrm{tar}} V tar be an n × n n\times n n × n unitary. If ∥ M − V t a r ∥ ≤ δ ≤ 1 \lVert M-V_{\mathrm{tar}}\rVert\le\delta\le1 ∥ M − V tar ∥ ≤ δ ≤ 1 , then
∥ U J 0 − J 0 V t a r ∥ ≤ 2 δ , p s u c c ( ψ ) ≥ ( 1 − δ ) 2 (70) \lVert UJ_0-J_0V_{\mathrm{tar}}\rVert\le\sqrt{2\delta}, \qquad p_{\mathrm{succ}}(\psi)\ge(1-\delta)^2 \tag*{(70)} ∥ U J 0 − J 0 V tar ∥ ≤ 2 δ , p succ ( ψ ) ≥ ( 1 − δ ) 2 (70) for every unit input, including any entangled reference. At δ = 0 \delta=0 δ = 0 , the ancillary registers return to zero and no postselection is required.
Proof. Both U J 0 UJ_0 U J 0 and J 0 V t a r J_0V_{\mathrm{tar}} J 0 V tar have orthonormal columns. Their difference E c o l E_{\mathrm{col}} E col therefore satisfies
E c o l † E c o l = 2 I n − M † V t a r − V t a r † M = − ( M − V t a r ) † V t a r − V t a r † ( M − V t a r ) , E_{\mathrm{col}}^\dagger E_{\mathrm{col}} = 2I_n - M^\dagger V_{\mathrm{tar}} - V_{\mathrm{tar}}^\dagger M = -(M-V_{\mathrm{tar}})^\dagger V_{\mathrm{tar}} - V_{\mathrm{tar}}^\dagger(M-V_{\mathrm{tar}}), E col † E col = 2 I n − M † V tar − V tar † M = − ( M − V tar ) † V tar − V tar † ( M − V tar ) ,
whose norm is at most 2 δ 2\delta 2 δ . Also ∥ M ψ ∥ ≥ 1 − δ \lVert M\psi\rVert\ge1-\delta ∥ M ψ ∥ ≥ 1 − δ , which proves the success bound. The same identities hold after tensoring with the reference identity. At zero error the first norm vanishes, giving the asserted full output state.
For Hamiltonian simulation, Martyn et al. formulate full coherence as accurate evolution with success approaching one on a single copy of the input [74 Definition 2, Section II.3] . The same operational interpretation applies here through Eq. (70) . If B = 1 B = 1 B = 1 and p ( A ) p(A) p ( A ) is unitary on the application inputs, the near-optimal normalization gives block distance at most 1 − 1 / β + ϵ 1 - 1/\beta+ \epsilon 1 − 1/ β + ϵ from p ( A ) p(A) p ( A ) , which tends to zero with τ , ϵ \tau, \epsilon τ , ϵ . For the general input model, attaining this limit carries the stated τ − 1 / 2 \tau^{-1/2} τ − 1/2 query dependence. A supplied exact boundary circuit attains the zero-error case directly. Appendix § 16 .§ 1 treats a nonunitary target, where success is controlled by a separate lower singular-value estimate.
The polynomial circuit can also be applied to an effectively computed approximation of a matrix function. Appendix § 16 .§ 1 gives a compact noncommutative example, including its truncation and success bounds. We turn next to the stronger factorization available for a row input.
Synthesis with one row query per degree
A row input Δ ( A ) = [ A 1 ⋯ A k ] \Delta(A) = [A_1 \ \cdots\ A_k] Δ ( A ) = [ A 1 ⋯ A k ] gives us more control over the combination of terms: one query applies the different letters on different input labels and adds their contributions in a common output label. We exploit this structure to replace the weighted sequence by a factorization with exactly D D D queries, independently of the normalization margin. The factorization must preserve the joint norm as each degree is removed.
The certificate supplies the needed invariant by completing p / β p/\beta p / β to a column of polynomials. Its coefficient correlations describe an isometry on word coefficients, as in the row-isometric models of Popescu [81 , 82 ] . Those correlations make the highest-degree output range orthogonal to the constant output. We can therefore separate these ranges, remove one initial letter from the former, and reconstruct the original column with one row query. We first prove this step, then compute its ranges from the finite-state description.
A complementary list for p / β p/\beta p / β consists of scalar polynomials θ 1 , … , θ q \theta_1, \ldots, \theta_q θ 1 , … , θ q , with θ 1 = p / β \theta_1 = p/\beta θ 1 = p / β . For each word w w w , their scalar coefficients form the numerical column
θ w = ( θ 1 , w ⋮ θ q , w ) . (71) \theta_w =
\begin{pmatrix}
\theta_{1,w}\\
\vdots\\
\theta_{q,w}
\end{pmatrix}. \tag*{(71)} θ w = θ 1 , w ⋮ θ q , w . (71)
The required norm-preserving condition is the following set of finite coefficient correlations:
Γ ∅ = ∑ w θ w † θ w = 1 , Γ u = ∑ w θ w † θ w u = 0 ( u ≠ ∅ ) . (72) \Gamma_{\varnothing} = \sum_w \theta_w^\dagger\theta_w = 1,\qquad
\Gamma_u = \sum_w \theta_w^\dagger\theta_{wu} = 0 \quad(u \ne\varnothing). \tag*{(72)} Γ ∅ = w ∑ θ w † θ w = 1 , Γ u = w ∑ θ w † θ w u = 0 ( u = ∅ ) . (72)
We call such a finite list inner , following the isometric inner-multiplier condition on free words [83 ] . The first identity fixes the total coefficient norm, and the others cancel overlaps between coefficients at words related by an appended suffix. The convolution matrix below makes this norm-preserving condition precise.
The correlation identities have a concrete matrix interpretation that will also explain how the SA certificate supplies them. If the degree is at most d d d , we give its convolution matrix columns indexed by words of length at most d d d and rows indexed by a component ℓ \ell ℓ and a word of length at most 2 d 2d 2 d . At row ( ℓ , v ) (\ell,v) ( ℓ , v ) and column w w w , its entry is θ ℓ , w \theta_{\ell,w} θ ℓ , w when v = u w v = uw v = u w , and is zero if no such u u u exists. The Gram of this matrix is identity exactly when Eq. (72) holds: two suffix-incomparable column words have disjoint row supports, while for suffix-comparable words their inner product is Γ u \Gamma_u Γ u or its conjugate. Every correlation is tested against the empty column word. The isometry here is a property of coefficient convolution; evaluation on an allowed tuple gives a contractive polynomial column. We will verify the correlations through state Grams, keeping the calculation in the compact representation.
For the row block, the target-derived certificate supplies a complementary list directly. We use its normalized form
E † E − P † P / β 2 = S + Φ ( T ) , S , T ⪰ 0 , (73) E^\dagger E - P^\dagger P/\beta^2 = S + \Phi(T), \qquad S,T \succeq0, \tag*{(73)} E † E − P † P / β 2 = S + Φ ( T ) , S , T ⪰ 0 , (73)
where P P P still denotes the coordinates of the unnormalized polynomial p p p . We compute S , T S,T S , T for the normalized target p / β p/\beta p / β in this subsection. A full square factor G = S 1 / 2 G = S^{1/2} G = S 1/2 gives the scalar polynomials
θ 1 ( x ) = p ( x ) / β , θ 1 + ℓ ( x ) = ∑ t G ℓ t g t ( x ) . \theta_1(x) = p(x)/\beta, \qquad\theta_{1+\ell}(x) = \sum_t G_{\ell t}g_t(x). θ 1 ( x ) = p ( x ) / β , θ 1 + ℓ ( x ) = t ∑ G ℓ t g t ( x ) .
We show that these coefficients satisfy Eq. (72) using a finite matrix argument. We use the explicit word matrices S j ( L ) S_j^{(L)} S j ( L ) from the proof of Theorem 3.2 , now with cutoff L = 2 D L = 2D L = 2 D and scale one. Their combined row is a contraction, and ( S j ( L ) ) † S ℓ ( L ) = δ j ℓ P < L (S_j^{(L)})^\dagger S_\ell^{(L)} = \delta_{j\ell}P_{<L} ( S j ( L ) ) † S ℓ ( L ) = δ j ℓ P < L , where P < L P_{<L} P < L is the diagonal matrix selecting words shorter than L L L . Each auxiliary h α , ℓ h_{\alpha,\ell} h α , ℓ in Eq. (37) has degree at most D − 1 D-1 D − 1 . On an input word of length at most D D D , its output therefore has length at most 2 D − 1 2D-1 2 D − 1 , and the query defect in Eq. (37) vanishes on that output. The certificate consequently says that the finite convolution matrix of the complementary list, restricted to these input columns, has Gram identity. The equivalence following Eq. (72) proves the desired correlations. The compact Gram calculation in Appendix § 12 .§ 3.4 computes the same coefficient identities from the state recurrence.
We now factor this list so that each factor can be implemented by one row query. The highest-degree coefficient columns identify the part of the output that must contain at least one more input matrix. Projecting onto that part and removing an initial letter lowers the degree; the complementary part remains on the identity coordinate. The following update carries out this separation while preserving the coefficient correlations.
For a current complementary list of degree d ≥ 1 d \ge1 d ≥ 1 , we choose a numerical q × e q \times e q × e matrix Z Z Z with orthonormal columns spanning its degree-d d d coefficient columns, and put Π = Z Z † \Pi= ZZ^\dagger Π = Z Z † . The proposed reduced coefficients are
ψ w = ( ( I q − Π ) θ w Z † θ 1 w ⋮ Z † θ k w ) , ψ w has q + k e entries . (74) \psi_w =
\begin{pmatrix}
(I_q-\Pi)\theta_w\\
Z^\dagger\theta_{1w}\\
\vdots\\
Z^\dagger\theta_{kw}
\end{pmatrix},
\qquad\psi_w\text{ has }q+ke\text{ entries}. \tag*{(74)} ψ w = ( I q − Π ) θ w Z † θ 1 w ⋮ Z † θ k w , ψ w has q + k e entries . (74)
To express their reconstruction, we use the q × ( q + k e ) q \times(q+ke) q × ( q + k e ) numerical matrices
B 0 = [ I q − Π 0 ⋯ 0 ] , B j = [ 0 ⋯ Z ⋯ 0 ] , B_0 = [I_q-\Pi\ \ 0\ \cdots\ 0], \qquad B_j = [0\ \cdots\ Z\ \cdots\ 0], B 0 = [ I q − Π 0 ⋯ 0 ] , B j = [ 0 ⋯ Z ⋯ 0 ] ,
where Z Z Z occupies the j j j th e e e -column block after the first q q q columns. This is a finite-degree factorization of an inner free multiplier, in the setting described by Popescu [83 ] . We prove the coefficient update below and then identify the corresponding input and output matrices for a single row query.
Lemma 4.6 (One degree-reducing coefficient step). If the degree-d d d list satisfies Eq. (72) , the coefficients in Eq. (74) satisfy the same correlations, have degree at most d − 1 d-1 d − 1 , and obey
θ ∅ = B 0 ψ ∅ , θ j w = B 0 ψ j w + B j ψ w . (75) \theta_{\varnothing} = B_0\psi_{\varnothing}, \qquad\theta_{jw} = B_0\psi_{jw} + B_j\psi_w. \tag*{(75)} θ ∅ = B 0 ψ ∅ , θ j w = B 0 ψ j w + B j ψ w . (75)
Proof. For a word u u u of length d d d , the only nonzero term in Γ u \Gamma_u Γ u can be θ ∅ † θ u \theta_{\varnothing}^{\dagger}\theta_u θ ∅ † θ u , so Π θ u = 0 \Pi\theta_u=0 Π θ u = 0 . The first block of Eq. (74) removes the entire degree-d d d coefficient range, and each later block takes a left residual. Hence the new list has degree at most d − 1 d-1 d − 1 . For the empty coefficient, B 0 ψ ∅ = ( I − Π ) θ ∅ = θ ∅ B_0\psi_{\varnothing}=(I-\Pi)\theta_{\varnothing}=\theta_{\varnothing} B 0 ψ ∅ = ( I − Π ) θ ∅ = θ ∅ . For j w jw j w , its two contributions are ( I − Π ) θ j w (I-\Pi)\theta_{jw} ( I − Π ) θ j w and Π θ j w \Pi\theta_{jw} Π θ j w , proving Eq. (75) .
The inner correlations are preserved by a direct coefficient calculation. For every word u u u , including the empty word, we have
∑ w ψ w † ψ w u = ∑ w θ w † ( I − Π ) θ w u + ∑ j , w θ j w † Π θ j w u = ∑ w θ w † θ w u − θ ∅ † Π θ u = Γ u . \begin{aligned}
\sum_w \psi_w^\dagger\psi_{wu} = \sum_w \theta_w^\dagger(I-\Pi)\theta_{wu} + \sum_{j,w} \theta_{jw}^\dagger\Pi\theta_{jwu} \\
&= \sum_w \theta_w^\dagger\theta_{wu} - \theta_{\varnothing}^\dagger\Pi\theta_u = \Gamma_u.
\end{aligned} w ∑ ψ w † ψ w u = w ∑ θ w † ( I − Π ) θ w u + j , w ∑ θ j w † Π θ j w u = w ∑ θ w † θ w u − θ ∅ † Π θ u = Γ u .
The second sum in the first line covers each nonempty prefix word exactly once, and the last equality uses Π θ ∅ = 0 \Pi\theta_{\varnothing}=0 Π θ ∅ = 0 . The updated coefficients therefore satisfy the same correlation identities, allowing us to repeat the reduction until a constant numerical column of norm one remains.
A mixed-degree example illustrates the separation. For two variables we take
θ ( x ) = 1 2 ( 1 + x 1 x 2 1 − x 1 x 2 ) , Z = 1 2 ( 1 − 1 ) , Π = 1 2 ( 1 − 1 − 1 1 ) . (76) \theta(x)=\frac{1}{2}\begin{pmatrix}1+x_1x_2\\1-x_1x_2\end{pmatrix},\qquad
Z=\frac{1}{\sqrt{2}}\begin{pmatrix}1\\-1\end{pmatrix},\qquad
\Pi=\frac{1}{2}\begin{pmatrix}1&-1\\-1&1\end{pmatrix}. \tag*{(76)} θ ( x ) = 2 1 ( 1 + x 1 x 2 1 − x 1 x 2 ) , Z = 2 1 ( 1 − 1 ) , Π = 2 1 ( 1 − 1 − 1 1 ) . (76)
Its constant and quadratic coefficient columns are orthogonal and each has squared norm 1 / 2 1/2 1/2 , which verifies the inner correlations. The degree-reducing step gives
ψ ( x ) = ( 1 / 2 1 / 2 x 2 / 2 0 ) . \psi(x)=\begin{pmatrix}1/2\\1/2\\x_2/\sqrt{2}\\0\end{pmatrix}. ψ ( x ) = 1/2 1/2 x 2 / 2 0 .
The first two entries carry the constant contribution through the identity label. The third acquires x 1 x_1 x 1 in the active row query and is sent by Z Z Z to the opposite signs of the two outputs. Thus the same factor reconstructs both the sum and difference in Eq. (76) . A second reduction removes x 2 x_2 x 2 , giving a two-query realization. In the circuit, the last factor found is applied first: the active contributions acquire A 2 A_2 A 2 and then A 1 A_1 A 1 , yielding the product A 1 A 2 A_1A_2 A 1 A 2 . At A 1 = A 2 = 0 A_1=A_2=0 A 1 = A 2 = 0 the evaluated column has norm 1 / 2 1/\sqrt{2} 1/ 2 , illustrating why the invariant concerns coefficient convolution rather than the norm of each matrix evaluation.
The coefficient recovery now identifies the matrix that one query must implement. Writing θ ( A ) = ∑ w θ w ⊗ A w \theta(A)=\sum_w\theta_w\otimes A_w θ ( A ) = ∑ w θ w ⊗ A w and ψ ( A ) = ∑ w ψ w ⊗ A w \psi(A)=\sum_w\psi_w\otimes A_w ψ ( A ) = ∑ w ψ w ⊗ A w for the two polynomial columns, we have
θ ( A ) = ( B 0 ⊗ I n + ∑ j = 1 k B j ⊗ A j ) ψ ( A ) . (77) \theta(A)=\left(B_0\otimes I_n+\sum_{j=1}^{k}B_j\otimes A_j\right)\psi(A). \tag*{(77)} θ ( A ) = ( B 0 ⊗ I n + j = 1 ∑ k B j ⊗ A j ) ψ ( A ) . (77)
We route the first q q q coordinates through the identity label and the j j j th residual block through active input j j j , after applying its frame Z Z Z . The active contributions reach one common output label, where they lie in the range of Π \Pi Π ; the identity contribution lies in its orthogonal complement.
We use the first physical identity label and all k k k active input labels, so κ = 1 \kappa=1 κ = 1 , d − = k + 1 d_-=k+1 d − = k + 1 , and d + = 2 d_+=2 d + = 2 in § 4.2 . The active labels remain at their original offsets i , … , i + k − 1 i,\ldots,i+k-1 i , … , i + k − 1 . For any memory size R ∗ ≥ q R_* \ge q R ∗ ≥ q , the preparation and collection matrices described in Appendix § 12 .§ 3.3 have sizes
E Z : ( k + 1 ) R ∗ × ( q + k e ) , R Z : q × 2 R ∗ . E_Z:(k+1)R_* \times(q+ke),\qquad R_Z:q\times2R_*. E Z : ( k + 1 ) R ∗ × ( q + k e ) , R Z : q × 2 R ∗ .
Their column and row Grams are E Z † E Z = diag ( I q − Π , I k e ) E_Z^\dagger E_Z=\operatorname{diag}(I_q-\Pi,I_{ke}) E Z † E Z = diag ( I q − Π , I k e ) and R Z R Z † = I q R_ZR_Z^\dagger=I_q R Z R Z † = I q . The block entries in Eq. (B.15) give
B 0 ⊗ I n + ∑ j = 1 k B j ⊗ A j = ( R Z ⊗ I n ) Λ R ∗ ( A ) ( E Z ⊗ I n ) . (78) B_0\otimes I_n+\sum_{j=1}^{k}B_j\otimes A_j=(R_Z\otimes I_n)\Lambda_{R_*}(A)(E_Z\otimes I_n). \tag*{(78)} B 0 ⊗ I n + j = 1 ∑ k B j ⊗ A j = ( R Z ⊗ I n ) Λ R ∗ ( A ) ( E Z ⊗ I n ) . (78)
Both endpoint matrices are contractions, so Theorem 4.3 realizes the recovery step with one call to the original row oracle. Repeated reduction leaves a constant unit column after at most D D D steps. Starting with that column, the circuit applies the factors in reverse reduction order and selects the original first polynomial at the end; Eq. (B.17) records the chronological matrices. It remains to compute the frames Z Z Z efficiently and bound a common processing size R ∗ R_\ast R ∗ .
We next compute the highest-degree coefficient range from the compact description. This range is all that the coefficient step needs from the degree-d d d terms; listing those terms individually is unnecessary. We keep the transition coordinates fixed and identify the output directions removed at each step through a Gram matrix of their future responses. We assume that the current input list is specified by rational matrices N j N_j N j of order s 0 s_0 s 0 , rational columns b j b_j b j of length s 0 s_0 s 0 , a q 0 × s 0 q_0 \times s_0 q 0 × s 0 output matrix O O O , and a column d 0 d_0 d 0 of length q 0 q_0 q 0 :
θ ∅ = d 0 , θ j 1 ⋯ j t = O N j 1 ⋯ N j t − 1 b j t ( t ≥ 1 ) . (79) \theta_{\emptyset}=d_0,\qquad\theta_{j_1\cdots j_t}=ON_{j_1}\cdots N_{j_{t-1}}b_{j_t}\quad(t\ge1). \tag*{(79)} θ ∅ = d 0 , θ j 1 ⋯ j t = O N j 1 ⋯ N j t − 1 b j t ( t ≥ 1 ) . (79)
For a word w = j 1 ⋯ j t w=j_1\cdots j_t w = j 1 ⋯ j t , we write N w = N j 1 ⋯ N j t N_w=N_{j_1}\cdots N_{j_t} N w = N j 1 ⋯ N j t and N ∅ = I s 0 N_{\emptyset}=I_{s_0} N ∅ = I s 0 . We require entry evaluators for O , d 0 O,d_0 O , d 0 and their exact rational joint Gram [ O d 0 ] † [ O d 0 ] [O\ d_0]^\dagger[O\ d_0] [ O d 0 ] † [ O d 0 ] . This permits exact support decisions even when the output entries contain square roots. Rational reachability and observability reduction, detailed in Appendix A, makes the columns N w b j N_wb_j N w b j span the state space and removes the common kernel of all O N w ON_w O N w . For a reduced degree-d d d polynomial list, the transitions are then jointly nilpotent of index d d d .
For a state-coordinate column x x x , the total squared output response is ∑ w ∥ O N w x ∥ 2 \sum_w\lVert ON_wx\rVert^2 ∑ w ∥ O N w x ∥ 2 . We collect this quantity in the observability Gram
H = O † O + ∑ j N j † H N j = ∑ ∣ w ∣ < d N w † O † O N w ≻ 0. (80) H=O^\dagger O+\sum_jN_j^\dagger HN_j=\sum_{\lvert w\rvert<d}N_w^\dagger O^\dagger ON_w\succ0. \tag*{(80)} H = O † O + j ∑ N j † H N j = ∣ w ∣ < d ∑ N w † O † O N w ≻ 0. (80)
Iteration from zero computes this rational s 0 × s 0 s_0\times s_0 s 0 × s 0 matrix in at most d d d updates. We also compute rational bases U ℓ U_\ell U ℓ for span { N w x : ∣ w ∣ = ℓ − 1 } \operatorname{span}\{N_wx:\lvert w\rvert=\ell-1\} span { N w x : ∣ w ∣ = ℓ − 1 } , with U 1 = I s 0 U_1=I_{s_0} U 1 = I s 0 and U d + 1 U_{d+1} U d + 1 empty. The ranges are nested because an additional transition reduces the set of reachable directions, and nilpotence makes the last range zero. At stage t t t , the directions in U d − t + 1 U_{d-t+1} U d − t + 1 have already been removed from the output; the next coefficient range comes from U d − t U_{d-t} U d − t . We choose R t R_t R t to complete the former basis to the latter and write e t e_t e t for its number of columns. To evaluate the response of a remaining direction independently of representatives that differ by an eliminated one, we minimize the original quadratic form:
x † H t x = min z ( x − U d − t + 1 z ) † H ( x − U d − t + 1 z ) . x^\dagger H_tx=\min_z(x-U_{d-t+1}z)^\dagger H(x-U_{d-t+1}z). x † H t x = z min ( x − U d − t + 1 z ) † H ( x − U d − t + 1 z ) .
Completing the square gives the rational shorted matrix [9 ]
H t = H − H U d − t + 1 ( U d − t + 1 † H U d − t + 1 ) − 1 U d − t + 1 † H , (81) H_t=H-HU_{d-t+1}(U_{d-t+1}^\dagger HU_{d-t+1})^{-1}U_{d-t+1}^\dagger H, \tag*{(81)} H t = H − H U d − t + 1 ( U d − t + 1 † H U d − t + 1 ) − 1 U d − t + 1 † H , (81)
where the subtracted term is zero if U d − t + 1 U_{d-t+1} U d − t + 1 has no columns. In particular, H t ⪰ 0 H_t\succeq0 H t ⪰ 0 and its kernel is ran U d − t + 1 \operatorname{ran}U_{d-t+1} ran U d − t + 1 . Starting with O 0 = O O_0=O O 0 = O and the supplied d 0 d_0 d 0 , we translate Eq. (74) into the following updates for 0 ≤ t < d 0\le t<d 0 ≤ t < d :
K t = R t † H t R t , Z t = O t R t K t − 1 / 2 , Π t = Z t Z t † , O t + 1 = ( ( I − Π t ) O t Z t † O t N 1 ⋮ Z t † O t N k ) , d t + 1 = ( ( I − Π t ) d t Z t † O t b 1 ⋮ Z t † O t b k ) . (82) \begin{aligned}
K_t&=R_t^\dagger H_tR_t,\qquad Z_t=O_tR_tK_t^{-1/2},\qquad\Pi_t=Z_tZ_t^\dagger,\\
O_{t+1}&=
\begin{pmatrix}
(I-\Pi_t)O_t\\
Z_t^\dagger O_tN_1\\
\vdots\\
Z_t^\dagger O_tN_k
\end{pmatrix},
\qquad
d_{t+1}=
\begin{pmatrix}
(I-\Pi_t)d_t\\
Z_t^\dagger O_tb_1\\
\vdots\\
Z_t^\dagger O_tb_k
\end{pmatrix}. \tag*{(82)}
\end{aligned} K t O t + 1 = R t † H t R t , Z t = O t R t K t − 1/2 , Π t = Z t Z t † , = ( I − Π t ) O t Z t † O t N 1 ⋮ Z t † O t N k , d t + 1 = ( I − Π t ) d t Z t † O t b 1 ⋮ Z t † O t b k . (82)
The transition matrices N j N_j N j and final-letter columns b j b_j b j stay fixed. The first block retains the part of the current output orthogonal to the range of Π t \Pi_t Π t , while each later block removes an initial letter by multiplying O t O_t O t by its transition or final-letter column. Thus the decrease in polynomial degree is carried by the changing output pair. If O t O_t O t has q t q_t q t rows, then Z t Z_t Z t has q t q_t q t rows and e t e_t e t columns, and both updated outputs have q t + 1 = q t + k e t q_{t+1}=q_t+ke_t q t + 1 = q t + k e t rows. For e t = 0 e_t=0 e t = 0 , the inverse-root and appended variable blocks are absent. Otherwise the next proof establishes K t ≻ 0 K_t\succ0 K t ≻ 0 and identifies H t H_t H t with the current response Gram; these facts justify both the frame and the use of the original rational data to compute it.
Theorem 4.7 (Efficient synthesis from a complementary list). A degree-d d d inner list, with d ≥ 1 d\ge1 d ≥ 1 , satisfying the rational-Gram input assumptions of Eq. (79) can be synthesized with d d d forward row queries and processing multiplicity R ∗ = q 0 + k s 0 R_\ast=q_0+ks_0 R ∗ = q 0 + k s 0 . Its selected block is the first polynomial of the list. The preparation and collection matrices determined by Eqs. (81) and (82) have polynomial-time entry evaluators; finite-gate synthesis for rational 0 < ϵ < 1 0<\epsilon<1 0 < ϵ < 1 is polynomial in the supplied description, oracle width, and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) .
Proof. We prove that the remaining metric is the Gram of the current output responses:
H t = ∑ w N w † O t † O t N w . (83) H_t=\sum_w N_w^\dagger O_t^\dagger O_tN_w. \tag*{(83)} H t = w ∑ N w † O t † O t N w . (83)
At t = 0 t=0 t = 0 this is Eq. (80) . Assuming it at stage t t t , every N j R t N_jR_t N j R t lies in ran U d − t + 1 = ker H t \operatorname{ran}U_{d-t+1}=\ker H_t ran U d − t + 1 = ker H t . The positive terms of the sum then give
H t R t = O t † O t R t , K t = ( O t R t ) † ( O t R t ) ≻ 0. H_tR_t=O_t^\dagger O_tR_t,\qquad K_t=(O_tR_t)^\dagger(O_tR_t)\succ0. H t R t = O t † O t R t , K t = ( O t R t ) † ( O t R t ) ≻ 0.
The last inequality follows because R t R_t R t is independent modulo the kernel, so Z t Z_t Z t has orthonormal columns.
Its range is precisely the highest-degree coefficient range. Indeed, each state column is a linear combination of N v b j N_vb_j N v b j by reachability. In O t N w x O_tN_wx O t N w x with ∣ w ∣ = d − t − 1 \lvert w\rvert=d-t-1 ∣ w ∣ = d − t − 1 , every term with nonempty v v v lies in the already removed range and vanishes. The remaining columns O t N w b j O_tN_wb_j O t N w b j are exactly the coefficients of degree d − t d-t d − t . Thus O t U d − t O_tU_{d-t} O t U d − t spans those coefficients, and O t R t O_tR_t O t R t spans the same space because O t O_t O t kills U d − t + 1 U_{d-t+1} U d − t + 1 . Lemma 4.6 consequently applies to the computed frame.
To propagate the invariant, we express the removed output energy as B t = O t † Π t O t B_t=O_t^\dagger\Pi_tO_t B t = O t † Π t O t ; the coefficient update then gives
O t + 1 † O t + 1 = O t † O t − B t + ∑ j N j † B t N j . O_{t+1}^\dagger O_{t+1}=O_t^\dagger O_t-B_t+\sum_jN_j^\dagger B_tN_j. O t + 1 † O t + 1 = O t † O t − B t + j ∑ N j † B t N j .
Summing its congruences by all N w N_w N w cancels every nonempty-word contribution of B t B_t B t , leaving H t − B t H_t-B_t H t − B t . The identity H t R t = O t † O t R t H_tR_t=O_t^\dagger O_tR_t H t R t = O t † O t R t also gives
B t = H t R t ( R t † H t R t ) − 1 R t † H t . B_t=H_tR_t(R_t^\dagger H_tR_t)^{-1}R_t^\dagger H_t. B t = H t R t ( R t † H t R t ) − 1 R t † H t .
Subtracting this matrix minimizes the current quadratic form over the additional directions R t R_t R t . Successive minimization over the nested spaces therefore equals minimization over U d − t U_{d-t} U d − t , which is the definition of H t + 1 H_{t+1} H t + 1 . This proves Eq. (83) at the next stage.
After d d d stages, H d = 0 H_d=0 H d = 0 , hence O d = 0 O_d=0 O d = 0 and innerness gives d d † d d = 1 d_d^\dagger d_d=1 d d † d d = 1 . The removed ranks telescope:
∑ t = 0 d − 1 e t = s 0 , q t = q 0 + k ∑ j < t e j ≤ q 0 + k s 0 . \sum_{t=0}^{d-1}e_t=s_0,\qquad q_t=q_0+k\sum_{j<t}e_j\le q_0+ks_0. t = 0 ∑ d − 1 e t = s 0 , q t = q 0 + k j < t ∑ e j ≤ q 0 + k s 0 .
A single memory of this size accommodates every row factor. Applying those factors in reverse reduction order gives the d d d -query circuit in Eq. (B.17).
All bases and metrics are computed from the original rational state data. Appendix § 12 .§ 3.4 proves polynomial bit bounds for their entries, the positive eigenvalues of K t K_t K t , and the guarded evaluations of O t O_t O t , d t d_t d t , Z t Z_t Z t . Theorem B.1 then supplies the finite gate list. Thus neither the coefficient spans nor the output factors require a word table.
We apply this theorem to the complement already obtained from the certificate. The numerical matrix T j g T_j^g T j g of order h h h has its block row ( j , 1 ) , … , ( j , r ) (j,1),\ldots,(j,r) ( j , 1 ) , … , ( j , r ) equal to J J J and every other row zero. With e 0 e_0 e 0 the first coordinate column of length h h h , the coefficients of the list g g g are T j g e 0 T_j^g e_0 T j g e 0 . This follows directly from Eq. (30) and the residual identities. The matrices T j g T_j^g T j g are jointly nilpotent. Writing P P P for the target coordinate row in Eq. (31) , the numerical output matrix for the complementary coefficients is
O Θ = ( P / β S 1 / 2 ) , O Θ † O Θ = P † P / β 2 + S . (84) O_{\Theta} =
\begin{pmatrix}
P/\beta\\
S^{1/2}
\end{pmatrix},
\qquad
O_{\Theta}^{\dagger}O_{\Theta}=P^{\dagger}P/\beta^2+S. \tag*{(84)} O Θ = ( P / β S 1/2 ) , O Θ † O Θ = P † P / β 2 + S . (84)
Thus in Eq. (79) we may use N j = T j g N_j=T_j^g N j = T j g , b j = T j g e 0 b_j=T_j^g e_0 b j = T j g e 0 , O = O Θ O=O_{\Theta} O = O Θ , and d 0 = O Θ e 0 d_0=O_{\Theta}e_0 d 0 = O Θ e 0 . Their joint output Gram is rational, and their entries have the square-root evaluators already proved. The reachable nonconstant states lie in the last k r kr k r coordinates, so rational reduction gives s 0 ≤ k r s_0\le kr s 0 ≤ k r . The number of initial complementary rows is at most q 0 = 1 + h q_0=1+h q 0 = 1 + h .
For the complement obtained from a target certificate, the bounds q 0 ≤ 1 + h q_0\le1+h q 0 ≤ 1 + h and s 0 ≤ k r s_0\le kr s 0 ≤ k r give the processing multiplicity
R ∗ = 1 + h + k 2 r , h = 1 + k r , r ≤ s + 1. (85) R_* = 1+h+k^2r,\qquad h=1+kr,\qquad r\le s+1. \tag*{(85)} R ∗ = 1 + h + k 2 r , h = 1 + k r , r ≤ s + 1. (85)
Corollary 4.8 (Row synthesis from the coefficients). For a rational finite-state scalar target of degree D ≥ 1 D\ge1 D ≥ 1 on the row domain and rational 0 < τ , ϵ < 1 0<\tau,\epsilon<1 0 < τ , ϵ < 1 , the algorithm computes B < β ≤ ( 1 + τ ) B B<\beta\le(1+\tau)B B < β ≤ ( 1 + τ ) B and a D D D -query circuit for p ( A ) / β p(A)/\beta p ( A ) / β . Its processing multiplicity is given by Eq. (85) , and classical and finite-gate synthesis to error ϵ \epsilon ϵ are polynomial in the input length, oracle width, log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) , and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) . The selected block is exact with ideal known gates.
Proof. We compute B ≤ B ^ ≤ ( 1 + τ / 8 ) B B\le\widehat{B}\le(1+\tau/8)B B ≤ B ≤ ( 1 + τ /8 ) B using Theorem 3.6 , and set β = ( 1 + τ / 2 ) B ^ \beta=(1+\tau/2)\widehat{B} β = ( 1 + τ /2 ) B . Then B < β ≤ ( 1 + τ ) B B<\beta\le(1+\tau)B B < β ≤ ( 1 + τ ) B , and B / β ≤ ν B/\beta\le\nu B / β ≤ ν for the rational ν = ( 1 + τ / 2 ) − 1 < 1 \nu=(1+\tau/2)^{-1}<1 ν = ( 1 + τ /2 ) − 1 < 1 . We apply Proposition 3.5 to the original target p p p with γ = β \gamma=\beta γ = β and ν = ( 1 + τ / 2 ) − 1 \nu=(1+\tau/2)^{-1} ν = ( 1 + τ /2 ) − 1 . This returns a certificate of 1 − p ∗ p / β 2 1-p^*p/\beta^2 1 − p ∗ p / β 2 . The preceding construction supplies a complementary list of degree at most D D D in the state representation required by Theorem 4.7 , whose joint output Gram is rational. Its memory bound is q 0 + k s 0 ≤ 1 + h + k 2 r q_0+ks_0\le1+h+k^2r q 0 + k s 0 ≤ 1 + h + k 2 r . The first polynomial has degree D D D , so the list also has degree exactly D D D and the circuit uses that many queries. The strict-search dependence is polynomial in log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) , and the factorization uses D D D queries at every such margin. This proves the row assertion of Theorem 2.1. The exact degree lower bound is established in Corollary 4.10 for the same completion-independent forward model.
The normalization benefit is visible in the two-query example
p ( A ) = 3 5 A 1 A 2 + 4 5 A 2 A 1 , ∥ p ∥ S A , r o w = 1. p(A)=\frac{3}{5}A_1A_2+\frac{4}{5}A_2A_1,\qquad\lVert p\rVert_{\mathrm{SA,row}}=1. p ( A ) = 5 3 A 1 A 2 + 5 4 A 2 A 1 , ∥ p ∥ SA , row = 1.
Example B.2 gives its exact circuit at normalization one. A termwise LCU using the same row oracle keeps the two products on separate labels and prepares and selects amplitudes 3 / 7 , 4 / 7 \sqrt{3/7},\sqrt{4/7} 3/7 , 4/7 , yielding 5 p / 7 5p/7 5 p /7 with two queries. The two circuits therefore have success probabilities ∥ p ( A ) ψ ∥ 2 \lVert p(A)\psi\rVert^2 ∥ p ( A ) ψ ∥ 2 and 25 ∥ p ( A ) ψ ∥ 2 / 49 25\lVert p(A)\psi\rVert^2/49 25 ∥ p ( A ) ψ ∥ 2 /49 on the same unit input. The row factorization improves this particular termwise comparison by combining the products under their joint norm bound. Access costs can change the comparison: if separate unit-normalized encodings are first loaded with equal weights, the resulting row is [ A 1 A 2 ] / 2 [A_1\ A_2]/\sqrt{2} [ A 1 A 2 ] / 2 , and the same degree-two circuit returns p ( A ) / 2 p(A)/2 p ( A ) /2 . The supplied row, its uniform norm domain, and the cost of obtaining that row must therefore be fixed before comparing normalizations.
The same algorithms give normalization one whenever a strict bound below one is supplied. After computing a normalization smaller than one, we multiply the final known row by that normalization; the row remains contractive and its output becomes the target itself.
Corollary 4.9 (Synthesis at normalization one). Let a rational finite-state scalar polynomial of degree D ≥ 1 D \ge1 D ≥ 1 satisfy ∥ p ∥ S A , Δ ≤ 1 − σ \lVert p\rVert_{\mathrm{SA},\Delta} \le1-\sigma ∥ p ∥ SA , Δ ≤ 1 − σ , with rational 0 < σ < 1 0 < \sigma< 1 0 < σ < 1 , and let 0 < ϵ < 1 0 < \epsilon< 1 0 < ϵ < 1 be rational. A circuit with exact ideal selected block p ( A ) p(A) p ( A ) uses O ( D / σ ) O(D/\sqrt{\sigma}) O ( D / σ ) queries, or D D D for a row input. Classical and finite-gate synthesis to error ϵ \epsilon ϵ are polynomial in the input length, oracle width, σ − 1 / 2 \sigma^{-1/2} σ − 1/2 , and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) ; the row case depends polynomially on log ( 1 / σ ) \log(1/\sigma) log ( 1/ σ ) .
Proof. We apply the corresponding target algorithm with τ = σ / 2 \tau= \sigma/2 τ = σ /2 . Its rational normalization satisfies
0 < β 0 ≤ ( 1 + σ / 2 ) ∥ p ∥ S A , Δ ≤ ( 1 + σ / 2 ) ( 1 − σ ) < 1. 0 < \beta_0 \le(1+\sigma/2)\lVert p\rVert_{\mathrm{SA},\Delta} \le(1+\sigma/2)(1-\sigma) < 1. 0 < β 0 ≤ ( 1 + σ /2 ) ∥ p ∥ SA , Δ ≤ ( 1 + σ /2 ) ( 1 − σ ) < 1.
Replacing its final numerical row C Q C_Q C Q by β 0 C Q \beta_0 C_Q β 0 C Q preserves contractivity and changes the ideal block from p / β 0 p/\beta_0 p / β 0 to p p p . This multiplication is known rational arithmetic and adds no query. We compile the modified known matrices with total error at most ϵ \epsilon ϵ using Theorem B.1 ; the dimensions and precision bounds are unchanged. Substitution of τ = σ / 2 \tau= \sigma/2 τ = σ /2 gives the stated costs.
When an inner completion at normalization one is supplied in the representation of Theorem 4.7 , that theorem also handles the boundary B = 1 B = 1 B = 1 . Its rational joint Gram and certified entry algorithms provide the data needed for exact support decisions and finite-gate synthesis. The target-only algorithm instead uses the strict margin to discover its completion.
The row construction uses one query for each degree removed, and this count is optimal for exact synthesis in our access model. The usual polynomial method relates query count to polynomial degree [14 ] ; we apply it to the designated blocks by averaging over allowed oracle completions. Completion independence makes that average equal to the required target.
Corollary 4.10 (Exact degree lower bound). A nonzero scalar polynomial of true degree D D D requires at least D D D forward queries for exact completion-independent implementation at any finite positive normalization in the model of § 2 . The row algorithm of Corollary 4.8 attains this bound.
Proof. We fix an admissible tuple and write P − P_- P − and P + P_+ P + for the projections onto its designated oracle input and output labels. For any ∣ z ∣ = 1 \lvert z\rvert= 1 ∣ z ∣ = 1 , multiplying the original oracle on the left by P + + z ( I − P + ) P_+ + z(I-P_+) P + + z ( I − P + ) and on the right by P − + z ( I − P − ) P_- + z(I-P_-) P − + z ( I − P − ) gives another unitary with the same designated block. The four corners acquire powers 1 1 1 , z z z , z z z , z 2 z^2 z 2 , respectively. Since the circuit uses only forward queries, its selected output after Q Q Q calls is a polynomial in z z z of degree at most 2 Q 2Q 2 Q . Averaging over the ( 2 Q + 1 ) (2Q+1) ( 2 Q + 1 ) st roots of unity therefore retains only paths that use a designated corner at every call. Independence from the completion makes this average equal to the original target.
The averaged circuit is a product of Q Q Q blocks linear in A 1 , … , A k A_1,\ldots,A_k A 1 , … , A k , interleaved with known numerical contractions, so its degree is at most Q Q Q . Equality on the whole input domain implies equality of free coefficients: a sufficiently small matrix tuple supported on a directed path isolates any prescribed word coefficient in one matrix entry, as detailed in Appendix § 17 . Hence a nonzero degree-D D D target requires Q ≥ D Q \ge D Q ≥ D , while a zero-query circuit is constant. Corollary 4.8 supplies the matching construction.
Appendix G complements these algorithms with a necessary and sufficient Gram condition at each prescribed query count and normalization, including singular boundary certificates. Its variables include every query history and can be exponential in the query count. The efficient synthesis above uses the smaller residual representation and a strict margin. We now extend that synthesis to a joint matrix of polynomial outputs, which will provide the data labels for quantum operations.
Joint polynomial outputs and quantum channel transformations
The scalar circuit has a single selected output. We now retain a data register so that one query sequence can produce several polynomials coherently. This extension serves two tasks: an input label may choose which polynomial acts on the signal, or an output label may become the environment of a quantum operation. Both require us to preserve the joint amplitudes between labels. For scalar-coefficient polynomial blocks P μ ν ( A ) P_{\mu\nu}(A) P μν ( A ) , the desired successful block acts as
∑ ν = 0 u − 1 ∣ ν ⟩ L ∣ ψ ν ⟩ S ⟼ 1 β ∑ μ = 0 v − 1 ∣ μ ⟩ L ∑ ν = 0 u − 1 P μ ν ( A ) ∣ ψ ν ⟩ S . (86) \sum_{\nu=0}^{u-1}|\nu\rangle_L|\psi_\nu\rangle_S \longmapsto\frac{1}{\beta}\sum_{\mu=0}^{v-1}|\mu\rangle_L\sum_{\nu=0}^{u-1}P_{\mu\nu}(A)|\psi_\nu\rangle_S. \tag*{(86)} ν = 0 ∑ u − 1 ∣ ν ⟩ L ∣ ψ ν ⟩ S ⟼ β 1 μ = 0 ∑ v − 1 ∣ μ ⟩ L ν = 0 ∑ u − 1 P μν ( A ) ∣ ψ ν ⟩ S . (86)
Here the ψ ν \psi_\nu ψ ν can be arbitrary signal columns, including their correlations with an untouched reference. A diagonal choice of the polynomial blocks preserves the input label; the case u = 1 u=1 u = 1 produces a column of outputs. Tracing that output label after success gives Kraus operators proportional to the component polynomials. We will construct the joint transformation first, because its norm condition determines the common normalization and all of the known gates.
Joint polynomial targets
The norm of each entry alone cannot certify Eq. (86) . For example, both entries of [ I n I n ] [I_n\ I_n] [ I n I n ] have norm one, but the row sends ( ∣ 0 ⟩ + ∣ 1 ⟩ ) ∣ ψ ⟩ / 2 (|0\rangle+|1\rangle)|\psi\rangle/\sqrt{2} ( ∣0 ⟩ + ∣1 ⟩) ∣ ψ ⟩ / 2 to 2 ∣ ψ ⟩ \sqrt{2}|\psi\rangle 2 ∣ ψ ⟩ . More generally, the input-label blocks of the squared target are
[ P ( A ) † P ( A ) ] ν ν ′ = ∑ μ P μ ν ( A ) † P μ ν ′ ( A ) . [P(A)^\dagger P(A)]_{\nu\nu'}=\sum_{\mu}P_{\mu\nu}(A)^\dagger P_{\mu\nu'}(A). [ P ( A ) † P ( A ) ] ν ν ′ = μ ∑ P μν ( A ) † P μ ν ′ ( A ) .
Because these off-diagonal terms govern interference between input labels, we seek a certificate for the whole matrix and retain the corresponding amplitudes until the final selection.
We specify the target by rectangular coefficient matrices,
P ( A ) = [ ∑ w ( P w ) μ ν A w ] 0 ≤ μ < v 0 ≤ ν < u , B P = sup n , A : ∥ Δ ( A ) ∥ ≤ 1 ∥ P ( A ) ∥ . (87) P(A)=\left[\sum_w(P_w)_{\mu\nu}A^w\right]_{\substack{0\leq\mu<v\\0\leq\nu<u}},\qquad B_P=\sup_{n,A:\|\Delta(A)\|\leq1}\|P(A)\|. \tag*{(87)} P ( A ) = [ w ∑ ( P w ) μν A w ] 0 ≤ μ < v 0 ≤ ν < u , B P = n , A : ∥Δ ( A ) ∥ ≤ 1 sup ∥ P ( A ) ∥. (87)
Its finite-state input has rational real and imaginary parts and takes the form
P w = L T w R 0 , L : v × s , T j : s × s , R 0 : s × u . (88) P_w=LT_wR_0,\qquad L:v\times s,\quad T_j:s\times s,\quad R_0:s\times u. \tag*{(88)} P w = L T w R 0 , L : v × s , T j : s × s , R 0 : s × u . (88)
The target has u n un u n input and v n vn v n output coordinates. We use a separate data register L of q L = ⌈ log 2 max { u , v } ⌉ q_L=\lceil\log_2\max\{u,v\}\rceil q L = ⌈ log 2 max { u , v }⌉ qubits, with supported input values ν < u \nu<u ν < u and retained output values μ < v \mu<v μ < v . Its input is supplied by the application and may be entangled with the signal. The oracle register and all added processing registers start at zero. We denote by B u , v ( U A ) \mathcal{B}_{u,v}(U_A) B u , v ( U A ) the matrix block retaining the specified data endpoints and zero on the other auxiliary outputs. The recurrence determines the degree D = max { ∣ w ∣ : P w ≠ 0 } D=\max\{|w|:P_w\neq0\} D = max { ∣ w ∣ : P w = 0 } , polynomiality, and the zero case by the joint tests in Appendix § 15 .§ 1 .
Theorem 5.1 (Multivariable polynomial transformation). Let P P P have a rational finite-state representation of degree D ≥ 1 D\geq1 D ≥ 1 , and let 0 < τ , ϵ < 1 0<\tau,\epsilon<1 0 < τ , ϵ < 1 be rational. Under the joint-oracle assumptions of § 2 , a classical algorithm computes a rational β \beta β and a quantum circuit such that
B P < β ≤ ( 1 + τ ) B P , ∥ B u , v ( U A ) − P ( A ) / β ∥ ≤ ϵ . B_P<\beta\leq(1+\tau)B_P,\qquad\|\mathcal{B}_{u,v}(U_A)-P(A)/\beta\|\leq\epsilon. B P < β ≤ ( 1 + τ ) B P , ∥ B u , v ( U A ) − P ( A ) / β ∥ ≤ ϵ . It uses O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) unconditional forward queries, or D D D for a row input. Classical computation and known-gate count are polynomial in the rational input length, q 0 q_0 q 0 , τ − 1 / 2 \tau^{-1/2} τ − 1/2 , and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) ; the row case depends polynomially on log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) . With exact known gates, the selected block equals P ( A ) / β P(A)/\beta P ( A ) / β .
The guarantee is uniform over signal sizes, admissible tuples, oracle completions, and reference systems, and reduces to scalar synthesis when u = v = 1 u=v=1 u = v = 1 . Lemma E.1 supplies the zero-query constructions for constant targets, including an always-failed outcome for the zero matrix.
To preserve these input correlations, we perform the residual calculation on polynomial rows with u u u entries. Rational closure of the u u u constant rows and the nonempty left residuals of the v v v target rows gives a basis f 1 , … , f r f_1,\ldots,f_r f 1 , … , f r with r ≤ s + u r\le s+u r ≤ s + u . Appending one initial letter to these residuals gives the successor matrix g g g , whose h = u + k r h=u+kr h = u + k r independent rows consist of the constants and the rows x j f ℓ x_jf_\ell x j f ℓ . Its numerical coordinate maps satisfy
E g = I u , J g = f , P g = P , L j g = x j f . Eg=I_u,\qquad Jg=f,\qquad Pg=P,\qquad L_jg=x_jf. E g = I u , J g = f , P g = P , L j g = x j f .
We form E α E_\alpha E α , M μ M_\mu M μ and Φ \Phi Φ by the same formulas as Eqs. (32) –(33) . Each of the first two matrices now has b r br b r rows and h h h columns. Appendix E.1 gives the coefficient arrays explicitly. For Hermitian Q 0 Q_0 Q 0 of order h h h , the hereditary matrix q Q 0 = g ∗ Q 0 g q_{Q_0}=g^*Q_0g q Q 0 = g ∗ Q 0 g evaluates to g ( A ) † ( Q 0 ⊗ I n ) g ( A ) g(A)^\dagger(Q_0\otimes I_n)g(A) g ( A ) † ( Q 0 ⊗ I n ) g ( A ) on all u n un u n input coordinates together.
Theorem 5.2 (Exact joint rectangular certificate). The matrix q Q 0 q_{Q_0} q Q 0 is positive semidefinite at every allowed tuple if and only if Q 0 = S + Φ ( T ) Q_0=S+\Phi(T) Q 0 = S + Φ ( T ) for positive semidefinite matrices of orders h = u + k r h=u+kr h = u + k r and b r br b r . In particular, for β ≥ 0 \beta\ge0 β ≥ 0 , the condition B P ≤ β B_P\le\beta B P ≤ β is equivalent to
β 2 E † E − P † P = S + Φ ( T ) , S , T ⪰ 0. (89) \beta^2 E^\dagger E-P^\dagger P=S+\Phi(T),\qquad S,T\succeq0. \tag*{(89)} β 2 E † E − P † P = S + Φ ( T ) , S , T ⪰ 0. (89)
Proof. A feasible pair expresses q Q 0 q_{Q_0} q Q 0 as a polynomial square and the query defect acting on residual rows, which proves positivity on all u n un u n input coordinates together. For necessity, we use the separation proof of Theorem 3.2 with coefficient positions indexed by a word and an input label. Summing the coercive functional over the u u u constant inputs closes the cone; a separator then produces an admissible tuple and a column Ω \Omega Ω whose quadratic form is Tr ( H Q 0 ) < 0 \operatorname{Tr}(HQ_0)<0 Tr ( H Q 0 ) < 0 . Appendix E.1 proves this joint evaluation identity, including the ordinary transpose in the complex Gram factorization and the kernel argument for singular separators. Thus the same certificate controls all input-label cross terms.
Proposition 5.3 (Finite-bit joint certificate computation). The rational affine system of Theorem 5.2 is computable in polynomial bit time from Eq. (88) . Given rational γ > 0 \gamma>0 γ > 0 and 0 ≤ ν < 1 0\le\nu<1 0 ≤ ν < 1 with B P / γ ≤ ν B_P/\gamma\le\nu B P / γ ≤ ν , the capped rational search returns positive definite rational certificate matrices for I u − P ∗ P / γ 2 I_u-P^*P/\gamma^2 I u − P ∗ P / γ 2 in time polynomial in the input, the bit lengths of γ , ν \gamma,\nu γ , ν , and log ( 1 / ( 1 − ν ) ) \log(1/(1-\nu)) log ( 1/ ( 1 − ν )) . For nonzero P P P and rational 0 < η < 1 0<\eta<1 0 < η < 1 , it also computes B P ≤ B ^ ≤ ( 1 + η ) B P B_P\le\widehat B\le(1+\eta)B_P B P ≤ B ≤ ( 1 + η ) B P in polynomial bit time with dependence polynomial in log ( 1 / η ) \log(1/\eta) log ( 1/ η ) .
Proof. The residual constant is now an r × u r\times u r × u matrix, and summing the coercive functional over all constant inputs gives Tr S + Tr T ≤ β 2 u / χ \operatorname{Tr}S+\operatorname{Tr}T\le\beta^2u/\chi Tr S + Tr T ≤ β 2 u / χ . The general joint certificate also supplies a strict certificate for I u I_u I u . These two changes give the inner and outer radii for the same capped search and norm bisection. Appendix E.1 computes the rational constants and bounds their bit lengths.
The numerical extraction now retains u u u input columns and v v v output rows. For a strict certificate of a normalized target Q Q Q , we set m = b r m=br m = b r , use K = T 1 / 2 K=T^{1/2} K = T 1/2 , and form the stacks X = [ K M 1 ; … ; K M a ; E ] X=[KM_1;\ldots;KM_a;E] X = [ K M 1 ; … ; K M a ; E ] and Y = [ K E 1 ; … ; K E b ; P Q ] Y=[KE_1;\ldots;KE_b;P_Q] Y = [ K E 1 ; … ; K E b ; P Q ] . Their sizes are ( a m + u ) × h (am+u)\times h ( am + u ) × h and ( b m + v ) × h (bm+v)\times h ( bm + v ) × h , and their Gram difference is S ≻ 0 S\succ0 S ≻ 0 . With T 0 = X † X T_0=X^\dagger X T 0 = X † X , the matrix we compute is
V = Y T 0 − 1 X † = ( A B C D ) , A : b m × a m , B : b m × u , C : v × a m , D : v × u . (90) V=YT_0^{-1}X^\dagger=
\begin{pmatrix}
A & B\\
C & D
\end{pmatrix},
\qquad
A:bm\times am,\quad B:bm\times u,\quad
C:v\times am,\quad D:v\times u. \tag*{(90)} V = Y T 0 − 1 X † = ( A C B D ) , A : bm × am , B : bm × u , C : v × am , D : v × u . (90)
The same Gram argument proves V X = Y VX=Y V X = Y and ∥ V ∥ < 1 \lVert V\rVert< 1 ∥ V ∥ < 1 . Thus B injects all input labels, C collects all output labels, and the coefficient recurrence preserves their cross terms. In the finite query construction, the pending and collected components consequently have u u u and v v v coordinates. Appendix § 15 .§ 2 gives their complete stage matrices and packing.
The resulting query product has an initial matrix of size d − R × u d_{-R} \times u d − R × u , internal matrices of size d − R × d + R d_{-R} \times d_{+R} d − R × d + R , and a final matrix of size v × d + R v \times d_{+R} v × d + R . We embed their endpoints on
∣ 0 ⟩ O ∣ 0 ⟩ M ∣ ν ⟩ L ∣ 0 ⟩ d and ∣ 0 ⟩ O ∣ 0 ⟩ M ∣ μ ⟩ L ∣ 0 ⟩ d , \lvert0\rangle_O\lvert0\rangle_M\lvert\nu\rangle_L\lvert0\rangle_d
\qquad\text{and}\qquad
\lvert0\rangle_O\lvert0\rangle_M\lvert\mu\rangle_L\lvert0\rangle_d, ∣ 0 ⟩ O ∣ 0 ⟩ M ∣ ν ⟩ L ∣ 0 ⟩ d and ∣ 0 ⟩ O ∣ 0 ⟩ M ∣ μ ⟩ L ∣ 0 ⟩ d ,
respectively. Between those endpoints, the continuing component has L = 0 L=0 L = 0 and carries the data dependence in the processing amplitudes. The full Julia completion retains its complementary amplitudes under the failure labels, so this prescription is valid even when the initial numerical matrix is only contractive. Appendix § 15 .§ 3 specifies the remaining columns and all binary padding. The final coherent range test L < v L<v L < v retains the entire output column and rejects unused labels.
Proof of Theorem 5.1. We extract a contraction from a strict joint certificate using the Gram factorization of § 3.3 , now with u u u injection columns and v v v collection rows. The equality V X = Y VX=Y V X = Y generates every coefficient matrix simultaneously, as verified in Appendix § 15 .§ 2 . For a general oracle we apply this extraction to Q = W v − 1 P / β Q=\mathcal{W}_v^{-1}P/\beta Q = W v − 1 P / β , whose degree weights are then canceled by the query sequence. Taking matrix elements between arbitrary unit input and output columns extends the scalar weight estimate to the joint operator norm with the same constant, so the normalization choice and Q = O ( D / τ ) Q=O(D/\sqrt{\tau}) Q = O ( D / τ ) bound of § 4 apply.
On the row domain, we instead certify P / β P/\beta P / β directly. Its complementary polynomial satisfies the full u × u u\times u u × u coefficient-correlation identities, which the compact degree reduction preserves until it reaches a constant isometry after D D D steps. Appendix § 15 .§ 2 derives this factorization and its Gram bounds. For either product, we use the endpoint lists just specified and the same fresh-failure-label invariant as Theorem 4.3 . This proves the joint block identity for every input data column and every oracle completion, as illustrated in Figure 3 . A total known-gate operator error of ϵ \epsilon ϵ therefore bounds the selected-block error by ϵ \epsilon ϵ , also with a reference; Proposition E.2 gives the register and gate counts. □
Figure 3. One query sequence with coherent data endpoints. The known layers W t W_t W t act on the oracle, data, and processing registers. The bundled bottom wire contains M M M , d d d , E E E and the phase and clean work bits used in gate synthesis; their widths are given in Proposition E.2 . The initial layer encodes an arbitrary supported input label ν < u \nu< u ν < u , and the final layer decodes μ < v \mu< v μ < v . The output range is retained coherently, with every other auxiliary output selected at zero. Only the supplied queries act on the signal.
Retaining the polynomial label. An indexed family illustrates why it is useful to retain a quantum input label. To apply a chosen polynomial coherently while preserving that choice, we take a diagonal target with members p 0 , … , p N f − 1 p_0,\ldots,p_{N_f-1} p 0 , … , p N f − 1 , represented by rational recurrences of sizes s ℓ s_\ell s ℓ on the same domain. Allowing zero members and assuming at least one nonconstant member, we have
P ( A ) = diag ( p 0 ( A ) , … , p N f − 1 ( A ) ) , D = max ℓ deg p ℓ , B max = max ℓ ∥ p ℓ ∥ S , Δ , s = ∑ ℓ s ℓ , P(A)=\operatorname{diag}(p_0(A),\ldots,p_{N_f-1}(A)),\qquad
D=\max_{\ell}\deg p_\ell,\qquad
B_{\max}=\max_{\ell}\lVert p_\ell\rVert_{S,\Delta},\qquad
s=\sum_{\ell}s_\ell, P ( A ) = diag ( p 0 ( A ) , … , p N f − 1 ( A )) , D = ℓ max deg p ℓ , B m a x = ℓ max ∥ p ℓ ∥ S , Δ , s = ℓ ∑ s ℓ ,
where zero members contribute no degree. The selected action is
∑ ℓ = 0 N f − 1 ∣ ℓ ⟩ ∣ ψ ℓ ⟩ ⟼ 1 β ∑ ℓ = 0 N f − 1 ∣ ℓ ⟩ p ℓ ( A ) ∣ ψ ℓ ⟩ (91) \sum_{\ell=0}^{N_f-1}\lvert\ell\rangle\lvert\psi_\ell\rangle
\longmapsto
\frac{1}{\beta}\sum_{\ell=0}^{N_f-1}\lvert\ell\rangle p_\ell(A)\lvert\psi_\ell\rangle \tag*{(91)} ℓ = 0 ∑ N f − 1 ∣ ℓ ⟩ ∣ ψ ℓ ⟩ ⟼ β 1 ℓ = 0 ∑ N f − 1 ∣ ℓ ⟩ p ℓ ( A ) ∣ ψ ℓ ⟩ (91)
The retained label preserves the choice’s coherence with the signal and any reference.
Proposition 5.4 (Coherent indexed polynomial synthesis). For rational 0 < τ , ϵ < 1 0<\tau,\epsilon<1 0 < τ , ϵ < 1 , one circuit implements Eq. (91) to selected-block error ϵ \epsilon ϵ , with B max < β ≤ ( 1 + τ ) B max B_{\max}<\beta\le(1+\tau)B_{\max} B m a x < β ≤ ( 1 + τ ) B m a x . It uses O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) queries, or D D D on a row input, and a ⌈ log 2 N f ⌉ \lceil\log_2 N_f\rceil ⌈ log 2 N f ⌉ -qubit data label. Its classical and known-gate bounds are those of Proposition E.2 with u = v = N f u=v=N_f u = v = N f and total state count s s s .
Proof. For representations ( ℓ ℓ , T ℓ , j , r ℓ ) (\ell_\ell,T_{\ell,j},r_\ell) ( ℓ ℓ , T ℓ , j , r ℓ ) , we put T ℓ , j T_{\ell,j} T ℓ , j in diagonal state block ℓ \ell ℓ of each transition. Output row ℓ \ell ℓ contains ℓ ℓ \ell_\ell ℓ ℓ in that block, and input column ℓ \ell ℓ contains r ℓ r_\ell r ℓ there, with all other entries zero. Thus ( P w ) ℓ m = δ ℓ m c ℓ , w (P_w)_{\ell m}=\delta_{\ell m}c_{\ell,w} ( P w ) ℓ m = δ ℓ m c ℓ , w . Its degree is the largest member degree, and its joint norm is B max B_{\max} B m a x because a finite maximum commutes with the supremum over the common domain. Theorem 5.1 gives the result. □
The largest degree determines the query count, whereas the number of members contributes to the classical input and known-gate costs. The next application uses output labels as an environment. Its target is a column rather than a diagonal matrix, so the component squares add in its normalization.
Operations on a coherent Kraus implementation
A coherent environment lets us combine Kraus histories before selecting an outcome, and hence design a successful operation with a desired action. One example is a state-preserving branch obtained by adding two histories whose sum is proportional to identity. For two Kraus operators, the relevant sum and difference are
F + ( K ) = K 1 K 2 + K 2 K 1 , F − ( K ) = K 1 K 2 − K 2 K 1 F_{+}(K)=K_1K_2+K_2K_1,\qquad F_{-}(K)=K_1K_2-K_2K_1 F + ( K ) = K 1 K 2 + K 2 K 1 , F − ( K ) = K 1 K 2 − K 2 K 1
on separate output labels. Example 5.6 exhibits a channel for which the sum gives a state-preserving successful branch. We construct these and more general polynomial operations by controlling their joint normalization.
Let a channel on the signal have a specified Kraus representation [89 ]
E ( ρ ) = ∑ a = 1 k K a ρ K a † , ∑ a K a † K a = I n . (92) \mathcal{E}(\rho)=\sum_{a=1}^{k}K_a\rho K_a^\dagger,\qquad\sum_a K_a^\dagger K_a=I_n. \tag*{(92)} E ( ρ ) = a = 1 ∑ k K a ρ K a † , a ∑ K a † K a = I n . (92)
We are supplied a coherent implementation with a fixed environment basis. Its active column is the corresponding Stinespring isometry [88 ]
Δ ( K ) = ( K 1 ⋮ K k ) , U K ( ∣ i ⟩ O ∣ ψ ⟩ S ) = ∑ a = 1 k ∣ i + a − 1 ⟩ O K a ∣ ψ ⟩ S . (93) \Delta(K)=
\begin{pmatrix}
K_1\\
\vdots\\
K_k
\end{pmatrix},
\qquad
U_K(|i\rangle_O|\psi\rangle_S)=\sum_{a=1}^{k}|i+a-1\rangle_O K_a|\psi\rangle_S. \tag*{(93)} Δ ( K ) = K 1 ⋮ K k , U K ( ∣ i ⟩ O ∣ ψ ⟩ S ) = a = 1 ∑ k ∣ i + a − 1 ⟩ O K a ∣ ψ ⟩ S . (93)
Our supplied resource is the complete unitary U K U_K U K of § 2 , with a = k a=k a = k , b = 1 b=1 b = 1 , 2 q O ≥ i + k + 1 2^{q_O}\ge i+k+1 2 q O ≥ i + k + 1 , and an identity sector that provides a phase reference for combining different degrees. The returned environment remains coherent in its specified basis, and the column structure uses the general query construction of § 4 . Appendix § 15 .§ 4 gives the full matrix, and Appendix § 13 constructs the idle sector from a coherent selector or a controllable implementation circuit; the latter requires the additional control access discussed by Araújo et al. [3 ] .
The desired operation is specified by scalar-coefficient polynomials arranged in one column:
F b ( K ) = ∑ w c b , w K w , F ( K ) = ( F 1 ( K ) ⋮ F v ( K ) ) . (94) F_b(K) = \sum_w c_{b,w}K_w,\qquad F(K) = \begin{pmatrix} F_1(K) \\ \vdots\\ F_v(K) \end{pmatrix}. \tag*{(94)} F b ( K ) = w ∑ c b , w K w , F ( K ) = F 1 ( K ) ⋮ F v ( K ) . (94)
We combine separate representations ( ℓ b , T b , j , r b ) (\ell_b,T_{b,j},r_b) ( ℓ b , T b , j , r b ) using block-diagonal transitions, stacked final columns r b r_b r b , and output row b b b supported by ℓ b \ell_b ℓ b in its state block. This gives Eq. (88) with s = ∑ b s b s=\sum_b s_b s = ∑ b s b and u = 1 u=1 u = 1 , so the initially zero data register becomes the output environment.
For this input domain, the joint certificate enforces
∑ b F b ( A ) † F b ( A ) ⪯ β 2 I n whenever ∑ a A a † A a ⪯ I n , (95) \sum_b F_b(A)^\dagger F_b(A) \preceq\beta^2 I_n \qquad\text{whenever} \qquad\sum_a A_a^\dagger A_a \preceq I_n, \tag*{(95)} b ∑ F b ( A ) † F b ( A ) ⪯ β 2 I n whenever a ∑ A a † A a ⪯ I n , (95)
at every matrix size. Thus B F B_F B F is the supremum of ∥ F ( A ) ∥ \|F(A)\| ∥ F ( A ) ∥ on the whole column ball, whose isometric boundary contains the physical Kraus column. The inequality for the sum over all output labels is the trace-nonincreasing condition for the successful operation; it is therefore the quantity controlled by the joint certificate.
With T = F ( K ) / β T=F(K)/\beta T = F ( K ) / β , the selected output before discarding its label is
T ρ T † = 1 β 2 ∑ b , c = 1 v ∣ b − 1 ⟩ ⟨ c − 1 ∣ ⊗ F b ( K ) ρ F c ( K ) † . T\rho T^\dagger=\frac{1}{\beta^2}\sum_{b,c=1}^{v}|b-1\rangle\langle c-1|\otimes F_b(K)\rho F_c(K)^\dagger. T ρ T † = β 2 1 b , c = 1 ∑ v ∣ b − 1 ⟩ ⟨ c − 1∣ ⊗ F b ( K ) ρ F c ( K ) † .
The range test on the output label preserves these coherences. Tracing the label after success gives the desired completely positive operation,
M β ( ρ ) = 1 β 2 ∑ b = 1 v F b ( K ) ρ F b ( K ) † , p β ( ρ ) = Tr ( T † T ρ ) . (96) \mathcal{M}_\beta(\rho)=\frac{1}{\beta^2}\sum_{b=1}^{v}F_b(K)\rho F_b(K)^\dagger,\qquad p_\beta(\rho)=\operatorname{Tr}(T^\dagger T\rho). \tag*{(96)} M β ( ρ ) = β 2 1 b = 1 ∑ v F b ( K ) ρ F b ( K ) † , p β ( ρ ) = Tr ( T † T ρ ) . (96)
The joint bound makes M β \mathcal{M}_\beta M β trace-nonincreasing, while the input-dependent quadratic form p β ( ρ ) p_\beta(\rho) p β ( ρ ) determines its success probability and may vanish. We measure the error of the operation before conditioning by the diamond norm,
∥ Φ ∥ ⋄ = sup m ≥ 1 sup X ≠ 0 ∥ ( Φ ⊗ id m ) ( X ) ∥ 1 ∥ X ∥ 1 . \|\Phi\|_\diamond=\sup_{m\geq1}\sup_{X\neq0}\frac{\|(\Phi\otimes\operatorname{id}_m)(X)\|_1}{\|X\|_1}. ∥Φ ∥ ⋄ = m ≥ 1 sup X = 0 sup ∥ X ∥ 1 ∥ ( Φ ⊗ id m ) ( X ) ∥ 1 .
This is the completely bounded trace norm; the reference dimension can be restricted to the input dimension [89 ] .
Corollary 5.5 (Polynomial Kraus synthesis). Given the nonzero rational finite-state column in Eq. (94) , complete coherent U K U_K U K access, and rational 0 < τ , η < 1 0<\tau,\eta<1 0 < τ , η < 1 , the algorithm computes B F < β ≤ ( 1 + τ ) B F B_F<\beta\leq(1+\tau)B_F B F < β ≤ ( 1 + τ ) B F and implements Eq. (96) . The operation is exact with ideal known gates; selected-column error η \eta η gives diamond-norm error at most 2 η 2\eta 2 η . For degree D ≥ 1 D\geq1 D ≥ 1 , the column-input construction uses O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) queries and the resources of Proposition E.2. Constants are handled by Lemma E.1.
Proof. Theorem 5.1 supplies a contractive selected column T T T under the general-input query bound, since the Kraus oracle is a column. We retain the valid data-label range and zero on the oracle, processing, dilation, failure, phase, and clean work outputs; tracing the data label then gives Eq. (96) .
Let T ~ \widetilde{T} T be the implemented selected column, with ∥ T ~ − T ∥ ≤ η \lVert\widetilde{T}-T\rVert\leq\eta ∥ T − T ∥ ≤ η . Both columns are contractions, and their pre-trace difference on any operator X X X is
( T ~ − T ) X T ~ † + T X ( T ~ − T ) † . (\widetilde{T}-T)X\widetilde{T}^{\dagger}+TX(\widetilde{T}-T)^{\dagger}. ( T − T ) X T † + T X ( T − T ) † .
After tensoring a reference, each term has trace norm at most η ∥ X ∥ 1 \eta\lVert X\rVert_1 η ∥ X ∥ 1 . Partial trace is a channel, which proves the 2 η 2\eta 2 η diamond bound. An oracle error η O \eta_O η O in the entire designated block diag ( I i n , Δ ( K ) ) \operatorname{diag}(I_{\mathrm{in}},\Delta(K)) diag ( I in , Δ ( K )) , including its identity sector, and total known-gate error ϵ g \epsilon_g ϵ g give η ≤ Q η O + ϵ g \eta\leq Q\eta_O+\epsilon_g η ≤ Q η O + ϵ g . If the ideal success probability is at least p min > 2 η p_{\min}>2\eta p m i n > 2 η , normalizing the successful outputs gives trace-norm error at most 4 η / p min 4\eta/p_{\min} 4 η / p m i n .
An identically zero coefficient column uses an always-failed zero-query outcome. To obtain a trace-preserving channel with a retained outcome flag, we replace failure by a fixed signal state; Proposition E.4 gives the additional registers and error bound for this postprocessing, which uses no further oracle call.
Example 5.6 (Symmetric and antisymmetric Kraus histories). For the degree-two targets F + , F − F_+,F_- F + , F − introduced above, we can evaluate this normalization explicitly. We assign the two combinations of ordered histories to orthogonal labels ∣ + ⟩ \lvert+\rangle ∣ + ⟩ and ∣ − ⟩ \lvert-\rangle ∣ − ⟩ . Writing X = A 1 A 2 X=A_1A_2 X = A 1 A 2 and Y = A 2 A 1 Y=A_2A_1 Y = A 2 A 1 for a column contraction, we find
F + ( A ) † F + ( A ) + F − ( A ) † F − ( A ) = 2 ( X † X + Y † Y ) F_+(A)^{\dagger}F_+(A)+F_-(A)^{\dagger}F_-(A)=2(X^{\dagger}X+Y^{\dagger}Y) F + ( A ) † F + ( A ) + F − ( A ) † F − ( A ) = 2 ( X † X + Y † Y ) ⪯ 2 ∑ j A j † ( ∑ i A i † A i ) A j ⪯ 2 I n . \preceq2\sum_j A_j^{\dagger}\left(\sum_i A_i^{\dagger}A_i\right)A_j\preceq2I_n. ⪯ 2 j ∑ A j † ( i ∑ A i † A i ) A j ⪯ 2 I n . The cross terms cancel in the joint norm, although each labeled output retains interference between the histories. The bound is attained by the qubit Kraus operators K 1 = ∣ 0 ⟩ ⟨ 1 ∣ K_1=\lvert0\rangle\langle1\rvert K 1 = ∣ 0 ⟩ ⟨ 1 ∣ and K 2 = ∣ 1 ⟩ ⟨ 0 ∣ K_2=\lvert1\rangle\langle0\rvert K 2 = ∣ 1 ⟩ ⟨ 0 ∣ , for which F + = I F_+=I F + = I and F − = Z F_-=Z F − = Z , so B F = 2 B_F=\sqrt{2} B F = 2 and the coherent selected output is
∣ ψ ⟩ ↦ 1 β ( ∣ + ⟩ ∣ ψ ⟩ + ∣ − ⟩ Z ∣ ψ ⟩ ) . \lvert\psi\rangle\mathrel{\mapsto}\frac{1}{\beta}(\lvert+\rangle\lvert\psi\rangle+\lvert-\rangle Z\lvert\psi\rangle). ∣ ψ ⟩ ↦ β 1 (∣ + ⟩ ∣ ψ ⟩ + ∣ − ⟩ Z ∣ ψ ⟩) . Discarding the label gives ( ρ + Z ρ Z ) / β 2 (\rho+Z\rho Z)/\beta^2 ( ρ + Z ρZ ) / β 2 with probability 2 / β 2 2/\beta^2 2/ β 2 . Selecting the + + + label instead has probability 1 / β 2 1/\beta^2 1/ β 2 and conditional output ρ \rho ρ , also for inputs entangled with a reference. The theorem chooses a rational β > 2 \beta>\sqrt{2} β > 2 within the stated relative margin; the boundary value 2 \sqrt{2} 2 gives probability-one success for the joint output in this example.
These targets also have a direct two-call construction. We retain both returned environments and order their four histories by the products K 1 K 2 K_1K_2 K 1 K 2 , K 2 K 1 K_2K_1 K 2 K 1 , K 1 K 1 K_1K_1 K 1 K 1 , K 2 K 2 K_2K_2 K 2 K 2 . We apply the selected environment matrix
C = 1 β ( 1 1 0 0 1 − 1 0 0 ) , C C † = 2 β 2 I 2 ⪯ I 2 . C=\frac{1}{\beta}\begin{pmatrix}1&1&0&0\\1&-1&0&0\end{pmatrix},\qquad CC^{\dagger}=\frac{2}{\beta^2}I_2\preceq I_2. C = β 1 ( 1 1 1 − 1 0 0 0 0 ) , C C † = β 2 2 I 2 ⪯ I 2 . Its Julia completion gives the two outputs using clean-input Stinespring access and fresh environments. This fixed-length construction illustrates the operation directly; the joint-oracle compiler also accepts finite-state targets that combine different history lengths.
The operation is specified relative to the coherent implementation. Kraus lists for the same channel, padded to a common length, obey K ~ b = ∑ a V b a K a \widetilde{K}_b = \sum_a V_{ba}K_a K b = ∑ a V ba K a for an environment unitary V V V [89 Corollary 2.23] . Tracing the environment removes this change of basis, while evaluating fixed polynomials in its amplitudes generally retains it. In the history example, the change ( K 1 , K 2 ) ↦ ( ( K 1 + K 2 ) / 2 , ( K 1 − K 2 ) / 2 ) (K_1,K_2) \mapsto((K_1+K_2)/\sqrt{2},(K_1-K_2)/\sqrt{2}) ( K 1 , K 2 ) ↦ (( K 1 + K 2 ) / 2 , ( K 1 − K 2 ) / 2 ) gives F + = 0 F_+ = 0 F + = 0 and F − = − Z F_- = -Z F − = − Z for the displayed qubit channel, so it changes the successful operation. This dependence on implementation is the additional information studied in coherent channel control [10 ] and coherent-trajectory models [33 ] .
The coherent identity sector also fixes a phase reference when different degrees are combined. For example, the one-Kraus lists K = I n K = I_n K = I n and K = − I n K = -I_n K = − I n represent the same identity channel, but ( I n + K ) / 2 (I_n+K)/2 ( I n + K ) /2 is respectively I n I_n I n and zero. A classical instrument specifies only the maps K a ρ K a † K_a\rho K_a^\dagger K a ρ K a † , which are unchanged by independent Kraus phases. The algorithm therefore receives the full coherent unitary and its environment basis as input. Example E.3 in Appendix § 15 .§ 4 gives a two-output filter using the interference with the identity sector.
The direct two-call construction extends to d d d clean-input Stinespring calls by retaining fresh environments and applying a supplied contraction C C C to their histories. Appendix § 15 .§ 4 derives the condition C † C ⪯ I C^\dagger C \preceq I C † C ⪯ I and the cross-history operation, with d q e n v d_{\mathrm{qenv}} d qenv environment qubits and v k d v k^d v k d explicit matrix entries. The polynomial compiler uses a compact recurrence and the coherent identity sector to combine different lengths, with normalization determined by the associated column ball. These different input constraints account for the different normalization problems.
Channel-only access and causal controllers
For channel-only access, the object to be specified is a controller interleaved with the channel calls. One source of such a specification is optimization over causal Choi matrices [31 ] . As a supplementary construction, we give the classical step that converts supplied rational controller data into the processing gates and retained memory. Such networks are described by quantum strategies [47 ] and combs [30 ] , extending the single-slot supermap setting [29 ] . If E 1 , … , E Q \mathcal{E}_1,\ldots,\mathcal{E}_Q E 1 , … , E Q act on the signal and V j ( X ) = U j X U j † \mathcal{V}_j(X)=U_j X U_j^\dagger V j ( X ) = U j X U j † are known processing channels on signal and memory, the required mapping is
C [ E 1 , … , E Q ] ( ρ ) = Tr M c [ V Q + 1 ∘ ( E Q ⊗ id ) ∘ V Q ∘ ⋯ ∘ ( E 1 ⊗ id ) ∘ V 1 ( ρ ⊗ ∣ 0 ⟩ ⟨ 0 ∣ M c ) ] . (97) \mathcal{C}[\mathcal{E}_1,\ldots,\mathcal{E}_Q](\rho)=\operatorname{Tr}_{M_c}\left[\mathcal{V}_{Q+1}\circ(\mathcal{E}_Q\otimes\operatorname{id})\circ\mathcal{V}_Q\circ\cdots\circ(\mathcal{E}_1\otimes\operatorname{id})\circ\mathcal{V}_1\left(\rho\otimes|0\rangle\langle0|_{M_c}\right)\right]. \tag*{(97)} C [ E 1 , … , E Q ] ( ρ ) = Tr M c [ V Q + 1 ∘ ( E Q ⊗ id ) ∘ V Q ∘ ⋯ ∘ ( E 1 ⊗ id ) ∘ V 1 ( ρ ⊗ ∣0 ⟩ ⟨ 0 ∣ M c ) ] . (97)
The identities act on M c M_c M c , which starts at zero and is discarded at the end. This formulation specifies a function of the channel slots, because their environments are traced by the channel calls themselves. The known processing gates may act on the signal as well as the retained memory.
To compute these gates, we receive exact rational Choi matrices for the controller prefixes. Positivity specifies complete positivity through the Choi correspondence [32 ] ; a partial-trace identity at each prefix specifies causal normalization. The realization theorem for combs [30 ] and its prefix-rank construction [15 ] supply the mathematical basis. Appendix § 14 adapts them to numerical Gram factors, full square unitaries, and finite-bit gate synthesis. Proposition D.2 gives a polynomial bound in the explicit Choi input length and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) , including an optional successful outcome with a supplied deterministic completion. A dense terminal Choi matrix has n 4 ( Q + 1 ) n^{4(Q+1)} n 4 ( Q + 1 ) entries, so this bound is measured in that explicit description. The polynomial algorithm supplies the compact-coefficient construction of this paper; compilation from the supplied Choi matrices describes the additional data and operations needed when the target is instead a function of channel slots alone.
Discussion
We have constructed multivariable polynomial transformations by connecting a compact coefficient description to a finite Schur–Agler certificate and then to a quantum circuit. Its completeness in the target’s residual space connects the classical input size to the norm calculation and gate parameters. The general sequence and row factorization then show how the input layout affects the query count.
A natural next question is which other layouts permit synthesis at the degree. The row factorization removes the normalization-margin dependence from the query count, while our general construction costs O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) queries. Understanding when this dependence can be reduced will require a suitable invariant for the coefficients or a different way to combine their products. Exact boundary discovery is another issue: the finite-history criterion gives algebraic-input decidability at a prescribed query count, while compact certificates at the norm boundary would extend the efficient synthesis algorithm. We would also like to optimize the coefficient representation [25 ] , positive certificate and processing memory together, since minimizing any one of them need not minimize the others.
For matrix-function applications, synthesis should be paired with approximations that are compact and controlled in the same joint norm. Free holomorphic approximation [7 ] and noncommutative function theory [62 ] provide the setting; Appendix § 16 .§ 1 supplies one computable example with a tail and success bound. In single-variable QSP, constrained minimax approximation explicitly couples approximation quality to the global implementation bound [36 ] . An analogous design process on a joint matrix domain could help identify useful multivariable filters, with loading and input-state costs included in their analysis.
The joint-output construction makes polynomial coefficients available as design variables for heralded filters and instruments. We can ask for a desired family of Kraus polynomials, impose a common trace bound, and use the certificate to calculate the corresponding gates. For quantum-information applications, the next steps are to find families with useful success probabilities and to understand their dependence on the chosen coherent implementation. Representation-independent families would connect this approach more directly to channel-level tasks, while robustness must distinguish fixed environment coordinates from the aligned dilations of Stinespring continuity [61 ] . For channel-only controllers, causal-network optimization [31 ] can supply the Choi data for the separate compiler in Appendix § 14 . Compact descriptions preserving the intermediate causal identities, memory tradeoffs [16 ] , and stability under adaptive tests [46 ] are the immediate questions for that route; other higher-order maps require their own realization conditions [22 ] .
Note added
In concurrent work, Low [70 ] develops multivariate quantum signal processing for noncommuting matrices through Schur–Agler realizations and analytic transfer-function design. Our emphasis is on complete synthesis from compact rational coefficient descriptions under joint block access, with near-optimal uniform normalization and polynomial bit complexity. We also treat quantum channel transformations, including polynomial operations on coherent Kraus implementations and gate synthesis from causal Choi data. Jing, Wang, Yu, and Zhang [57 ] give multivariate polynomial transformations with optimal per-variable query counts and extend their construction to commuting unitaries. Jiang and An [55 ] construct multivariable quantum eigenvalue transformations for commuting matrices using contour-integral and Fourier-transform methods.
AI disclosure
The central ideas and main components of this work were conceived by the authors. In developing the results and preparing the manuscript, the authors engaged in multi-round discussions with OpenAI’s models, beginning with GPT-5.3 Pro and continuing through GPT-6 Astra. These interactions covered methodological details, alternative formulations and derivations, proof development and checking, searches for gaps and counterexamples, literature searches, diagnostic code and numerical checks, and the organization, exposition, and revision of the manuscript. The authors directed the research and made the final decisions about the arguments and presentation. They take full responsibility for the results, proofs, citations, and final text.
Acknowledgments
The authors thank Zhong-Xia Shang and Dong An for helpful discussion. This work is supported by the National Natural Science Foundation of China Grant No. 12361161602 and NSAF Grant No. U2330201, the Quantum Science and Technology–National Science and Technology Major Project No. 2023ZD0300200, Beijing Natural Science Foundation Z250004, and Beijing Science and Technology Planning Project Grant No. Z25110100810000. Y. Wu acknowledges support from NSFC Grants No. 62501060, No. 62461160263, and No. 62371050.
References
Finite-bit matrix computation
The classical synthesis algorithm must make exact decisions about coefficient identities and matrix supports, and it must approximate the numerical gate entries with certified error. We first give the quantitative semidefinite search and norm estimation, then the rational coefficient and support calculations on which the constructions depend, and finally the matrix-function evaluators. Rank and feasibility are decided from exact rational data throughout. Gate compilation uses the certified intervals and overlapping tolerance tests of Appendix B.4.
Strict certificates and finite norm computation
The feasibility routine needs an outer bound on its positive matrices and an inner ball that is guaranteed by the strict norm promise. A scaled coefficient Gram provides the outer bound; a uniform estimate on the residual polynomials gives a positive definite certificate of the constant polynomial and hence the inner ball. Both estimates can be computed in residual coordinates, without constructing the exponentially large word-evaluation tuple used to prove completeness.
A rational left inverse of the a b × k ab \times k ab × k matrix whose columns are the entries of F j F_j F j gives constants c j △ ≥ 1 c_j^\triangle\ge1 c j △ ≥ 1 such that ∥ A j ∥ ≤ c j △ \lVert A_j\rVert\le c_j^\triangle ∥ A j ∥ ≤ c j △ whenever ∥ Δ ( A ) ∥ ≤ 1 \lVert\Delta(A)\rVert\le1 ∥ Δ ( A )∥ ≤ 1 . Indeed, the same entry formula expresses A j A_j A j as a scalar linear combination of the n × n n \times n n × n blocks of Δ ( A ) \Delta(A) Δ ( A ) , each of norm at most one. The sum of absolute real and imaginary parts of those scalar coefficients is a rational admissible bound. We also choose a positive rational ρ ≤ 1 \rho\le1 ρ ≤ 1 satisfying
ρ 2 ∥ ∑ j F j † F j ∥ ≤ 1 4 ; \rho^2\left\lVert\sum_j F_j^\dagger F_j\right\rVert\le\frac{1}{4}; ρ 2 j ∑ F j † F j ≤ 4 1 ;
a rational entrywise upper bound on the matrix norm suffices for this choice.
The weighted coefficient Gram of the residual list is computed by the finite recurrence
W f = a 0 a 0 † + ρ 2 ∑ j A j r e s W f ( A j r e s ) † . (98) W_f = a_0a_0^\dagger+\rho^2\sum_j A_j^{\mathrm{res}}W_f\left(A_j^{\mathrm{res}}\right)^\dagger. \tag*{(98)} W f = a 0 a 0 † + ρ 2 j ∑ A j res W f ( A j res ) † . (98)
Iteration from zero terminates after at most D D D updates, because all length-D D D residual transition products vanish. If f ℓ , w f_{\ell,w} f ℓ , w denotes the scalar coefficient of x w x_w x w in f ℓ f_\ell f ℓ , then its entries are [ W f ] ℓ t = ∑ w ρ 2 ∣ w ∣ f ℓ , w f t , w ‾ [W_f]_{\ell t}=\sum_w \rho^{2|w|}f_{\ell,w}\overline{f_{t,w}} [ W f ] ℓ t = ∑ w ρ 2∣ w ∣ f ℓ , w f t , w . The independence of the residuals makes W f W_f W f positive definite. The Gram of the list g g g is the explicit block matrix
W g = ( 1 0 ⋯ 0 0 ρ 2 W f 0 ⋮ ⋱ 0 0 ρ 2 W f ) , (99) W_g=
\begin{pmatrix}
1 & 0 & \cdots& 0\\
0 & \rho^2W_f & & 0\\
\vdots& & \ddots& \\
0 & 0 & & \rho^2W_f
\end{pmatrix}, \tag*{(99)} W g = 1 0 ⋮ 0 0 ρ 2 W f 0 ⋯ ⋱ 0 0 ρ 2 W f , (99)
with k k k copies of the lower diagonal block, so its order is h = 1 + k r h=1+kr h = 1 + k r . There are no off-diagonal blocks because different initial letters produce different words.
We compute a rational spectral lower bound
λ = ( 1 + ∑ u , v ( ∣ Re ( W f − 1 ) u v ∣ + ∣ Im ( W f − 1 ) u v ∣ ) ) − 1 , χ = 3 4 ρ 2 λ . (100) \lambda=\left(1+\sum_{u,v}\left(\left|\operatorname{Re}(W_f^{-1})_{uv}\right|+\left|\operatorname{Im}(W_f^{-1})_{uv}\right|\right)\right)^{-1},
\qquad
\chi=\frac{3}{4}\rho^2\lambda. \tag*{(100)} λ = ( 1 + u , v ∑ ( Re ( W f − 1 ) uv + Im ( W f − 1 ) uv ) ) − 1 , χ = 4 3 ρ 2 λ . (100)
Here 0 < λ ≤ min { 1 , λ min ( W f ) } 0<\lambda\le\min\{1,\lambda_{\min}(W_f)\} 0 < λ ≤ min { 1 , λ m i n ( W f )} . At the finite tuple used in Eq. (38) , I − Δ † Δ ⪰ 3 I / 4 I-\Delta^\dagger\Delta\succeq3I/4 I − Δ † Δ ⪰ 3 I /4 . Each polynomial h α , ℓ h_{\alpha,\ell} h α , ℓ has degree at most D − 1 D-1 D − 1 , so its coefficient norm on the empty-word input is evaluated exactly by the truncated tuple. The first square term is bounded below by the smallest eigenvalue of W g W_g W g , and the query-defect term by 3 λ / 4 3\lambda/4 3 λ /4 . Thus the chosen χ \chi χ verifies Eq. (38) . In particular, every certificate of β 2 − p ∗ p \beta^2-p^*p β 2 − p ∗ p obeys
Tr S + Tr T ≤ β 2 / χ , (101) \operatorname{Tr} S+\operatorname{Tr} T\leq\beta^2/\chi, \tag*{(101)} Tr S + Tr T ≤ β 2 / χ , (101)
because its value on the empty-word input is at most β 2 \beta^2 β 2 .
A uniform bound on the residual polynomials can also be computed from their recurrence. Replacing numerical matrix norms by rational majorants, we choose
U f ≥ ∥ a 0 ∥ ∑ d = 0 D − 1 ( ∑ j ∥ c j Δ ∥ ∥ A j r e s ∥ ) d . (102) U_f\geq\lVert a_0\rVert\sum_{d=0}^{D-1}\left(\sum_j \lVert c_j^\Delta\rVert\lVert A_j^{\mathrm{res}}\rVert\right)^d. \tag*{(102)} U f ≥ ∥ a 0 ∥ d = 0 ∑ D − 1 ( j ∑ ∥ c j Δ ∥ ∥ A j res ∥ ) d . (102)
For every unit signal vector, the square root of ∑ ℓ ∥ f ℓ ( A ) ∣ ψ ⟩ ∥ 2 \sum_\ell\lVert f_\ell(A)|\psi\rangle\rVert^2 ∑ ℓ ∥ f ℓ ( A ) ∣ ψ ⟩ ∥ 2 is at most U f U_f U f , by the Euclidean triangle inequality applied to the coefficient expansion. Consequently ∑ ℓ f ℓ ( A ) † f ℓ ( A ) ⪯ U f 2 I n \sum_\ell f_\ell(A)^\dagger f_\ell(A)\preceq U_f^2I_n ∑ ℓ f ℓ ( A ) † f ℓ ( A ) ⪯ U f 2 I n . This yields a rational bound
M 0 = 1 + ( b + ∑ j ( c j Δ ) 2 ) U f 2 , σ 0 = ( 2 M 0 ) − 1 (103) M_0=1+\left(b+\sum_j(c_j^\Delta)^2\right)U_f^2,\qquad\sigma_0=(2M_0)^{-1} \tag*{(103)} M 0 = 1 + ( b + j ∑ ( c j Δ ) 2 ) U f 2 , σ 0 = ( 2 M 0 ) − 1 (103)
on the positive expression represented by I h + Φ ( I b r ) I_h+\Phi(I_{br}) I h + Φ ( I b r ) . Its square term is bounded by I n + ( ∑ j ( c j Δ ) 2 ) U f 2 I n I_n+(\sum_j(c_j^\Delta)^2)U_f^2I_n I n + ( ∑ j ( c j Δ ) 2 ) U f 2 I n , and its query-defect term lies between zero and b U f 2 I n bU_f^2I_n b U f 2 I n . Therefore the constant polynomial minus σ 0 \sigma_0 σ 0 times this expression is at least I n / 2 I_n/2 I n /2 at every admissible tuple. Applying the generalized certificate of Theorem 3.2 to that difference gives the following quantitative consequence. We prove its constants explicitly, since the classical stopping bound depends on their encoding lengths.
Lemma A.1 (Explicit strict margins). The constant polynomial 1 1 1 has a certificate in the same coordinates with S ⪰ σ 0 I h S\succeq\sigma_0I_h S ⪰ σ 0 I h and T ⪰ σ 0 I b r T\succeq\sigma_0I_{br} T ⪰ σ 0 I b r . For real γ > 0 \gamma>0 γ > 0 and 0 ≤ ν < 1 0\leq\nu<1 0 ≤ ν < 1 , if ∥ p / γ ∥ S A , Δ ≤ ν \lVert p/\gamma\rVert_{\mathrm{SA},\Delta}\leq\nu ∥ p / γ ∥ SA , Δ ≤ ν , then 1 − p ∗ p / γ 2 1-p^*p/\gamma^2 1 − p ∗ p / γ 2 has a certificate with
S ⪰ μ ∗ I h , T ⪰ μ ∗ I b r , μ ∗ = ( 1 − ν 2 ) σ 0 , Tr S + Tr T ≤ 1 / χ . (104) S\succeq\mu_*I_h,\qquad T\succeq\mu_*I_{br},\qquad\mu_*=(1-\nu^2)\sigma_0,\qquad\operatorname{Tr}S+\operatorname{Tr}T\leq1/\chi. \tag*{(104)} S ⪰ μ ∗ I h , T ⪰ μ ∗ I b r , μ ∗ = ( 1 − ν 2 ) σ 0 , Tr S + Tr T ≤ 1/ χ . (104) When γ > 0 \gamma>0 γ > 0 and 0 ≤ ν < 1 0\leq\nu<1 0 ≤ ν < 1 are rational input parameters, all margin constants above can be computed rationally. Their logarithmic magnitudes and inverse magnitudes are polynomially bounded in the rational input lengths and log ( 1 / ( 1 − ν ) ) \log(1/(1-\nu)) log ( 1/ ( 1 − ν )) .
Proof. The positive difference has coefficient matrix
Q c = E † E − σ 0 ( I h + Φ ( I b r ) ) . Q_c=E^\dagger E-\sigma_0\bigl(I_h+\Phi(I_{br})\bigr). Q c = E † E − σ 0 ( I h + Φ ( I b r ) ) .
The uniform estimate above proves q Q c ( A ) ⪰ I n / 2 q_{Q_c}(A)\succeq I_n/2 q Q c ( A ) ⪰ I n /2 at every admissible tuple. The general hereditary assertion of Theorem 3.2 therefore gives Q c = S c + Φ ( T c ) Q_c=S_c+\Phi(T_c) Q c = S c + Φ ( T c ) with S c , T c ⪰ 0 S_c,T_c\succeq0 S c , T c ⪰ 0 . Rearranging yields the constant certificate
E † E = ( S c + σ 0 I h ) + Φ ( T c + σ 0 I b r ) . E^\dagger E=(S_c+\sigma_0I_h)+\Phi(T_c+\sigma_0I_{br}). E † E = ( S c + σ 0 I h ) + Φ ( T c + σ 0 I b r ) .
whose two matrices have the required positive margins. The hereditary polynomial with coefficient matrix ν 2 E † E − P † P / γ 2 \nu^2E^\dagger E-P^\dagger P/\gamma^2 ν 2 E † E − P † P / γ 2 is positive on the domain by the norm promise, so the same theorem supplies its certificate. Adding 1 − ν 2 1-\nu^2 1 − ν 2 times the displayed constant certificate gives the exact coefficient matrix E † E − P † P / γ 2 E^\dagger E-P^\dagger P/\gamma^2 E † E − P † P / γ 2 with the lower bounds in Eq. (A.7), and Eq. (A.4) bounds its trace. The constants have controlled bit length because Eq. (A.1) is a recurrence of length at most D D D on rational matrices of order r r r : common denominators bound its entries, while inverses and coordinate solutions are ratios of rational minors. The finitely many sums and products in Eqs. (A.5)–(A.6) also have polynomial logarithmic size, so all spectral bounds are computable from the rational residual data and the supplied strict margin with the asserted encoding lengths.
We now eliminate S S S from Eq. (36) for p / γ p/\gamma p / γ and search over the independent real entries of T T T . There are d 0 = ( b r ) 2 d_0=(b r)^2 d 0 = ( b r ) 2 real coordinates, counting a complex off-diagonal entry by its real and imaginary parts. The search region is
T ⪰ μ ∗ I b r / 4 , E † E − P † P / γ 2 − Φ ( T ) ⪰ μ ∗ I h / 4 , ∣ Re T u v ∣ , ∣ Im T u v ∣ ≤ U 0 , U 0 = 1 + 2 / χ . (105) \begin{aligned}
T &\succeq\mu_* I_{b r}/4,\\
E^\dagger E-P^\dagger P/\gamma^2-\Phi(T) &\succeq\mu_* I_h/4,\\
\lvert\operatorname{Re}T_{uv}\rvert,\ \lvert\operatorname{Im}T_{uv}\rvert&\le U_0,\qquad U_0=1+2/\chi. \tag*{(105)}
\end{aligned} T E † E − P † P / γ 2 − Φ ( T ) ∣ Re T uv ∣ , ∣ Im T uv ∣ ⪰ μ ∗ I b r /4 , ⪰ μ ∗ I h /4 , ≤ U 0 , U 0 = 1 + 2/ χ . (105)
The rational number L Φ = 1 + ∑ α ∥ E α ∥ F 2 + ∑ μ ∥ M μ ∥ F 2 L_\Phi=1+\sum_\alpha\lVert E_\alpha\rVert_F^2+\sum_\mu\lVert M_\mu\rVert_F^2 L Φ = 1 + ∑ α ∥ E α ∥ F 2 + ∑ μ ∥ M μ ∥ F 2 is a norm majorant for the affine map. A perturbation of Euclidean coordinate norm d d d changes T T T by operator norm at most 2 d 2d 2 d and Φ ( T ) \Phi(T) Φ ( T ) by at most 2 L Φ d 2L_\Phi d 2 L Φ d . The strict certificate from Lemma A.1 is therefore the center of a ball of radius
r i n = min { 1 , μ ∗ / ( 8 L Φ ) } , R o u t = U 0 max { 1 , d 0 } (106) r_{\mathrm{in}}=\min\{1,\mu_*/(8L_\Phi)\},\qquad R_{\mathrm{out}}=U_0\max\{1,d_0\} \tag*{(106)} r in = min { 1 , μ ∗ / ( 8 L Φ )} , R out = U 0 max { 1 , d 0 } (106)
contained in the search region, whereas the entire region lies in the ball of radius R o u t R_{\mathrm{out}} R out about the origin. The center of the inner ball need not be known.
Rational separation and stopping. For a rational Hermitian matrix M M M , elimination either proves M ⪰ 0 M\succeq0 M ⪰ 0 or finds a rational column v v v with v † M v < 0 v^\dagger Mv<0 v † M v < 0 . A negative diagonal entry is already such a witness. A positive pivot permits a Schur complement, and a witness for that complement is lifted by rational triangular substitution. If a diagonal pivot is zero and its row has a nonzero off-diagonal entry, we choose a two-coordinate column with a rational multiple and phase of that entry; its quadratic form has a linear negative term, which dominates the quadratic term for a sufficiently small positive rational multiplier. If the row is zero it is deleted. These cases give an exact rational test, with bit bounds controlled by minors as in fraction-free elimination [11 ] . Applying v † M ( z ) v v^\dagger M(z)v v † M ( z ) v to an affine matrix gives a separating linear inequality in its real coordinates, and box violations give immediate coordinate cuts.
The ellipsoid method uses the inner and outer radii in Eq. (A.9) as follows. In real dimension d ≥ 2 d\ge2 d ≥ 2 , a central cut with normal a a a updates a center c c c and a positive shape matrix H H H by
c ′ = c − H a ( d + 1 ) a T H a , H ′ = d 2 d 2 − 1 ( H − 2 d + 1 H a a T H a T H a ) . (107) c'=c-\frac{Ha}{(d+1)\sqrt{a^{\mathsf T}Ha}},\qquad
H'=\frac{d^2}{d^2-1}\left(H-\frac{2}{d+1}\frac{Haa^{\mathsf T}H}{a^{\mathsf T}Ha}\right). \tag*{(107)} c ′ = c − ( d + 1 ) a T H a H a , H ′ = d 2 − 1 d 2 ( H − d + 1 2 a T H a H a a T H ) . (107)
The new ellipsoid contains the retained half of the old one. Its logarithmic volume ratio is
− d 2 log ( 1 − d − 2 ) − arctanh ( d − 1 ) = − ∑ j ≥ 1 d − ( 2 j − 1 ) 2 j ( 2 j − 1 ) ≤ − 1 2 d . -\frac{d}{2}\log(1-d^{-2})-\operatorname{arctanh}(d^{-1})
=-\sum_{j\ge1}\frac{d^{-(2j-1)}}{2j(2j-1)}
\le-\frac{1}{2d}. − 2 d log ( 1 − d − 2 ) − arctanh ( d − 1 ) = − j ≥ 1 ∑ 2 j ( 2 j − 1 ) d − ( 2 j − 1 ) ≤ − 2 d 1 .
A separator at an infeasible center can be weakened to the parallel central cut through that center while preserving every feasible point. If its normal is zero, the violated affine inequality is constant, so the search returns failure immediately. These central cuts implement separation-to-feasibility [42 , 43 ] ; the rounding choices below preserve their volume decrease with rational arithmetic.
We take θ = 1 / ( 100 d 2 ) \theta=1/(100d^2) θ = 1/ ( 100 d 2 ) . If H t H_t H t is the shape after t t t rounded cuts, we maintain the rational spectral lower bound λ min ( H t ) ≥ R o u t 2 4 − t \lambda_{\min}(H_t)\ge R_{\mathrm{out}}^2 4^{-t} λ m i n ( H t ) ≥ R out 2 4 − t . The exact shape update obeys
d 2 ( d + 1 ) 2 H t ⪯ H ′ ⪯ d 2 d 2 − 1 H t , \frac{d^2}{(d+1)^2}H_t\preceq H'\preceq\frac{d^2}{d^2-1}H_t, ( d + 1 ) 2 d 2 H t ⪯ H ′ ⪯ d 2 − 1 d 2 H t ,
so ℓ t = R o u t 2 4 − ( t + 1 ) \ell_t=R_{\mathrm{out}}^2 4^{-(t+1)} ℓ t = R out 2 4 − ( t + 1 ) is a valid lower bound for H ′ H' H ′ . We round its entries symmetrically to a dyadic grid of spacing g t ≤ θ ℓ t / ( 8 d ) g_t\le\theta\ell_t/(8d) g t ≤ θ ℓ t / ( 8 d ) , then add g t I g_tI g t I . The resulting rational H q H_q H q satisfies H ′ ⪯ H q ⪯ ( 1 + θ ) H ′ H'\preceq H_q\preceq(1+\theta)H' H ′ ⪯ H q ⪯ ( 1 + θ ) H ′ , since the operator-norm entry-rounding error is at most d g t / 2 dgt/2 d g t /2 . We also compute a rational center c q c_q c q with ∥ c q − c ′ ∥ 2 ≤ θ ℓ t \lVert c_q-c'\rVert_2 \le\theta\sqrt{\ell_t} ∥ c q − c ′ ∥ 2 ≤ θ ℓ t and use the new shape ( 1 + θ ) 2 H q (1+\theta)^2H_q ( 1 + θ ) 2 H q . The center tolerance is effective because ℓ t = R o u t 2 − ( t + 1 ) \sqrt{\ell_t}=R_{\mathrm{out}}2^{-(t+1)} ℓ t = R out 2 − ( t + 1 ) is rational. The triangle inequality in the H ′ − 1 H'^{-1} H ′ − 1 norm proves that this rounded ellipsoid contains the exact updated ellipsoid.
The rounding multiplies volume by at most ( 1 + θ ) 3 d / 2 (1+\theta)^{3d/2} ( 1 + θ ) 3 d /2 , so a rounded cut reduces volume by at least the factor exp ( − 1 / ( 4 d ) ) \exp(-1/(4d)) exp ( − 1/ ( 4 d )) . Its shape remains bounded below by H t / 4 H_t/4 H t /4 and above by 2 H t 2H_t 2 H t , which proves the stated lower bound inductively and also gives λ max ( H t ) ≤ 2 t R o u t 2 \lambda_{\max}(H_t)\le2^tR_{\mathrm{out}}^2 λ m a x ( H t ) ≤ 2 t R out 2 . Hence all grid sizes, center-square-root evaluations, and rational separators require polynomially many bits in t t t , the input length, and the radius logarithms. Rounding after every cut prevents the denominator growth of an exact iteration.
For an entirely rational stopping rule, we compute an integer b r ≥ 0 b_r\ge0 b r ≥ 0 with 2 b r ≥ max { 1 , R o u t / r i n } 2^{b_r}\ge\max\{1,R_{\mathrm{out}}/r_{\mathrm{in}}\} 2 b r ≥ max { 1 , R out / r in } and use at most
N e l l = 8 d 2 ( 1 + b r ) (108) N_{\mathrm{ell}}=8d^2(1+b_r) \tag*{(108)} N ell = 8 d 2 ( 1 + b r ) (108)
cuts. If no center has been feasible by then, the volume bound is smaller than the volume of a ball of radius r i n r_{\mathrm{in}} r in , contradicting the promised retained ball. Dimension one uses midpoint interval bisection for at most b r + 2 b_r+2 b r + 2 cuts. Thus the cap is computable before the search starts; failure disproves the specified interior-ball promise and does not decide arbitrary exact boundary feasibility. This is exactly the distinction required by the norm search of Theorem 3.6 .
Quantitative proof of Proposition 3.5 . The radii in Eq. (A.9) allow us to run the rational separation and rounded ellipsoid procedure on Eq. (A.8). Exact Hermitian elimination supplies a rational separator for a violated matrix inequality, and the box constraints give coordinate cuts. Minor bounds control the separators’ encoding lengths, while Lemma A.1 bounds the logarithm of the radius ratio. Together with the rounding estimates, these bounds give polynomial bit cost through the predetermined cap in Eq. (A.11), by which a feasible rational center must have been found if the strict promise holds. Checking every returned T T T against the original rational inequalities ensures that S = E † E − P † P / γ 2 − Φ ( T ) S=E^\dagger E-P^\dagger P/\gamma^2-\Phi(T) S = E † E − P † P / γ 2 − Φ ( T ) satisfies the coefficient identity exactly with the reserved positive margins. Conversely, reaching the cap without a verified point contradicts the inner-ball guarantee and therefore disproves the stated norm promise, which is the lower-bound implication needed by norm search; no conclusion about arbitrary boundary feasibility is required. □ \square □
Relative norm estimation. The capped search can estimate an unknown norm because its two outcomes give verified upper and lower bounds at nearby thresholds. It starts from rational bounds computed from the coefficient recurrence. For a nonzero nonconstant target, evaluation at the scaled word tuple gives
t p = P W g P † > 0 , ℓ 0 = t p 1 + t p ≤ t p ≤ B . (109) t_p=PW_gP^\dagger>0,\qquad\ell_0=\frac{t_p}{1+t_p}\le\sqrt{t_p}\le B. \tag*{(109)} t p = P W g P † > 0 , ℓ 0 = 1 + t p t p ≤ t p ≤ B . (109)
A rational upper bound follows from Eq. (29) , the c j Δ c_j^\Delta c j Δ , and U f U_f U f , for example by bounding ∣ c ∅ ∣ + ∑ j ∣ p j ∣ ∣ c j Δ ∣ U f |c_\varnothing|+\sum_j|p_j|\,|c_j^\Delta|U_f ∣ c ∅ ∣ + ∑ j ∣ p j ∣ ∣ c j Δ ∣ U f . Both endpoints have polynomial bit length. The following proof gives the stopping bound for the bracket updates, including the case of a constant target.
Detailed proof of Theorem 3.6 . For a nonzero constant polynomial, B = ∣ c ∅ ∣ B=|c_\varnothing| B = ∣ c ∅ ∣ is obtained to relative precision by rational bisection using the exact square ∣ c ∅ ∣ 2 |c_\varnothing|^2 ∣ c ∅ ∣ 2 ; the positive bracket ∣ c ∅ ∣ 2 / ( 1 + ∣ c ∅ ∣ 2 ) ≤ B ≤ 1 + ∣ c ∅ ∣ 2 |c_\varnothing|^2/(1+|c_\varnothing|^2)\le B\le1+|c_\varnothing|^2 ∣ c ∅ ∣ 2 / ( 1 + ∣ c ∅ ∣ 2 ) ≤ B ≤ 1 + ∣ c ∅ ∣ 2 gives the stated polynomial bit bound. We therefore assume the target is nonconstant for the remaining argument. For a rational threshold b 0 > 0 b_0>0 b 0 > 0 , we run the strict-search procedure for the normalization ( 1 + η / 8 ) b 0 (1+\eta/8)b_0 ( 1 + η /8 ) b 0 , with the inner-ball promise that follows from B ≤ b 0 B\le b_0 B ≤ b 0 . The number of iterations is capped using that promise. If the promise holds, the algorithm must find a feasible rational point. Whenever it does find such a point, exact verification proves B ≤ ( 1 + η / 8 ) b 0 B\le(1+\eta/8)b_0 B ≤ ( 1 + η /8 ) b 0 , whether or not the initial promise held. If the cap is reached without a feasible point, we conclude only that B > b 0 B>b_0 B > b 0 . The proved iteration bound is what makes this failed search a valid lower-bound test. Starting with the bracket [ ℓ , U ] [\ell,U] [ ℓ , U ] provided by Eq. (A.12), we use b 0 = ( ℓ + U ) / 2 b_0=(\ell+U)/2 b 0 = ( ℓ + U ) /2 . On failure we update the lower endpoint to b 0 b_0 b 0 ; on success we update the upper endpoint to min { U , ( 1 + η / 8 ) b 0 } \min\{U,(1+\eta/8)b_0\} min { U , ( 1 + η /8 ) b 0 } . The bracket continues to contain B B B . While U > ( 1 + η ) ℓ U>(1+\eta)\ell U > ( 1 + η ) ℓ , a success gives length at most
1 2 ( U − ℓ ) + η 8 b 0 ≤ ( 5 8 + η 16 ) ( U − ℓ ) ≤ 11 16 ( U − ℓ ) . \frac{1}{2}(U-\ell)+\frac{\eta}{8}b_0\leq\left(\frac{5}{8}+\frac{\eta}{16}\right)(U-\ell)\leq\frac{11}{16}(U-\ell). 2 1 ( U − ℓ ) + 8 η b 0 ≤ ( 8 5 + 16 η ) ( U − ℓ ) ≤ 16 11 ( U − ℓ ) .
and a failure halves its length. The number of iterations before U ≤ ( 1 + η ) ℓ U\leq(1+\eta)\ell U ≤ ( 1 + η ) ℓ is therefore polynomial in the input bit length and log ( 1 / η ) \log(1/\eta) log ( 1/ η ) . At that point the rational upper endpoint is the desired estimate. The same strict subroutine can subsequently produce a certificate at any normalization with an explicitly supplied margin above this bound.
Finite matrix witnesses
Corollary A.2 (A finite matrix size for the norm). For the nonconstant scalar polynomial in Theorem 3.2 , the norm B B B is attained on a tuple of matrices of order at most h = 1 + k r h=1+kr h = 1 + k r . The norm can equivalently be written as
B = max ∥ Δ ( Y ) ∥ ≤ 1 ∥ p ( Y ) ∥ , Y 1 , … , Y k are h × h matrices . B=\max_{\|\Delta(Y)\|\leq1}\|p(Y)\|,\qquad Y_1,\ldots,Y_k\text{ are }h\times h\text{ matrices}. B = ∥Δ ( Y ) ∥ ≤ 1 max ∥ p ( Y ) ∥ , Y 1 , … , Y k are h × h matrices .
For every 0 ≤ β < B 0\leq\beta<B 0 ≤ β < B , the explicit formulas in Eq. (40) construct such a finite tuple from a separator of β 2 E † E − P † P \beta^2E^\dagger E-P^\dagger P β 2 E † E − P † P and give ∥ p ( Y ) ∥ > β \|p(Y)\|>\beta ∥ p ( Y ) ∥ > β .
Proof. We first explain directly why these finite coordinates suffice to witness the norm. For an admissible tuple A A A and a unit vector ψ \psi ψ , we take H 0 \mathcal{H}_0 H 0 to be the span of the h h h vectors g t ( A ) ψ g_t(A)\psi g t ( A ) ψ and write P 0 P_0 P 0 for its orthogonal projection. We compress each input to Y j = P 0 A j ∣ H 0 Y_j=P_0A_j|_{\mathcal{H}_0} Y j = P 0 A j ∣ H 0 . The block matrix Δ ( Y ) \Delta(Y) Δ ( Y ) is a compression of Δ ( A ) \Delta(A) Δ ( A ) on its input and output copies of H 0 \mathcal{H}_0 H 0 , so it is contractive. The space contains ψ \psi ψ , every f ℓ ( A ) ψ f_\ell(A)\psi f ℓ ( A ) ψ , and p ( A ) ψ p(A)\psi p ( A ) ψ by the coordinate identities.
Induction on residual degree now gives f ( Y ) ψ = f ( A ) ψ f(Y)\psi=f(A)\psi f ( Y ) ψ = f ( A ) ψ for every residual f f f . Indeed, this is immediate for constants; once it holds for the left residuals ∂ j f \partial_jf ∂ j f , the identity f = f ∅ + ∑ j x j ∂ j f f=f_\varnothing+\sum_jx_j\partial_jf f = f ∅ + ∑ j x j ∂ j f gives f ( Y ) ψ = P 0 f ( A ) ψ = f ( A ) ψ f(Y)\psi=P_0f(A)\psi=f(A)\psi f ( Y ) ψ = P 0 f ( A ) ψ = f ( A ) ψ . The same argument then gives p ( Y ) ψ = p ( A ) ψ p(Y)\psi=p(A)\psi p ( Y ) ψ = p ( A ) ψ . Thus each value contributing to the supremum of ∥ p ( A ) ∥ \|p(A)\| ∥ p ( A ) ∥ is already attained on a space of dimension at most h h h . Padding by zero blocks places all these witnesses at size h h h without changing the original polynomial action or the input bound.
To obtain an attained maximum, we use independence of the F j F_j F j . A numerical left inverse of their vectorized coefficient matrix expresses each Y j Y_j Y j as a fixed linear combination of the blocks of Δ ( Y ) \Delta(Y) Δ ( Y ) , so the set of admissible size-h h h tuples is bounded as well as closed. It is therefore compact, and continuity of p p p proves the displayed maximum. The separator construction in Eq. (40) supplies the stated explicit witness whenever β < B \beta<B β < B , because its negative quadratic form for β 2 − p † p \beta^2-p^\dagger p β 2 − p † p implies ∥ p ( Y ) ∥ > β \|p(Y)\|>\beta ∥ p ( Y ) ∥ > β . This dimension reduction is consistent with finite-space positivity tests [52 Section 4.4] ; the dual certificate below gives a numerical form of the same norm witness.
For applications requiring an explicit input witnessing a lower bound, the primal certificate has the exact numerical dual
B 2 = max { Tr ( H P † P ) : H ⪰ 0 , Φ ∗ ( H ) ⪰ 0 , Tr ( H E † E ) = 1 } . (110) B^2=\max\{\operatorname{Tr}(HP^\dagger P):H\succeq0,\ \Phi^*(H)\succeq0,\ \operatorname{Tr}(HE^\dagger E)=1\}. \tag*{(110)} B 2 = max { Tr ( H P † P ) : H ⪰ 0 , Φ ∗ ( H ) ⪰ 0 , Tr ( H E † E ) = 1 } . (110)
We prove the dual equality and then use a feasible dual matrix to construct an input witnessing its lower bound. Pairing Eq. (36) with feasible H H H gives weak duality. The strict constant certificate from Lemma A.1 gives 1 ≥ σ 0 Tr H 1 \ge\sigma_0 \operatorname{Tr} H 1 ≥ σ 0 Tr H , so the dual feasible set is bounded and closed. It is nonempty because the scaled word-evaluation functional used in Eq. (38) gives such a matrix. For every 0 ≤ β < B 0 \le\beta< B 0 ≤ β < B , separation of the closed primal cone gives a nonzero H ⪰ 0 H \succeq0 H ⪰ 0 with Φ ∗ ( H ) ⪰ 0 \Phi^*(H) \succeq0 Φ ∗ ( H ) ⪰ 0 and Tr ( H ( β 2 E † E − P † P ) ) < 0 \operatorname{Tr}(H(\beta^2 E^\dagger E-P^\dagger P)) < 0 Tr ( H ( β 2 E † E − P † P )) < 0 . The constant certificate ensures Tr ( H E † E ) > 0 \operatorname{Tr}(HE^\dagger E) > 0 Tr ( H E † E ) > 0 , permitting normalization. These points approach B 2 B^2 B 2 , and compactness proves equality and attainment in Eq. (A.13).
For any dual feasible point, the explicit matrices in Eq. (40) satisfy ∥ Δ ( Y ) ∥ ≤ 1 \lVert\Delta(Y)\rVert\le1 ∥ Δ ( Y )∥ ≤ 1 , ∥ ω ∥ = 1 \lVert\omega\rVert= 1 ∥ ω ∥ = 1 , and ∥ p ( Y ) ω ∥ 2 = Tr ( H P † P ) \lVert p(Y)\omega\rVert^2 = \operatorname{Tr}(HP^\dagger P) ∥ p ( Y ) ω ∥ 2 = Tr ( H P † P ) by Eq. (43) . Thus a dual point gives actual finite matrix inputs witnessing its lower bound. The ordinary transpose in W † W = H T W^\dagger W = H^{\mathsf{T}} W † W = H T is necessary: factoring H H H instead changes the conjugation in Eq. (41) for complex joint-block coefficients. The construction applies to each supplied feasible dual point; the efficient norm-search algorithm uses the strict primal certificates described in the main text.
Exact coefficient and support calculations
Reachable and observable reduction of Eq. (11) gives a minimal representation in which polynomiality is equivalent to joint nilpotence of the transitions. Indeed, if all sufficiently long coefficients vanish, then ℓ T T v T w T z r 0 = 0 \ell^{\mathsf{T}}T_vT_wT_zr_0=0 ℓ T T v T w T z r 0 = 0 for all v , z v,z v , z and sufficiently long w w w ; reachability and observability force T w = 0 T_w=0 T w = 0 . The converse follows directly from the coefficient formula. To decide nilpotence, we compute successive column bases of I s I_s I s , [ T 1 ⋯ T k ] [T_1\ \cdots\ T_k] [ T 1 ⋯ T k ] , and [ T 1 N ⋯ T k N ] [T_1N\ \cdots\ T_kN] [ T 1 N ⋯ T k N ] , where N N N is the preceding retained basis. These spans form a descending sequence that either reaches zero within s s s steps or stabilizes at a nonzero span. Equality of consecutive spans forces equality at every later step, so in the nilpotent case each nonzero span strictly decreases in dimension. The nilpotence index is at most the reduced state count, and a nonzero s s s -state polynomial has degree D ≤ s − 1 D \le s-1 D ≤ s − 1 . Its true degree and the zero case then follow from the finite recurrence
H 0 = r 0 r 0 † , H d + 1 = ∑ j T j H d T j † , ℓ H d ℓ † = ∑ ∣ w ∣ = d ∣ c w ∣ 2 . (111) H_0=r_0r_0^\dagger,\qquad H_{d+1}=\sum_j T_jH_dT_j^\dagger,\qquad\ell H_d\ell^\dagger=\sum_{|w|=d}|c_w|^2. \tag*{(111)} H 0 = r 0 r 0 † , H d + 1 = j ∑ T j H d T j † , ℓ H d ℓ † = ∣ w ∣ = d ∑ ∣ c w ∣ 2 . (111)
We decide all these equalities by exact rational arithmetic, so the reported degree is the true polynomial degree.
For a sparse word list, we make one directed path for each supplied word, label its edges by the successive letters, and place the word coefficient on one edge; a direct edge records the constant coefficient. The total number of edges is at most the sum of the supplied word lengths plus one, so this gives an explicit acyclic branching program of polynomial size. The branching-program input mentioned in the introduction admits the same representation directly. With vertices in topological order, we write its adjacency matrix as Z 0 + ∑ j Z j x j Z_0+\sum_j Z_jx_j Z 0 + ∑ j Z j x j , where every numerical Z j Z_j Z j is strictly upper triangular and Z 0 Z_0 Z 0 contains the constant edge terms. If there are s s s vertices, then C 0 = ( I s − Z 0 ) − 1 = ∑ t = 0 s − 1 Z 0 t C_0=(I_s-Z_0)^{-1}=\sum_{t=0}^{s-1}Z_0^t C 0 = ( I s − Z 0 ) − 1 = ∑ t = 0 s − 1 Z 0 t is rational and
ℓ ( I s − Z 0 − ∑ j Z j x j ) − 1 r 0 = ℓ C 0 ( I s − ∑ j Z j C 0 x j ) − 1 r 0 . \ell(I_s-Z_0-\sum_j Z_jx_j)^{-1}r_0=\ell C_0(I_s-\sum_j Z_jC_0x_j)^{-1}r_0. ℓ ( I s − Z 0 − j ∑ Z j x j ) − 1 r 0 = ℓ C 0 ( I s − j ∑ Z j C 0 x j ) − 1 r 0 .
Consequently the initial row ℓ C 0 \ell C_0 ℓ C 0 , transitions Z j C 0 Z_jC_0 Z j C 0 , and final column r 0 r_0 r 0 give Eq. (11) . The transitions remain strictly upper triangular, so only finitely many terms occur. Rational matrix multiplication and elimination have polynomial bit cost in the explicit program, as required for the conversion.
The row factorization also needs a reachable and observable representation when the output coefficients contain square roots. Its exact rational joint Gram contains the information needed to determine the support. For the complementary representation in Eq. (79) , we retain a rational column-basis matrix B B B of the reachable coordinates. A rational left inverse B ℓ B^\ell B ℓ gives the restricted matrices N j ′ = B ℓ N j B N'_j=B^\ell N_jB N j ′ = B ℓ N j B , b j ′ = B ℓ b j b'_j=B^\ell b_j b j ′ = B ℓ b j , and O ′ = O B O'=OB O ′ = O B . The restricted joint Gram is a rational congruence of the original one. We compute a rational row-basis matrix Q o b s Q_{\mathrm{obs}} Q obs by closing the rows of O ′ † O ′ O'^\dagger O' O ′ † O ′ under right multiplication by each N j ′ N'_j N j ′ . Its kernel is exactly the common kernel of the matrices O ′ N w ′ O'N'_w O ′ N w ′ : the initial Gram has the same kernel as O ′ O' O ′ , and closure retains every transition required for observability. With a rational right inverse J o b s J_{\mathrm{obs}} J obs , the observable quotient has the explicit numerical matrices
N j ′ ′ = Q o b s N j ′ J o b s , b j ′ ′ = Q o b s b j ′ , O ′ ′ = O ′ J o b s . N''_j = Q_{\mathrm{obs}}N'_jJ_{\mathrm{obs}}, \qquad b''_j = Q_{\mathrm{obs}}b'_j, \qquad O'' = O'J_{\mathrm{obs}}. N j ′′ = Q obs N j ′ J obs , b j ′′ = Q obs b j ′ , O ′′ = O ′ J obs .
Invariance of ker Q o b s \ker Q_{\mathrm{obs}} ker Q obs under every N j ′ N'_j N j ′ proves that these arrays preserve each coefficient in Eq. (79) . Their joint output Gram is again rational, while the entry evaluator for O ′ ′ O'' O ′′ is obtained by multiplying the supplied evaluator by the known rational matrices. Retaining basis rows and columns from transition products of bounded length controls all encoding lengths by exact elimination and minor bounds. This gives the reduction required before Eq. (80) , including an output matrix whose entries contain square roots.
For a rational feasible point of Theorem G.2, we factor each G t G_t G t by its full positive square root. Its post-query Gram B t † B t B_t^\dagger B_t B t † B t is a rational linear function of G t − 1 G_{t-1} G t − 1 . We compute its Moore–Penrose inverse on a rationally determined range by exact elimination and use B t † = ( B t † B t ) B t † B_t^\dagger= (B_t^\dagger B_t)B_t^\dagger B t † = ( B t † B t ) B t † . Nonzero rational minors bound all inverse singular values with polynomial logarithms in the explicit certificate size, and the continuous square-root procedure below evaluates the remaining factors. Thus singular supplied certificates have polynomial-bit extraction in their actual input length; this bound does not provide an efficient way to discover them from a compact target.
Certified evaluation of numerical matrices
For positive semidefinite matrices, the elementary continuity bound
∥ A 1 / 2 − B 1 / 2 ∥ ≤ ∥ A − B ∥ 1 / 2 (112) \lVert A^{1/2} - B^{1/2}\rVert\le\lVert A-B\rVert^{1/2} \tag*{(112)} ∥ A 1/2 − B 1/2 ∥ ≤ ∥ A − B ∥ 1/2 (112)
requires no positive eigenvalue gap. To verify it, we set η = ∥ A − B ∥ \eta= \lVert A-B\rVert η = ∥ A − B ∥ and use A ⪯ B + η I A \preceq B+\eta I A ⪯ B + η I and monotonicity of the square root. The latter follows from its positive integral representation A 1 / 2 = ( 2 / π ) ∫ 0 ∞ A ( t 2 I + A ) − 1 d t A^{1/2} = (2/\pi)\int_0^\infty A(t^2I+A)^{-1}\,\mathrm{d}t A 1/2 = ( 2/ π ) ∫ 0 ∞ A ( t 2 I + A ) − 1 d t and order reversal for positive inverses. Since ( B + η I ) 1 / 2 ⪯ B 1 / 2 + η I (B+\eta I)^{1/2} \preceq B^{1/2}+\sqrt{\eta}I ( B + η I ) 1/2 ⪯ B 1/2 + η I , we obtain an upper bound on A 1 / 2 − B 1 / 2 A^{1/2}-B^{1/2} A 1/2 − B 1/2 ; interchanging A A A , B B B gives the lower bound. This is the usual matrix-function estimate [50 ] , included here because the Julia defects may have zero eigenvalues even when the original certificate is strict.
A Hermitian rational approximation A q A_q A q within η \eta η of A ⪰ 0 A \succeq0 A ⪰ 0 can be made positive by adding 2 η I 2\eta I 2 η I . Its square root differs from the ideal one by at most 3 η \sqrt{3\eta} 3 η . We choose this regularization of order the square of the target root accuracy, so it pays only for numerical evaluation; the ideal unitary is still the Julia matrix of the original contraction. For a positive definite rational matrix with a certified spectrum in [ λ , M ] [\lambda,M] [ λ , M ] , we use the standard Newton–Schulz inverse-square-root iteration, related to the matrix-sign iterations discussed in Higham [50 Chapter 6, Section 6.7] . We increase M M M to a rational square and set
Y 0 = M − 1 / 2 I , Y t + 1 = 1 2 Y t ( 3 I − A Y t 2 ) . (113) Y_0 = M^{-1/2}I, \qquad Y_{t+1} = \frac{1}{2}Y_t(3I-AY_t^2). \tag*{(113)} Y 0 = M − 1/2 I , Y t + 1 = 2 1 Y t ( 3 I − A Y t 2 ) . (113)
The exact iterates commute with A A A . At an eigenvalue a a a , the scalar error e t = 1 − a y t 2 e_t=1-ay_t^2 e t = 1 − a y t 2 obeys e t + 1 = e t 2 ( 3 + e t ) / 4 e_{t+1}=e_t^2(3+e_t)/4 e t + 1 = e t 2 ( 3 + e t ) /4 and remains in [ 0 , 1 ) [0,1) [ 0 , 1 ) . While a y t 2 ≤ 1 / 2 ay_t^2 \le1/2 a y t 2 ≤ 1/2 , the quantity a y t 2 ay_t^2 a y t 2 increases by at least a fixed factor greater than one. After O ( log ( M / λ ) ) O(\log(M/\lambda)) O ( log ( M / λ )) iterations, the scalar error is bounded away from one, and the subsequent convergence is quadratic. Multiplication of an inverse-root approximation by A A A gives its positive root. Thus only polynomially many operations in logarithmic condition and precision parameters are needed.
The finite-bit adaptation needed here is an explicit guard-precision bound. Dyadic rounding of Eq. (A.16) is controlled in operator norm, even though rounded iterates need not commute with A A A . The exact iterates obey ∥ Y t ∥ ≤ λ − 1 / 2 \lVert Y_t\rVert\le\lambda^{-1/2} ∥ Y t ∥ ≤ λ − 1/2 . On a fixed neighborhood of this ball, the matrix polynomial update has a Lipschitz constant polynomial in M M M and λ − 1 \lambda^{-1} λ − 1 . A guard precision equal to the number of iterations times the logarithm of this bound, plus the required accuracy bits and matrix-size conversion factors, bounds the total rounding error. This is polynomial in the stated logarithmic parameters. Combined with Eq. (A.15), it supplies certified root evaluators at singular matrices as well. For inverse roots, the algorithm uses only the explicit positive lower bounds proved for T 0 T_0 T 0 , T T T , or K t K_t K t ; it never attempts an inverse on an uncertified numerical support.
We apply these estimates to the expressions occurring in our constructions. Roots of supplied rational Gram matrices can be evaluated directly; the inverse roots in the output recurrences act on positive definite rational matrices with the minor bounds proved above. The recurrences then use a polynomial number of products, whose magnitude and Lipschitz bounds give polynomial guard precision. The possibly singular roots in the resulting Julia gates are evaluated after those contractions have been formed: Eq. (A.15) requires the radicands at squared accuracy, which doubles the requested precision bits. The terminal effect and its Julia completion in the comb construction add only a fixed number of such root evaluations. Allocating accuracy in this order, and using the product and inverse perturbation inequalities at the intervening operations, gives the entry algorithms used in Theorems B.1 and 4.7 .
Circuit implementation and finite computation
The supplied query unitary
We specify the coordinates used by the contraction-product implementation and then give its packing and finite-gate calculations. The signal register S has dimension n = 2 n s n = 2^{n_s} n = 2 n s and the oracle register O has dimension d o = 2 q o d_o = 2^{q_o} d o = 2 q o . We use the full query matrix in Eq. (9) . Its three block rows have lengths i n in in , a n an an , and ( d o − i − a ) n (d_o-i-a)n ( d o − i − a ) n , and its three block columns have lengths i n in in , b n bn bn , and ( d o − i − b ) n (d_o-i-b)n ( d o − i − b ) n . The off-diagonal blocks consequently have dimensions
B A : a n × ( d o − i − b ) n , C A : ( d o − i − a ) n × b n , B_A : an \times(d_o-i-b)n,\qquad C_A : (d_o-i-a)n \times bn, B A : an × ( d o − i − b ) n , C A : ( d o − i − a ) n × bn ,
while D A D_A D A has ( d o − i − a ) n (d_o-i-a)n ( d o − i − a ) n rows and ( d o − i − b ) n (d_o-i-b)n ( d o − i − b ) n columns. The identity columns already have norm one, forcing the adjoining zero blocks by unitarity. The construction must work for every compatible choice of B A , C A , D A B_A,C_A,D_A B A , C A , D A .
For this promise to hold throughout the input domain, the oracle needs d o ≥ i + a + b d_o \ge i+a+b d o ≥ i + a + b labels. Indeed, at the zero tuple all b n bn bn active input columns must be accommodated in the ( d o − i − a ) n (d_o-i-a)n ( d o − i − a ) n unspecified output rows, which gives this lower bound. To see that it suffices, we write d p a d = d o − i − a − b d_{\mathrm{pad}}=d_o-i-a-b d pad = d o − i − a − b and complete the designated block by the square matrix
( I i n 0 0 0 0 Δ ( A ) ( I a n − Δ ( A ) Δ ( A ) † ) 1 / 2 0 0 ( I b n − Δ ( A ) † Δ ( A ) ) 1 / 2 − Δ ( A ) † 0 0 0 0 I d p a d n ) (114) \begin{pmatrix}
I_{in} & 0 & 0 & 0 \\
0 & \Delta(A) & \left(I_{an}-\Delta(A)\Delta(A)^\dagger\right)^{1/2} & 0 \\
0 & \left(I_{bn}-\Delta(A)^\dagger\Delta(A)\right)^{1/2} & -\Delta(A)^\dagger& 0 \\
0 & 0 & 0 & I_{d_{\mathrm{pad}}n} \tag*{(114)}
\end{pmatrix} I in 0 0 0 0 Δ ( A ) ( I bn − Δ ( A ) † Δ ( A ) ) 1/2 0 0 ( I an − Δ ( A ) Δ ( A ) † ) 1/2 − Δ ( A ) † 0 0 0 0 I d pad n (114)
The block row lengths are i n in in , a n an an , b n bn bn , d p a d n d_{\mathrm{pad}}n d pad n , and the block column lengths are i n in in , b n bn bn , a n an an , d p a d n d_{\mathrm{pad}}n d pad n ; if d p a d = 0 d_{\mathrm{pad}}=0 d pad = 0 , we omit the final row and column. The middle block is a rectangular Julia completion and is unitary by the defect identities in Robinson [85 Theorems 0–1] . This verifies that a valid input oracle exists at every allowed tuple. The query supplied to our algorithm remains the full U A U_A U A in Eq. (9) , whose action includes the unspecified blocks.
The input coordinates 0 , … , i + b − 1 0,\ldots,i+b-1 0 , … , i + b − 1 and output coordinates 0 , … , i + a − 1 0,\ldots,i+a-1 0 , … , i + a − 1 are the designated coordinates of Eq. (10) . Numerical matrices act on the signal by
C ⊗ I n = [ C μ ν I n ] μ , ν . (115) C \otimes I_n = [C_{\mu\nu}I_n]_{\mu,\nu}. \tag*{(115)} C ⊗ I n = [ C μν I n ] μ , ν . (115)
The rightmost factor in a matrix product acts first. In particular, the first physical query producing A j 1 ⋯ A j d A_{j_1}\cdots A_{j_d} A j 1 ⋯ A j d supplies the rightmost letter A j d A_{j_d} A j d .
Arbitrary finite signal sizes are covered by embedding a tuple into larger zero matrices of power-of-two order. Its polynomial block and contraction promise are retained, so the uniform norm in Eq. (12) agrees with the norm needed by the qubit model.
Registers and reversible failure markers
Theorem 4.3 proves the selected-path invariant. Here we specify all columns of its gates, including those reached after failure. A retained query coordinate is converted to its physical oracle label by
σ − ( u ) = u ( 0 ≤ u < κ ) , σ − ( κ + ν ) = i + ν ( 0 ≤ ν < b ) , σ + ( u ) = u ( 0 ≤ u < κ ) , σ + ( κ + μ ) = i + μ ( 0 ≤ μ < a ) . (116) \begin{aligned}
\sigma_{-}(u) &= u \quad(0 \le u < \kappa), \qquad\sigma_{-}(\kappa+\nu) = i+\nu\quad(0 \le\nu< b),\\
\sigma_{+}(u) &= u \quad(0 \le u < \kappa), \qquad\sigma_{+}(\kappa+\mu) = i+\mu\quad(0 \le\mu< a). \tag*{(116)}
\end{aligned} σ − ( u ) σ + ( u ) = u ( 0 ≤ u < κ ) , σ − ( κ + ν ) = i + ν ( 0 ≤ ν < b ) , = u ( 0 ≤ u < κ ) , σ + ( κ + μ ) = i + μ ( 0 ≤ μ < a ) . (116)
The scalar algorithms retain only κ ≤ 2 \kappa\le2 κ ≤ 2 identity labels; the fixed-query characterization may retain all i i i . Thus the synthesis arrays depend on the selected lists and their q o q_o q o -bit labels, even if the full identity sector is exponentially large in q o q_o q o .
We use the Julia matrix in Eq. (64) , whose unitarity follows from the defect-intertwining identity [85 Theorems 0–1] . Its input and output dimensions may differ, so we place its two ordered coordinate lists on a common physical support before defining the gate.
We store the processing index in a register M of q M = ⌈ log 2 R ⌉ q_M = \lceil\log_2 R\rceil q M = ⌈ log 2 R ⌉ qubits, with R b = 2 q M R_b = 2^{q_M} R b = 2 q M basis states, and add one dilation qubit d. Both start at zero; ∣ 0 ⟩ |0\rangle ∣0 ⟩ on a named register denotes its full all-zero string, and a register of width zero is omitted. The value d = 0 identifies the required block of a Julia matrix, while d = 1 holds its complementary output. For a contraction C C C , the input list consists of its h 1 h_1 h 1 designated oracle–memory labels with d = 0, followed by the first h 2 h_2 h 2 oracle–memory labels with d = 1; the output list uses its h 2 h_2 h 2 designated output labels followed by the first h 1 h_1 h 1 labels with d = 1. The designated coordinates are converted to physical strings using σ + \sigma_{+} σ + or σ − \sigma_{-} σ − as appropriate. Each list therefore has h 1 + h 2 h_1+h_2 h 1 + h 2 distinct strings of length q o + q M + 1 q_o+q_M+1 q o + q M + 1 , and their union has size s C ≤ 2 ( h 1 + h 2 ) s_C \le2(h_1+h_2) s C ≤ 2 ( h 1 + h 2 ) . The complementary strings label the reverse columns of the known unitary on the same signal register.
We order this union once, complete each list by the unused strings in that order, and let P i n , P o u t P_{\mathrm{in}},P_{\mathrm{out}} P in , P out be the resulting s C × s C s_C \times s_C s C × s C permutation matrices. Their entries are zeros and ones, determined entirely by the lists. The numerical matrix to be applied on this support is
J ~ C = P o u t ( J ( C ) 0 0 I s C − h 1 − h 2 ) P i n † . (117) \widetilde{J}_C = P_{\mathrm{out}}
\begin{pmatrix}
J(C) & 0\\
0 & I_{s_C-h_1-h_2}
\end{pmatrix}
P_{\mathrm{in}}^\dagger. \tag*{(117)} J C = P out ( J ( C ) 0 0 I s C − h 1 − h 2 ) P in † . (117)
The gate J C J_C J C acts by J ~ C \widetilde{J}_C J C on the union and by identity on its orthogonal complement. This specifies every column using only the supported matrix and its list of bit strings.
For C 0 C_0 C 0 , the selected input is the single ancillary label with oracle and memory both zero. For an internal C t C_t C t , its inputs are the designated output labels of the preceding query with memory 0 , … , R − 1 0,\ldots,R-1 0 , … , R − 1 . For t < Q t<Q t < Q , its selected outputs are the designated next-query input labels with the same live memory range. The final C Q C_Q C Q outputs the single oracle–memory label zero. Consequently every support in Eq. (B.4) has size at most
s C ≤ S : = 2 ( d − + d + ) R = 2 ( 2 κ + a + b ) R . (118) s_C \le S := 2(d_-+d_+)R = 2(2\kappa+a+b)R. \tag*{(118)} s C ≤ S := 2 ( d − + d + ) R = 2 ( 2 κ + a + b ) R . (118)
These scalar endpoints will be replaced by the data-register endpoints in § 5.1 .
To keep every unwanted output distinguishable from the successful component at all later stages, we add a failure register E of q E = ⌈ log 2 ( 2 Q + 1 ) ⌉ q_E=\lceil\log_2(2Q+1)\rceil q E = ⌈ log 2 ( 2 Q + 1 )⌉ qubits, initialized at zero. Its nonzero used values are 1 , … , 2 Q 1,\ldots,2Q 1 , … , 2 Q ; the remaining binary values are fixed by all known markers. A known gate G t G_t G t applies J C t J_{C_t} J C t when E = 0 =0 = 0 and otherwise applies identity. We also use the following explicitly reversible basis permutations. The gate D t D_t D t , for 0 ≤ t < Q 0\le t<Q 0 ≤ t < Q , exchanges E = 0 =0 = 0 and E = 2 t + 1 =2t+1 = 2 t + 1 precisely when d = 1 d=1 d = 1 . The gate F t F_t F t , for 1 ≤ t ≤ Q 1\le t\le Q 1 ≤ t ≤ Q , exchanges E = 0 =0 = 0 and E = 2 t =2t = 2 t precisely when d = 0 d=0 d = 0 and the oracle output label is not in { σ + ( 0 ) , … , σ + ( d + − 1 ) } \{\sigma_+(0),\ldots,\sigma_+(d_+-1)\} { σ + ( 0 ) , … , σ + ( d + − 1 )} . Every other basis state is fixed by the respective permutation. These definitions give the complete matrices of G t G_t G t , D t D_t D t , F t F_t F t : for D t D_t D t and F t F_t F t , a matrix entry is one exactly when its row string is the stated permutation of its column string, and it is zero otherwise.
These conditional transpositions are reversible permutations of auxiliary basis states. They do not control the unknown query.
The query U ^ A \widehat{U}_A U A acts on O, S for every value of M, d d d , E. For matrix indexing we order these registers as (O, M, d d d , E, S) and use ( α , μ , d , e , x ) (\alpha,\mu,d,e,x) ( α , μ , d , e , x ) for their basis values, where 0 ≤ α < d o 0\le\alpha<d_o 0 ≤ α < d o , 0 ≤ μ < R b 0\le\mu<R_b 0 ≤ μ < R b , d ∈ { 0 , 1 } d\in\{0,1\} d ∈ { 0 , 1 } , 0 ≤ e < 2 q E 0\le e<2^{q_E} 0 ≤ e < 2 q E , and 0 ≤ x < n 0\le x<n 0 ≤ x < n . Its full matrix entry is
[ U ^ A ] ( α , μ , d , e , x ) , ( β , ν , d ′ , e ′ , y ) = δ μ ν δ d d ′ δ e e ′ [ U A ] ( α , x ) , ( β , y ) . (119) [\widehat{U}_A]_{(\alpha,\mu,d,e,x),(\beta,\nu,d',e',y)}
=\delta_{\mu\nu}\delta_{dd'}\delta_{ee'}[U_A]_{(\alpha,x),(\beta,y)}. \tag*{(119)} [ U A ] ( α , μ , d , e , x ) , ( β , ν , d ′ , e ′ , y ) = δ μν δ d d ′ δ e e ′ [ U A ] ( α , x ) , ( β , y ) . (119)
These coordinate definitions give the known layers W 0 , … , W Q W_0,\ldots,W_Q W 0 , … , W Q of Eq. (65) .
The chronological order is G 0 G_0 G 0 , D 0 D_0 D 0 , U ^ A \widehat{U}_A U A , F 1 F_1 F 1 , G 1 G_1 G 1 , D 1 D_1 D 1 , … \ldots … , U ^ A \widehat{U}_A U A , F Q F_Q F Q , G Q G_Q G Q , as shown for two queries in Figure 2 . The final selection requires d = 0 d=0 d = 0 , so a final marker D Q D_Q D Q is unnecessary. The fresh-label argument in Theorem 4.3 applies to the coordinate lists just specified.
The selected columns of each J C J_C J C have exactly the prescribed contraction block. Eq. (B.6) preserves all failure labels, and the explicit transpositions use a fresh label at every step. These are the hypotheses of the induction in Theorem 4.3 ; applying it to the displayed coordinate lists gives Eq. (63) . The final selection rejects the last Julia complement without an additional marker. There are Q + 1 Q+1 Q + 1 Julia gates and 2 Q 2Q 2 Q markers, as counted in that theorem.
Query coordinates and compact factor computation
We now place the updates of § 4 on the physical coordinates above. The same packing convention applies to both the finite sequence and the row factors.
The window updates and their oracle coordinates
We retain the κ \kappa κ identity labels and the active labels of Eq. (62) , at the physical offsets in Eq. (B.3). On R R R processing labels, the query acts in the order (oracle label, memory label, signal coordinate) with entries
[ Λ R ( A ) ] ( α , μ , x ) , ( β , ν , y ) = δ μ ν [ L K ( A ) ] ( α , x ) , ( β , y ) . (120) [\Lambda_R(A)]_{(\alpha,\mu,x),(\beta,\nu,y)}
=\delta_{\mu\nu}[L_K(A)]_{(\alpha,x),(\beta,y)}. \tag*{(120)} [ Λ R ( A ) ] ( α , μ , x ) , ( β , ν , y ) = δ μν [ L K ( A ) ] ( α , x ) , ( β , y ) . (120)
Here 0 ≤ α < d + 0\le\alpha<d_+ 0 ≤ α < d + , 0 ≤ β < d − 0\le\beta<d_- 0 ≤ β < d − , and 0 ≤ μ , ν < R 0\le\mu,\nu<R 0 ≤ μ , ν < R . For the window construction, κ = min { i , 2 } \kappa=\min\{i,2\} κ = min { i , 2 } and R R R is given in Eq. (60) .
We prove that M t M_t M t is contractive by splitting its action into input preparation, application of V V V , and output collection. The corresponding matrices are
S t = ( I a m 0 0 0 α t 0 0 ζ t 0 0 0 1 ) , T t = ( I b m 0 0 0 0 0 1 0 0 ξ t 0 γ t ) , S_t=\begin{pmatrix} I_{am} & 0 & 0 \\ 0 & \alpha_t & 0 \\ 0 & \zeta_t & 0 \\ 0 & 0 & 1 \end{pmatrix}, \qquad T_t=\begin{pmatrix} I_{bm} & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & \xi_t & 0 & \gamma_t \end{pmatrix}, S t = I am 0 0 0 0 α t ζ t 0 0 0 0 1 , T t = I bm 0 0 0 0 ξ t 0 1 0 0 0 γ t ,
V e x t = ( A B 0 0 C D 0 0 0 0 1 0 0 0 0 1 ) , M t = T t V e x t S t . (121) V_{\mathrm{ext}}=\begin{pmatrix} A & B & 0 & 0 \\ C & D & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}, \qquad M_t=T_tV_{\mathrm{ext}}S_t. \tag*{(121)} V ext = A C 0 0 B D 0 0 0 0 1 0 0 0 0 1 , M t = T t V ext S t . (121)
The sizes of S t , V e x t , T t S_t,V_{\mathrm{ext}},T_t S t , V ext , T t are ( a m + 3 ) × ( a m + 2 ) (am+3)\times(am+2) ( am + 3 ) × ( am + 2 ) , ( b m + 3 ) × ( a m + 3 ) (bm+3)\times(am+3) ( bm + 3 ) × ( am + 3 ) , and ( b m + 2 ) × ( b m + 3 ) (bm+2)\times(bm+3) ( bm + 2 ) × ( bm + 3 ) . The first factor on an input splits the pending component with weights α t , ζ t \alpha_t,\zeta_t α t , ζ t ; the middle matrix applies V V V to the active and injected components; the last matrix combines the new output with the previous accumulated output. Since S t † S t = I a m + 2 S_t^\dagger S_t=I_{am+2} S t † S t = I am + 2 , T t T t † = I b m + 2 T_tT_t^\dagger=I_{bm+2} T t T t † = I bm + 2 , and ∥ V e x t ∥ ≤ 1 \lVert V_{\mathrm{ext}}\rVert\le1 ∥ V ext ∥ ≤ 1 , their product is a contraction. We use this factorization to prove contractivity, then apply the Julia construction to the resulting query matrix.
The endpoint selectors in Eq. (52) specify the initial pending input and final collected output. We now verify their embedding on the oracle and memory labels.
The choice of R R R provides at least m m m labels for each active input and at least two coordinates in the identity part. We specify their placement by zero–one numerical matrices. The matrix J − J_- J − has ( κ + b ) R (\kappa+b)R ( κ + b ) R rows and b m + 2 bm+2 bm + 2 columns. Its nonzero entries are
[ J − ] ( κ + ν ) R + μ , ν m + μ = 1 ( 0 ≤ ν < b , 0 ≤ μ < m ) , [ J − ] q , b m + q = 1 ( q = 0 , 1 ) . (122) [J_-]_{(\kappa+\nu)R+\mu,\,\nu m+\mu}=1\quad(0\le\nu<b,\ 0\le\mu<m),\qquad[J_-]_{q,\,bm+q}=1\quad(q=0,1). \tag*{(122)} [ J − ] ( κ + ν ) R + μ , ν m + μ = 1 ( 0 ≤ ν < b , 0 ≤ μ < m ) , [ J − ] q , bm + q = 1 ( q = 0 , 1 ) . (122)
The latter row numbers q q q lie among the first κ R \kappa R κ R idle coordinates, because κ R ≥ 2 \kappa R\ge2 κ R ≥ 2 . With a a a replacing b b b , the matrix J + J_+ J + has ( κ + a ) R (\kappa+a)R ( κ + a ) R rows and a m + 2 am+2 am + 2 columns and nonzero entries
[ J + ] ( κ + ν ) R + μ , ν m + μ = 1 , [ J + ] q , a m + q = 1 ( q = 0 , 1 ) . (123) [J_+]_{(\kappa+\nu)R+\mu,\,\nu m+\mu}=1,\qquad[J_+]_{q,\,am+q}=1\quad(q=0,1). \tag*{(123)} [ J + ] ( κ + ν ) R + μ , ν m + μ = 1 , [ J + ] q , am + q = 1 ( q = 0 , 1 ) . (123)
Every unlisted entry is zero. Distinct columns select distinct ancillary labels, so J − † J − = I b m + 2 J_-^\dagger J_-=I_{bm+2} J − † J − = I bm + 2 and J + † J + = I a m + 2 J_+^\dagger J_+=I_{am+2} J + † J + = I am + 2 .
In the block–memory–signal order, the repeated input of Eq. (17) has entries
[ Δ m ( A ) ] ( μ , r , x ) , ( ν , s , y ) = δ r s ∑ j f μ ν , j ( A j ) x y , Δ m ( A ) : a m n × b m n . (124) [\Delta_m(A)]_{(\mu,r,x),(\nu,s,y)}=\delta_{rs}\sum_j f_{\mu\nu,j}(A_j)_{xy},\qquad\Delta_m(A):amn\times bmn. \tag*{(124)} [ Δ m ( A ) ] ( μ , r , x ) , ( ν , s , y ) = δ r s j ∑ f μν , j ( A j ) x y , Δ m ( A ) : amn × bmn . (124)
Here 1 ≤ μ ≤ a 1\le\mu\le a 1 ≤ μ ≤ a , 1 ≤ ν ≤ b 1\le\nu\le b 1 ≤ ν ≤ b , 1 ≤ r , s ≤ m 1\le r,s\le m 1 ≤ r , s ≤ m , and 0 ≤ x , y < n 0\le x,y<n 0 ≤ x , y < n . Substituting these entries into Eq. (B.7) gives
( J + † ⊗ I n ) Λ R ( A ) ( J − ⊗ I n ) = B m ( A ) = ( Δ m ( A ) 0 0 0 I n 0 0 0 I n ) . (125) (J_+^\dagger\otimes I_n)\Lambda_R(A)(J_-\otimes I_n)=B_m(A)=\begin{pmatrix} \Delta_m(A) & 0 & 0 \\ 0 & I_n & 0 \\ 0 & 0 & I_n \end{pmatrix}. \tag*{(125)} ( J + † ⊗ I n ) Λ R ( A ) ( J − ⊗ I n ) = B m ( A ) = Δ m ( A ) 0 0 0 I n 0 0 0 I n . (125)
The right side has ( a m + 2 ) n (am+2)n ( am + 2 ) n rows and ( b m + 2 ) n (bm+2)n ( bm + 2 ) n columns. Thus the active calculation and both identity components are contained in the same designated block of a single unconditional query.
Substitution of these packing matrices into Eq. (61) gives the query parameters used in the main construction. Their respective sizes are ( ( κ + b ) R ) × 1 ((\kappa+b)R)\times1 (( κ + b ) R ) × 1 , ( κ + b ) R × ( κ + a ) R (\kappa+b)R\times(\kappa+a)R ( κ + b ) R × ( κ + a ) R , and 1 × ( ( κ + a ) R ) 1\times((\kappa+a)R) 1 × (( κ + a ) R ) . All are contractions. Eqs. (B.9) and (B.10), together with Eq. (61) , determine every numerical matrix and every designated label needed by the complete unitary circuit Eq. (65) .
Elementary gates and their error budget
The classical routines supply certified evaluators for every known contraction. Their supported Julia matrices act on bit strings of ideal width
n 0 = q o + ⌈ log 2 R ⌉ + 1 + ⌈ log 2 ( 2 Q + 1 ) ⌉ . (126) n_0 = q_o + \lceil\log_2 R \rceil+ 1 + \lceil\log_2(2Q+1) \rceil. \tag*{(126)} n 0 = q o + ⌈ log 2 R ⌉ + 1 + ⌈ log 2 ( 2 Q + 1 )⌉ . (126)
This counts the oracle, processing, dilation and failure registers. Compilation adds one phase qubit P p h P_{\mathrm{ph}} P ph and at most n 0 + 1 n_0+1 n 0 + 1 clean work qubits W W W , initialized and selected at zero. The same work is reused after each predicate is uncomputed, and the oracle is identity on it. Thus q a n c q_{\mathrm{anc}} q anc includes the supplied q o q_o q o oracle qubits. The retained output test uses d + d_+ d + comparisons of q o q_o q o -bit strings; since κ ≤ 2 \kappa\le2 κ ≤ 2 , no exponentially large identity sector is enumerated.
Theorem B.1 (Elementary-gate synthesis). For Q ≥ 1 Q \ge1 Q ≥ 1 , let the contractions in Eq. (63) have entry evaluators satisfying the convention in § 3 . For 0 < ϵ g < 1 0 < \epsilon_g < 1 0 < ϵ g < 1 , their full unitary circuit has a Clifford+T T T implementation with the same Q Q Q original queries, at most 2 n 0 + 2 2n_0+2 2 n 0 + 2 ancillary qubits other than the signal, and
O ( Q S 2 n 0 3 log 4 ( 2 + Q S 2 n 0 3 ϵ g ) ) (127) O\left(QS^2 n_0^3 \log^4\left(2+\frac{QS^2 n_0^3}{\epsilon_g}\right)\right) \tag*{(127)} O ( Q S 2 n 0 3 log 4 ( 2 + ϵ g Q S 2 n 0 3 ) ) (127) known elementary gates. The selected-block error is at most ϵ g \epsilon_g ϵ g uniformly over all signal sizes and allowed oracle completions. Classical compilation is polynomial in the evaluator bounds, Q Q Q , S S S , q o q_o q o , and log ( 1 / ϵ g ) \log(1/\epsilon_g) log ( 1/ ϵ g ) .
Proof. Appendix § 12 .§ 4 compiles a unitary on S S S listed states into O ( S 2 ) O(S^2) O ( S 2 ) two-level rotations, preserving its phase through a determinant-one extension. Known control patterns cost O ( n 0 3 ) O(n_0^3) O ( n 0 3 ) gates per rotation and linear clean space. Phase-sensitive Solovay–Kitaev synthesis costs O ( log 4 ( 1 / ζ ) ) O(\log^4(1/\zeta)) O ( log 4 ( 1/ ζ )) for each one-qubit tolerance ζ \zeta ζ [38 Theorem 1] ; the appendix verifies certified pivots and polynomial bit bounds for our evaluator input. Applying this to the Q + 1 Q+1 Q + 1 Julia gates and compiling the markers exactly gives Eq. (B.14) when the tolerances sum to ϵ g \epsilon_g ϵ g . The phase and work qubits fit within 2 n 0 + 2 2n_0+2 2 n 0 + 2 qubits. Each replacement compares full unitaries with the same fixed oracle calls, so the operator-norm telescope bounds the circuit error, including work-register leakage, by ϵ g \epsilon_g ϵ g . Taking the selected block preserves that bound.
A degree-reducing factor as one row query
The polynomial equations in Eq. (75) determine a physical row-query factor. We derive its numerical input and output matrices with their distinct label counts, so that the factor fits the square-unitary compiler of § 4.2 . Let R ∗ R_\ast R ∗ be a common memory size at least the current q q q , and let
B Y = ( I q 0 ( R ∗ − q ) × q ) . B_Y =
\begin{pmatrix}
I_q \\
0_{(R_\ast-q)\times q}
\end{pmatrix}. B Y = ( I q 0 ( R ∗ − q ) × q ) .
The packing matrix E Z E_Z E Z has ( k + 1 ) R ∗ (k+1)R_\ast ( k + 1 ) R ∗ rows and q + k e q+ke q + k e columns. Its block rows are the designated oracle input labels, each of length R ∗ R_\ast R ∗ . Its only nonzero blocks are B Y ( I − Π ) B_Y(I-\Pi) B Y ( I − Π ) in block row zero and the first q q q columns, and B Y Z B_YZ B Y Z in block row j j j and the j j j th e e e -column block, for 1 ≤ j ≤ k 1 \le j \le k 1 ≤ j ≤ k . The output matrix has q q q rows and 2 R ∗ 2R_\ast 2 R ∗ columns and is
E Z = ( B Y ( I − Π ) 0 0 ⋯ 0 0 B Y Z 0 ⋯ 0 0 0 B Y Z ⋯ 0 ⋮ ⋱ ⋱ ⋮ 0 0 0 ⋯ B Y Z ) , R Z = [ ( I q − Π ) B Y † Π B Y † ] . (128) E_Z =
\begin{pmatrix}
B_Y(I-\Pi) & 0 & 0 & \cdots& 0 \\
0 & B_YZ & 0 & \cdots& 0 \\
0 & 0 & B_YZ & \cdots& 0 \\
\vdots& & \ddots& \ddots& \vdots\\
0 & 0 & 0 & \cdots& B_YZ
\end{pmatrix},
\qquad
R_Z = \left[(I_q-\Pi)B_Y^\dagger\ \ \Pi B_Y^\dagger\right]. \tag*{(128)} E Z = B Y ( I − Π ) 0 0 ⋮ 0 0 B Y Z 0 0 0 0 B Y Z ⋱ 0 ⋯ ⋯ ⋯ ⋱ ⋯ 0 0 0 ⋮ B Y Z , R Z = [ ( I q − Π ) B Y † Π B Y † ] . (128)
The block rows are exactly the retained identity label followed by the k k k active labels; each row has R ∗ R_{\ast} R ∗ coordinates. Both matrices therefore use a single identity label. Matrix multiplication gives
E Z † E Z = ( I q − Π 0 0 I k e ) , R Z R Z † = I q . E_Z^{\dagger}E_Z =
\begin{pmatrix}
I_q-\Pi& 0 \\
0 & I_{k e}
\end{pmatrix},
\qquad
R_ZR_Z^{\dagger}=I_q. E Z † E Z = ( I q − Π 0 0 I k e ) , R Z R Z † = I q .
Thus both are contractions. Let F ^ 0 \widehat{F}_0 F 0 be the 2 × ( k + 1 ) 2\times(k+1) 2 × ( k + 1 ) matrix whose only nonzero entry is one at row 0, column 0, and let F ^ j \widehat{F}_j F j have its only nonzero entry one at row 1, column j j j , using zero-based indices. Multiplication of the known matrices gives
R Z F ^ 0 ( R ∗ ) E Z = B 0 , R Z F ^ j ( R ∗ ) E Z = B j ( 1 ≤ j ≤ k ) . (129) R_Z\widehat{F}_0^{(R_{\ast})}E_Z=B_0,
\qquad
R_Z\widehat{F}_j^{(R_{\ast})}E_Z=B_j
\qquad(1\le j\le k). \tag*{(129)} R Z F 0 ( R ∗ ) E Z = B 0 , R Z F j ( R ∗ ) E Z = B j ( 1 ≤ j ≤ k ) . (129)
The superscript denotes replacement of each numerical entry by that entry times I R ∗ I_{R_{\ast}} I R ∗ . Therefore one designated row query between E Z E_Z E Z and R Z R_Z R Z implements the coefficient step Eq. (75) . Its full unitary realization is already supplied by Theorem 4.3 .
After d d d reductions, let E t E_t E t , R t o u t R_t^{\mathrm{out}} R t out denote the packing and output matrices at reduction stage t t t , and let d d d_d d d be the final constant column. With e 0 T e_0^{\mathsf T} e 0 T selecting the first polynomial of the original list, the actual query matrices in chronological order are
C 0 = E d − 1 d d , C t = E d − 1 − t R d − t o u t ( 1 ≤ t < d ) , C d = e 0 T R 0 o u t . (130) C_0=E_{d-1}d_d,
\qquad
C_t=E_{d-1-t}R_{d-t}^{\mathrm{out}}
\quad(1\le t<d),
\qquad
C_d=e_0^{\mathsf T}R_0^{\mathrm{out}}. \tag*{(130)} C 0 = E d − 1 d d , C t = E d − 1 − t R d − t out ( 1 ≤ t < d ) , C d = e 0 T R 0 out . (130)
They have sizes ( ( k + 1 ) R ∗ ) × 1 ((k+1)R_{\ast})\times1 (( k + 1 ) R ∗ ) × 1 , ( k + 1 ) R ∗ × 2 R ∗ (k+1)R_{\ast}\times2R_{\ast} ( k + 1 ) R ∗ × 2 R ∗ , and 1 × ( 2 R ∗ ) 1\times(2R_{\ast}) 1 × ( 2 R ∗ ) . Eq. (75) and Eq. (B.16) show coefficientwise that their designated product equals p ( A ) / β p(A)/\beta p ( A ) / β . In particular, the last factor found by the classical reduction is the first applied in the quantum circuit. The full unitary construction preserves this chronological ordering coherently.
Computing the row factorization from the target
We give the exact state calculations and precision bounds used in Theorem 4.7 . The input convention is Eq. (79) ; its rational joint Gram allows the reachable and observable reduction of Appendix A. After reduction, nilpotence bounds every recurrence by the degree d d d . In particular, Eq. (80) computes H H H without enumerating words. Direct expansion of the correlations gives the rational innerness test
d 0 † d 0 + ∑ j b j † H b j = 1 , O † d 0 + ∑ j N j † H b j = 0. (131) d_0^\dagger d_0+\sum_j b_j^\dagger H b_j=1,
\qquad
O^\dagger d_0+\sum_j N_j^\dagger H b_j=0. \tag*{(131)} d 0 † d 0 + j ∑ b j † H b j = 1 , O † d 0 + j ∑ N j † H b j = 0. (131)
For clarity, the correlation at a nonempty word v j v_j v j is ( d 0 † O + ∑ ℓ b ℓ † H N ℓ ) N v b j (d_0^\dagger O+\sum_{\ell}b_\ell^\dagger HN_\ell)N_vb_j ( d 0 † O + ∑ ℓ b ℓ † H N ℓ ) N v b j . Reachability shows that all these correlations vanish exactly when the second equality in Eq. (B.18) holds; the first is the empty correlation. The input condition is therefore decided by exact rational matrix equalities in the reduced coordinates.
To identify the successive highest-degree parts, we use the state coordinates that remain reachable after a given number of transitions. Their spans shrink with that number because the transitions are jointly nilpotent. We initialize U 1 = I S 0 U_1=I_{S_0} U 1 = I S 0 and compute each rational column-basis matrix U ℓ + 1 U_{\ell+1} U ℓ + 1 by retaining independent columns from [ N 1 U ℓ ⋯ N k U ℓ ] [N_1U_\ell\ \cdots\ N_kU_\ell] [ N 1 U ℓ ⋯ N k U ℓ ] . Their column spans are nested, and U d + 1 U_{d+1} U d + 1 has no columns. At stage t t t , we choose a rational matrix R t R_t R t so that [ U d − t + 1 R t ] [U_{d-t+1}\ R_t] [ U d − t + 1 R t ] is a column basis of U d − t U_{d-t} U d − t , and write e t e_t e t for the number of added columns. The directions in U d − t + 1 U_{d-t+1} U d − t + 1 have already been removed. We obtain the remaining response energy by minimizing the original H H H -quadratic form over those directions, which gives H t H_t H t in Eq. (81) ; the subtracted term is zero when the eliminated basis is empty. This is the finite-dimensional shorted matrix associated with Anderson and Trapp’s construction [9 ] . We need its variational identity, with U = U d − t + 1 U=U_{d-t+1} U = U d − t + 1 ,
x † H t x = min z ( x − U z ) † H ( x − U z ) , z min = ( U † H U ) − 1 U † H x . x^\dagger H_t x=\min_z(x-Uz)^\dagger H(x-Uz),
\qquad
z_{\min}=(U^\dagger H U)^{-1}U^\dagger Hx. x † H t x = z min ( x − U z ) † H ( x − U z ) , z m i n = ( U † H U ) − 1 U † H x .
It follows by completing the square; U T H U U^{\mathsf{T}}HU U T H U is positive definite whenever U U U is nonempty. In particular, H t ⪰ 0 H_t \succeq0 H t ⪰ 0 , its kernel is the column span of U U U , and minimizing successively over nested spans agrees with minimizing directly over the larger span. These are the properties used in the degree-reduction recurrence. This formula computes each metric directly from the original rational data.
Starting with the output pair O 0 = O , d 0 O_0 = O, d_0 O 0 = O , d 0 , we apply the updates in Eq. (82) , keeping N j , b j N_j,b_j N j , b j fixed. If e t = 0 e_t = 0 e t = 0 , the corresponding inverse-root and variable blocks are absent. In the nonempty case K t K_t K t is positive definite by Theorem 4.7 . If O t O_t O t has q t q_t q t rows, then Z t Z_t Z t has q t q_t q t rows and e t e_t e t columns, and O t + 1 , d t + 1 O_{t+1}, d_{t+1} O t + 1 , d t + 1 have q t + 1 = q t + k e t q_{t+1} = q_t + ke_t q t + 1 = q t + k e t rows. The state dimension s 0 s_0 s 0 is unchanged.
The invariant and range argument in Theorem 4.7 prove that these are the coefficient factors of Lemma 4.6 , with ∑ t e t = s 0 \sum_t e_t = s_0 ∑ t e t = s 0 and common processing multiplicity q 0 + k s 0 q_0 + ks_0 q 0 + k s 0 . It remains to justify their numerical evaluation.
Bit bounds for Theorem 4.7 . To bound the precision required by these formulas, we use their rational state coordinates. The basis columns can be retained as products of the original rational transitions of length at most d d d , and all H t H_t H t are computed directly from the original rational H H H in Eq. (81) . Their entries, and those of the positive definite K t K_t K t , are rational with polynomial bit length by common-denominator and minor bounds. Their positive eigenvalues are therefore bounded below by 2 − poly ( L ) 2^{-\operatorname{poly}(L)} 2 − poly ( L ) , with a computable polynomial in the rational input length L L L . The inverse roots in Eq. (82) have certified polynomial-time evaluators. The rank choices are determined by the rational basis calculations before we evaluate O t O_t O t and Z t Z_t Z t .
To control the precision needed in this recurrence, we express the joint output Grams in terms of rational data. The observability equation and the preserved coefficient correlations give
O t T O t = H t − ∑ j N j T H t N j , O t T d t = − ∑ j N j T H t b j , d t T d t = 1 − ∑ j b j T H t b j (132) \begin{aligned}
O_t^{\mathsf{T}}O_t &= H_t - \sum_j N_j^{\mathsf{T}}H_tN_j,\\
O_t^{\mathsf{T}}d_t &= -\sum_j N_j^{\mathsf{T}}H_tb_j,\\
d_t^{\mathsf{T}}d_t &= 1-\sum_j b_j^{\mathsf{T}}H_tb_j \tag*{(132)}
\end{aligned} O t T O t O t T d t d t T d t = H t − j ∑ N j T H t N j , = − j ∑ N j T H t b j , = 1 − j ∑ b j T H t b j (132)
These identities give rational formulas for all joint output Grams and bound the sizes of the matrices evaluated during the recurrence. Moreover, O t T O t ⪯ H t ⪯ H O_t^{\mathsf{T}}O_t \preceq H_t \preceq H O t T O t ⪯ H t ⪯ H and ∥ d t ∥ ≤ 1 \lVert d_t\rVert\le1 ∥ d t ∥ ≤ 1 . A polynomial number of guarded matrix operations consequently evaluates Eq. (82) to the required precision. The finite-gate compiler then implements Eq. (B.17) with its actual numerical support sizes and uniformly bounded selected error.
An explicit row circuit
Example B.2 (An explicit two-query scalar transformation). For i = 1 i = 1 i = 1 , a = 1 a = 1 a = 1 , b = k = 2 b = k = 2 b = k = 2 , the original oracle can have d 0 = 4 d_0 = 4 d 0 = 4 ancillary labels. In known input and output orders, its prescribed entries are
U A = ( I n 0 0 0 0 A 1 A 2 B 0 C 11 C 12 D 1 0 C 21 C 22 D 2 ) , ∥ [ A 1 A 2 ] ∥ ≤ 1 (133) U_A =
\begin{pmatrix}
I_n & 0 & 0 & 0\\
0 & A_1 & A_2 & B\\
0 & C_{11} & C_{12} & D_1\\
0 & C_{21} & C_{22} & D_2
\end{pmatrix},
\qquad\lVert[A_1\ A_2]\rVert\le1 \tag*{(133)} U A = I n 0 0 0 0 A 1 C 11 C 21 0 A 2 C 12 C 22 0 B D 1 D 2 , ∥[ A 1 A 2 ]∥ ≤ 1 (133)
where each displayed entry is an n × n n \times n n × n matrix and all unspecified blocks are constrained only by unitarity. We implement
p ( A 1 , A 2 ) = 3 5 A 1 A 2 + 4 5 A 2 A 1 . p(A_1,A_2)=\frac{3}{5}A_1A_2+\frac{4}{5}A_2A_1. p ( A 1 , A 2 ) = 5 3 A 1 A 2 + 5 4 A 2 A 1 .
With two memory labels, the designated query input has six numerical coordinates, ordered ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 2 , 0 ) , ( 2 , 1 ) (0,0),(0,1),(1,0),(1,1),(2,0),(2,1) ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 2 , 0 ) , ( 2 , 1 ) , and its output has four, ordered ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) (0,0),(0,1),(1,0),(1,1) ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) . The query matrices are explicitly
C 0 = ( 0 0 0 4 5 3 5 0 ) , C 1 = ( 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 ) , C 2 = ( 0 0 1 0 ) . (134) C_0=\begin{pmatrix}0\\0\\0\\\frac{4}{5}\\\frac{3}{5}\\0\end{pmatrix},\qquad
C_1=\begin{pmatrix}0&0&0&0\\0&0&0&0\\0&0&1&0\\0&0&0&0\\0&0&0&1\\0&0&0&0\end{pmatrix},\qquad
C_2=\begin{pmatrix}0&0&1&0\end{pmatrix}. \tag*{(134)} C 0 = 0 0 0 5 4 5 3 0 , C 1 = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 , C 2 = ( 0 0 1 0 ) . (134)
Their nonzero singular values are one, so their Julia defect roots are just projections. Direct multiplication of the designated blocks gives
( C 2 ⊗ I n ) Λ 2 ( A ) ( C 1 ⊗ I n ) Λ 2 ( A ) ( C 0 ⊗ I n ) = 3 5 A 1 A 2 + 4 5 A 2 A 1 . (C_2\otimes I_n)\Lambda_2(A)(C_1\otimes I_n)\Lambda_2(A)(C_0\otimes I_n)=\frac{3}{5}A_1A_2+\frac{4}{5}A_2A_1. ( C 2 ⊗ I n ) Λ 2 ( A ) ( C 1 ⊗ I n ) Λ 2 ( A ) ( C 0 ⊗ I n ) = 5 3 A 1 A 2 + 5 4 A 2 A 1 .
On one branch the first query contributes A 2 A_2 A 2 and the second contributes A 1 A_1 A 1 ; the other branch gives the reverse order. The full circuit uses the same two unconditional instances of Eq. (B.20), with the Julia gates and failure permutations specified in § 4.2 . The preparation uses the known rotation
( 3 5 − 4 5 4 5 3 5 ) \begin{pmatrix}\frac{3}{5}&-\frac{4}{5}\\\frac{4}{5}&\frac{3}{5}\end{pmatrix} ( 5 3 5 4 − 5 4 5 3 )
and basis permutations, while C 1 C_1 C 1 is the displayed routing matrix. The selected target has norm at most one by the contraction product, and norm exactly one by evaluation on the word matrices truncated at degree two, which send the empty word to orthogonal words 12 and 21 with coefficients 3 / 5 3/5 3/5 , 4 / 5 4/5 4/5 . Two exact queries are therefore optimal in this access model. If the row is obtained from equally weighted selection of two separate block encodings, it is divided by 2 \sqrt{2} 2 , and the same circuit returns p / 2 p/2 p /2 ; the loading normalization is therefore part of the resulting block.
Finite-gate synthesis of the known unitaries
Theorem B.1 requires a phase-sensitive compiler for a known unitary supported on at most S S S listed basis states, whose entries have certified evaluators. Standard two-level synthesis and Solovay–Kitaev supply the gate decompositions [13 , 86 , 38 ] ; the points specific to our input are the support size, the phase of a controlled supported matrix, and the bit cost of numerical choices. We verify these points here. Our elementary set is H H H , T T T , T † T^\dagger T † , and CNOT, with exact NOT and Toffoli decompositions [87 ] .
A phase error in a gate applied only at failure label zero is a relative phase in the full circuit. We therefore add one phase qubit and one unused basis state with phase value one. For a supported unitary U U U of order s ≤ S s\le S s ≤ S , we compile
U ^ = ( U 0 0 1 det U ) ∈ SU ( s + 1 ) . (135) \widehat{U}=\begin{pmatrix}U&0\\0&\frac{1}{\det U}\end{pmatrix}\in\operatorname{SU}(s+1). \tag*{(135)} U = ( U 0 0 d e t U 1 ) ∈ SU ( s + 1 ) . (135)
It acts as U U U on the phase-zero input and fixes every unlisted state. Two-level elimination reduces it to O ( S 2 ) O(S^2) O ( S 2 ) matrices in SU ( 2 ) \operatorname{SU}(2) SU ( 2 ) . The elementary elimination is
1 ∣ a ∣ 2 + ∣ b ∣ 2 ( a ‾ b ‾ − b a ) . (136) \frac{1}{\sqrt{|a|^2+|b|^2}}
\begin{pmatrix}\overline{a}&\overline{b}\\-b&a\end{pmatrix}. \tag*{(136)} ∣ a ∣ 2 + ∣ b ∣ 2 1 ( a − b b a ) . (136)
After earlier columns have become coordinate columns, the remaining part of the next column has norm one. Certified intervals identify a pivot of magnitude at least 1 / ( 2 s + 1 ) 1/(2\sqrt{s+1}) 1/ ( 2 s + 1 ) ; a signed two-level permutation moves it to the pivot position, and subsequent eliminations only increase its accumulated magnitude. Thus every denominator has a polynomial lower bound. The first s s s diagonal entries become one, and determinant one fixes the last. This gives entry evaluators for all factors without deciding whether an approximately known entry is exactly zero.
For two listed bit strings, a Gray path conjugates a controlled one-qubit operation into the corresponding two-level gate [13 ] . Each path transposition and the failure-zero condition use known Boolean predicates: an AND chain computes the required bit pattern in clean workspace, the gate is applied, and the computation is reversed. Visibility markers additionally compare the oracle label with the retained list of d + d_+ d + strings. These operations use polynomial work in the label width, with the conservative bound O ( n 0 3 ) O(n_0^3) O ( n 0 3 ) per two-level factor and linear clean space used in Theorem B.1 . They never control the unknown oracle.
Barenco et al.’s Lemmas 4.3 and 5.1 [13 ] give a controlled W ∈ S U ( 2 ) W \in\mathrm{SU}(2) W ∈ SU ( 2 ) using two CNOTs and three one-qubit matrices satisfying
A B C = I , A X B X C = W . (137) ABC = I,\qquad AXBXC = W. \tag*{(137)} A B C = I , A X B X C = W . (137)
We use a stable coordinate construction of these matrices instead of choosing Euler angles near a singular chart. With the Pauli matrices σ = ( X , Y , Z ) \boldsymbol{\sigma}=(X,Y,Z) σ = ( X , Y , Z ) , define
Q ( q 0 , q x , q y , q z ) = ( q 0 − i q z − q y − i q x q y − i q x q 0 + i q z ) . (138) Q(q_0,q_x,q_y,q_z)=
\begin{pmatrix}
q_0-iq_z & -q_y-iq_x\\
q_y-iq_x & q_0+iq_z
\end{pmatrix}. \tag*{(138)} Q ( q 0 , q x , q y , q z ) = ( q 0 − i q z q y − i q x − q y − i q x q 0 + i q z ) . (138)
For a real unit vector ( q 0 , q x , q y , q z ) (q_0,q_x,q_y,q_z) ( q 0 , q x , q y , q z ) this is an S U ( 2 ) \mathrm{SU}(2) SU ( 2 ) matrix. Writing W = c I − i v ⋅ σ W=cI-i\mathbf{v}\cdot\boldsymbol{\sigma} W = c I − i v ⋅ σ , we first test whether it lies within the assigned tolerance of I I I or − I -I − I . In that case we use the corresponding central matrix and charge the error; otherwise certified overlapping tests give a lower bound on ∥ v ∥ \lVert\mathbf{v}\rVert ∥ v ∥ in terms of the tolerance. For real unit vectors x , y x,y x , y with 1 + x ⋅ y > 0 1+x\cdot y>0 1 + x ⋅ y > 0 , we use the alignment matrix
H ( x , y ) = Q ( 1 + x ⋅ y 2 ( 1 + x ⋅ y ) , x × y 2 ( 1 + x ⋅ y ) ) . H(x,y)=Q\left(\frac{1+x\cdot y}{\sqrt{2(1+x\cdot y)}},\frac{x\times y}{\sqrt{2(1+x\cdot y)}}\right). H ( x , y ) = Q ( 2 ( 1 + x ⋅ y ) 1 + x ⋅ y , 2 ( 1 + x ⋅ y ) x × y ) .
Pauli multiplication gives H ( x , y ) ( x ⋅ σ ) H ( x , y ) † = y ⋅ σ H(x,y)(x\cdot\boldsymbol{\sigma})H(x,y)^\dagger=y\cdot\boldsymbol{\sigma} H ( x , y ) ( x ⋅ σ ) H ( x , y ) † = y ⋅ σ . Choosing a coordinate axis e j e_j e j with ∣ e j ⋅ v / ∥ v ∥ ∣ ≤ 3 / 4 \lvert e_j\cdot\mathbf{v}/\lVert\mathbf{v}\rVert\rvert\le3/4 ∣ e j ⋅ v / ∥ v ∥∣ ≤ 3/4 therefore gives
A = H ( e j , v / ∥ v ∥ ) H ( e z , e j ) , B = diag ( 1 + c 2 + i 1 − c 2 , 1 + c 2 − i 1 − c 2 ) , C = B † A † . A=H(e_j,\mathbf{v}/\lVert\mathbf{v}\rVert)H(e_z,e_j),\qquad
B=\operatorname{diag}\left(\sqrt{\frac{1+c}{2}}+i\sqrt{\frac{1-c}{2}},\sqrt{\frac{1+c}{2}}-i\sqrt{\frac{1-c}{2}}\right),\qquad
C=B^\dagger A^\dagger. A = H ( e j , v / ∥ v ∥) H ( e z , e j ) , B = diag ( 2 1 + c + i 2 1 − c , 2 1 + c − i 2 1 − c ) , C = B † A † .
Both alignment denominators are bounded away from zero, and 1 ± c ≥ ∥ v ∥ 2 / 2 1\pm c\ge\lVert\mathbf{v}\rVert^2/2 1 ± c ≥ ∥ v ∥ 2 /2 bounds the root conditions. Since X B X = B † XBX=B^\dagger X B X = B † and ( B † ) 2 = c I − i ∥ v ∥ Z (B^\dagger)^2=cI-i\lVert\mathbf{v}\rVert Z ( B † ) 2 = c I − i ∥ v ∥ Z , these factors obey Eq. (B.24). At W = − I W=-I W = − I we use A = I A=I A = I , B = i Z B=iZ B = i Z , C = − i Z C=-iZ C = − i Z . All choices use overlapping tolerance intervals, so no exact comparison of evaluator-defined entries is required.
For the one-qubit approximations we use the inverse-closed alphabet
G = { V 0 , V 1 , V 0 † , V 1 † } , V 0 = H T H T † = R x ( π / 4 ) R z ( − π / 4 ) , V 1 = T V 0 T † . \mathcal{G}=\{V_0,V_1,V_0^\dagger,V_1^\dagger\},\qquad
V_0=HTHT^\dagger=R_x(\pi/4)R_z(-\pi/4),\qquad
V_1=TV_0T^\dagger. G = { V 0 , V 1 , V 0 † , V 1 † } , V 0 = H T H T † = R x ( π /4 ) R z ( − π /4 ) , V 1 = T V 0 T † .
The subgroup generated by G \mathcal{G} G is dense in S U ( 2 ) \mathrm{SU}(2) SU ( 2 ) . Indeed, tr V 0 = 1 + 1 / 2 \operatorname{tr}V_0=1+1/\sqrt{2} tr V 0 = 1 + 1/ 2 is not an algebraic integer, since its monic minimal polynomial has a noninteger coefficient. Hence V 0 V_0 V 0 has infinite order, and the closure of its powers is a rotation circle. Conjugation by T T T gives a second circle with a nonparallel axis; their infinitesimal generators and the corresponding Lie bracket span s u ( 2 ) \mathfrak{su}(2) su ( 2 ) , which proves density. To construct a fixed coarse net of radius r r r , we first compute a finite rational δ \delta δ -net of the unit sphere in four real coordinates using stereographic charts, with 0 < δ < r / 4 0<\delta<r/4 0 < δ < r /4 . We enumerate gate words until every grid point has a certified approximation within r − 2 δ r-2\delta r − 2 δ . The triangle inequality then gives a strict covering margin for the whole sphere, and density guarantees that the enumeration terminates. Since r r r and the grid are fixed independently of the target, this cost is fixed; overlapping acceptance radii make subsequent net choices certifiable.
Dawson and Nielsen’s Theorem 1 and Sections 3–4 [38 ] then give an operator-norm approximation of accuracy ζ \zeta ζ with O ( log 4 ( 1 / ζ ) ) O(\log^{4}(1/\zeta)) O ( log 4 ( 1/ ζ )) gates. To justify finite-bit evaluation as well, we record the conditioning of the balanced-commutator step. For a residual W r e s = Q ( c , v ) W_{\mathrm{res}} = \mathcal{Q}(\mathbf{c},\mathbf{v}) W res = Q ( c , v ) near the identity, we construct the balanced commutator from
h = ∥ W r e s − I ∥ = 2 ( 1 − c ) ≤ 1 , s = ( ( 1 − c ) / 2 ) 1 / 4 , t = 1 − s 2 , h = \lVert W_{\mathrm{res}} - I \rVert= \sqrt{2(1-c)} \le1,\qquad s = \left((1-c)/2\right)^{1/4},\qquad t = \sqrt{1-s^{2}}, h = ∥ W res − I ∥ = 2 ( 1 − c ) ≤ 1 , s = ( ( 1 − c ) /2 ) 1/4 , t = 1 − s 2 ,
V b = Q ( t , s , 0 , 0 ) , W b = Q ( t , 0 , s , 0 ) . V_b = \mathcal{Q}(t,s,0,0),\qquad W_b = \mathcal{Q}(t,0,s,0). V b = Q ( t , s , 0 , 0 ) , W b = Q ( t , 0 , s , 0 ) .
Their exact commutator is
V b W b V b † W b † = Q ( 1 − 2 s 4 , 2 t s 3 , − 2 t s 3 , 2 t 2 s 2 ) . (139) V_bW_bV_b^\dagger W_b^\dagger= \mathcal{Q}(1-2s^{4},\,2ts^{3},\,-2ts^{3},\,2t^{2}s^{2}). \tag*{(139)} V b W b V b † W b † = Q ( 1 − 2 s 4 , 2 t s 3 , − 2 t s 3 , 2 t 2 s 2 ) . (139)
Its scalar coordinate is c c c and its unit axis is u = ( s , − s , t ) T / 1 + s 2 \mathbf{u}=(s,-s,t)^\mathsf{T}/\sqrt{1+s^{2}} u = ( s , − s , t ) T / 1 + s 2 . For n = v / ∥ v ∥ \mathbf{n}=\mathbf{v}/\lVert\mathbf{v}\rVert n = v / ∥ v ∥ , an axis e j e_j e j satisfying both ∣ e j ⋅ u ∣ , ∣ e j ⋅ n ∣ ≤ 4 / 5 \lvert e_j\cdot\mathbf{u}\rvert,\lvert e_j\cdot\mathbf{n}\rvert\le4/5 ∣ e j ⋅ u ∣ , ∣ e j ⋅ n ∣ ≤ 4/5 can be certified with a fixed margin, since each unit vector has at most one coordinate exceeding 3 / 4 3/4 3/4 in magnitude. Conjugation by A c = H ( e j , n ) H ( u , e j ) A_c=H(e_j,\mathbf{n})H(\mathbf{u},e_j) A c = H ( e j , n ) H ( u , e j ) aligns the commutator axis with n \mathbf{n} n . The resulting factors V c V_c V c , W c W_c W c satisfy
V c W c V c † W c † = W r e s , ∥ V c − I ∥ 2 = ∥ W c − I ∥ 2 = 2 ( 1 − t ) ≤ 2 s 2 = h . V_cW_cV_c^\dagger W_c^\dagger= W_{\mathrm{res}},\qquad\lVert V_c-I\rVert^{2}=\lVert W_c-I\rVert^{2}=2(1-t)\le2s^{2}=h. V c W c V c † W c † = W res , ∥ V c − I ∥ 2 = ∥ W c − I ∥ 2 = 2 ( 1 − t ) ≤ 2 s 2 = h .
The alignment denominators are at least 2 / 5 \sqrt{2/5} 2/5 and t ≥ 1 / 2 t\ge1/\sqrt{2} t ≥ 1/ 2 .
At a recursion level with tolerance η \eta η , an overlapping test either certifies that the residual is at most η / 10 \eta/10 η /10 , which we charge directly, or certifies h ≥ η / 20 h\ge\eta/20 h ≥ η /20 before using the formula. In the latter case
1 − c ≥ η 2 / 800 , ∥ v ∥ ≥ h / 2 . 1-c\ge\eta^{2}/800,\qquad\lVert\mathbf{v}\rVert\ge h/\sqrt{2}. 1 − c ≥ η 2 /800 , ∥ v ∥ ≥ h / 2 .
These lower bounds make the inverse factors in the root and normalization calculations polynomially bounded in η − 1 \eta^{-1} η − 1 . The standard recursion, with η r + 1 = C η r 3 / 2 \eta_{r+1}=C\eta_r^{3/2} η r + 1 = C η r 3/2 , has depth O ( log log ( 1 / ζ ) ) O(\log\log(1/\zeta)) O ( log log ( 1/ ζ )) and uses polynomially many calls in log ( 1 / ζ ) \log(1/\zeta) log ( 1/ ζ ) ; moreover, each local tolerance satisfies log ( 1 / η ) = O ( log ( 1 / ζ ) ) \log(1/\eta)=O(\log(1/\zeta)) log ( 1/ η ) = O ( log ( 1/ ζ )) . The root evaluators of Appendix A therefore evaluate the recursion in polynomial bit time after allocating guard precision across these conditioned operations. The arithmetic approximations certify the choices and evaluate the exact unitary factors, whose gate words form the circuit. Reserving a fixed fraction of ζ \zeta ζ for these evaluations preserves the final error guarantee.
We apply this procedure to the O ( ( Q + 1 ) S 2 ) O((Q+1)S^{2}) O (( Q + 1 ) S 2 ) supported factors and their controlled decompositions, allocating tolerances with sum at most ϵ g \epsilon_g ϵ g . The known predicates are compiled exactly, and the phase and clean work registers fit the bound of Theorem B.1 . Each elementary factor approximates a full ideal unitary, including its action on nonzero workspace sectors. Replacing the factors one at a time therefore bounds the full-circuit error by the sum of their tolerances, even in the presence of earlier leakage; selecting the ancillary block cannot increase it. This gives Eq. (B.14) while keeping all original queries unchanged.
Joint access from separate block encodings
The joint query used by our synthesis theorem can be supplied directly or constructed from coherently selectable block encodings. We give the latter construction because it explains how the input model relates to familiar selection and preparation methods [35 , 45 ] , and because its scaling changes the norm that the synthesis algorithm must use. Throughout this appendix we assume either a supplied coherent selector or controlled implementations of the individual inputs; these are additional access capabilities for unknown unitaries [3 ] .
For each j ∈ { 1 , … , k } j \in\{1,\ldots,k\} j ∈ { 1 , … , k } , we assume that a supplied unitary U j U_j U j acts on an encoding register and the n n n -dimensional signal register, and that, in its stated computational basis,
[ U j ] ( 0 , x ) , ( 0 , y ) = ( A j ) x y α j , 0 ≤ x , y < n , [U_j]_{(0,x),(0,y)} = \frac{(A_j)_{xy}}{\alpha_j}, \qquad0 \le x,y < n, [ U j ] ( 0 , x ) , ( 0 , y ) = α j ( A j ) x y , 0 ≤ x , y < n ,
where α j > 0 \alpha_j > 0 α j > 0 is known. By padding with identity qubits and applying known coordinate permutations, we give all encodings a common width q e ≥ 1 q_e \ge1 q e ≥ 1 and write d e = 2 q e d_e = 2^{q_e} d e = 2 q e . This preserves their designated corners at no query cost, while the extra encoding dimension ensures that the joint oracle meets the dimension requirement in Eq. (9) .
The selector register has width q J = ⌈ log 2 ( k + 1 ) ⌉ q_J = \lceil\log_2(k+1) \rceil q J = ⌈ log 2 ( k + 1 )⌉ and dimension d J = 2 q J d_J = 2^{q_J} d J = 2 q J . Its label zero supplies a genuine identity operation; labels 1 , … , k 1,\ldots,k 1 , … , k select the inputs, and the remaining labels also act as identity. The complete selected unitary is the d J d e n × d J d e n d_Jd_en \times d_Jd_en d J d e n × d J d e n matrix with entries
[ U s e l ] ( j , e , x ) , ( ℓ , f , y ) = δ j ℓ { [ U j ] ( e , x ) , ( f , y ) , 1 ≤ j ≤ k , δ e f δ x y , j = 0 or j > k . (140) [U_{\mathrm{sel}}]_{(j,e,x),(\ell,f,y)} = \delta_{j\ell}
\begin{cases}
[U_j]_{(e,x),(f,y)}, & 1 \le j \le k,\\
\delta_{ef}\delta_{xy}, & j=0\ \text{or}\ j>k.
\end{cases} \tag*{(140)} [ U sel ] ( j , e , x ) , ( ℓ , f , y ) = δ j ℓ { [ U j ] ( e , x ) , ( f , y ) , δ e f δ x y , 1 ≤ j ≤ k , j = 0 or j > k . (140)
The displayed action is unitary on every selector label. When it is supplied directly we charge its stated query cost; when controlled implementations of the U j U_j U j are supplied instead, we realize it by applying each U j U_j U j under the known condition J = j J=j J = j , so one selector call costs one controlled call to each input and the corresponding label comparisons.
We designate the single ancillary label ( J , e ) = ( 0 , 0 ) (J,e)=(0,0) ( J , e ) = ( 0 , 0 ) as the idle coordinate, and ( j , 0 ) (j,0) ( j , 0 ) for 1 ≤ j ≤ k 1 \le j \le k 1 ≤ j ≤ k as the active input and output coordinates. Their selected matrix is
( I n 0 0 ⋯ 0 0 A 1 / α 1 0 ⋯ 0 0 0 A 2 / α 2 ⋱ ⋮ ⋮ ⋮ ⋱ ⋱ 0 0 0 ⋯ 0 A k / α k ) . \begin{pmatrix}
I_n & 0 & 0 & \cdots& 0\\
0 & A_1/\alpha_1 & 0 & \cdots& 0\\
0 & 0 & A_2/\alpha_2 & \ddots& \vdots\\
\vdots& \vdots& \ddots& \ddots& 0\\
0 & 0 & \cdots& 0 & A_k/\alpha_k
\end{pmatrix}. I n 0 0 ⋮ 0 0 A 1 / α 1 0 ⋮ 0 0 0 A 2 / α 2 ⋱ ⋯ ⋯ ⋯ ⋱ ⋱ 0 0 0 ⋮ 0 A k / α k .
The original oracle width is q o = q J + q e q_o=q_J+q_e q o = q J + q e , and its dimension obeys d o = d J d e ≥ 2 ( k + 1 ) ≥ 1 + 2 k d_o=d_Jd_e \ge2(k+1) \ge1+2k d o = d J d e ≥ 2 ( k + 1 ) ≥ 1 + 2 k . We place the designated lists in the order of Eq. (9) by exchanging their known bit strings, at a cost polynomial in the number and width of those strings. This gives i = 1 i=1 i = 1 and a = b = k a=b=k a = b = k ; the additional identity labels belong to the unspecified part of the oracle and are not included in the numerical arrays used for synthesis.
For a known unit column g = ( g 1 , … , g k ) T g=(g_1,\ldots,g_k)^{\mathsf T} g = ( g 1 , … , g k ) T with a certified entry evaluator, two-level elimination computes an index rotation P g P_g P g satisfying P g ∑ j g j ∣ j ⟩ = ∣ 1 ⟩ P_g\sum_j g_j\lvert j\rangle=\lvert1\rangle P g ∑ j g j ∣ j ⟩ = ∣ 1 ⟩ . It fixes zero and unused labels. The pivot and precision bounds are those of Appendix § 12 .§ 4 , and its synthesis error is charged as a known-gate error. The square joint unitary
U r o w = ( P g ⊗ I d e n ) U s e l U_{\mathrm{row}}=(P_g\otimes I_{d_en})U_{\mathrm{sel}} U row = ( P g ⊗ I d e n ) U sel
has idle input and output coordinate ( 0 , 0 ) (0,0) ( 0 , 0 ) , active input coordinates ( j , 0 ) (j,0) ( j , 0 ) for 1 ≤ j ≤ k 1 \le j \le k 1 ≤ j ≤ k , and active output coordinate ( 1 , 0 ) (1,0) ( 1 , 0 ) . Its selected matrix is
\begin{pmatrix}
I_n & 0 & \cdots& 0\\
0 & \overline{g_1}A_1/\alpha_1 & \cdots& \overline{g_k}A_k/\alpha_k
\end{pmatrix}. \tag*{(141)}\end{pmatrix}
The oracle dimension satisfies d o ≥ k + 2 d_o \ge k+2 d o ≥ k + 2 , so this is an instance of Eq. (9) with i = 1 i=1 i = 1 , a = 1 a=1 a = 1 , and b = k b=k b = k . Unitarity proves contractivity of the loaded row. With equal weights it is the row [ A 1 / α 1 ⋯ A k / α k ] / k [A_1/\alpha_1\ \cdots\ A_k/\alpha_k]/\sqrt{k} [ A 1 / α 1 ⋯ A k / α k ] / k ; omitting this factor would incorrectly infer joint row contractivity from the separate input bounds.
The row algorithm acts on the variables Z j = g ˉ j A j / α j Z_j=\bar{g}_jA_j/\alpha_j Z j = g ˉ j A j / α j that actually occur in Eq. (C.2). If all weights needed by the target are nonzero, its scalar polynomial is specified in those variables by
c ~ j 1 ⋯ j d = c j 1 ⋯ j d ∏ t = 1 d α j t g ˉ j t . (142) \widetilde{c}_{j_1\cdots j_d}=c_{j_1\cdots j_d}\prod_{t=1}^{d}\frac{\alpha_{j_t}}{\bar{g}_{j_t}}. \tag*{(142)} c j 1 ⋯ j d = c j 1 ⋯ j d t = 1 ∏ d g ˉ j t α j t . (142)
Consequently p ~ ( Z ) = p ( A ) \widetilde{p}(Z)=p(A) p ( Z ) = p ( A ) , and we implement the change in Eq. (C.3) by multiplying transition T j T_j T j by α j / g ˉ j \alpha_j/\bar{g}_j α j / g ˉ j , preserving the number of states. This letter-dependent rescaling is essential when terms have different degrees. For the rational-input theorem, the multipliers must have rational real and imaginary parts; when the α j \alpha_j α j are rational, one suitable choice for k > 1 k>1 k > 1 is
g j = 2 t j 1 + ∥ t ∥ 2 ( j < k ) , g k = 1 − ∥ t ∥ 2 1 + ∥ t ∥ 2 , t j = 1 2 k , g_j=\frac{2t_j}{1+\lVert t\rVert^2}\ (j<k),\qquad g_k=\frac{1-\lVert t\rVert^2}{1+\lVert t\rVert^2},\qquad t_j=\frac{1}{2k}, g j = 1 + ∥ t ∥ 2 2 t j ( j < k ) , g k = 1 + ∥ t ∥ 2 1 − ∥ t ∥ 2 , t j = 2 k 1 ,
whose entries are positive and rational, while for k = 1 k=1 k = 1 we take g 1 = 1 g_1=1 g 1 = 1 . Equal weights may introduce algebraic multipliers and therefore require a separate check that the resulting coefficients remain rational; for example, with α 1 = α 2 = 1 \alpha_1=\alpha_2=1 α 1 = α 2 = 1 , the degree-two rescaling for two equal weights is the rational factor two. In either case the compiler estimates the norm in the loaded row coordinates, including the chosen weights, which determines the normalization of the resulting circuit.
We next obtain Eq. (8) with its known a × b a\times b a × b matrices F j F_j F j . We choose positive known rational numbers β j ≥ ∥ F j ∥ \beta_j\ge\lVert F_j\rVert β j ≥ ∥ F j ∥ and set d F = 2 q F d_F=2^{q_F} d F = 2 q F , where q F = ⌈ log 2 ( a + b ) ⌉ q_F=\lceil\log_2(a+b)\rceil q F = ⌈ log 2 ( a + b )⌉ . On a numerical register with d F d_F d F labels, we use the explicit square unitary
W j = ( F j / β j ( I a − F j F j † / β j 2 ) 1 / 2 0 ( I b − F j † F j / β j 2 ) 1 / 2 − F j † / β j 0 0 0 I d F − a − b ) . W_j=
\begin{pmatrix}
F_j/\beta_j & (I_a-F_jF_j^\dagger/\beta_j^2)^{1/2} & 0\\
(I_b-F_j^\dagger F_j/\beta_j^2)^{1/2} & -F_j^\dagger/\beta_j & 0\\
0 & 0 & I_{d_F-a-b}
\end{pmatrix}. W j = F j / β j ( I b − F j † F j / β j 2 ) 1/2 0 ( I a − F j F j † / β j 2 ) 1/2 − F j † / β j 0 0 0 I d F − a − b .
Its row groups have lengths a , b , d F − a − b a,b,d_F-a-b a , b , d F − a − b and its column groups have lengths b , a , d F − a − b b,a,d_F-a-b b , a , d F − a − b , omitting an empty final group. The designated input labels are 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 and output labels 0 , … , a − 1 0,\ldots,a-1 0 , … , a − 1 , with corner F j / β j F_j/\beta_j F j / β j . This is a known numerical Julia matrix.
The joint registers are now ( J , F , e , s i g n a l ) (J,F,e,\mathrm{signal}) ( J , F , e , signal ) . We combine the known conditional W j W_j W j with Eq. (C.1) to obtain the full square unitary S S S of order d J d F d e d n d_Jd_Fd_ed_n d J d F d e d n , whose entries are
[ S ] ( j , μ , e , x ) , ( ℓ , ν , f , y ) = δ j ℓ { ( W j ) μ ν [ U j ] ( e , x ) , ( f , y ) , 1 ≤ j ≤ k , δ μ ν δ e f δ x y , j = 0 or j > k . [S]_{(j,\mu,e,x),(\ell,\nu,f,y)}
=
\delta_{j\ell}
\begin{cases}
(W_j)_{\mu\nu}[U_j]_{(e,x),(f,y)}, & 1\le j\le k,\\
\delta_{\mu\nu}\delta_{ef}\delta_{xy}, & j=0\text{ or }j>k.
\end{cases} [ S ] ( j , μ , e , x ) , ( ℓ , ν , f , y ) = δ j ℓ { ( W j ) μν [ U j ] ( e , x ) , ( f , y ) , δ μν δ e f δ x y , 1 ≤ j ≤ k , j = 0 or j > k .
Since the two factors in each active selector block are unitary, S S S is unitary on the stated registers.
Assuming the α j \alpha_j α j are positive rationals for the rational-input application, we define
Λ = ∑ j β j α j , a j = β j α j / Λ . \Lambda=\sum_j\beta_j\alpha_j,\qquad a_j=\sqrt{\beta_j\alpha_j/\Lambda}. Λ = j ∑ β j α j , a j = β j α j /Λ .
A known selector preparation P P P fixes label zero and maps ∣ 1 ⟩ \lvert1\rangle ∣ 1 ⟩ to ∑ j a j ∣ j ⟩ \sum_j a_j\lvert j\rangle ∑ j a j ∣ j ⟩ , while acting as identity outside the active selector labels. We use the full unitary
U Δ = ( P † ⊗ I d F d e d n ) S ( P ⊗ I d F d e d n ) . U_\Delta=(P^\dagger\otimes I_{d_Fd_ed_n})S(P\otimes I_{d_Fd_ed_n}). U Δ = ( P † ⊗ I d F d e d n ) S ( P ⊗ I d F d e d n ) .
The idle coordinate is ( 0 , 0 , 0 ) (0,0,0) ( 0 , 0 , 0 ) ; the active input coordinates are ( 1 , ν , 0 ) (1,\nu,0) ( 1 , ν , 0 ) for 0 ≤ ν < b 0\le\nu<b 0 ≤ ν < b , and the active output coordinates are ( 1 , μ , 0 ) (1,\mu,0) ( 1 , μ , 0 ) for 0 ≤ μ < a 0\le\mu<a 0 ≤ μ < a . Directly multiplying the stated matrix entries gives
[ U Δ ] ( 1 , μ , 0 , x ) , ( 1 , ν , 0 , y ) = ∑ j a j 2 f μ ν , j β j ( A j ) x y α j = 1 Λ ∑ j f μ ν , j ( A j ) x y . [U_\Delta]_{(1,\mu,0,x),(1,\nu,0,y)}
=
\sum_j a_j^2\frac{f_{\mu\nu,j}}{\beta_j}\frac{(A_j)_{xy}}{\alpha_j}
=
\frac{1}{\Lambda}\sum_j f_{\mu\nu,j}(A_j)_{xy}. [ U Δ ] ( 1 , μ , 0 , x ) , ( 1 , ν , 0 , y ) = j ∑ a j 2 β j f μν , j α j ( A j ) x y = Λ 1 j ∑ f μν , j ( A j ) x y .
The idle corner is I n I_n I n and its off-diagonal blocks vanish because both preparations fix selector label zero. With the known coordinate permutations, this is precisely Eq. (9) for the loaded block Δ ( A ) / Λ \Delta(A)/\Lambda Δ ( A ) /Λ , with i = 1 i=1 i = 1 . Its width is q o = q J + q F + q e q_o=q_J+q_F+q_e q o = q J + q F + q e and d o = d J d F d e ≥ 1 + a + b d_o=d_Jd_Fd_e\ge1+a+b d o = d J d F d e ≥ 1 + a + b . This is the explicit linear-combination construction underlying the block-encoding rule of Gilyén et al. [45 Lemma 52] , with its rectangular coordinate lists and identity resource retained.
The compiler now receives Z j = A j / Λ Z_j=A_j/\Lambda Z j = A j /Λ , so to preserve the original target we give it coefficients
c ~ w = Λ ∣ w ∣ c w . (143) \widetilde{c}_w=\Lambda^{|w|}c_w. \tag*{(143)} c w = Λ ∣ w ∣ c w . (143)
We obtain these coefficients by scaling every transition by Λ \Lambda Λ , again preserving the number of states, and compute the uniform norm in the resulting coordinates. The preparations and numerical W j W_j W j matrices are known gates, whose synthesis error enters Corollary 4.4 .
Each forward call to U r o w U_{\mathrm{row}} U row or U Δ U_{\Delta} U Δ uses one forward selector call and the stated known gates; the inverse preparation is known, so it does not require an inverse input query. If we construct the selector from individually controlled inputs, a Q Q Q -query synthesis makes Q Q Q calls to each such input, including on amplitudes already marked as failures. These costs explain the distinction between receiving a joint block directly and first loading it from separate encodings. The upper synthesis guarantee applies to the loaded unitary, whereas a converse over all compatible completions retains that larger quantifier: a particular loader, or additional promises on its constituent inputs, can restrict the available completions or matrix tuples.
From causal Choi matrices to the gates of a comb
A channel-level target specifies how a controller connects unknown channel calls while retaining its own memory. We compute the controller’s gates from rational causal Choi data, using the sequential characterization of Chiribella, D’Ariano, and Perinotti [30 Theorems 5–6] and the prefix-rank memory construction of Bisio et al. [15 Theorem 2] . Our task is to make the numerical factors, full unitary gates, and precision costs explicit.
Causal data and sequential isometries
We construct the processing gates in Eq. (97) from their causal Choi data. There are Q Q Q channel slots and J = Q + 1 J=Q+1 J = Q + 1 known processing steps.
We describe the known network before connecting the channel slots, with input X j X_j X j and output Y j Y_j Y j each of dimension n = 2 n s n=2^{n_s} n = 2 n s . In the unnormalized Choi convention [56 , 32 , 89 ] , a map’s entry at ( y , x ) , ( y ′ , x ′ ) (y,x),(y',x') ( y , x ) , ( y ′ , x ′ ) is ⟨ y ∣ C ( ∣ x ⟩ ⟨ x ′ ∣ ) ∣ y ′ ⟩ \langle y|C(|x\rangle\langle x'|)|y'\rangle ⟨ y ∣ C ( ∣ x ⟩ ⟨ x ′ ∣ ) ∣ y ′ ⟩ ; for a prefix we use the chronological order ( Y 1 , X 1 , … , Y j , X j ) (Y_1,X_1,\ldots,Y_j,X_j) ( Y 1 , X 1 , … , Y j , X j ) . Causality is then expressed by the following partial-trace identities.
Definition D.1 (Causal controller data). Causal controller data consist of explicit rational Hermitian matrices C ( j ) C^{(j)} C ( j ) of order n 2 j n^{2j} n 2 j , for 0 ≤ j ≤ J 0\le j\le J 0 ≤ j ≤ J , satisfying
C ( 0 ) = [ 1 ] , C ( j ) ⪰ 0 , Tr Y j C ( j ) = C ( j − 1 ) ⊗ I X j ( 1 ≤ j ≤ J ) . (144) C^{(0)}=[1],\qquad C^{(j)}\succeq0,\qquad\operatorname{Tr}_{Y_j}C^{(j)}=C^{(j-1)}\otimes I_{X_j}\quad(1\le j\le J). \tag*{(144)} C ( 0 ) = [ 1 ] , C ( j ) ⪰ 0 , Tr Y j C ( j ) = C ( j − 1 ) ⊗ I X j ( 1 ≤ j ≤ J ) . (144) An optional successful outcome is specified by a rational matrix S S S with 0 ⪯ S ⪯ C ( J ) 0\preceq S\preceq C^{(J)} 0 ⪯ S ⪯ C ( J ) .
Tracing the latest output leaves the preceding process tensored with identity on the latest input, so an earlier output cannot depend on an input still to be supplied. We use these intermediate identities to compute the controller, and measure its cost in the explicit rational encoding of C ( j ) C^{(j)} C ( j ) and the optional S S S . Writing r j = rank C ( j ) r_j=\operatorname{rank}C^{(j)} r j = rank C ( j ) and r ∗ = max j r j r_*=\max_j r_j r ∗ = max j r j , we obtain the following finite-bit realization. Controller space includes signal, memory, phase, and clean work; environments internal to channel primitives are counted separately when their Stinespring implementations are supplied.
Proposition D.2 (Compilation from causal Choi data). For causal controller data as in Definition D.1 and rational 0 < ϵ < 1 0 < \epsilon< 1 0 < ϵ < 1 , a classical algorithm computes descriptions of J J J known unitaries realizing C ( J ) C^{(J)} C ( J ) , and of the optional terminal instrument realizing S S S . After any Q Q Q channel calls are connected, finite-gate synthesis has diamond-norm error at most ϵ \epsilon ϵ . It uses O ( 1 + n s + log r ∗ ) O(1+n_s+\log r_*) O ( 1 + n s + log r ∗ ) controller qubits and O ~ ( J n 2 r ∗ 2 ) \widetilde{O}(Jn^2r_*^2) O ( J n 2 r ∗ 2 ) known gates. Classical cost is polynomial in the explicit rational input length and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) .
The gate bound suppresses factors polynomial in register widths and logarithmic in 1 / ϵ 1/\epsilon 1/ ϵ . Ideal gates realize the Choi data exactly, and the optional binary instrument has complementary outcome C ( J ) − S C^{(J)}-S C ( J ) − S ; finite-gate error is uniform over the connected channels. Since the terminal input matrix has n 4 J n^{4J} n 4 J entries, the bound concerns an explicit channel-level description. The compact coefficient input of polynomial Kraus synthesis specifies a different task, with known gates restricted to auxiliary labels.
To construct the processing isometries, we write a prefix index as z j = ( y 1 , x 1 , … , y j , x j ) z_j=(y_1,x_1,\ldots,y_j,x_j) z j = ( y 1 , x 1 , … , y j , x j ) , with 0 ≤ x t , y t < n 0\leq x_t,y_t<n 0 ≤ x t , y t < n and d j = n 2 j d_j=n^{2j} d j = n 2 j . The causal identities become
∑ y = 0 n − 1 C ( z , y , x ) , ( z ′ , y , x ′ ) ( j ) = δ x x ′ C z , z ′ ( j − 1 ) (145) \sum_{y=0}^{n-1} C^{(j)}_{(z,y,x),(z',y,x')}=\delta_{xx'}C^{(j-1)}_{z,z'} \tag*{(145)} y = 0 ∑ n − 1 C ( z , y , x ) , ( z ′ , y , x ′ ) ( j ) = δ x x ′ C z , z ′ ( j − 1 ) (145)
( 1 ≤ j ≤ J ) (1\leq j\leq J) ( 1 ≤ j ≤ J ) .
These rational linear equations constrain each time cut, and hence contain the information needed for a sequential realization. We first factor each prefix as
C ( j ) = R j R j † , R j : d j × r j , r j = rank C ( j ) , R 0 = [ 1 ] . (146) C^{(j)}=R_jR_j^\dagger,\qquad R_j:d_j\times r_j,\qquad r_j=\operatorname{rank}C^{(j)},\qquad R_0=[1]. \tag*{(146)} C ( j ) = R j R j † , R j : d j × r j , r j = rank C ( j ) , R 0 = [ 1 ] . (146)
The independent columns of R j R_j R j will serve as the memory coordinates after step j j j . To relate consecutive factors, whose column bases may be chosen independently, we form two matrices with columns indexed by ( z , x ) (z,x) ( z , x ) :
T j [ ( x ′ , β ) , ( z , x ) ] = δ x ′ x ( R j − 1 ) z , β , T j : n r j − 1 × n d j − 1 , B j [ ( y , α ) , ( z , x ) ] = ( R j ) ( z , y , x ) , α , B j : n r j × n d j − 1 . (147) \begin{aligned}
T_j[(x',\beta),(z,x)]&=\delta_{x'x}(R_{j-1})_{z,\beta},\qquad T_j:nr_{j-1}\times nd_{j-1},\\
B_j[(y,\alpha),(z,x)]&=(R_j)_{(z,y,x),\alpha},\qquad B_j:nr_j\times nd_{j-1}. \tag*{(147)}
\end{aligned} T j [( x ′ , β ) , ( z , x )] B j [( y , α ) , ( z , x )] = δ x ′ x ( R j − 1 ) z , β , T j : n r j − 1 × n d j − 1 , = ( R j ) ( z , y , x ) , α , B j : n r j × n d j − 1 . (147)
Causality equates their column Grams,
B j † B j = T j † T j . (148) B_j^\dagger B_j=T_j^\dagger T_j. \tag*{(148)} B j † B j = T j † T j . (148)
Their common entry at ( z , x ) , ( z ′ , x ′ ) (z,x),(z',x') ( z , x ) , ( z ′ , x ′ ) is δ x x ′ C z , z ′ ( j − 1 ) \delta_{xx'}C^{(j-1)}_{z,z'} δ x x ′ C z , z ′ ( j − 1 ) . This index order follows from the unconjugated factors in Eq. (D.4) and will also fix the transpose in the terminal instrument. Since R j − 1 R_{j-1} R j − 1 has independent columns, T j T_j T j has full row rank, so we can define the processing map by
W j = B j T j † ( T j T j † ) − 1 , W j : n r j × n r j − 1 . (149) W_j=B_jT_j^\dagger(T_jT_j^\dagger)^{-1},\qquad W_j:nr_j\times nr_{j-1}. \tag*{(149)} W j = B j T j † ( T j T j † ) − 1 , W j : n r j × n r j − 1 . (149)
The Gram equality gives ker T j = ker B j \ker T_j=\ker B_j ker T j = ker B j and hence W j T j = B j W_jT_j=B_j W j T j = B j ; moreover,
W j † W j = ( T j † ) † B j † B j T j † = ( T j T j † ) − 1 ( T j T j † ) = I n r j − 1 . W_j^\dagger W_j=(T_j^\dagger)^\dagger B_j^\dagger B_jT_j^\dagger=(T_jT_j^\dagger)^{-1}(T_jT_j^\dagger)=I_{nr_{j-1}}. W j † W j = ( T j † ) † B j † B j T j † = ( T j T j † ) − 1 ( T j T j † ) = I n r j − 1 .
Thus W j W_j W j is an isometry on all n r j − 1 nr_{j-1} n r j − 1 input coordinates, which also implies n r j ≥ n r j − 1 nr_j\geq nr_{j-1} n r j ≥ n r j − 1 . Its defining equality gives the recurrence
( R j ) ( z , y , x ) , α = ∑ β = 0 r j − 1 − 1 W j [ ( y , α ) , ( x , β ) ] ( R j − 1 ) z , β . (150) (R_j)_{(z,y,x),\alpha}=\sum_{\beta=0}^{r_{j-1}-1}W_j[(y,\alpha),(x,\beta)](R_{j-1})_{z,\beta}. \tag*{(150)} ( R j ) ( z , y , x ) , α = β = 0 ∑ r j − 1 − 1 W j [( y , α ) , ( x , β )] ( R j − 1 ) z , β . (150)
Starting from the one-dimensional memory at j = 0 j=0 j = 0 , this recurrence reproduces R j R_j R j at every prefix, and tracing its final memory gives the prescribed C ( j ) C^{(j)} C ( j ) . Conversely, tracing the current output and memory in a sequential isometry yields Eq. (D.2). Dilating known processing channels and retaining their environments extends this necessity argument to general controllers.
Channel slots and terminal instruments
We now connect the channel calls to the computed isometries. Grouping the entries of W j W_j W j into signal matrices gives
[ W j α β ] y x = W j [ ( y , α ) , ( x , β ) ] . (151) [W_j^{\alpha\beta}]_{yx}=W_j[(y,\alpha),(x,\beta)]. \tag*{(151)} [ W j α β ] y x = W j [( y , α ) , ( x , β )] . (151)
If slot t t t has Kraus matrices K a t ( t ) K_{a_t}^{(t)} K a t ( t ) , these known signal matrices produce the output Kraus matrices
T a , α = ∑ β 1 , … , β Q W Q α β Q K a Q ( Q ) W Q β Q β Q − 1 ⋯ K a 1 ( 1 ) W 1 β 1 0 . (152) T_{a,\alpha}=\sum_{\beta_1,\ldots,\beta_Q}W_Q^{\alpha\beta_Q}K_{a_Q}^{(Q)}W_Q^{\beta_Q\beta_{Q-1}}\cdots K_{a_1}^{(1)}W_1^{\beta_1 0}. \tag*{(152)} T a , α = β 1 , … , β Q ∑ W Q α β Q K a Q ( Q ) W Q β Q β Q − 1 ⋯ K a 1 ( 1 ) W 1 β 1 0 . (152)
For Q = 1 Q=1 Q = 1 this is ∑ β 1 W 2 α β 1 K a 1 ( 1 ) W 1 β 1 0 \sum_{\beta_1}W_2^{\alpha\beta_1}K_{a_1}^{(1)}W_1^{\beta_1 0} ∑ β 1 W 2 α β 1 K a 1 ( 1 ) W 1 β 1 0 , and for Q = 0 Q=0 Q = 0 it is W 1 α 0 W_1^{\alpha0} W 1 α 0 . Summing over a a a and α \alpha α gives a normalized channel, because we can successively use ∑ a K a ( t ) † K a ( t ) = I n \sum_a K_a^{(t)\dagger}K_a^{(t)}=I_n ∑ a K a ( t ) † K a ( t ) = I n and W j † W j = I W_j^\dagger W_j=I W j † W j = I . A change of Kraus representation, after zero-padding the lists to equal length, only mixes a summed index by a unitary and therefore leaves the operation invariant. The controller consequently depends on the channel slots themselves.
The controller uses the n s n_s n s -qubit signal S and a memory Mc _c c with R b = 2 ⌈ log 2 r J ⌉ R_b=2^{\lceil\log_2 r_J\rceil} R b = 2 ⌈ l o g 2 r J ⌉ labels. At step j j j , we embed the columns of W j W_j W j on input strings ( x , β ) (x,\beta) ( x , β ) with β < r j − 1 \beta<r_{j-1} β < r j − 1 and output strings ( y , α ) (y,\alpha) ( y , α ) with α < r j \alpha<r_j α < r j . To extend this isometry to all n R b nR_b n R b basis states, as required for a complete gate [53 ] , we use two-level unitary eliminations to send its columns to the first n r j − 1 nr_{j-1} n r j − 1 coordinate columns. If G j G_j G j is this elimination unitary and P j P_j P j sends the supported input strings to those coordinates, the required gate is
U j = G j † P j . (153) U_j=G_j^\dagger P_j. \tag*{(153)} U j = G j † P j . (153)
Its supported columns implement W j W_j W j deterministically, and the completion specifies every remaining column. During elimination, a norm-one column has a pivot of magnitude at least 1 / n R b 1/\sqrt{nR_b} 1/ n R b , so certified pivot selection and the phase-sensitive compilation of Appendix B.4 apply.
We execute U 1 , E 1 , U 2 , … , E Q , U J U_1,\mathcal{E}_1,U_2,\ldots,\mathcal{E}_Q,U_J U 1 , E 1 , U 2 , … , E Q , U J , retaining the initially zero memory until the final trace (Figure 4 ). Each channel acts on S and fixes Mc _c c ; all calls are forward and unconditional. If supplied Stinespring unitaries implement these primitives, we give slot t t t a fresh zero-input register E t s l o t E_t^{\mathrm{slot}} E t slot of q e n v , t q_{\mathrm{env},t} q env , t qubits. Retaining them until the final trace adds ∑ t q e n v , t \sum_t q_{\mathrm{env},t} ∑ t q env , t qubits and ensures that each slot applies its declared channel.
Figure 4. A channel-only comb. All U j U_j U j are known full unitaries computed from the causal Choi matrices. The unknown channels act only on the signal, whereas the controller memory is retained throughout. A probabilistic comb additionally applies the terminal memory instrument before this trace. The diagram counts channel calls; a fully unitary realization of their internal action requires separately supplied Stinespring implementations and fresh environment inputs.
To realize a specified successful outcome, we use the supplied domination 0 ⪯ S ⪯ C ( J ) 0\preceq S\preceq C^{(J)} 0 ⪯ S ⪯ C ( J ) , which is the probabilistic normalization condition of the network formalism [30 Theorems 9–10] . After constructing the deterministic controller, we compute the terminal memory effect from its factor:
H S = R J + S ( R J + ) † , E S = H S T . (154) H_S=R_J^+S(R_J^+)^\dagger,\qquad E_S=H_S^{\mathsf T}. \tag*{(154)} H S = R J + S ( R J + ) † , E S = H S T . (154)
Domination places the columns of S S S in the range of R J R_J R J , and sandwiching by R J + R_J^+ R J + gives 0 ⪯ H S ⪯ I r J 0\preceq H_S\preceq I_{r_J} 0 ⪯ H S ⪯ I r J and R J H S R J † = S R_JH_SR_J^\dagger=S R J H S R J † = S . Since transpose preserves positivity, E S E_S E S is also an effect, and a final memory instrument with successful matrix E S 1 / 2 E_S^{1/2} E S 1/2 has Choi matrix
R J E S R J † = S . (155) R_JE_SR_J^\dagger=S. \tag*{(155)} R J E S R J † = S . (155)
Summing the post-instrument memory label puts ( E S ) β α (E_S)_{\beta\alpha} ( E S ) β α in front of column α \alpha α of R J R_J R J and conjugate column β \beta β , which accounts for the ordinary transpose even when the Choi entries are complex. We implement the binary instrument by the known Julia unitary of E S 1 / 2 E_S^{1/2} E S 1/2 on Mc _c c and an initially zero outcome qubit b c b_c b c , extending the effect by zero outside the r J r_J r J memory labels. Retaining b c b_c b c and discarding memory yields S S S on outcome zero and C ( J ) − S C^{(J)}-S C ( J ) − S on the other outcome.
A dominating deterministic causal completion is necessary as well: it is obtained by summing the outcomes of any physical instrument. Together with the construction above, this proves the existence criterion. The polynomial-bit compiler takes such a completion as exact rational input; finding one from S S S alone is a separate semidefinite feasibility problem whose exact boundary behavior is not covered by that bound.
Finite-bit compilation and resources
To compute these gates with certified precision, we first determine the exact supports of the rational Choi matrices. Fraction-free elimination and positive-semidefiniteness tests give each rank and a factorization
C ( j ) = Z j D j Z j † C^{(j)} = Z_jD_jZ_j^\dagger C ( j ) = Z j D j Z j †
where Z j Z_j Z j has rational independent columns and D j D_j D j is positive rational diagonal. We retain the positive pivots in an exact pivoted L D L † LDL^\dagger L D L † factorization, deleting zero residual rows, and take R j = Z j D j 1 / 2 R_j = Z_jD_j^{1/2} R j = Z j D j 1/2 . The minor bounds of Appendix A bound every positive pivot below by 2 − poly ( ℓ ) 2^{-\operatorname{poly}(\ell)} 2 − poly ( ℓ ) in the explicit rational input length ℓ \ell ℓ .
In the ordering of Eq. (D.4), the matrix T j T j † T_jT_j^\dagger T j T j † repeats R j − 1 T R ‾ j − 1 R_{j-1}^{\mathsf T}\overline{R}_{j-1} R j − 1 T R j − 1 on its n n n input labels. This Gram equals D j − 1 1 / 2 ( Z j − 1 † Z j − 1 ) T D j − 1 1 / 2 D_{j-1}^{1/2}(Z_{j-1}^\dagger Z_{j-1})^{\mathsf T}D_{j-1}^{1/2} D j − 1 1/2 ( Z j − 1 † Z j − 1 ) T D j − 1 1/2 . We therefore evaluate its inverse using a rational positive definite inverse and positive diagonal inverse roots. Eqs. (D.6) and (D.11) have polynomial-bit entry evaluators computed directly from the original prefix matrices, and the root procedure of Appendix A handles a singular terminal effect.
There are J J J known square unitaries of order n R b < 2 n r ∗ nR_b < 2nr_\ast n R b < 2 n r ∗ , together with at most one known memory instrument. Two-level decomposition and the same controlled-gate and Solovay–Kitaev implementation used for the polynomial circuits require
O ( J ( n R b + 1 ) 2 poly ( n s + log ( r ∗ + 1 ) , log J ( n R b + 1 ) ϵ ) ) O\left(J(nR_b+1)^2\operatorname{poly}\left(n_s+\log(r_\ast+1),\log\frac{J(nR_b+1)}{\epsilon}\right)\right) O ( J ( n R b + 1 ) 2 poly ( n s + log ( r ∗ + 1 ) , log ϵ J ( n R b + 1 ) ) )
elementary gates and O ( n s + log ( r ∗ + 1 ) ) O(n_s+\log(r_\ast+1)) O ( n s + log ( r ∗ + 1 )) signal, memory, phase, and clean work qubits, plus one terminal outcome qubit when required. Supplied Stinespring environments contribute the separate count above. Matrix evaluation and gate compilation are polynomial in the explicit Choi input and precision lengths, as asserted in Proposition D.2 .
Finally, we allocate total operator-norm error ϵ / 2 \epsilon/2 ϵ /2 to the known unitaries. Replacing them one at a time changes the resulting channel or flagged instrument by at most ϵ \epsilon ϵ in diamond norm: a unitary error η \eta η contributes at most 2 η 2\eta 2 η , and every intervening channel and final trace has diamond norm one. This proves the claimed bound uniformly over the connected channels and arbitrary external references.
Joint residual certificates and degree reduction
The joint synthesis theorem requires a certificate that preserves interference between input labels and a circuit that carries those labels through a common query sequence. We prove the extensions of the scalar construction needed for these two tasks, then specify the complete register implementation and its use for coherent Kraus operations. All computed matrices come from the supplied rational coefficients and query data.
Joint residual certificates and their computation
We first reduce the coefficient recurrence using the reachability space of all columns of R 0 R_0 R 0 and the observability space of all rows of L L L . Polynomiality is then equivalent to joint nilpotence of the reduced transitions, which the nested transition ranges decide as in the scalar case. To determine the degree and test for a zero target, we compute
H 0 = R 0 R 0 † , H d + 1 = ∑ j T j H d T j † , Tr ( L H d L † ) = ∑ ∣ w ∣ = d ∥ P w ∥ F 2 . H_0 = R_0R_0^\dagger,\qquad H_{d+1} = \sum_j T_jH_dT_j^\dagger,\qquad\operatorname{Tr}(LH_dL^\dagger) = \sum_{|w|=d} \lVert P_w\rVert_F^2. H 0 = R 0 R 0 † , H d + 1 = j ∑ T j H d T j † , Tr ( L H d L † ) = ∣ w ∣ = d ∑ ∥ P w ∥ F 2 .
The trace vanishes precisely when every coefficient matrix of degree d d d is zero, so this rational recurrence tests all input columns together. We retain the same joint structure in the certificate by applying Lemma 3.1 to the constant rows e ν e_\nu e ν and the nonempty left residuals of the v v v target rows. Their basis f 1 , … , f r f_1,\ldots,f_r f 1 , … , f r has u u u entries per row, r ≤ s + u r \le s+u r ≤ s + u , and coefficient arrays
f ∅ = C f , f j w = A j r e s f w , P ∅ = D p , P j w = P j f w . (156) f_{\varnothing}=C_f,\qquad f_{jw}=A_j^{\mathrm{res}}f_w,\qquad P_{\varnothing}=D_p,\qquad P_{jw}=P_jf_w. \tag*{(156)} f ∅ = C f , f j w = A j res f w , P ∅ = D p , P j w = P j f w . (156)
Here f w , C f f_w,C_f f w , C f have size r × u r \times u r × u and P j P_j P j has size v × r v \times r v × r . The u u u constant rows and the successors x j f ℓ x_jf_\ell x j f ℓ are independent, giving h = u + k r h=u+kr h = u + k r rows in g g g and the coordinate matrices
E = [ I u 0 ⋯ 0 ] , J = [ C f A 1 r e s ⋯ A k r e s ] , P = [ D p P 1 ⋯ P k ] . (157) E=[I_u\ 0\ \cdots\ 0],\qquad J=[C_f\ A_1^{\mathrm{res}}\ \cdots\ A_k^{\mathrm{res}}],\qquad P=[D_p\ P_1\ \cdots\ P_k]. \tag*{(157)} E = [ I u 0 ⋯ 0 ] , J = [ C f A 1 res ⋯ A k res ] , P = [ D p P 1 ⋯ P k ] . (157)
They satisfy E g ∅ = I u Eg_{\varnothing}=I_u E g ∅ = I u , E g w = 0 E g_w=0 E g w = 0 for nonempty w w w , J g w = f w Jg_w=f_w J g w = f w , and P g w = P w Pg_w=P_w P g w = P w , while L j L_j L j selects the j j j th r r r -row successor block. Substituting these maps into Eqs. (32) –(33) gives E α , M μ E_\alpha,M_\mu E α , M μ of size b r × h br \times h b r × h and the joint map Φ \Phi Φ . Evaluation of g g g means
g ( A ) = [ ∑ w ( g w ) t ν A w ] 0 ≤ t < h 0 ≤ ν < u , g(A)=\left[\sum_w (g_w)_{t\nu}A_w\right]_{\substack{0\le t<h\\0\le\nu<u}}, g ( A ) = [ w ∑ ( g w ) t ν A w ] 0 ≤ t < h 0 ≤ ν < u ,
g ( A ) g(A) g ( A ) has size h n × u n hn \times un hn × u n .
Thus the hereditary form q Q 0 = g ∗ Q 0 g q_{Q_0}=g^*Q_0g q Q 0 = g ∗ Q 0 g evaluates to a u n × u n un \times un u n × u n matrix and includes all input-label cross terms. We prove completeness for this general form, since the strict search needs it for both the target defect and the constant identity.
Proof of Theorem 5.2 . A factor of S S S gives a polynomial square, and a factor of T T T gives the defect of Δ ( A ) \Delta(A) Δ ( A ) on the residual rows. Their sum is positive on every input column of length u n un u n , proving sufficiency with all cross terms retained.
For necessity, we index coefficient positions by a word and an input label. Independence of the rows, together with the unique starred–unstarred division, makes Q 0 ↦ g ∗ Q 0 g Q_0 \mapsto g^*Q_0g Q 0 ↦ g ∗ Q 0 g injective as in Theorem 3.2 . Evaluation at the scaled word tuple, summed over the u u u constant inputs, gives positive definite coefficient Grams and trace coercivity. The bounded-preimage argument of that theorem therefore closes the cone, so an infeasible positive polynomial would have a separator H ⪰ 0 H\succeq0 H ⪰ 0 with Φ ∗ ( H ) ⪰ 0 \Phi^*(H)\succeq0 Φ ∗ ( H ) ⪰ 0 and Tr ( H Q 0 ) < 0 \operatorname{Tr}(HQ_0)<0 Tr ( H Q 0 ) < 0 . We factor H T = W † W H^{\mathsf{T}} = W^{\dagger}W H T = W † W with n H = rank H n_H = \operatorname{rank} H n H = rank H independent rows and compute
R H = W J T , Z j , H = W L j T , Y j = Z j , H R H † , ω ν = W E ν T e ν . (158) R_H = WJ^{\mathsf{T}}, \quad Z_{j,H} = WL_j^{\mathsf{T}}, \quad Y_j = Z_{j,H}R_H^{\dagger}, \quad\omega_\nu= WE_\nu^{\mathsf{T}}e_\nu. \tag*{(158)} R H = W J T , Z j , H = W L j T , Y j = Z j , H R H † , ω ν = W E ν T e ν . (158)
The matrices R H , Z j , H R_H, Z_{j,H} R H , Z j , H have size n H × r n_H \times r n H × r . Because their localizing matrix has the form in Eq. (41) , its quadratic-form argument gives ker R H ⊆ ker Z j , H \ker R_H \subseteq\ker Z_{j,H} ker R H ⊆ ker Z j , H and hence Y j R H = Z j , H Y_jR_H = Z_{j,H} Y j R H = Z j , H and ∥ Δ ( Y ) ∥ ≤ 1 \lVert\Delta(Y)\rVert\le1 ∥ Δ ( Y )∥ ≤ 1 , also for singular H H H . The joint extension enters in evaluating a polynomial row: with f λ = λ f f_\lambda= \lambda f f λ = λ f and ζ ( f λ ) = R H λ T \zeta(f_\lambda) = R_H\lambda^{\mathsf{T}} ζ ( f λ ) = R H λ T , the residual identity becomes
ζ ( f λ ) = ∑ ν = 0 u − 1 ( λ C f ) ν ω ν + ∑ j Y j ζ ( f λ A j r e s ) . \zeta(f_\lambda) = \sum_{\nu=0}^{u-1}(\lambda C_f)_\nu\omega_\nu+ \sum_j Y_j\zeta(f_\lambda A_j^{\mathrm{res}}). ζ ( f λ ) = ν = 0 ∑ u − 1 ( λ C f ) ν ω ν + j ∑ Y j ζ ( f λ A j res ) .
Every residual on the right has smaller degree. Induction, starting with constant rows, proves
R H λ T = ∑ ν = 0 u − 1 ( f λ ) ν ( Y ) ω ν , ∑ ν ( g t ) ν ( Y ) ω ν = W e t . R_H\lambda^{\mathsf{T}} = \sum_{\nu=0}^{u-1}(f_\lambda)_\nu(Y)\omega_\nu, \qquad\sum_\nu(g_t)_\nu(Y)\omega_\nu= We_t. R H λ T = ν = 0 ∑ u − 1 ( f λ ) ν ( Y ) ω ν , ν ∑ ( g t ) ν ( Y ) ω ν = W e t .
The second equality also uses Y j R H = Z j , H Y_jR_H = Z_{j,H} Y j R H = Z j , H for the successor rows. Let Ω \Omega Ω be the column obtained by stacking ω 0 , … , ω u − 1 \omega_0,\ldots,\omega_{u-1} ω 0 , … , ω u − 1 . Then
Ω † q Q 0 ( Y ) Ω = ∑ t , s ( Q 0 ) t s ( W e t ) † ( W e s ) = ∑ t , s ( Q 0 ) t s H s t = Tr ( H Q 0 ) < 0. \Omega^{\dagger}q_{Q_0}(Y)\Omega= \sum_{t,s}(Q_0)_{ts}(We_t)^{\dagger}(We_s) = \sum_{t,s}(Q_0)_{ts}H_{st} = \operatorname{Tr}(HQ_0) < 0. Ω † q Q 0 ( Y ) Ω = t , s ∑ ( Q 0 ) t s ( W e t ) † ( W e s ) = t , s ∑ ( Q 0 ) t s H s t = Tr ( H Q 0 ) < 0.
The ordinary transpose in H T = W † W H^{\mathsf{T}} = W^{\dagger}W H T = W † W gives exactly this complex index pairing, so the negative value contradicts positivity at the admissible tuple Y Y Y and proves necessity. □ \square □
Proof of Proposition 5.3. We adapt the scalar conditioning bounds to the matrix constant C f C_f C f and the u u u -column identity. In particular, the coercive functional now has value u u u at I u I_u I u , which changes the outer search radius.
At the scaled creation tuple, the positive functional is
ℓ ρ ( q ) = ∑ ν = 0 u − 1 ( e ν ⊗ e ∅ ) † q ( ρ S ( D ) ) ( e ν ⊗ e ∅ ) , ℓ ρ ( I u ) = u . \ell_\rho(q) = \sum_{\nu=0}^{u-1}(e_\nu\otimes e_\varnothing)^{\dagger}q(\rho S^{(D)})(e_\nu\otimes e_\varnothing), \qquad\ell_\rho(I_u) = u. ℓ ρ ( q ) = ν = 0 ∑ u − 1 ( e ν ⊗ e ∅ ) † q ( ρ S ( D ) ) ( e ν ⊗ e ∅ ) , ℓ ρ ( I u ) = u .
The weighted coefficient Grams are computed by
W f = C f C f † + ρ 2 ∑ j A j r e s W f ( A j r e s ) † , W g = diag ( I u , ρ 2 W f , … , ρ 2 W f ) . W_f = C_f C_f^{\dagger} + \rho^2\sum_j A_j^{\mathrm{res}}W_f(A_j^{\mathrm{res}})^{\dagger}, \qquad W_g = \operatorname{diag}(I_u,\rho^2W_f,\ldots,\rho^2W_f). W f = C f C f † + ρ 2 j ∑ A j res W f ( A j res ) † , W g = diag ( I u , ρ 2 W f , … , ρ 2 W f ) .
The recurrence terminates at the degree, and independence of the rows gives W f ≻ 0 W_f \succ0 W f ≻ 0 . With the same ρ \rho ρ as in Appendix A.§ 1 , we set
λ = ( 1 + ∑ ℓ , t ( ∣ Re ( W f − 1 ) ℓ t ∣ + ∣ Im ( W f − 1 ) ℓ t ∣ ) ) − 1 , χ = 3 4 ρ 2 λ . (159) \lambda= \left(1+\sum_{\ell,t}\left(\left|\operatorname{Re}(W_f^{-1})_{\ell t}\right|+\left|\operatorname{Im}(W_f^{-1})_{\ell t}\right|\right)\right)^{-1}, \qquad\chi= \frac{3}{4}\rho^2\lambda. \tag*{(159)} λ = 1 + ℓ , t ∑ ( Re ( W f − 1 ) ℓ t + Im ( W f − 1 ) ℓ t ) − 1 , χ = 4 3 ρ 2 λ . (159)
The query defect is at least 3 I / 4 3I/4 3 I /4 on that tuple, while W g ⪰ ρ 2 λ I W_g \succeq\rho^2\lambda I W g ⪰ ρ 2 λ I . Applying these two lower bounds to the certificate gives
ℓ ρ ( g ∗ ( S + Φ ( T ) ) g ) ≥ χ ( Tr S + Tr T ) , Tr S + Tr T ≤ β 2 u χ . (160) \ell_\rho(g^*(S+\Phi(T))g) \ge\chi(\operatorname{Tr}S+\operatorname{Tr}T), \qquad\operatorname{Tr}S+\operatorname{Tr}T \le\frac{\beta^2u}{\chi}. \tag*{(160)} ℓ ρ ( g ∗ ( S + Φ ( T )) g ) ≥ χ ( Tr S + Tr T ) , Tr S + Tr T ≤ χ β 2 u . (160)
Let c f ≥ ∥ C f ∥ c_f \ge\lVert C_f\rVert c f ≥ ∥ C f ∥ and a j ≥ ∥ A j r e s ∥ a_j \ge\lVert A_j^{\mathrm{res}}\rVert a j ≥ ∥ A j res ∥ be rational entry-norm bounds. Using the coordinate bounds c j Δ c_j^\Delta c j Δ from Appendix A.§ 1 , we define
U f = c f ∑ d = 0 D − 1 ( ∑ j c j Δ a j ) d , M 0 = 1 + ( b + ∑ j ( c j Δ ) 2 ) U f 2 , σ 0 = ( 2 M 0 ) − 1 . (161) U_f=c_f\sum_{d=0}^{D-1}\left(\sum_j c_j^\Delta a_j\right)^d,\qquad M_0=1+\left(b+\sum_j(c_j^\Delta)^2\right)U_f^2,\qquad\sigma_0=(2M_0)^{-1}. \tag*{(161)} U f = c f d = 0 ∑ D − 1 ( j ∑ c j Δ a j ) d , M 0 = 1 + ( b + j ∑ ( c j Δ ) 2 ) U f 2 , σ 0 = ( 2 M 0 ) − 1 . (161)
The finite residual expansion gives ∥ f ( A ) ∥ ≤ U f \lVert f(A)\rVert\le U_f ∥ f ( A )∥ ≤ U f and bounds g ∗ ( I h + Φ ( I b r ) ) g g^*(I_h+\Phi(I_{br}))g g ∗ ( I h + Φ ( I b r )) g between zero and M 0 I u M_0I_u M 0 I u . Consequently I u − σ 0 g ∗ ( I h + Φ ( I b r ) ) g I_u-\sigma_0g^*(I_h+\Phi(I_{br}))g I u − σ 0 g ∗ ( I h + Φ ( I b r )) g is positive; after obtaining its certificate, we add σ 0 I \sigma_0I σ 0 I to both Grams to certify I u I_u I u with spectral margin σ 0 \sigma_0 σ 0 . The argument of Lemma A.1 then gives margin μ = ( 1 − ν 2 ) σ 0 \mu=(1-\nu^2)\sigma_0 μ = ( 1 − ν 2 ) σ 0 for a target with B P / γ ≤ ν < 1 B_P/\gamma\le\nu<1 B P / γ ≤ ν < 1 .
The search uses T ⪰ μ I / 4 T\succeq\mu I/4 T ⪰ μ I /4 , E † E − P † P / γ 2 − Φ ( T ) ⪰ μ I / 4 E^\dagger E-P^\dagger P/\gamma^2-\Phi(T)\succeq\mu I/4 E † E − P † P / γ 2 − Φ ( T ) ⪰ μ I /4 , and an entry box of radius U 0 = 1 + 2 u / χ U_0=1+2u/\chi U 0 = 1 + 2 u / χ . For d 0 = ( b r ) 2 d_0=(br)^2 d 0 = ( b r ) 2 and L Φ = 1 + ∑ α ∥ E α ∥ F + ∑ μ ∥ M μ ∥ F L_\Phi=1+\sum_\alpha\lVert E_\alpha\rVert_F+\sum_\mu\lVert M_\mu\rVert_F L Φ = 1 + ∑ α ∥ E α ∥ F + ∑ μ ∥ M μ ∥ F , its radii are
r i n = min { 1 , μ / ( 8 L Φ ) } , R o u t = U 0 max { 1 , d 0 } . (162) r_{\mathrm{in}}=\min\{1,\mu/(8L_\Phi)\},\qquad R_{\mathrm{out}}=U_0\max\{1,d_0\}. \tag*{(162)} r in = min { 1 , μ / ( 8 L Φ )} , R out = U 0 max { 1 , d 0 } . (162)
The scalar perturbation argument applies to variable matrices of orders b r br b r and h h h with these radii, including the factor u u u in U 0 U_0 U 0 . Rational recurrence and minor bounds control their encoding lengths, so the capped search of Proposition 3.5 has the claimed polynomial bit complexity.
For a nonzero target, t = Tr ( P W g P † ) > 0 t=\operatorname{Tr}(PW_gP^\dagger)>0 t = Tr ( P W g P † ) > 0 satisfies t ≤ u B P 2 t\le uB_P^2 t ≤ u B P 2 , giving the positive rational lower bound t / ( u + t ) ≤ B P t/(u+t)\le B_P t / ( u + t ) ≤ B P . Rational majorants d p ≥ ∥ D p ∥ d_p\ge\lVert D_p\rVert d p ≥ ∥ D p ∥ and p j ≥ ∥ P j ∥ p_j\ge\lVert P_j\rVert p j ≥ ∥ P j ∥ give the upper bound d p + ∑ j p j c j Δ U f d_p+\sum_jp_jc_j^\Delta U_f d p + ∑ j p j c j Δ U f . These bounds initialize the relative bisection of Theorem 3.6 , completing the norm-estimation claim.
Joint query sequences and compact row factorization
The general construction first compensates the degree weights, so we need the scalar estimate in the joint operator norm. For any unit input and output columns, Lemma 4.2 applies to the corresponding scalar matrix element. Taking their supremum gives the second-derivative bound e 2 D 2 B P / 2 e^2D^2B_P/2 e 2 D 2 B P /2 with no dependence on u , v u,v u , v , and integration against the same positive kernel yields
∥ P − W v P ∥ S A , Δ ≤ ρ N B P , ∥ W v − 1 P ∥ S A , Δ ≤ B P 1 − ρ N , ρ N = 64 D 2 ( N + 1 ) 2 , \lVert P-\mathcal{W}_vP\rVert_{\mathrm{SA},\Delta}\le\rho_NB_P,\qquad\lVert\mathcal{W}_v^{-1}P\rVert_{\mathrm{SA},\Delta}\le\frac{B_P}{1-\rho_N},\qquad\rho_N=\frac{64D^2}{(N+1)^2}, ∥ P − W v P ∥ SA , Δ ≤ ρ N B P , ∥ W v − 1 P ∥ SA , Δ ≤ 1 − ρ N B P , ρ N = ( N + 1 ) 2 64 D 2 ,
when D < N D<N D < N and ρ N < 1 \rho_N<1 ρ N < 1 . Since the inverse divides each degree-d d d coefficient matrix by w d w_d w d , the scalar normalization choice makes the compensated rectangular target strictly contractive.
For its certificate, or any strict certificate of a normalized target Q Q Q , we take K = T 1 / 2 K=T^{1/2} K = T 1/2 and m = b r m=br m = b r and construct
X = ( K M 1 ⋮ K M a E ) , Y = ( K E 1 ⋮ K E b P Q ) , T 0 = X † X . (163) X=\begin{pmatrix}KM_1\\ \vdots\\ KM_a\\ E\end{pmatrix},\qquad Y=\begin{pmatrix}KE_1\\ \vdots\\ KE_b\\ P_Q\end{pmatrix},\qquad T_0=X^\dagger X. \tag*{(163)} X = K M 1 ⋮ K M a E , Y = K E 1 ⋮ K E b P Q , T 0 = X † X . (163)
Their sizes are ( a m + u ) × h (am+u)\times h ( am + u ) × h , ( b m + v ) × h (bm+v)\times h ( bm + v ) × h , and h × h h\times h h × h . The rational identity X † X − Y † Y = S ≻ 0 X^\dagger X-Y^\dagger Y=S\succ0 X † X − Y † Y = S ≻ 0 therefore gives the joint realization in Eq. (90) .
The bound T 0 ⪰ S ⪰ μ I h T_0\succeq S\succeq\mu I_h T 0 ⪰ S ⪰ μ I h lets us apply Lemma 3.4 to obtain V X = Y VX=Y V X = Y and ∥ V ∥ < 1 \lVert V\rVert<1 ∥ V ∥ < 1 . Full column rank is consistent with a m + u ≥ h am+u\ge h am + u ≥ h , since k ≤ a b k\le ab k ≤ ab . We evaluate T 0 − 1 T_0^{-1} T 0 − 1 by rational arithmetic and K K K by the certified root procedure of Appendix A.
To check the action on every input column at once, let g w g_w g w be the h × u h\times u h × u coefficient matrix and set H w = [ K E 1 g w ; … ; K E b g w ] H_w=[KE_1g_w;\ldots;KE_bg_w] H w = [ K E 1 g w ; … ; K E b g w ] , of size b m × u bm\times u bm × u . The constant and nonconstant coefficients of V X = Y VX=Y V X = Y give
H ∅ = B , Q ∅ = D , H j ω = A F j ( m ) H ω , Q j ω = C F j ( m ) H ω . (164) H_\varnothing=B,\qquad Q_\varnothing=D,\qquad H_{j\omega}=AF_j^{(m)}H_\omega,\qquad Q_{j\omega}=CF_j^{(m)}H_\omega. \tag*{(164)} H ∅ = B , Q ∅ = D , H j ω = A F j ( m ) H ω , Q j ω = C F j ( m ) H ω . (164)
These follow from X g ∅ = [ 0 ; I u ] Xg_{\varnothing}=[0;I_u] X g ∅ = [ 0 ; I u ] and X g j w = [ F j ( m ) H w ; 0 ] Xg_{jw}=[F_j^{(m)}H_w;0] X g j w = [ F j ( m ) H w ; 0 ] , and their iteration proves Eq. (21) with rectangular endpoints, including the vanishing coefficients above degree D D D . The energy identity then has defect I u n − Q ( A ) † Q ( A ) I_{un}-Q(A)^\dagger Q(A) I u n − Q ( A ) † Q ( A ) and controls coherent superpositions of the input labels. We insert these endpoint blocks into the numerical stage
M t = ( A α t B 0 b m × v 0 u × a m ζ t I u 0 u × v ξ t C ξ t α t D γ t I v ) . (165) M_t=\begin{pmatrix}
A & \alpha_t B & 0_{bm\times v}\\
0_{u\times am} & \zeta_t I_u & 0_{u\times v}\\
\xi_t C & \xi_t\alpha_t D & \gamma_t I_v
\end{pmatrix}. \tag*{(165)} M t = A 0 u × am ξ t C α t B ζ t I u ξ t α t D 0 bm × v 0 u × v γ t I v . (165)
Its block rows have lengths b m bm bm , u u u , v v v and its block columns a m am am , u u u , v v v . To verify contractivity on every column, we use the factorization in Eq. (B.8), replacing the pending scalar coordinate by C u \mathbb{C}^u C u and the collected coordinate by C v \mathbb{C}^v C v . The input split uses α t I u \alpha_t I_u α t I u , ζ t I u \zeta_t I_u ζ t I u , the middle map is V V V together with the two identity blocks, and the output combination uses ξ t I v \xi_t I_v ξ t I v , γ t I v \gamma_t I_v γ t I v . Since α t 2 + ζ t 2 = ξ t 2 + γ t 2 = 1 \alpha_t^2+\zeta_t^2=\xi_t^2+\gamma_t^2=1 α t 2 + ζ t 2 = ξ t 2 + γ t 2 = 1 , these are respectively an isometry, a contraction, and a coisometry, whose product is Eq. (E.10).
We retain κ = min { i , u + v } \kappa=\min\{i,u+v\} κ = min { i , u + v } identity labels and take
R = max { m , ⌈ u + v κ ⌉ } , d − = κ + b , d + = κ + a . (166) R=\max\left\{m,\left\lceil\frac{u+v}{\kappa}\right\rceil\right\},\qquad d_-=\kappa+b,\quad d_+=\kappa+a. \tag*{(166)} R = max { m , ⌈ κ u + v ⌉ } , d − = κ + b , d + = κ + a . (166)
Pending input label ν \nu ν occupies flat identity index ν \nu ν , and output label μ \mu μ occupies flat identity index u + μ u+\mu u + μ . Flat index s s s means retained oracle label ⌊ s / R ⌋ \lfloor s/R\rfloor ⌊ s / R ⌋ and memory label s m o d R s\bmod R s mod R . The active coordinate ( α , λ ) (\alpha,\lambda) ( α , λ ) occupies retained input label κ + α \kappa+\alpha κ + α and memory λ \lambda λ , with 0 ≤ α < b 0\leq\alpha<b 0 ≤ α < b and 0 ≤ λ < m 0\leq\lambda<m 0 ≤ λ < m . These assignments define the zero–one packing matrix J − J_- J − , of size d − R × ( b m + u + v ) d_-R\times(bm+u+v) d − R × ( bm + u + v ) . Using a a a active output labels instead of b b b active input labels defines J + J_+ J + , of size d + R × ( a m + u + v ) d_+R\times(am+u+v) d + R × ( am + u + v ) . In both cases Eq. (B.3) converts retained indices to their actual physical bit strings.
The packed query has three diagonal blocks: the queried active block on m m m memory labels, I u n I_{un} I u n , and I v n I_{vn} I v n . The input insertion and output selection are the numerical matrices
I p e n = ( 0 a m × u I u 0 v × u ) , P o u t = [ 0 v × b m 0 v × u I v ] . I_{\mathrm{pen}}=\begin{pmatrix}0_{am\times u}\\I_u\\0_{v\times u}\end{pmatrix},\qquad P_{\mathrm{out}}=[0_{v\times bm}\;0_{v\times u}\;I_v]. I pen = 0 am × u I u 0 v × u , P out = [ 0 v × bm 0 v × u I v ] .
Hence every chronological factor is explicitly
C 0 = J − M 0 I p e n , C t = J − M t J + † ( 0 < t < Q ) , C Q = P o u t M Q J + † . (167) C_0=J_-M_0I_{\mathrm{pen}},\qquad C_t=J_-M_tJ_+^\dagger\ (0<t<Q),\qquad C_Q=P_{\mathrm{out}}M_QJ_+^\dagger. \tag*{(167)} C 0 = J − M 0 I pen , C t = J − M t J + † ( 0 < t < Q ) , C Q = P out M Q J + † . (167)
Theorem 4.1 now gives the weighted output on all u u u columns. We compute its compensated target using the ( D + 1 ) s (D+1)s ( D + 1 ) s -state recurrence of Eq. (66) : L ~ = [ L 0 ⋯ 0 ] \widetilde{L}=[L\ 0\ \cdots\ 0] L = [ L 0 ⋯ 0 ] , the superdiagonal transition blocks are T j T_j T j , and block d d d of R ~ 0 \widetilde{R}_0 R 0 is R 0 / ( β w d ) R_0/(\beta w_d) R 0 / ( β w d ) . Its coefficient matrices are P w / ( β w ∣ w ∣ ) P_w/(\beta w_{|w|}) P w / ( β w ∣ w ∣ ) , and the joint weight estimate above gives the same strict margin as in the scalar construction. The resulting certificate and query factors therefore cancel the weights on the entire output matrix.
On the row domain, the certificate of P / β P/\beta P / β instead gives a polynomial completion whose degree we can reduce once per query. From E † E − P † P / β 2 = S + Φ ( T ) E^\dagger E-P^\dagger P/\beta^2=S+\Phi(T) E † E − P † P / β 2 = S + Φ ( T ) , we form
Θ ( x ) = ( P ( x ) / β S 1 / 2 g ( x ) ) . \Theta(x)=\begin{pmatrix}P(x)/\beta\\S^{1/2}g(x)\end{pmatrix}. Θ ( x ) = ( P ( x ) / β S 1/2 g ( x ) ) .
The scalar word-matrix argument applies to this ( v + h ) × u (v+h)\times u ( v + h ) × u completion and all pairs of its input coordinates: at cutoff 2 D 2D 2 D , the query defect annihilates the residual outputs from words of length at most D D D . We therefore obtain the joint convolution identities
∑ w Θ w † Θ w = I u , ∑ w Θ w † Θ w z = 0 u × u ( z ≠ ∅ ) . (168) \sum_w\Theta_w^\dagger\Theta_w=I_u,\qquad\sum_w\Theta_w^\dagger\Theta_{wz}=0_{u\times u}\quad(z\ne\varnothing). \tag*{(168)} w ∑ Θ w † Θ w = I u , w ∑ Θ w † Θ w z = 0 u × u ( z = ∅ ) . (168)
To compute the complementary polynomial in finite-state form, let G ∅ = [ I u ; 0 k r × u ] G_{\varnothing} = [I_u; 0_{kr \times u}] G ∅ = [ I u ; 0 k r × u ] and let T j g T^g_j T j g have J J J in its j j j th r r r -row block, with zeros elsewhere. These transitions give g w = T w g G ∅ g_w = T^g_wG_{\varnothing} g w = T w g G ∅ , so we obtain its output matrix and joint Gram as
O Θ = ( P / β S 1 / 2 ) , O Θ † O Θ = P † P / β 2 + S . O_{\Theta} =
\begin{pmatrix}
P/\beta\\
S^{1/2}
\end{pmatrix},
\qquad
O_{\Theta}^{\dagger}O_{\Theta} = P^{\dagger}P/\beta^2 + S. O Θ = ( P / β S 1/2 ) , O Θ † O Θ = P † P / β 2 + S .
Taking N j = T j g N_j = T^g_j N j = T j g , b j = T j g G ∅ b_j = T^g_jG_{\varnothing} b j = T j g G ∅ , O = O Θ O = O_{\Theta} O = O Θ , and d 0 = O Θ G ∅ d_0 = O_{\Theta}G_{\varnothing} d 0 = O Θ G ∅ gives the required rational transitions and joint output Gram. The nonconstant reachable dimension is at most s 0 ≤ k r s_0 \le kr s 0 ≤ k r , and the initial output length is q 0 ≤ v + h q_0 \le v+h q 0 ≤ v + h .
Degree reduction must preserve these full u × u u \times u u × u correlations. If Z Z Z is an orthonormal frame for the highest-degree coefficient range and Π = Z Z † \Pi= ZZ^{\dagger} Π = Z Z † , Eq. (E.13) gives Π Θ ∅ = 0 \Pi\Theta_{\varnothing} = 0 Π Θ ∅ = 0 , so the update
Ψ w = ( ( I − Π ) Θ w Z † Θ 1 w ⋮ Z † Θ k w ) \Psi_w =
\begin{pmatrix}
(I-\Pi)\Theta_w \\
Z^{\dagger}\Theta_{1w} \\
\vdots\\
Z^{\dagger}\Theta_{kw}
\end{pmatrix} Ψ w = ( I − Π ) Θ w Z † Θ 1 w ⋮ Z † Θ k w
lowers the degree, and its correlations satisfy
∑ w Ψ w † Ψ w z = ∑ w Θ w † Θ w z − Θ ∅ † Π Θ z = ∑ w Θ w † Θ w z . \sum_w \Psi_w^{\dagger}\Psi_{wz}
=
\sum_w \Theta_w^{\dagger}\Theta_{wz}
-
\Theta_{\varnothing}^{\dagger}\Pi\Theta_z
=
\sum_w \Theta_w^{\dagger}\Theta_{wz}. w ∑ Ψ w † Ψ w z = w ∑ Θ w † Θ w z − Θ ∅ † Π Θ z = w ∑ Θ w † Θ w z .
Thus every reduction preserves the joint identities. To compute it from the recurrence, we use b j b_j b j of size s 0 × u s_0 \times u s 0 × u , O t O_t O t of size q t × s 0 q_t \times s_0 q t × s 0 , and d t d_t d t of size q t × u q_t \times u q t × u , reducing to the state space spanned by all columns N w b j N_wb_j N w b j . On this jointly reachable space, the initial correlation identities are exactly
d 0 † d 0 + ∑ j b j † H b j = I u , O † d 0 + ∑ j N j † H b j = 0 s 0 × u . d_0^{\dagger}d_0 + \sum_j b_j^{\dagger}Hb_j = I_u,
\qquad
O^{\dagger}d_0 + \sum_j N_j^{\dagger}Hb_j = 0_{s_0 \times u}. d 0 † d 0 + j ∑ b j † H b j = I u , O † d 0 + j ∑ N j † H b j = 0 s 0 × u .
Indeed, the nonempty correlation at v j v_j v j is ( d 0 † O + ∑ ℓ b ℓ † H N ℓ ) N v b j (d_0^{\dagger}O+\sum_{\ell}b_{\ell}^{\dagger}HN_{\ell})N_vb_j ( d 0 † O + ∑ ℓ b ℓ † H N ℓ ) N v b j ; joint reachability makes its vanishing equivalent to the second condition.
We use the rational bases U ℓ U_{\ell} U ℓ , R t R_t R t and shorted matrices H t H_t H t of Appendix § 12 .§ 3.4 , with the matrix-valued b j , d t b_j,d_t b j , d t in Eq. (82) . The metric proof of Theorem 4.7 depends only on O t O_t O t and the transitions, and hence gives
H t = ∑ w N w † O t † O t N w , H t R t = O t † O t R t , K t = ( O t R t ) † ( O t R t ) ≻ 0 H_t = \sum_w N_w^{\dagger}O_t^{\dagger}O_tN_w,
\qquad
H_tR_t = O_t^{\dagger}O_tR_t,
\qquad
K_t = (O_tR_t)^{\dagger}(O_tR_t) \succ0 H t = w ∑ N w † O t † O t N w , H t R t = O t † O t R t , K t = ( O t R t ) † ( O t R t ) ≻ 0
for each nonempty eliminated basis. Joint reachability also identifies the highest-degree range: after writing a state column in terms of N v b j N_vb_j N v b j and multiplying by O t N w O_tN_w O t N w with ∣ w ∣ = d − t − 1 |w| = d-t-1 ∣ w ∣ = d − t − 1 , the terms with nonempty v v v vanish in the previously eliminated range. The remaining columns are exactly the highest-degree coefficients, so O t R t K t − 1 / 2 O_tR_tK_t^{-1/2} O t R t K t − 1/2 is the required frame. The preserved correlation identities give d d † d d = I u d_d^{\dagger}d_d = I_u d d † d d = I u at the final constant stage and the rational stage Grams
O t † O t = H t − ∑ j N j † H t N j , O t † d t = − ∑ j N j † H t b j , d t † d t = I u − ∑ j b j † H t b j . O_t^{\dagger}O_t = H_t - \sum_j N_j^{\dagger}H_tN_j,
\qquad
O_t^{\dagger}d_t = -\sum_j N_j^{\dagger}H_tb_j,
\qquad
d_t^{\dagger}d_t = I_u - \sum_j b_j^{\dagger}H_tb_j. O t † O t = H t − j ∑ N j † H t N j , O t † d t = − j ∑ N j † H t b j , d t † d t = I u − j ∑ b j † H t b j .
These Grams bound the numerical output matrices, and the eliminated dimensions telescope to s 0 s_0 s 0 , giving q t ≤ q 0 + k s 0 q_t \le q_0 + ks_0 q t ≤ q 0 + k s 0 . For a nonempty basis, the rational positive matrix K t K_t K t has the scalar proof’s minor lower bound, so its certified root evaluation and guard-bit argument apply; an empty basis simply contributes no inverse-root block.
With R ∗ ≥ q 0 + k s 0 R_\ast\ge q_0 + ks_0 R ∗ ≥ q 0 + k s 0 , the packing and output matrices from § 4.4 give
C 0 = E d − 1 d d ( ( k + 1 ) R ∗ × u ) , C t = E d − 1 − t R d − t o u t ( 1 ≤ t < d ) ( ( k + 1 ) R ∗ × 2 R ∗ ) , C d = [ I v 0 ] R 0 o u t ( v × 2 R ∗ ) . (169) \begin{aligned}
C_0 &= E_{d-1}d_d && ((k+1)R_\ast\times u),\\
C_t &= E_{d-1-t}R^{\mathrm{out}}_{d-t} && (1 \le t < d) && ((k+1)R_\ast\times2R_\ast),\\
C_d &= [I_v\ 0]R^{\mathrm{out}}_0 && (v \times2R_\ast). \tag*{(169)}
\end{aligned} C 0 C t C d = E d − 1 d d = E d − 1 − t R d − t out = [ I v 0 ] R 0 out (( k + 1 ) R ∗ × u ) , ( 1 ≤ t < d ) ( v × 2 R ∗ ) . (( k + 1 ) R ∗ × 2 R ∗ ) , (169)
We apply the last factor found first, using the same full row query at each step. The endpoint lists below place C 0 C_0 C 0 on an arbitrary data input and C d C_d C d on the v v v selected outputs.
Full unitary implementation and resources
Both factorizations act on a q L = ⌈ log 2 max { u , v } ⌉ q_L = \lceil\log_2 \max\{u,v\}\rceil q L = ⌈ log 2 max { u , v }⌉ -qubit data register and have rectangular endpoints,
C 0 : d − R × u , C t : d − R × d + R ( 0 < t < Q ) , C Q : v × d + R . (170) C_0 : d_{-R} \times u,\qquad C_t : d_{-R} \times d_{+R}\ (0 < t < Q),\qquad C_Q : v \times d_{+R}. \tag*{(170)} C 0 : d − R × u , C t : d − R × d + R ( 0 < t < Q ) , C Q : v × d + R . (170)
We implement the first endpoint by a Julia gate that transfers the data dependence to the continuing processing amplitudes with L = 0 \mathrm{L}=0 L = 0 ; the last gate decodes the output into L \mathrm{L} L . The complementary amplitudes remain in the full unitary under failure labels, so this transfer preserves arbitrary input coherences. With D L = 2 q L D_L = 2^{q_L} D L = 2 q L , R b = 2 ⌈ log 2 R ⌉ R_b = 2^{\lceil\log_2 R\rceil} R b = 2 ⌈ l o g 2 R ⌉ , and register order ( O , M , L , d ) (\mathrm{O},\mathrm{M},\mathrm{L},\mathrm{d}) ( O , M , L , d ) , the required lexicographic lists are
I ± = ( ( σ ± ( α ) , λ , 0 , 0 ) ) 0 ≤ α < d ± , 0 ≤ λ < R , D h = ( ( 0 , 0 , ℓ , 0 ) ) 0 ≤ ℓ < h . \mathcal{I}_{\pm} = ((\sigma_{\pm}(\alpha),\lambda,0,0))_{0\le\alpha<d_{\pm},\ 0\le\lambda<R},\qquad
D_h = ((0,0,\ell,0))_{0\le\ell<h}. I ± = (( σ ± ( α ) , λ , 0 , 0 ) ) 0 ≤ α < d ± , 0 ≤ λ < R , D h = (( 0 , 0 , ℓ , 0 ) ) 0 ≤ ℓ < h .
The input/output pairs are ( D u , I − ) (D_u,\mathcal{I}_{-}) ( D u , I − ) initially, ( I + , I − ) (\mathcal{I}_{+},\mathcal{I}_{-}) ( I + , I − ) internally, and ( I + , D v ) (\mathcal{I}_{+},D_v) ( I + , D v ) finally. For a matrix with h 2 h_2 h 2 rows and h 1 h_1 h 1 columns, we append the first h 2 h_2 h 2 strings with d = 1 \mathrm{d}=1 d = 1 to its input list and the first h 1 h_1 h 1 to its output list, in lexicographic order on ( O , M , L ) (\mathrm{O},\mathrm{M},\mathrm{L}) ( O , M , L ) . The bound h 1 , h 2 ≤ d 0 R b D L h_1,h_2 \le d_0R_bD_L h 1 , h 2 ≤ d 0 R b D L ensures that these directly computable lists fit, each with h 1 + h 2 h_1+h_2 h 1 + h 2 distinct strings. Completing them to their common union T C \mathcal{T}_C T C in a fixed order and applying Eq. (B.4) specifies the whole Julia gate J C J_C J C , including its reverse columns and binary padding.
As in Theorem 4.3 , G t G_t G t applies J C J_C J C on E = 0 \mathrm{E}=0 E = 0 and identity otherwise, while D t , F t D_t,F_t D t , F t mark defects with fresh failure labels. The raw query fixes L , M , d , E \mathrm{L},\mathrm{M},\mathrm{d},\mathrm{E} L , M , d , E even on failed columns, so the theorem’s induction applies to all u u u data inputs simultaneously. We finally retain L < v \mathrm{L}<v L < v coherently and select zero on the oracle, processing, dilation, failure, phase, and clean work outputs. These complete endpoints give the rectangular target for every compatible oracle completion.
Lemma E.1 (Constant rectangular targets). For a known rational v × u v \times u v × u matrix P ∅ P_{\varnothing} P ∅ and rational 0 < τ , ϵ < 1 0 < \tau,\epsilon< 1 0 < τ , ϵ < 1 , a classical algorithm computes a normalization B < β ≤ ( 1 + τ ) B B < \beta\le(1+\tau)B B < β ≤ ( 1 + τ ) B when B = ∥ P ∅ ∥ > 0 B = \lVert P_{\varnothing}\rVert> 0 B = ∥ P ∅ ∥ > 0 , and a known unitary whose selected data block approximates P ∅ / β P_{\varnothing}/\beta P ∅ / β within ϵ \epsilon ϵ . It uses no oracle query. Its classical and elementary-gate costs are polynomial in the explicit rational matrix, log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) , and log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) ; the signal is unchanged. The zero matrix also uses no query.
Proof. For P ∅ ≠ 0 P_{\varnothing}\ne0 P ∅ = 0 , we put G = P ∅ † P ∅ G=P_{\varnothing}^{\dagger}P_{\varnothing} G = P ∅ † P ∅ and t = Tr G t=\operatorname{Tr}G t = Tr G , giving the rational bracket t / ( u + t ) ≤ ∥ P ∅ ∥ ≤ 1 + t t/(u+t)\le\lVert P_{\varnothing}\rVert\le1+t t / ( u + t ) ≤ ∥ P ∅ ∥ ≤ 1 + t . Bisection with exact tests of b 2 I u − G ⪰ 0 b^2I_u-G\succeq0 b 2 I u − G ⪰ 0 yields an upper estimate B ^ \widehat{B} B of relative error τ / 8 \tau/8 τ /8 , so β = ( 1 + τ / 2 ) B ^ \beta=(1+\tau/2)\widehat{B} β = ( 1 + τ /2 ) B lies in the required interval. We then apply the Julia matrix of C = P ∅ / β C=P_{\varnothing}/\beta C = P ∅ / β on ( L , d ) (\mathrm{L},\mathrm{d}) ( L , d ) , with input list ( ( ν , 0 ) ) ν < v ∪ ( ( μ , 1 ) ) μ < u ((\nu,0))_{\nu<v}\cup((\mu,1))_{\mu<u} (( ν , 0 ) ) ν < v ∪ (( μ , 1 ) ) μ < u and output list ( ( μ , 0 ) ) μ < v ∪ ( ( ν , 1 ) ) ν < u ((\mu,0))_{\mu<v}\cup((\nu,1))_{\nu<u} (( μ , 0 ) ) μ < v ∪ (( ν , 1 ) ) ν < u . Completion on their common union by Eq. (B.4) gives a full unitary on q L + 1 q_L+1 q L + 1 qubits, to which the known-gate compiler applies directly. For the zero matrix, a Pauli X X X on d \mathrm{d} d gives the zero selected block at any positive normalization. ∎
For the general construction we use m ≤ b ( ( D + 1 ) s + u ) m \le b((D+1)s+u) m ≤ b (( D + 1 ) s + u ) and the multiplicity in Eq. (E.11). For a row input we use R = R ∗ = v + h + k 2 r R=R_* = v+h+k^{2}r R = R ∗ = v + h + k 2 r , with d − = k + 1 d_- = k+1 d − = k + 1 and d + = 2 d_+=2 d + = 2 . In either case, we define the support and width bounds
s ∗ = 2 ( ( d − + d + ) R + u + v ) , n ∗ = q o + ⌈ log 2 R ⌉ + q L + ⌈ log 2 ( 2 Q + 1 ) ⌉ + 2. (171) s_* = 2((d_-+d_+)R+u+v), \qquad n_* = q_o+\lceil\log_2 R\rceil+q_L+\lceil\log_2(2Q+1)\rceil+2. \tag*{(171)} s ∗ = 2 (( d − + d + ) R + u + v ) , n ∗ = q o + ⌈ log 2 R ⌉ + q L + ⌈ log 2 ( 2 Q + 1 )⌉ + 2. (171)
These widths include the supplied oracle and arbitrary data register as well as the additional processing qubits. The oracle, memory, dilation, failure, phase, and clean work registers are initialized at zero; the supported data input is supplied by the application.
Proposition E.2 (Resources for rectangular coefficients). For a rational finite-state rectangular target of degree D ≥ 1 D \ge1 D ≥ 1 and rational 0 < τ , ϵ < 1 0 < \tau,\epsilon< 1 0 < τ , ϵ < 1 , the construction implements P / β P/\beta P / β with B P < β ≤ ( 1 + τ ) B P B_P < \beta\le(1+\tau)B_P B P < β ≤ ( 1 + τ ) B P and error at most ϵ \epsilon ϵ . It uses Q = O ( D / τ ) Q=O(D/\sqrt{\tau}) Q = O ( D / τ ) queries, O ( n ∗ ) O(n_*) O ( n ∗ ) non-signal qubits, and
O ( ( Q + 1 ) s ∗ 2 poly ( n ∗ , log ( Q + 1 ) s ∗ ϵ ) ) O\left((Q+1)s_*^2\operatorname{poly}\left(n_*,\log\frac{(Q+1)s_*}{\epsilon}\right)\right) O ( ( Q + 1 ) s ∗ 2 poly ( n ∗ , log ϵ ( Q + 1 ) s ∗ ) ) known gates. Classical cost is polynomial in these parameters and the rational input length. For a row input, Q = D Q=D Q = D and the margin dependence is polynomial in log ( 1 / τ ) \log(1/\tau) log ( 1/ τ ) .
Proof. The joint certificate and norm search give the normalization, and the compensated stage sequence implements the target exactly with ideal known gates. On the row domain, the factorization terminates at degree D D D , which is also necessary: the scalar coefficient-uniqueness argument applied to a nonzero degree-D D D entry gives the same lower bound.
The complete Julia gates above have support at most s ∗ s_* s ∗ on strings of width at most n ∗ n_* n ∗ , so Theorem B.1 and Appendix § 12 .§ 4 give the stated gate count, including O ( n ∗ ) O(n_*) O ( n ∗ ) clean work bits. In the general construction, κ ≤ u + v \kappa\le u+v κ ≤ u + v and R ≤ max { m , u + v } R \le\max\{m,u+v\} R ≤ max { m , u + v } bound the support polynomially in the target and joint-block dimensions, even though the retained identity lists can depend on i i i . Manipulating their physical labels incurs the stated q o q_o q o -bit width. Allocating total full-operator error ϵ \epsilon ϵ to the Q + 1 Q+1 Q + 1 known matrices bounds the selected-block error by ϵ \epsilon ϵ on every data input and every oracle completion. Together with Lemma E.1 , this proves the resource assertions of Theorem 5.1 .
For normalization one, Corollary 4.9 applies to the final v v v -row contraction because multiplication by β 0 < 1 \beta_0<1 β 0 < 1 preserves contractivity. The coherent error bound also extends to rectangular targets. Let J U , J Y J_U,J_Y J U , J Y embed ( ν , x ) (\nu,x) ( ν , x ) with ν < u \nu<u ν < u and ( μ , x ) (\mu,x) ( μ , x ) with μ < v \mu<v μ < v in the full register, setting all other bits to zero; their sizes are d f u l l × u n d_{\mathrm{full}}\times un d full × u n and d f u l l × v n d_{\mathrm{full}}\times vn d full × v n . If V t a r † V t a r = I u n V_{\mathrm{tar}}^\dagger V_{\mathrm{tar}}=I_{un} V tar † V tar = I u n and ∥ J Y † U J U − V t a r ∥ ≤ δ \lVert J_Y^\dagger UJ_U-V_{\mathrm{tar}}\rVert\le\delta ∥ J Y † U J U − V tar ∥ ≤ δ , Lemma 4.5 gives ∥ U J U − J Y V t a r ∥ ≤ 2 δ \lVert UJ_U-J_YV_{\mathrm{tar}}\rVert\le\sqrt{2\delta} ∥ U J U − J Y V tar ∥ ≤ 2 δ . Thus the data output remains coherent while the other ancillary registers approach zero.
Coherent Kraus access and output operations
For Kraus synthesis we are given the complete U K U_K U K with an identity sector, as in Eq. (9) , with a = k a=k a = k , b = 1 b=1 b = 1 , and d o ≥ i + k + 1 d_o\ge i+k+1 d o ≥ i + k + 1 . The active input label i i i and output labels i , … , i + k − 1 i,\ldots,i+k-1 i , … , i + k − 1 give the matrix
U K = ( I i n 0 0 0 K 1 B 1 , K ⋮ ⋮ ⋮ 0 K k B k , K 0 0 D K ) . (172) U_K =
\begin{pmatrix}
I_{\mathrm{in}} & 0 & 0 \\
0 & K_1 & B_{1,K} \\
\vdots& \vdots& \vdots\\
0 & K_k & B_{k,K} \\
0 & 0 & D_K
\end{pmatrix}. \tag*{(172)} U K = I in 0 ⋮ 0 0 0 K 1 ⋮ K k 0 0 B 1 , K ⋮ B k , K D K . (172)
Its block column lengths are i n , n , ( d o − i − 1 ) n in,n,(d_o-i-1)n in , n , ( d o − i − 1 ) n and its block row lengths are i n in in , followed by k k k rows of length n n n and a final row of length ( d o − i − k ) n (d_o-i-k)n ( d o − i − k ) n . Thus B a , K B_{a,K} B a , K has size n × ( d o − i − 1 ) n n\times(d_o-i-1)n n × ( d o − i − 1 ) n and D K D_K D K has size ( d o − i − k ) n × ( d o − i − 1 ) n (d_o-i-k)n \times(d_o-i-1)n ( d o − i − k ) n × ( d o − i − 1 ) n . The Kraus identity forces the last zero in the active column, but failed components can still reach the unspecified columns; the full-unitary argument above therefore covers every compatible choice of these blocks.
For a fixed history length, clean-input Stinespring access alone also gives a direct construction. We make d d d calls with fresh zero-input environments H 1 , … , H d H_1,\ldots,H_d H 1 , … , H d of q e n v q_{\mathrm{env}} q env qubits each, retaining their labels. The resulting isometry has row block K a = K a d ⋯ K a 1 K_a=K_{a_d}\cdots K_{a_1} K a = K a d ⋯ K a 1 on chronological history a = ( a 1 , … , a d ) a=(a_1,\ldots,a_d) a = ( a 1 , … , a d ) . A known v × k d v \times k^d v × k d matrix C C C is a selected block on every input of this environment precisely when
G = C † C ⪯ I k d . (173) G=C^\dagger C\preceq I_{k^d}. \tag*{(173)} G = C † C ⪯ I k d . (173)
Necessity follows from contractivity of a unitary block, and the rectangular Julia matrix of C C C proves sufficiency on the recorded labels. Tracing its output label gives the successful operation
∑ b ( ∑ a C b , a K a ) ρ ( ∑ a C b , a K a ) † = ∑ a , c G c , a K a ρ K c † . (174) \sum_b\left(\sum_a C_{b,a}K_a\right)\rho\left(\sum_a C_{b,a}K_a\right)^\dagger=\sum_{a,c}G_{c,a}K_a\rho K_c^\dagger. \tag*{(174)} b ∑ ( a ∑ C b , a K a ) ρ ( a ∑ C b , a K a ) † = a , c ∑ G c , a K a ρ K c † . (174)
The coefficient is G c , a G_{c,a} G c , a because the two amplitudes are paired as ∑ b C b , a C b , c ‾ \sum_b C_{b,a}\overline{C_{b,c}} ∑ b C b , a C b , c . An arbitrary supplied effect 0 ⪯ G ⪯ I 0\preceq G\preceq I 0 ⪯ G ⪯ I is realized by C = G 1 / 2 C=G^{1/2} C = G 1/2 , giving a measurement on this fixed purification, as in terminal-memory realizations of instruments [30 Theorems 9–10] .
Under an environment-basis change V h i s t V_{\mathrm{hist}} V hist , the same physical effect has coordinates V h i s t G V h i s t † V_{\mathrm{hist}}GV_{\mathrm{hist}}^\dagger V hist G V hist † ; fixing the numerical effect instead changes the experiment. The invariant choice G = I G=I G = I gives ordinary channel composition. This construction takes v k d vk^d v k d explicit entries for dense C C C and d q e n v dq_{\mathrm{env}} d q env environment qubits, in addition to the signal and known-gate workspace. By comparison, the joint polynomial algorithm computes from a compact recurrence and normalizes over the full column ball, so its normalization problem differs from that of an explicit history filter.
To combine different lengths, the supplied identity sector provides a coherent reference amplitude. The following degree-one example makes its role explicit.
Example E.3 (A coherent relaxation filter). For a two-Kraus implementation, we label the two output rows by 0 0 0 , 1 1 1 and consider
F 0 ( K ) = I + K 1 2 , F 1 ( K ) = K 2 2 . F_0(K)=\frac{I+K_1}{2},\qquad F_1(K)=\frac{K_2}{2}. F 0 ( K ) = 2 I + K 1 , F 1 ( K ) = 2 K 2 . We realize this column with one query by preparing ( ∣ 0 ⟩ O + ∣ i ⟩ O ) / 2 (|0\rangle_O+|i\rangle_O)/\sqrt{2} ( ∣0 ⟩ O + ∣ i ⟩ O ) / 2 and applying U K U_K U K , which gives rows I / 2 I/\sqrt{2} I / 2 , K 1 / 2 K_1/\sqrt{2} K 1 / 2 , K 2 / 2 K_2/\sqrt{2} K 2 / 2 on labels 0 0 0 , i i i , i + 1 i+1 i + 1 . We then apply the selected known matrix
C = ( 1 / 2 1 / 2 0 0 0 1 / 2 ) , C C † = diag ( 1 , 1 / 2 ) , C=\begin{pmatrix}
1/\sqrt{2} & 1/\sqrt{2} & 0\\
0 & 0 & 1/\sqrt{2}
\end{pmatrix},\qquad CC^\dagger=\operatorname{diag}(1,1/2), C = ( 1/ 2 0 1/ 2 0 0 1/ 2 ) , C C † = diag ( 1 , 1/2 ) , whose contractivity permits the rectangular Julia completion of § 4.2 . Decoding its two rows into one output qubit gives ( F 0 , F 1 ) T (F_0,F_1)^{\mathsf T} ( F 0 , F 1 ) T ; replacing C C C by C / β C/\beta C / β gives normalization β ≥ 1 \beta\ge1 β ≥ 1 . To verify the joint norm, we expand the squared outputs at any column contraction ( A 1 , A 2 ) (A_1,A_2) ( A 1 , A 2 ) :
F 0 ( A ) † F 0 ( A ) + F 1 ( A ) † F 1 ( A ) = 1 4 ( I + A 1 + A 1 † + A 1 † A 1 + A 2 † A 2 ) ⪯ I . F_0(A)^\dagger F_0(A)+F_1(A)^\dagger F_1(A)=\frac{1}{4}\left(I+A_1+A_1^\dagger+A_1^\dagger A_1+A_2^\dagger A_2\right)\preceq I. F 0 ( A ) † F 0 ( A ) + F 1 ( A ) † F 1 ( A ) = 4 1 ( I + A 1 + A 1 † + A 1 † A 1 + A 2 † A 2 ) ⪯ I . Equality at ( A 1 , A 2 ) = ( I , 0 ) (A_1,A_2)=(I,0) ( A 1 , A 2 ) = ( I , 0 ) proves B F = 1 B_F=1 B F = 1 , so this direct one-query circuit attains the boundary normalization. It is a factorization of this particular target; the general column-input theorem gives O ( D / τ ) O(D/\sqrt{\tau}) O ( D / τ ) queries. At a physical isometric Kraus column, its success probability is
p β ( ρ ) = 1 + Re tr ( K 1 ρ ) 2 β 2 . p_\beta(\rho)=\frac{1+\operatorname{Re}\operatorname{tr}(K_1\rho)}{2\beta^2}. p β ( ρ ) = 2 β 2 1 + Re tr ( K 1 ρ ) .
This dependence on Re tr ( K 1 ρ ) \operatorname{Re}\operatorname{tr}(K_1\rho) Re tr ( K 1 ρ ) is the interference with the idle amplitude. For example, we take the qubit channel with Kraus matrices
K 1 = ( 1 0 0 1 / 2 ) , K 2 = ( 0 3 / 2 0 0 ) . K_1=\begin{pmatrix}1&0\\0&1/2\end{pmatrix},\qquad K_2=\begin{pmatrix}0&\sqrt{3}/2\\0&0\end{pmatrix}. K 1 = ( 1 0 0 1/2 ) , K 2 = ( 0 0 3 /2 0 ) .
On input ∣ 1 ⟩ ⟨ 1 ∣ |1\rangle\langle1| ∣1 ⟩ ⟨ 1∣ , the filter succeeds with probability 3 / ( 4 β 2 ) 3/(4\beta^2) 3/ ( 4 β 2 ) and gives the conditional output
3 4 ∣ 1 ⟩ ⟨ 1 ∣ + 1 4 ∣ 0 ⟩ ⟨ 0 ∣ . \frac{3}{4}|1\rangle\langle1|+\frac{1}{4}|0\rangle\langle0|. 4 3 ∣1 ⟩ ⟨ 1∣ + 4 1 ∣0 ⟩ ⟨ 0∣.
The original channel gives the opposite weights, so this filter trades a heralded failure outcome for a smaller relaxation probability on the chosen input.
Finally, an application may require a channel with an explicit failure outcome. We retain an outcome qubit with ∣ s ⟩ = ∣ 1 ⟩ |s\rangle=|1\rangle ∣ s ⟩ = ∣1 ⟩ , ∣ f ⟩ = ∣ 0 ⟩ |f\rangle=|0\rangle ∣ f ⟩ = ∣0 ⟩ and replace failure by a fixed signal state. For T = F ( K ) / β T=F(K)/\beta T = F ( K ) / β , the desired extension is
N ( ρ ) = ∣ s ⟩ ⟨ s ∣ ⊗ M β ( ρ ) + ∣ f ⟩ ⟨ f ∣ ⊗ ∣ 0 ⟩ ⟨ 0 ∣ Tr [ ( I n − T † T ) ρ ] . (175) \mathcal{N}(\rho)=|s\rangle\langle s|\otimes\mathcal{M}_{\beta}(\rho)+|f\rangle\langle f|\otimes|0\rangle\langle0|\operatorname{Tr}\left[(I_n-T^\dagger T)\rho\right]. \tag*{(175)} N ( ρ ) = ∣ s ⟩ ⟨ s ∣ ⊗ M β ( ρ ) + ∣ f ⟩ ⟨ f ∣ ⊗ ∣0 ⟩ ⟨ 0∣ Tr [ ( I n − T † T ) ρ ] . (175)
Let q p r e d q_{\mathrm{pred}} q pred count the ancillary bits inspected by the final success predicate, including the output-label range test. We charge the reversible predicate workspace separately from the fresh signal register used on failure.
Proposition E.4 (Flagged erasure after a polynomial operation). The successful polynomial operation admits the extension in Eq. (E.20) with no additional oracle call, one outcome qubit, n s n_s n s fresh signal qubits, and O ( q p r e d ) O(q_{\mathrm{pred}}) O ( q pred ) clean work qubits. Its postprocessing uses O ( q p r e d + n s ) O(q_{\mathrm{pred}}+n_s) O ( q pred + n s ) elementary gates. Selected-column error η \eta η and postprocessing operator error η p p \eta_{\mathrm{pp}} η pp give diamond-norm error at most 4 η + 2 η p p 4\eta+2\eta_{\mathrm{pp}} 4 η + 2 η pp .
Proof. We initialize the outcome qubit b o u t b_{\mathrm{out}} b out , a fresh n s n_s n s -qubit signal register S 0 S_0 S 0 , and predicate workspace W o u t W_{\mathrm{out}} W out at zero. After computing the final success predicate into b o u t b_{\mathrm{out}} b out and uncomputing its workspace, we conditionally swap S S S and S 0 S_0 S 0 on failure. Tracing the processing outputs, polynomial output label, and S 0 S_0 S 0 leaves the failed signal at zero and retains the outcome. These additional swaps act on the signal, so the proposition counts them and the fresh signal storage separately from the polynomial compiler’s auxiliary gates.
To verify the channel also on an entangled input, we group the rejected rows of the full ideal isometry into n × n n\times n n × n Kraus matrices B ℓ B_\ell B ℓ , where [ B ℓ ] y , x = ⟨ ℓ , y ∣ U ∣ 0 , x ⟩ [B_\ell]_{y,x}=\langle\ell,y|U|0,x\rangle [ B ℓ ] y , x = ⟨ ℓ , y ∣ U ∣0 , x ⟩ and ℓ \ell ℓ runs over the rejected ancillary labels. Complete column normalization gives
∑ ℓ B ℓ † B ℓ = I n − T † T . \sum_{\ell}B_\ell^\dagger B_\ell=I_n-T^\dagger T. ℓ ∑ B ℓ † B ℓ = I n − T † T .
The success and failure ancillary ranges are orthogonal, so tracing the processing registers removes their cross terms. For an input ρ S R \rho_{SR} ρ S R on S S S and R r e f R_{\mathrm{ref}} R ref , with I R I_R I R denoting the identity on the reference, the failure outcome therefore equals
∣ f ⟩ ⟨ f ∣ ⊗ ∣ 0 ⟩ ⟨ 0 ∣ S ⊗ Tr S [ ( ( I n − T † T ) ⊗ I R ) ρ S R ] . |f\rangle\langle f|\otimes|0\rangle\langle0|_S\otimes\operatorname{Tr}_S\left[((I_n-T^\dagger T)\otimes I_R)\rho_{SR}\right]. ∣ f ⟩ ⟨ f ∣ ⊗ ∣0 ⟩ ⟨ 0 ∣ S ⊗ Tr S [ (( I n − T † T ) ⊗ I R ) ρ S R ] .
This evaluates the completely positive failure functional while retaining its correlations with the reference. The bound ∥ T ~ † T ~ − T † T ∥ ≤ 2 η \lVert\widetilde{T}^{\dagger}\widetilde{T}-T^\dagger T\rVert\leq2\eta ∥ T † T − T † T ∥ ≤ 2 η limits its diamond-norm error to 2 η 2\eta 2 η ; the successful map contributes another 2 η 2\eta 2 η . Approximating the postprocessing unitary to operator error η p p \eta_{\mathrm{pp}} η pp adds at most 2 η p p 2\eta_{\mathrm{pp}} 2 η pp , giving the claimed total.
For the resource bound, the zero tests and comparison with y y y use a linear-size reversible conjunction and range-comparison circuit with linear clean workspace. We copy its result to the outcome bit and reverse the workspace computation, then use n s n_s n s known Fredkin gates for the controlled swaps, each with a constant-size elementary decomposition. Assigning their approximation budgets gives the stated postprocessing costs.
Examples of polynomial and function transformations
From a polynomial to a matrix-function algorithm
To use the synthesis theorem for a matrix function f f f , we need a rational finite-state polynomial p D p_D p D whose approximation is uniform on the declared query domain:
sup n , ∥ Δ ( A ) ∥ ≤ 1 ∥ f ( A ) − p D ( A ) ∥ ≤ η D . \sup_{n,\lVert\Delta(A)\rVert\le1}\lVert f(A)-p_D(A)\rVert\le\eta_D. n , ∥ Δ ( A )∥ ≤ 1 sup ∥ f ( A ) − p D ( A )∥ ≤ η D .
We apply Theorem 2.1 to this polynomial and use the triangle inequality to obtain a block encoding of f / β D f/\beta_D f / β D with error at most η D / β D + ϵ g \eta_D/\beta_D+\epsilon_g η D / β D + ϵ g , where β D \beta_D β D is the computed normalization. The application must therefore supply both an approximation bound and a compact description of the approximating coefficients. A uniformly contractive numerical recurrence supplies one such description by truncation, and the example below also provides the lower singular-value bound needed to control success probability.
We take a query for the diagonal block Δ ( A ) = ( A 1 0 0 A 2 ) \Delta(A)=\begin{pmatrix} A_1 & 0 \\ 0 & A_2 \end{pmatrix} Δ ( A ) = ( A 1 0 0 A 2 ) , so its promise is ∥ A 1 ∥ , ∥ A 2 ∥ ≤ 1 \lVert A_1\rVert,\lVert A_2\rVert\le1 ∥ A 1 ∥ , ∥ A 2 ∥ ≤ 1 , with arbitrary order of multiplication. We denote by L \mathcal{L} L the words in letters 1 , 2 1,2 1 , 2 with no consecutive occurrence of 2 2 2 . At λ = 1 / 8 \lambda=1/8 λ = 1/8 , we define the scalar-coefficient series and truncation
f ( A ) = ∑ w ∈ L λ ∣ w ∣ A w , p D ( A ) = ∑ w ∈ L ∣ w ∣ ≤ D λ ∣ w ∣ A w . (176) f(A)=\sum_{w\in\mathcal{L}}\lambda^{|w|}A_w,\qquad p_D(A)=\sum_{\substack{w\in\mathcal{L}\\ |w|\le D}}\lambda^{|w|}A_w. \tag*{(176)} f ( A ) = w ∈ L ∑ λ ∣ w ∣ A w , p D ( A ) = w ∈ L ∣ w ∣ ≤ D ∑ λ ∣ w ∣ A w . (176)
The first terms are I n + λ ( A 1 + A 2 ) + λ 2 ( A 1 2 + A 1 A 2 + A 2 A 1 ) I_n+\lambda(A_1+A_2)+\lambda^2(A_1^2+A_1A_2+A_2A_1) I n + λ ( A 1 + A 2 ) + λ 2 ( A 1 2 + A 1 A 2 + A 2 A 1 ) . The restriction thus distinguishes words with the same letter counts and different orders.
The coefficients are specified by the two-state numerical matrices
M 1 = ( 1 0 1 0 ) , M 2 = ( 0 1 0 0 ) , ℓ = [ 1 0 ] , r 0 = ( 1 1 ) . (177) M_1=\begin{pmatrix}1&0\\1&0\end{pmatrix},\qquad M_2=\begin{pmatrix}0&1\\0&0\end{pmatrix},\qquad\ell=[1\ 0],\qquad r_0=\begin{pmatrix}1\\1\end{pmatrix}. \tag*{(177)} M 1 = ( 1 1 0 0 ) , M 2 = ( 0 0 1 0 ) , ℓ = [ 1 0 ] , r 0 = ( 1 1 ) . (177)
The scalar ℓ M w r 0 \ell M_w r_0 ℓ M w r 0 is one exactly when w ∈ L w\in\mathcal{L} w ∈ L . The superdiagonal block construction of Eq. (66) , with blocks λ M j \lambda M_j λ M j and terminal columns all equal to r 0 r_0 r 0 , truncates the degree at D D D and uses 2 ( D + 1 ) 2(D+1) 2 ( D + 1 ) states. The number of accepted words is exponential in D D D , but the algorithm works on these numerical matrices and their residual coordinates.
Proposition F.1 (A function transformation with constant success probability). For 0 < ϵ < 1 0<\epsilon<1 0 < ϵ < 1 , the series Eq. (F.1) has a forward-query block encoding with computed normalization at most two and selected error at most ϵ / 6 \epsilon/6 ϵ /6 . It uses O ( log ( 1 / ϵ ) ) O(\log(1/\epsilon)) O ( log ( 1/ ϵ )) joint queries, with classical and known-gate costs polynomial in log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) and the oracle width. For every normalized input, measurement of the final ancillary zero string succeeds with probability at least 1 / 16 1/16 1/16 , and the conditional output differs in vector norm from f ( A ) ∣ ψ ⟩ / ∥ f ( A ) ∣ ψ ⟩ ∥ f(A)|\psi\rangle/\lVert f(A)|\psi\rangle\rVert f ( A ) ∣ ψ ⟩ / ∥ f ( A ) ∣ ψ ⟩∥ by at most ϵ \epsilon ϵ .
Proof. There are at most 2 d 2^d 2 d words of length d d d , and each promised matrix product has norm at most one. The series therefore converges uniformly and satisfies
∥ f − p D ∥ ≤ 1 3 4 − D , ∥ p D − I n ∥ , ∥ f − I n ∥ ≤ 1 3 . \lVert f-p_D\rVert\le\frac{1}{3}4^{-D},\qquad\lVert p_D-I_n\rVert,\ \lVert f-I_n\rVert\le\frac{1}{3}. ∥ f − p D ∥ ≤ 3 1 4 − D , ∥ p D − I n ∥ , ∥ f − I n ∥ ≤ 3 1 .
Thus p D p_D p D and f f f have smallest singular value at least $2/3$, while 1 ≤ B D ≤ 4 / 3 1\le B_D\le4/3 1 ≤ B D ≤ 4/3 , the lower norm bound following at the zero tuple. We take D ≥ ⌈ log 4 ( 4 / ϵ ) ⌉ D\ge\lceil\log_4(4/\epsilon)\rceil D ≥ ⌈ log 4 ( 4/ ϵ )⌉ , τ = 1 / 2 \tau=1/2 τ = 1/2 , and known-gate error ϵ g = ϵ / 12 \epsilon_g=\epsilon/12 ϵ g = ϵ /12 . The computed normalization obeys 1 < β D ≤ ( 3 / 2 ) B D ≤ 2 1<\beta_D\le(3/2)B_D\le2 1 < β D ≤ ( 3/2 ) B D ≤ 2 , and the truncation error is at most $\epsilon/12. total selected error relative to f / β D f/\beta_D f / β D is at most ϵ / 6 \epsilon/6 ϵ /6 . The degree is logarithmic and the representation has O ( D ) O(D) O ( D ) states, so the query and compilation bounds follow from Theorem 2.1.
For a unit input ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ , we write b ~ \tilde{b} b ~ for the actual selected output column. Its distance from p D ( A ) ∣ ψ ⟩ / β D p_D(A)|\psi\rangle/\beta_D p D ( A ) ∣ ψ ⟩ / β D is at most ϵ / 12 \epsilon/12 ϵ /12 , and hence ∥ b ~ ∥ ≥ 1 / 3 − ϵ / 12 ≥ 1 / 4 \|\tilde{b}\| \ge1/3-\epsilon/12 \ge1/4 ∥ b ~ ∥ ≥ 1/3 − ϵ /12 ≥ 1/4 . This gives the success probability. The desired unnormalized column b = f ( A ) ∣ ψ ⟩ / β D b=f(A)|\psi\rangle/\beta_D b = f ( A ) ∣ ψ ⟩ / β D has norm at least 1 / 3 1/3 1/3 . The elementary inequality
∥ b ~ ∥ b ~ ∥ − b ∥ b ∥ ∥ ≤ 2 ∥ b ~ − b ∥ ∥ b ∥ \left\|\frac{\tilde{b}}{\|\tilde{b}\|}-\frac{b}{\|b\|}\right\| \le\frac{2\|\tilde{b}-b\|}{\|b\|} ∥ b ~ ∥ b ~ − ∥ b ∥ b ≤ ∥ b ∥ 2∥ b ~ − b ∥
then bounds the conditional error by ϵ \epsilon ϵ . The construction uses the forward-query circuit followed by the final ancillary measurement, and the singular-value estimate supplies its success lower bound.
For this positive-coefficient example, we can also compare a compact LCU construction. Let a d a_d a d count the allowed words of length d d d , and set L D = ∑ d = 0 D a d λ d L_D=\sum_{d=0}^{D}a_d\lambda^d L D = ∑ d = 0 D a d λ d . The triangle inequality gives ∥ p D ( A ) ∥ ≤ L D \|p_D(A)\|\le L_D ∥ p D ( A ) ∥ ≤ L D , and the admissible tuple A 1 = A 2 = I n A_1=A_2=I_n A 1 = A 2 = I n attains equality, so B D = L D B_D=L_D B D = L D . The coefficient state can be prepared using two-state continuation counts: first choose length d d d with probability a d λ d / L D a_d\lambda^d/L_D a d λ d / L D , and then choose each letter with probability proportional to its number of allowed continuations. The counts require only a length-D D D integer recurrence. Reversible preparation retains the resulting word, a sequence of D D D diagonal queries applies its letters in reverse order with idle padding, and inverse preparation yields p D / L D p_D/L_D p D / L D by the LCU construction [35 , 45 ] . At each query, known word-controlled permutations route the selected letter through its diagonal block, and a fresh failure label records outputs outside that block before the successful oracle label is returned to zero. The same forward query acts on every failure component, as in Theorem 4.3 . These permutations and markers are reversible bit operations, so their gate cost is polynomial in D D D , q o q_o q o , and the requested precision bits. Thus the example demonstrates an end-to-end function algorithm, including its success estimate; both approaches exploit its short recurrence. In addition to the oracle register, the explicit word-register implementation stores O ( D ) O(D) O ( D ) label qubits, whereas Eq. (68) gives O ( q o + log D ) O(q_o+\log D) O ( q o + log D ) total non-signal qubits for our construction in this example. This space comparison concerns the two specified implementations.
A certificate, transfer matrix, and query circuit
We now work through a separate target for which the entire certificate and its resulting matrices can be displayed explicitly. Its constant and quadratic terms show how the same computation accounts for coefficients, degree compensation, and the physical query count.
Example F.2 (A complete numerical synthesis example). We use Λ ( A ) = diag ( A 1 , A 2 ) \Lambda(A)=\operatorname{diag}(A_1,A_2) Λ ( A ) = diag ( A 1 , A 2 ) and p 0 ( x ) = 1 / 4 + x 1 x 2 / 12 p_0(x)=1/4+x_1x_2/12 p 0 ( x ) = 1/4 + x 1 x 2 /12 . A three-state representation has T 1 = e 0 e 1 T T_1=e_0e_1^{\mathsf{T}} T 1 = e 0 e 1 T , T 2 = e 1 e 2 T T_2=e_1e_2^{\mathsf{T}} T 2 = e 1 e 2 T , ℓ = e 0 T \ell=e_0^{\mathsf{T}} ℓ = e 0 T , and r 0 = ( 1 / 4 , 0 , 1 / 12 ) T r_0=(1/4,0,1/12)^{\mathsf{T}} r 0 = ( 1/4 , 0 , 1/12 ) T , where e 0 , e 1 , e 2 e_0,e_1,e_2 e 0 , e 1 , e 2 are the coordinate columns of length three. Its residual basis is ( 1 , x 2 ) (1,x_2) ( 1 , x 2 ) , so
g = ( 1 , x 1 , x 1 x 2 , x 2 , x 2 2 ) T , E = ( 1 , 0 , 0 , 0 , 0 ) , J = ( 1 0 0 0 0 0 0 0 1 0 ) . g=(1,x_1,x_1x_2,x_2,x_2^2)^{\mathsf{T}},\qquad E=(1,0,0,0,0),\qquad J=\begin{pmatrix}1&0&0&0&0\\0&0&0&1&0\end{pmatrix}. g = ( 1 , x 1 , x 1 x 2 , x 2 , x 2 2 ) T , E = ( 1 , 0 , 0 , 0 , 0 ) , J = ( 1 0 0 0 0 0 0 1 0 0 ) . The successor x 2 2 x_2^2 x 2 2 is retained although its target coefficient is zero. We take i = 1 i=1 i = 1 and q o = 3 q_o=3 q o = 3 , giving an 8 n × 8 n 8n\times8n 8 n × 8 n oracle with identity, active, and hidden groups of sizes n , 2 n , 5 n n,2n,5n n , 2 n , 5 n . Two queries with v = ( 1 , 1 , 1 ) T / 3 v=(1,1,1)^{\mathsf{T}}/\sqrt{3} v = ( 1 , 1 , 1 ) T / 3 give w 0 = 1 w_0=1 w 0 = 1 , w 1 = 2 / 3 w_1=2/3 w 1 = 2/3 , w 2 = 1 / 3 w_2=1/3 w 2 = 1/3 . Consequently, we realize g = ( 1 + x 1 x 2 ) / 4 g=(1+x_1x_2)/4 g = ( 1 + x 1 x 2 ) /4 , whose target row is P g = ( 1 , 0 , 1 , 0 , 0 ) / 4 P_g=(1,0,1,0,0)/4 P g = ( 1 , 0 , 1 , 0 , 0 ) /4 , and the finite window returns p 0 p_0 p 0 at normalization one.
The positive certificate is the pair in Eq. (34) , whose four transfer blocks were computed in § 3.3 .
The blocks in Eq. (47) give the full numerical matrix, with eight active coordinates followed by the scalar input and output,
V = 1 8 E 1 , 9 + 1 2 ( E 2 , 7 + E 9 , 2 ) + 1 2 E 7 , 9 + 1 4 ( E 8 , 7 + E 9 , 9 ) , (178) V = \frac{1}{8}E_{1,9}+\frac{1}{\sqrt{2}}(E_{2,7}+E_{9,2})+\frac{1}{2}E_{7,9}+\frac{1}{4}(E_{8,7}+E_{9,9}), \tag*{(178)} V = 8 1 E 1 , 9 + 2 1 ( E 2 , 7 + E 9 , 2 ) + 2 1 E 7 , 9 + 4 1 ( E 8 , 7 + E 9 , 9 ) , (178)
where E r , s E_{r,s} E r , s is the 9 × 9 9 \times9 9 × 9 matrix with one at ( r , s ) (r,s) ( r , s ) and zero elsewhere, using one-based indices. Its four blocks are those already checked in Eq. (47) ; we now use them to determine the physical query matrices.
The uniform weights and Eq. (F.3), substituted in the partial-norm ratios and Eq. (50) , specify three 10 × 10 10 \times10 10 × 10 update matrices with R = 4 R = 4 R = 4 . The packing matrices have twelve rows and ten columns, with their entries given by Eqs. (B.9)–(B.10); hence C 0 , C 1 , C 2 C_0, C_1, C_2 C 0 , C 1 , C 2 have sizes 12 × 1 12 \times1 12 × 1 , 12 × 12 12 \times12 12 × 12 , and 1 × 12 1 \times12 1 × 12 . Their selected product is p 0 ( A ) p_0(A) p 0 ( A ) by Theorem 4.1 . The complete circuit has exactly two original queries and the chronological known gates G 0 , D 0 , F 1 , G 1 , D 1 , F 2 , G 2 G_0, D_0, F_1, G_1, D_1, F_2, G_2 G 0 , D 0 , F 1 , G 1 , D 1 , F 2 , G 2 interleaved as in Figure 2 . The original oracle, two memory qubits, dilation qubit, and three failure qubits give n 0 = 9 n_0 = 9 n 0 = 9 ; Theorem B.1 uses at most twenty ancillary qubits including its phase and clean work.
The chosen certificate implements the target at normalization one, while its uniform norm is 1 / 3 1/3 1/3 ; applying the general norm search to the same coefficient input yields the near-optimal normalization of Theorem 2.1. This example displays the certificate-to-circuit calculation at a fixed normalization, which keeps each matrix small enough to inspect directly.
Exact certificates at a prescribed query count
The near-optimal normalization algorithm allows its query count to depend on the available margin. We now fix the count in advance and characterize exact synthesis by the Gram matrices of all query histories, retaining their cross terms so that the coefficient constraints preserve interference. In this characterization we retain every supplied identity label and take κ = i \kappa= i κ = i , d − = i + b d_- = i + b d − = i + b , and d + = i + a d_+ = i + a d + = i + a ; the resulting arrays may be exponentially larger than those used by the polynomial-time algorithm, which retains at most two identity labels.
The numerical coefficient matrices of the designated block are
F ^ 0 = ( I i 0 i × b 0 a × i 0 a × b ) , F ^ j = ( 0 i × i 0 i × b 0 a × i F j ) ( 1 ≤ j ≤ k ) . (179) \widehat{F}_0 =
\begin{pmatrix}
I_i & 0_{i \times b} \\
0_{a \times i} & 0_{a \times b}
\end{pmatrix},
\qquad
\widehat{F}_j =
\begin{pmatrix}
0_{i \times i} & 0_{i \times b} \\
0_{a \times i} & F_j
\end{pmatrix}
\qquad(1 \leq j \leq k). \tag*{(179)} F 0 = ( I i 0 a × i 0 i × b 0 a × b ) , F j = ( 0 i × i 0 a × i 0 i × b F j ) ( 1 ≤ j ≤ k ) . (179)
Their common size is d + × d − d_+ \times d_- d + × d − . We use F ^ j ( R ) \widehat{F}_j^{(R)} F j ( R ) for the numerical d + R × d − R d_+R \times d_-R d + R × d − R matrix with block ( α , β ) (\alpha,\beta) ( α , β ) equal to ( F ^ j ) α β I R (\widehat{F}_j)_{\alpha\beta}I_R ( F j ) α β I R , following Eq. (16) . With A 0 = I n A_0 = I_n A 0 = I n , they describe the scalar coefficient of each possible letter in one designated query. We index a length-t t t query history by a word over { 0 , 1 , … , k } \{0,1,\ldots,k\} { 0 , 1 , … , k } , written in matrix-product order; the newest letter is prefixed. The number of histories is L t = ( k + 1 ) t L_t = (k+1)^t L t = ( k + 1 ) t . Deleting zero letters from a history retains its ordered active word.
For a Hermitian matrix G G G of order d − L t d_-L_t d − L t , with indices ( α , w ) (\alpha,w) ( α , w ) where 0 ≤ α < d − 0 \leq\alpha< d_- 0 ≤ α < d − and ∣ w ∣ = t |w| = t ∣ w ∣ = t , we define numerical linear maps
[ P t ( G ) ] w , v = ∑ α = 0 d − − 1 G ( α , w ) , ( α , v ) , [ T t ( G ) ] j w , ℓ v = ∑ α , β ( F ^ j ( † F ^ ℓ ) α β G ( α , w ) , ( β , v ) . (180) [\mathcal{P}_t(G)]_{w,v} = \sum_{\alpha=0}^{d_- - 1} G_{(\alpha,w),(\alpha,v)},
\qquad
[\mathcal{T}_t(G)]_{jw,\ell v}
= \sum_{\alpha,\beta}(\widehat{F}_j^{\mathstrut\dagger}\widehat{F}_\ell)_{\alpha\beta}G_{(\alpha,w),(\beta,v)}. \tag*{(180)} [ P t ( G ) ] w , v = α = 0 ∑ d − − 1 G ( α , w ) , ( α , v ) , [ T t ( G ) ] j w , ℓ v = α , β ∑ ( F j ( † F ℓ ) α β G ( α , w ) , ( β , v ) . (180)
Their output orders are L t L_t L t and L t + 1 L_{t+1} L t + 1 , respectively. In particular, P 0 ( G ) \mathcal{P}_0(G) P 0 ( G ) is a scalar. This Gram description retains cross terms between distinct histories; replacing it by separate bounds on each history would lose the interference in the target coefficients. This follows the semidefinite description of query algorithms [27 , 12 ] and its connections to completely bounded forms [2 , 41 ] ; the condition below records the specific coefficient and designated-block constraints of Eq. (G.1).
Definition G.1 (A certificate for a fixed query count). For Q ≥ 1 Q \ge1 Q ≥ 1 , β > 0 \beta> 0 β > 0 , and a scalar target of degree at most Q Q Q , a query certificate consists of positive semidefinite matrices G t G_t G t of order d − L t d-L_t d − L t for 0 ≤ t < Q 0 \le t < Q 0 ≤ t < Q and a numerical row K = [ K w ] ∣ w ∣ = Q K=[K_w]_{|w|=Q} K = [ K w ] ∣ w ∣ = Q of length L Q L_Q L Q satisfying
P 0 ( G 0 ) ≤ 1 , (181) \mathcal{P}_0(G_0) \le1, \tag*{(181)} P 0 ( G 0 ) ≤ 1 , (181) P t ( G t ) ⪯ T t − 1 ( G t − 1 ) ( 1 ≤ t < Q ) , (182) \mathcal{P}_t(G_t) \preceq\mathcal{T}_{t-1}(G_{t-1}) \qquad(1 \le t < Q), \tag*{(182)} P t ( G t ) ⪯ T t − 1 ( G t − 1 ) ( 1 ≤ t < Q ) , (182) \begin{pmatrix}
\mathcal{T}_{Q-1}(G_{Q-1}) & K^\dagger\\
K & 1
\end{pmatrix}
\succeq0, \tag*{(183)}\end{pmatrix}
∑ ∣ w ∣ = Q erase 0 ( w ) = v K w = c v / β for every active word ∣ v ∣ ≤ Q . (184) \sum_{\substack{|w|=Q\\ \operatorname{erase}_0(w)=v}} K_w = c_v/\beta\qquad\text{for every active word } |v| \le Q. \tag*{(184)} ∣ w ∣ = Q erase 0 ( w ) = v ∑ K w = c v / β for every active word ∣ v ∣ ≤ Q . (184) All unspecified target coefficients, including those above the true degree, are zero in the last equation.
Theorem G.2 (Exact synthesis at a prescribed query count). Let Q ≥ 1 Q \ge1 Q ≥ 1 , β > 0 \beta> 0 β > 0 , and p p p have degree at most Q Q Q . In the model of § 2 , a completion-independent Q Q Q -query implementation of p ( A ) / β p(A)/\beta p ( A ) / β exists if and only if a certificate in Definition G.1 exists. Gram factorization and Moore–Penrose inversion of a supplied certificate determine all numerical query matrices and their full unitary implementation.
Proof of Theorem G.2. We first reduce a general admissible circuit to its designated query product. We take P − P_- P − and P + P_+ P + to be the diagonal zero–one matrices of order d o d_o d o selecting the first d − d_- d − input labels and the first d + d_+ d + output labels, respectively. For ∣ z ∣ = 1 |z|=1 ∣ z ∣ = 1 , the matrix
U A ( z ) = ( ( P + + z ( I − P + ) ) ⊗ I n ) U A ( ( P − + z ( I − P − ) ) ⊗ I n ) U_A(z)=\bigl((P_+ + z(I-P_+))\otimes I_n\bigr)U_A\bigl((P_- + z(I-P_-))\otimes I_n\bigr) U A ( z ) = ( ( P + + z ( I − P + )) ⊗ I n ) U A ( ( P − + z ( I − P − )) ⊗ I n )
is another allowed completion of the same designated block. The four rectangular corners of U A ( z ) U_A(z) U A ( z ) have powers z 0 z^0 z 0 , z 1 z^1 z 1 , z 1 z^1 z 1 , z 2 z^2 z 2 according to whether their input and output labels are designated. Replacing every query by this same U A ( z ) U_A(z) U A ( z ) makes the selected circuit block a polynomial in z z z of degree at most 2 Q 2Q 2 Q , with no negative powers. Its average over the ( 2 Q + 1 ) (2Q+1) ( 2 Q + 1 ) st roots of unity is therefore its constant coefficient. Only the designated corner can occur at each query in that coefficient, so the average has the form Eq. (63) , with numerical contractions obtained by taking the corresponding submatrices of the known unitary gates. Completion independence identifies this average with the required target. The same argument works for a uniformly accurate circuit, even if its approximate output retains completion dependence, because averaging does not increase its worst-case operator error.
Expanding a designated pre-query contraction product in ordered words gives, for each history w w w , a numerical coefficient column A t , w A_{t,w} A t , w of length d − R t d-R_t d − R t . We partition each column into d − d_- d − blocks of length R t R_t R t and denote those blocks by X t , α w X_{t,\alpha w} X t , α w . All these are numerical columns of scalar coefficients. Their full Gram is
( G t ) ( α , w ) , ( β , v ) = X t , α w † X t , β v . (G_t)_{(\alpha,w),(\beta,v)}=X_{t,\alpha w}^{\dagger}X_{t,\beta v}. ( G t ) ( α , w ) , ( β , v ) = X t , α w † X t , β v .
The Gram of the whole columns A t , w A_{t,w} A t , w is P t ( G t ) \mathcal{P}_t(G_t) P t ( G t ) . After the next query, its column at history j w jw j w is F ^ j ( R t ) A t , w \widehat{F}^{(R_t)}_j A_{t,w} F j ( R t ) A t , w , whose Gram is T t ( G t ) \mathcal{T}_t(G_t) T t ( G t ) . Contractivity of each following numerical matrix gives Eq. (G.4); the initial and final matrices give Eq. (G.3) and Eq. (G.5). Summing histories with the same active word gives Eq. (G.6). Equality on all admissible tuples is equality of free coefficients, as justified below, so no coefficient equation is omitted.
Conversely, a factorization G t = X t † X t G_t=X_t^\dagger X_t G t = X t † X t gives a numerical matrix X t X_t X t with columns indexed by ( α , w ) (\alpha,w) ( α , w ) . We may use the full principal square root, whose row count remains positive even when G t = 0 G_t=0 G t = 0 , or choose a factor with fewer rows when its rank is positive. We form A t A_t A t by stacking its column blocks X t , α w X_{t,\alpha w} X t , α w into one column A t , w A_{t,w} A t , w for each history w w w . Then A t † A t = P t ( G t ) A_t^\dagger A_t=\mathcal{P}_t(G_t) A t † A t = P t ( G t ) . For 1 ≤ t ≤ Q 1 \le t \le Q 1 ≤ t ≤ Q , the numerical matrix B t B_t B t has columns
B t , j w = F ^ j ( R t − 1 ) A t − 1 , w , B t † B t = T t − 1 ( G t − 1 ) . (185) B_{t,jw}=\widehat{F}^{(R_{t-1})}_j A_{t-1,w}, \qquad B_t^\dagger B_t=\mathcal{T}_{t-1}(G_{t-1}). \tag*{(185)} B t , j w = F j ( R t − 1 ) A t − 1 , w , B t † B t = T t − 1 ( G t − 1 ) . (185)
For t < Q t < Q t < Q , the Gram inequality implies ∥ A t x ∥ ≤ ∥ B t x ∥ \lVert A_t x\rVert\le\lVert B_t x\rVert ∥ A t x ∥ ≤ ∥ B t x ∥ for every numerical coordinate column x x x , and hence ker B t ⊆ ker A t \ker B_t \subseteq\ker A_t ker B t ⊆ ker A t . Consequently C t = A t B t † C_t = A_t B_t^\dagger C t = A t B t † is contractive and satisfies C t B t = A t C_t B_t = A_t C t B t = A t ; it acts as zero on the orthogonal complement of ran B t \operatorname{ran} B_t ran B t , equivalently C t x = 0 C_t x = 0 C t x = 0 whenever B t x = 0 B_t x = 0 B t x = 0 . The initial column is C 0 = A 0 C_0 = A_0 C 0 = A 0 . The Schur complement of the final block gives K † K ⪯ B Q † B Q K^\dagger K \preceq B_Q^\dagger B_Q K † K ⪯ B Q † B Q , so the same factorization gives C Q = K B Q + C_Q = K B_Q^+ C Q = K B Q + . These are the concrete matrix formulas underlying Douglas factorization [39 ] .
Their coefficient product is exactly K w K_w K w at every history. Padding the finite memory multiplicities to a common R R R by zero matrix entries gives the sizes used in § 4.2 . Theorem 4.3 implements this product using the original full oracle, and Eq. (G.6) makes its selected block p ( A ) / β p(A)/\beta p ( A ) / β . This proves sufficiency, with success selected only at the final stage.
To prove that equality on every allowed tuple implies equality of coefficients, we consider a word v = j 1 ⋯ j d v = j_1 \cdots j_d v = j 1 ⋯ j d . We take ( d + 1 ) × ( d + 1 ) (d + 1) \times(d + 1) ( d + 1 ) × ( d + 1 ) matrices whose only possible nonzero entries lie on the edges of the path 0 , 1 , … , d 0, 1, \ldots, d 0 , 1 , … , d , assigning letters j d , … , j 1 j_d, \ldots, j_1 j d , … , j 1 to its consecutive edges. The matrix entry from column zero to row d d d of a polynomial at this tuple isolates exactly its coefficient at v v v : shorter products do not reach d d d , longer products vanish, and a different length-d d d word misses an edge. A sufficiently small common rational scaling makes Eq. (8) contractive. The zero tuple recovers the constant coefficient. Thus equality at all allowed finite tuples is coefficientwise equality, completing necessity. □
The fixed-query criterion has ( k + 1 ) Q (k + 1)^Q ( k + 1 ) Q terminal history indices, so its explicit description can be exponentially larger than the finite-state target. For algebraic input coefficients and normalization, its feasibility is decidable by real-algebraic sampling, since all inequalities can be written using principal minors and all coefficient equalities are finite [24 ] . An algebraic feasible point then determines exact matrix expressions for the known gates. For a supplied rational feasible point, the extraction also has polynomial bit complexity in that point’s explicit size: the post-query Grams are rational, and B t + = ( B t † B t ) + B t † B_t^+ = (B_t^\dagger B_t)^+ B_t^\dagger B t + = ( B t † B t ) + B t † reduces the inverse to the rational Gram’s exactly computable range. These extraction bounds include singular supplied certificates and are measured in their explicit size.
Every strict normalization also admits some finite query realization. The zero target has a selected zero block with no queries at every β > 0 \beta> 0 β > 0 . For a nonzero target and a prescribed β > B \beta> B β > B , we choose a rational 0 < τ < 1 0 < \tau< 1 0 < τ < 1 with ( 1 + τ ) B < β (1 + \tau)B < \beta ( 1 + τ ) B < β . The general-input construction, with the separate known-gate construction for constants, supplies an ideal circuit at normalization β 0 ≤ ( 1 + τ ) B < β \beta_0 \le(1 + \tau)B < \beta β 0 ≤ ( 1 + τ ) B < β ; multiplying its final numerical row by the known contraction β 0 / β \beta_0/\beta β 0 / β then gives exactly p / β p/\beta p / β with the same queries. At a prescribed query count, exact feasibility is determined by the Gram criterion above, including at the boundary β = B \beta= B β = B ; the norm bound alone does not determine that query count.