Skip to content

Menu

WorksPhysics and Astronomy

Same Spectrum, Harder First-Order Training: Phase-Locking in Single- versus Multi-Qubit Re-Uploading Circuits

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_uqyujugp. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Angle-encoded variational quantum circuits implement truncated Fourier series. For one-dimensional inputs, a single-qubit re-uploading (serial) circuit represents every function that a multi-qubit circuit with the same encoding budget EE can; we find that this exchange of width for depth is not free in first-order training. Because its state lives on the Bloch sphere, all parameters of the serial circuit move the state, at each input, along one complex direction, which we call phase-locking. We prove that this costs no Fourier direction but leaves no direction to spare: however many parameters it has, the serial circuit has at most 2E+22E+2 tangent directions, one more than its 2E+12E+1 Fourier coefficients need, while a two-qubit control with the same encoding budget and model class generically has at least 6E+66E+6. The cost in training is measured against this control, as the number of runs out of 100 that reach the optimum within a fixed step budget. On an exact loss with flat-spectrum targets the gap grows with EE; at E=32E=32 the serial circuit converges in 3, 53 and 83 runs under gradient descent, Adam and Levenberg–Marquardt, the control in 99, 100 and 100. On three real-world series, at matched parameter counts, the serial circuit reaches the least-squares optimum in at most 9 runs under Adam and in 32 to 93 under Levenberg–Marquardt, the control in at least 98 and in all 100; its held-out error is up to about 1.51.5 times that of the control under Adam, but no larger in the typical run under Levenberg–Marquardt.

Introduction

Variational quantum circuits (VQCs) with angle encoding implement truncated Fourier series [36]. For NN qubits with LL encoding layers each, the accessible spectrum depends only on the encoding budget E=NLE = NL [14], and the serial circuit (N=1N = 1, L=EL = E) is complete: it realises every real trigonometric polynomial of degree ≤E\le E with values in $[-1, 1] ({xref}Lemma 3.3). For one-dimensional inputs, width can therefore be exchanged for depth without loss of expressivity. In training the layout does matter: {citet}Holzer & Turkalj [14]` observe numerically that models with fewer qubits become trapped in plateaus more often on complex targets, while on simple targets fewer qubits appear advantageous. For the serial circuit we make a structural difference explicit and measure what it costs.

The state of the serial circuit lives on the Bloch sphere, so that at each input all parameters move it along one complex direction (Lemma 4.2), which we call phase-locking; all parameter derivatives of the output then share one complex factor μ(x)\mu(x), the envelope. Phase-locking removes no Fourier direction: the coefficient Jacobian has full row rank almost everywhere (Lemma 3.3). But it limits how many tangent directions, directions in which the parameters move the state, the circuit can offer. However many parameters it has, the serial circuit has at most one more than it has Fourier coefficients, and that one leaves the output unchanged (Corollary 4.5); the two-qubit circuits we compare have several times as many (Proposition 4.4).

We measure what this costs in training with a controlled comparison. A two-qubit ancilla control encodes on one qubit and reads out the other. It has the same encoding budget, the same chain length (number of trainable blocks linked by encoding layers) and the same model class as the serial circuit, but at each input its tangent vectors have three complex components instead of one (and, necessarily, it has a larger state space). A two-qubit parallel circuit, with three components as well but half the chain length, separates the chain length from the number of components. We train first on an exact loss with targets that both circuits represent, so that any difference is one of optimisation, and then on data. The theory establishes the structure and the experiments measure the training cost, but we claim no causal link between the two.

Contributions.

  1. The serial circuit has no direction to spare. We prove the tangent counts of the serial, ancilla and parallel circuit, phase-locking, and full row rank of the coefficient Jacobian (§ 3 and § 4). As a check, the proofs are also formalised in Lean 4, with the cited results as hypotheses (Appendix § 13).

  1. First-order training of the serial circuit is harder. We show empirically that the serial circuit reaches its optimum less often than the control: on an exact loss under gradient descent, Adam and Levenberg–Marquardt, by a margin that grows with EE on flat targets and that neither the conditioning at initialisation nor a poor starting point accounts for (§ 5); and on data at matched parameter counts, including three real-world series, where its held-out error under Adam is up to about 1.5 times that of the control and under Levenberg–Marquardt the typical run predicts as well as the control (§ 6).

Related work

Beyond the spectrum (§ 1), the multiplicity with which each frequency arises also depends only on EE (Paul et al., 2026, Eq. (30)), whereas which coefficients are realised depends on the trainable gates (Wiedmann et al., [44]); for Pauli readouts and commuting two-qubit entanglers, Oh et al. (2026) derive where local and entangling gates must be placed for a given coefficient to be reachable. The statistics of the coefficients over random parameters are well studied ([25, 5, 37, 11]), and Duffy & Jastrzebski [11] also observe that low-entanglement circuits converge more slowly. We fix two circuit families with the same spectrum and compare their training.

A single qubit with repeated encoding is universal for univariate functions ([33] (Yu et al. 2022)), and the same circuits appear as generalised quantum signal processing ([27]). There, finding the phases of a prescribed polynomial is a known numerical problem: Dong et al. [10] observe that from random phases most runs end in local minima, the more so the higher the degree, and start instead from a structured point, whose landscape Wang et al. [42] analyse. We start from Haar-random gates and compare with two-qubit circuits of the same spectrum. Closest to our setting, Wang & Liu [41] treat random-phase QSP as a learning model: every phase derivative of the output gg is the projection of one input-dependent vector cc, with ∥c∥2=1−g2\lVert c\rVert^2 = 1-g^2, onto a gate-dependent axis, which gives them the statistics of the tangent kernel. Our envelope is the counterpart for an expectation value, with ∣μ(x)∣2=1−f(x)2\lvert\mu(x)\rvert^2 = 1-f(x)^2; we use it at the level of the Fourier coefficients and compare with multi-qubit circuits of the same spectrum.

Limits to training have mostly been studied as barren plateaus, gradients that vanish exponentially as the number of qubits grows ([23, 9]); our circuits have one or two qubits, and the cost we measure arises at fixed width. Overparameterisation theory (Larocca et al., [19]) characterises trainability through the rank of the quantum Fisher information at a fixed input, at most 2(2N−1)2(2^N-1) for an NN-qubit pure state; Proposition 4.4 counts how these directions accumulate over the inputs. Our gradient descent is the Riemannian gradient descent of Wiersema & Killoran [45] on SU(p)\mathrm{SU}(p), applied to each gate rather than to the whole circuit. The “Fourier locking” of Topel [39] is a different phenomenon, an optimisation trap of trainable encoding weights; our encodings are fixed.

Background

Table 1 in the appendix collects the notation.

Definition 3.1 (VQC with angle encoding). An LL-layer VQC on NN qubits applies encoding layers S(x)S(x) interleaved with L+1L+1 blocks of trainable gates W(0),…,W(L)W^{(0)},\ldots,W^{(L)},

U(x)=W(L)S(x)W(L−1)⋯S(x)W(0),U(x)=W^{(L)}S(x)W^{(L-1)}\cdots S(x)W^{(0)},

and outputs f(x)=⟨0∣U(x)†MU(x)∣0⟩f(x)=\langle0|U(x)^\dagger M U(x)|0\rangle. Each block is a product of one or more general SU(2N)\mathrm{SU}(2^N) gates, S(x)S(x) applies a Pauli rotation by the angle xx to each encoded qubit, and MM is a non-identity Pauli word.

Because the blocks range over all of SU(2N)\mathrm{SU}(2^N), they absorb fixed unitaries next to them. A different axis of rotation, a different Pauli word or a different initial state therefore gives the same model class, leaves every statement for almost all gates unchanged, and maps runs of gradient descent and Levenberg–Marquardt onto each other, and, for a change of axis or of Pauli word, runs of Adam as well (Appendix § 11). We therefore take RX(x)=e−ixX/2R_X(x)=e^{-ixX/2}, M=ZM=Z on the last qubit and the initial state ∣0⟩\lvert0\rangle.

Parameters. A gate GG is varied along the curves s↦GeisQs\mapsto G e^{isQ}, one for each non-identity Pauli word QQ on the qubits it acts on (33 for a gate in SU(2)\mathrm{SU}(2), 1515 for a gate in SU(4)\mathrm{SU}(4)); these are its Lie-algebra coordinates. The vector θ∈RP\theta\in\mathbb{R}^P collects the coordinates of all gates, and derivatives with respect to θ\theta are taken at θ=0\theta=0, that is, at the current gates (Appendix § 10). We write fθf_\theta when the dependence on the parameters matters.

Three circuits. We compare three instances with the same encoding budget EE (Figure 1a). The serial circuit has one qubit and L=EL=E layers. The ancilla circuit has two qubits, the encoding on qubit 0 only, L=EL=E layers and the readout ZZ on qubit 1: it has the serial circuit’s encoding budget, number of blocks and model class (Lemma 3.3), but a four-dimensional state space, and each of its gates has 15 parameters instead of 3. The parallel circuit has two qubits, both encoded, and L=E/2L=E/2 layers, so half as many blocks.

Figure 1. (a) Chain length at E=4E=4: the number L+1L+1 of blocks, all of which enter every term of every Fourier coefficient (Lemma 4.1). (b) Phase-locking. At each input, every parameter of the serial circuit moves the state along the one vector ∣ψ⟩\lvert\psi\rangle (Lemma 4.2); on two qubits, in the ancilla and the parallel circuit alike, it moves it along three orthogonal vectors (Remark 4.3). Symbols as in Lemma 4.2 and Remark 4.3.

Theorem 3.1 (Fourier representation (Schuld et al., [36]); spectral invariance (Holzer & Turkalj, [14])). fθ(x)=∑∣ω∣≤Ecω(θ)eiωxf_\theta(x)=\sum_{|\omega|\le E}c_\omega(\theta)e^{i\omega x} with c−ω=cω‾c_{-\omega}=\overline{c_\omega}, where EE is the total number of encoding gates. When every encoding gate is a Pauli rotation by the angle xx, as here, the spectrum is {−E,…,E}\{-E,\ldots,E\} and depends only on EE.

Since ff is real, c−ω=cω‾c_{-\omega}=\overline{c_\omega} and c0c_0 is real, so ff is determined by 2E+12E+1 real numbers, the dimension of the space of real trigonometric polynomials of degree ≤E\le E. We collect them in a real vector, so that its Jacobian is a real matrix.

Definition 3.2 (Coefficient and data Jacobians). Let c~=(Re⁡c0,Re⁡c1,Im⁡c1,…,Re⁡cE,Im⁡cE)⊤∈R2E+1\tilde{c}=(\operatorname{Re}c_0,\operatorname{Re}c_1,\operatorname{Im}c_1,\ldots,\operatorname{Re}c_E,\operatorname{Im}c_E)^\top\in\mathbb{R}^{2E+1}. The coefficient Jacobian is J=∂c~/∂θ∈R(2E+1)×PJ=\partial\tilde{c}/\partial\theta\in\mathbb{R}^{(2E+1)\times P}. The data Jacobian at inputs x1,…,xnx_1,\ldots,x_n is (Jdata)ij=∂fθ(xi)/∂θj(J_{\mathrm{data}})_{ij}=\partial f_\theta(x_i)/\partial\theta_j.

The theory concerns JJ, which depends only on the circuit; a loss on data sees JdataJ_{\mathrm{data}}. The two differ by a factor that depends only on the inputs:

Lemma 3.2 (From JJ to data). Jdata=BJJ_{\mathrm{data}}=BJ with the real Fourier design matrix B∈Rn×(2E+1)oftheinputs(columns$1B\in\mathbb{R}^{n\times(2E+1)} of the inputs (columns \$1, 2cos⁡kx2\cos kx, −2sin⁡kx-2\sin kx, k=1,…,Ek=1,\ldots,E). On the n=2E+1n=2E+1 equispaced points of [−π,π)[-\pi,\pi), B⊤B=diag⁡(n,2n,…,2n)B^\top B=\operatorname{diag}(n,2n,\ldots,2n), so the singular values of BB lie between n\sqrt{n} and 2n\sqrt{2n}, and the largest and smallest singular values of JdataJ_{\mathrm{data}} are those of JJ up to factors in [n,2n][\sqrt{n},\sqrt{2n}].

The proof is in Appendix § 11. § 5 trains on these points, so the conditioning measured there is that of JJ up to a factor 2\sqrt{2}; on other inputs it is that of JJ only up to the conditioning of BB.

Model class and full row rank

The serial and the ancilla circuit represent the same functions, and neither loses a Fourier direction generically.

Lemma 3.3 (Model class and full row rank). Let FEF_E be the set of real trigonometric polynomials of degree ≤E\le E with ∥f∥∞≤1\lVert f\rVert_\infty\le1. (i) The serial circuit with L=EL=E and the ancilla circuit with L=EL=E both have model class exactly FEF_E, for any number of gates per block; for the serial circuit this rests on known single-qubit results (Yu et al., 2022; Motlagh & Wiebe, [27]). (ii) For both, rank J=2E+1J=2E+1 for almost every choice of gates (with respect to the Haar measure, the uniform distribution, on each gate).

The proof is in Appendix § 11: (i) by the Fejér–Riesz factorisation and generalized quantum signal processing, the ancilla circuit containing the serial one and obeying the same bounds; (ii) by Sard’s theorem, which gives one point of full rank, and the fact that rank loss is the zero set of a polynomial in the gate entries (Lemma 4.1). A difference between the two circuits in training is therefore not a difference in what they can represent or in which directions exist. The lemma covers the pair that we compare throughout. The parallel circuit serves as a reference for the chain length; for it we have not proved either part, and the comparison does not depend on it. Its runs in § 5.3 reach every target used there.

Tangent structure of single- and multi-qubit circuits

This section establishes how the serial circuit differs in structure from two-qubit circuits with the same spectrum: in the length of the chain of blocks (§ 4.1) and in the directions along which the parameters move the state (§ 4.2), and counts the tangent directions that this leaves over all inputs (§ 4.3). All results are statements about structure and counts. Whether these differences matter for training is not derived here; it is measured in § 5 and § 6.

Polynomial structure and chain length

Lemma 4.1 (Polynomial structure). For any circuit of Definition 3.1, each Fourier coefficient is a sum over pairs of index paths,

cω=∑p,p′γω(p,p′)∏ℓ=0LWpℓ(ℓ)Wpℓ′(ℓ)‾.c_{\omega}=\sum_{p,p'}\gamma_{\omega}(p,p')\prod_{\ell=0}^{L}W_{p_{\ell}}^{(\ell)}\overline{W_{p'_{\ell}}^{(\ell)}}.

where a path p=(p0,…,pL)p=(p_0,\ldots,p_L) selects one matrix entry Wpℓ(ℓ)W_{p_{\ell}}^{(\ell)} of every block, and the numbers γω(p,p′)\gamma_{\omega}(p,p') depend on the encoding layer SS, the observable MM, the initial state and ω\omega, but not on the blocks. Every monomial of cωc_{\omega} therefore contains exactly one entry and one conjugated entry of each of the L+1L+1 blocks.

The lemma follows by multiplying out the matrix product (Appendix § 11); we state it because two later arguments use its form. It makes every cωc_{\omega} a polynomial in the real and imaginary parts of the gate entries, on which the “almost every choice of gates” statement of Lemma 3.3(ii) rests. And it fixes what we call the length of the chain, the number L+1L+1 of blocks: every term of every coefficient contains all of them. This is a property of the expansion, not a claim that every cωc_{\omega} depends on every block. At fixed EE the chain has L+1=E+1L+1=E+1 blocks for the serial circuit and E/N+1E/N+1 for a parallel circuit encoding on all NN qubits (Figure 1a). Chain length is therefore a second difference between serial and parallel circuits besides the tangent structure below; the ancilla circuit removes it.

Phase-locking: one complex direction for all parameters

Lemma 4.2 (Serial phase-locking). Let N=1N=1, M=ZM=Z and ∣ψ(x,θ)⟩=U∣0⟩=ψ0∣0⟩+ψ1∣1⟩|\psi(x,\theta)\rangle=U|0\rangle=\psi_0|0\rangle+\psi_1|1\rangle, and let ∣ψ⊥⟩=ψ1‾∣0⟩−ψ0‾∣1⟩|\psi^{\perp}\rangle=\overline{\psi_1}|0\rangle-\overline{\psi_0}|1\rangle, a unit vector orthogonal to ∣ψ⟩|\psi\rangle. Then for every parameter θj\theta_j:

(i) (I−∣ψ⟩⟨ψ∣)∣∂jψ⟩=hj∣ψ⊥⟩(I-|\psi\rangle\langle\psi|)|\partial_j\psi\rangle=h_j|\psi^{\perp}\rangle with hj(x)=⟨ψ⊥∣∂jψ⟩h_j(x)=\langle\psi^{\perp}|\partial_j\psi\rangle. All tangent vectors, the components (I−∣ψ⟩⟨ψ∣)∣∂jψ⟩(I-|\psi\rangle\langle\psi|)|\partial_j\psi\rangle of the derivatives orthogonal to the state, are complex multiples of the one vector ∣ψ⊥⟩|\psi^{\perp}\rangle.

(ii) With μ(x)=⟨ψ⊥∣M∣ψ⟩\mu(x)=\langle\psi^{\perp}|M|\psi\rangle, which is the same for all jj,

∂jf(x)=2Re⁡[hj(x)‾μ(x)].(1)\partial_j f(x)=2\operatorname{Re}\left[\overline{h_j(x)}\mu(x)\right]. \tag*{(1)}

We call μ\mu the envelope.

(iii) hjh_j is determined by the sub-circuit up to the gate containing θj\theta_j and is a trigonometric polynomial of degree at most the number of encoding layers preceding that gate; μ\mu is a trigonometric polynomial of degree at most LL.

Proof sketch. Let TT be the map (v0,v1)↦(v1‾,−v0‾)(v_0,v_1)\mapsto(\overline{v_1},-\overline{v_0}) on C2\mathbb{C}^2, so that ∣ψ⊥⟩=T∣ψ⟩|\psi^{\perp}\rangle=T|\psi\rangle. (i), (ii): {∣ψ⟩,∣ψ⊥⟩}\{|\psi\rangle,|\psi^{\perp}\rangle\} is an orthonormal basis, so ∣∂jψ⟩=λj∣ψ⟩+hj∣ψ⊥⟩|\partial_j\psi\rangle=\lambda_j|\psi\rangle+h_j|\psi^{\perp}\rangle, and λj∈iR\lambda_j\in i\mathbb{R} because ⟨ψ∣ψ⟩=1\langle\psi|\psi\rangle=1. The λj\lambda_j term drops out of ∂jf=2Re⁡⟨∂jψ∣M∣ψ⟩\partial_jf=2\operatorname{Re}\langle\partial_j\psi|M|\psi\rangle because ⟨ψ∣M∣ψ⟩\langle\psi|M|\psi\rangle is real. (iii): TT commutes with every element of SU⁡(2)\operatorname{SU}(2), so the circuit after the gate carrying θj\theta_j cancels in ⟨Tψ∣∂jψ⟩\langle T\psi|\partial_j\psi\rangle, and hjh_j is an inner product computed right after that gate. Full proof in Appendix § 11.

Any unit vector orthogonal to ∣ψ⟩|\psi\rangle is eiα∣ψ⊥⟩e^{i\alpha}|\psi^{\perp}\rangle for some phase α\alpha. For (i) and (ii) the choice is immaterial: with eiα(x)∣ψ⊥⟩e^{i\alpha(x)}|\psi^{\perp}\rangle in place of ∣ψ⊥⟩|\psi^{\perp}\rangle, both hjh_j and μ\mu are multiplied by e−iα(x)e^{-i\alpha(x)}, and the vector hj∣ψ⊥⟩h_j|\psi^{\perp}\rangle and the product hjμh_j\mu are the same as before. For (iii) it matters: the statement is about this particular ∣ψ⊥⟩|\psi^{\perp}\rangle, and an xx-dependent phase moves the frequencies (the phase eixe^{ix} shifts every frequency of hjh_j and μ\mu by one), so the degree bounds need not hold. Statements (i) and (ii) use only that ∣ψ⟩|\psi\rangle is a normalised state that depends differentiably on θj\theta_j, so they hold for any parameterisation. Statement (iii) is proved for a parameter that enters exactly one gate, as every Lie-algebra coordinate does (Appendix § 10). Geometrically, μ\mu is the direction of steepest ascent of ff on the Bloch sphere, written in the basis ∣ψ⊥⟩|\psi^{\perp}\rangle, and (ii) is the component of the motion hjh_j along it; its length, ∣μ∣=1−f2|\mu|=\sqrt{1-f^2} (Remark 4.3(ii)), measures how steep the ascent is.

Parts (i) and (ii) restate that the vectors orthogonal to ∣ψ⟩|\psi\rangle form one complex dimension, the tangent space of the Bloch sphere at ∣ψ⟩|\psi\rangle; part (iii) adds where each hjh_j comes from and what its degree is. The results below use the lemma through the factorisation of Eq. (2).

Remark 4.3 (More than one qubit). On NN qubits ∣ψ⟩|\psi\rangle is a unit vector in (Cd,d=2N)(\mathbb{C}^d,d=2^N), and the vectors orthogonal to it form a space of d−1d-1 complex dimensions (one for N=1N=1, three for N=2N=2). Let ∣e1⟩,…,∣ed−1⟩|e_1\rangle,\ldots,|e_{d-1}\rangle be an orthonormal basis of that space and MM Hermitian.

(i) (I−∣ψ⟩⟨ψ∣)∣∂jψ⟩=∑rhj,r∣er⟩(I-|\psi\rangle\langle\psi|)|\partial_j\psi\rangle=\sum_r h_{j,r}|e_r\rangle with hj,r=⟨er∣∂jψ⟩h_{j,r}=\langle e_r|\partial_j\psi\rangle. A tangent vector is given by d−1d-1 complex numbers, no longer by one (Figure 1b).

(ii) ∂jf=2Re⁡∑rhj,r‾μr\partial_j f=2\operatorname{Re}\sum_r\overline{h_{j,r}}\mu_r with μr=⟨er∣M∣ψ⟩\mu_r=\langle e_r|M|\psi\rangle, the same for all jj. We call the μr\mu_r envelopes; if M2=IM^2=I, then ∑r∣μr∣2=1−f2\sum_r|\mu_r|^2=1-f^2.

(iii) How many envelopes are non-zero depends on the basis: μr=⟨er∣(M−f)∣ψ⟩\mu_r=\langle e_r|(M-f)|\psi\rangle, so in a basis in which (M−f)∣ψ⟩(M-f)|\psi\rangle is a multiple of ∣e1⟩|e_1\rangle, μr=0\mu_r=0 for r≥2r\geq2 and the gradient at xx depends on hj,1(x)h_{j,1}(x) only. What does not depend on the basis is the dimension of the real span of the tangent-coefficient functions x↦(hj,r(x))rx\mapsto(h_{j,r}(x))_r over all parameters, which Proposition 4.4 counts: a change of basis multiplies all of them by one unitary matrix V(x)V(x).

The factored Jacobian

In matrix form, Lemma 4.2 says that every column of the coefficient Jacobian is the same linear map applied to the Fourier coefficients of one hjh_j:

J=AμH,(2)J=A_\mu H, \tag*{(2)}

where H∈R2(2L+1)×PH\in\mathbb{R}^{2(2L+1)\times P} collects the real and imaginary parts of the Fourier coefficients of the hjh_j, and Aμ∈R(2L+1)×2(2L+1)A_\mu\in\mathbb{R}^{(2L+1)\times2(2L+1)} is the real-linear map h↦h\mapsto (Fourier coefficients of 2Re⁡[hμ‾]2\operatorname{Re}[h\overline{\mu}] up to degree LL), determined by the envelope alone (Appendix § 11). Each parameter contributes one column of HH; all parameters share AμA_\mu.

Tangent count and spare directions

Phase-locking costs the serial circuit no Fourier direction: its coefficient Jacobian has full row rank almost everywhere (Lemma 3.3). What it limits is the number of directions. It is a statement at one input; a function is fitted over all inputs, so the question is how many independent directions the parameters offer over all inputs together, compared with the 2E+12E+1 Fourier coefficients they have to control. To count them we need, at every input, a basis of the vectors orthogonal to ∣ψ(x)⟩|\psi(x)\rangle in which to write the tangent vectors (Remark 4.3). We use er(x)=U(x)∣r⟩e_r(x)=U(x)|r\rangle, r=1,…,2N−1r=1,\ldots,2^N-1: the circuit applied to the other computational basis states, which are orthonormal and orthogonal to ∣ψ(x)⟩=U(x)∣0⟩|\psi(x)\rangle=U(x)|0\rangle because U(x)U(x) is unitary. For N=1N=1 this is −∣ψ⊥⟩-|{\psi}^{\perp}\rangle, the vector of Lemma 4.2 up to sign. Parameter jj then has the tangent-coefficient function hj(x)=(⟨er(x)∣∂jψ(x)⟩)r∈C2N−1h_j(x)=(\langle e_r(x)|\partial_j\psi(x)\rangle)_r\in\mathbb{C}^{2^N-1}, a vector of trigonometric polynomials of degree ≤E\le E. The number of tangent directions of a circuit is the dimension of the real span of these functions over all parameters; by Remark 4.3(iii) it does not depend on the choice of the basis. For the serial circuit it is the rank of the matrix HH of Eq. (2).

Proposition 4.4 (Tangent count). Let T\mathcal{T} be the real span of the tangent-coefficient functions hjh_j over all Lie-algebra coordinates jj. For any number of gates per block: (i) For the serial circuit, dim⁡T≤2(E+1)\dim\mathcal{T}\le2(E+1) for every choice of gates, with equality for almost every choice. (ii) For the ancilla circuit, dim⁡T≥6(E+1)\dim\mathcal{T}\ge6(E+1) for almost every choice of gates. (iii) For the parallel circuit on two qubits, dim⁡T≤5E+6\dim\mathcal{T}\le5E+6 for every choice of gates, with equality for almost every choice.

These counts are the directions at one input, accumulated over the blocks. At one input the state can move in 2(d−1)2(d-1) real directions: two on one qubit, the one complex direction of Lemma 4.2, and six on two qubits (Remark 4.3). Every one of the E+1E+1 blocks of the serial and of the ancilla circuit contributes these directions once, each block at a new frequency, which gives the 2(E+1)2(E+1) of (i) and the 6(E+1)6(E+1) of (ii). The parallel circuit has E/2+1E/2+1 blocks, and each after the first contributes ten.

A tangent direction can leave ff unchanged to first order: it then moves the state without changing the output. Our circuits have such directions of one trivial kind, the readout rotations: rotations of the final state that commute with the readout MM and are therefore invisible to it; they span at most one dimension on a single qubit and at most seven on two (Appendix § 11). We call every further dimension of directions that leave ff unchanged spare. Spare directions do not lower the loss by themselves; they are room to change how a function is realised without changing the function.

Corollary 4.5 (No spare tangent direction in the serial circuit). For the serial circuit with M=ZM=Z and any number of gates per block, with hjh_j and μ\mu taken in the same basis:

(i) Rotating the state about the readout axis, ∣ψ⟩↦eisZ∣ψ⟩|\psi\rangle\mapsto e^{i s Z}|\psi\rangle, is a motion of the last gate. Its tangent-coefficient function is iμi\mu, which lies in T\mathcal{T}, and it leaves ff unchanged.

(ii) At every choice of gates at which JJ has full row rank, hence at almost every choice (Lemma 3.3), a vector θ˙∈RP\dot{\theta}\in\mathbb{R}^P satisfies Jθ˙=0J\dot{\theta}=0 if and only if ∑jθ˙jhj=λiμ\sum_j\dot{\theta}_j h_j=\lambda i\mu for some λ∈R\lambda\in\mathbb{R}: the rotation of (i) is the only tangent direction that leaves ff unchanged to first order. The “if” part holds for every choice of gates.

(iii) For almost every target f∗∈FEf^*\in\mathcal{F}_E (Lebesgue measure on its coefficient vector c~\widetilde c), (ii) applies at every choice of gates with fθ=f∗f_\theta=f^*.

The proof is in Appendix § 11. Here Jθ˙=0J\dot{\theta}=0 says that the direction θ˙\dot{\theta} changes no Fourier coefficient of ff, hence not ff, to first order.

Generically the serial circuit thus has no spare tangent direction: of its 2E+22E+2 directions, 2E+12E+1 change the Fourier coefficients and the last one is the readout rotation. The two-qubit circuits generically have at least 3E−23E-2 (parallel) and 4E−24E-2 (ancilla) spare directions: their 5E+65E+6 and at least 6E+66E+6 tangent directions, less the at most 2E+12E+1 that change the Fourier coefficients and the at most seven readout rotations. The ancilla control has more than the parallel circuit because it has twice as many blocks; in our numerical checks its bound in Proposition 4.4 is attained, dim⁡T=6(E+1)\dim\mathcal{T}=6(E+1) (Table 3).

circuitqubitsencoded(ma)(m_a)per layerupper bound
serial*11(1,1)22
ancilla†21(2,2)68
parallel*22(1,2,1)1010

Table 3. Tangent directions added by every layer after the first (exact numerical rank at random gates) for the three circuits of this paper, against the upper bound d2−∑ama2d^2-\sum_a m_a^2 of Appendix B, with mam_a the multiplicities of the eigenvalues of the encoding generator. Rows marked * are proved, the row marked † is proved as a lower bound (Proposition 4.4).

First-order training on an exact loss

The serial circuit and the ancilla control represent the same functions but differ in structure: the serial circuit has no spare tangent direction, the control at least 4E−24E-2. We now measure whether this difference shows in training: first with the target function given exactly, so that neither sampling nor noise enters and any difference is one of optimisation alone (this section), then on sampled data (§ 6).

Loss and targets

The target is a function f∗f^*, not a data set. The loss is the relative L2L^2 error on the circle, ∥fθ−f∗∥2/Var⁡(f∗)\lVert f_\theta-f^*\rVert^2/\operatorname{Var}(f^*); its numerator equals the mean squared error on 2E+12E+1 equispaced points, so it is computed exactly. Targets are random real trigonometric polynomials of degree EE, scaled to sup⁡∣f∗∣=0.9\sup|f^*|=0.9, of two kinds: flat, with coefficients of the same variance at every frequency, and 1/k1/k, with coefficients whose standard deviation falls as 1/k1/k with the frequency kk, as for smoother functions. We use both to see whether the comparison depends on the spectrum of the target. By Lemma 3.3 the serial and the ancilla circuit represent every such target exactly. Their optimal loss is therefore zero, and a run that ends above it has missed a solution that exists.

Circuits. We compare the serial and the ancilla circuit and, for reference, the parallel circuit on two qubits (L=E/2L=E/2), for E∈{8,12,16,24,32}E\in\{8,12,16,24,32\}. A configuration is a target family together with a value of EE. Every circuit has 100 runs in every configuration, each with its own target and its own Haar-random initial gates. The targets are the same for the three circuits, and the three optimisers start from the same initial gates. Every block holds one general SU(2N)\mathrm{SU}(2^N) gate, so that the circuits differ in their numbers of parameters: 3(E+1)3(E+1), 15(E+1)15(E+1) and 15(E/2+1)15(E/2+1) for the serial, ancilla and parallel circuit. This section does not match them by experiment. For gradient descent we rely on an argument instead: in each of the three circuits, further gates in a block add no tangent directions (proof of Proposition 4.4) and, to first order in the step size, only rescale the step (Lemma B.2), which the line search absorbs. The argument does not cover Levenberg–Marquardt or Adam. Under Adam the comparison is therefore repeated at matched parameter counts: on the targets of this section in Appendix § 14 (Figure 6), and on other targets in § 6.

Figure 6. Flat targets in the setup of § 6 (Adam at matched parameter counts): share of runs that reach the least-squares optimum; open diamonds: Levenberg–Marquardt on the same runs of the serial circuit (both two-qubit circuits reach the optimum in every run under it). Bars: 95% Wilson intervals; 100 runs per point.

Optimisers. The experiments proceed in three steps. We start with gradient descent, the plainest first-order method: its step is the gradient itself, without memory or rescaling, so that any effect of the tangent structure on training shows here most directly. An Armijo line search (Nocedal & Wright, [29]) takes the place of the learning rate, so that no learning rate has to be tuned (§ 5.2). Along these runs the Jacobian of the serial circuit stays poorly conditioned more often than that of the control. We therefore add Levenberg–Marquardt (Nocedal & Wright, [29]), a second-order method that poor conditioning does not slow down, to see what remains of the difference (§ 5.3). Finally Adam (Kingma & Ba, [15]), with a tuned learning rate, shows whether the difference persists under a commonly used adaptive method (§ 5.4). In all three the variables are the gates themselves: an update multiplies every gate by a unitary close to the identity, so that no parameterisation of the gates by angles, and none of its singular points, enters (Appendix § 10). Gradient descent and Adam have a budget of 50,000 steps, Levenberg–Marquardt of 2,000 iterations.

Convergence. A run converges if its final loss, which is relative to the target variance, is at most 10−610^{-6}, the criterion of § 6. Figure 2 shows the share of converged runs of each circuit, with a 95% Wilson interval (Wilson, [46]) for each share. To compare two circuits we use the difference of their shares, ancilа minus serial, with a 95% interval for the difference (Newcombe, [28]), and call the difference significant if this interval excludes zero: the counts are then not compatible, at the 5% level, with equal chances of convergence for the two circuits. Table 12 in Appendix § 14 gives the counts, the differences and their intervals for both target families and the three optimisers. The comparison does not depend on the threshold: at 10−410^{-4} and at 10−810^{-8} the same differences are significant as at 10−610^{-6}, for each of the three optimisers (Table 13). At 10−1010^{-10} this still holds for gradient descent and Levenberg–Marquardt, but not for Adam: a run of Adam that has found the solution does not go on to machine precision but ends at a loss between about 10−1210^{-12} and 10−810^{-8}, so that a threshold of 10−1010^{-10} also rejects many runs that have converged (Appendix § 14).

Share of converged runs against encoding budget for three optimisers

Figure 2. Share of converged runs (final loss ≤10−6\le10^{-6}) against the encoding budget EE, for flat targets and the three optimisers. Bars: 95% Wilson intervals; 100 runs per point.

Table 12. Exact loss: runs out of 100 with final loss ≤10−6\le10^{-6}, serial | ancilla, and the difference of the shares (ancilla minus serial) with a 95% Newcombe interval, per target family, encoding budget and optimiser. *: neither circuit converges in half of the runs.

targetsEEgradient descent: runsgradient descent: difference [95%]Levenberg–Marquardt: runsLevenberg–Marquardt: difference [95%]Adam: runsAdam: difference [95%]
flat893 | 100+0.07 [+0.02, +0.14]100 | 100+0.00 [−0.04, +0.04]100 | 100+0.00 [−0.04, +0.04]
1285 | 100+0.15 [+0.08, +0.23]100 | 100+0.00 [−0.04, +0.04]95 | 100+0.05 [+0.00, +0.11]
1665 | 100+0.35 [+0.26, +0.45]96 | 100+0.04 [−0.00, +0.10]83 | 100+0.17 [+0.10, +0.26]
2424 | 99+0.75 [+0.65, +0.82]90 | 100+0.10 [+0.04, +0.17]66 | 100+0.34 [+0.25, +0.44]
323 | 99+0.96 [+0.89, +0.98]83 | 100+0.17 [+0.10, +0.26]53 | 100+0.47 [+0.37, +0.57]
1/k1/k871 | 100+0.29 [+0.20, +0.39]100 | 100+0.00 [−0.04, +0.04]94 | 100+0.06 [+0.01, +0.12]
1232 | 99+0.67 [+0.56, +0.75]99 | 100+0.01 [−0.03, +0.05]88 | 100+0.12 [+0.06, +0.20]
165 | 77+0.72 [+0.61, +0.80]96 | 100+0.04 [−0.00, +0.10]62 | 100+0.38 [+0.28, +0.48]
240 | 16+0.16 [+0.09, +0.24]*86 | 100+0.14 [+0.07, +0.22]23 | 100+0.77 [+0.67, +0.84]
320 | 0+0.00 [−0.04, +0.04]*73 | 100+0.27 [+0.18, +0.36]9 | 97+0.88 [+0.79, +0.93]

Table 12.

Table 13. Exact loss: runs out of 100 with final loss at or below the threshold, serial | ancilla | parallel. The threshold of the main text is 10−610^{-6}. GD: gradient descent; LM: Levenberg–Marquardt. For Adam, 10−1010^{-10} lies within the range at which converged runs end (Appendix § 10).

optimisertargetsthresholdE=8E = 8E=12E = 12E=16E = 16E=24E = 24E=32E = 32
GDflat10−410^{-4}93 | 100 | 10086 | 100 | 10065 | 100 | 10027 | 100 | 1003 | 100 | 99
10−610^{-6}93 | 100 | 10085 | 100 | 10065 | 100 | 10024 | 99 | 993 | 99 | 97
10−810^{-8}92 | 100 | 10083 | 100 | 10063 | 100 | 10021 | 99 | 991 | 98 | 97
10−1010^{-10}92 | 100 | 10083 | 100 | 10062 | 100 | 10019 | 99 | 991 | 98 | 95
1/k1/k10−410^{-4}78 | 100 | 10043 | 100 | 10011 | 93 | 870 | 29 | 240 | 0 | 0
10−610^{-6}71 | 100 | 10032 | 99 | 1005 | 77 | 720 | 16 | 150 | 0 | 0
10−810^{-8}68 | 100 | 10029 | 96 | 974 | 72 | 660 | 14 | 120 | 0 | 0
10−1010^{-10}63 | 100 | 10027 | 94 | 963 | 69 | 600 | 13 | 120 | 0 | 0
LMflat10−410^{-4}100 | 100 | 100100 | 100 | 10096 | 100 | 10090 | 100 | 10083 | 100 | 100
10−610^{-6}100 | 100 | 100100 | 100 | 10096 | 100 | 10090 | 100 | 10083 | 100 | 100
10−810^{-8}100 | 100 | 100100 | 100 | 10096 | 100 | 10090 | 100 | 10083 | 100 | 100
10−1010^{-10}100 | 100 | 100100 | 100 | 10096 | 100 | 10090 | 100 | 10083 | 100 | 100
1/k1/k10−410^{-4}100 | 100 | 10099 | 100 | 10096 | 100 | 10091 | 100 | 10075 | 100 | 100
10−610^{-6}100 | 100 | 10099 | 100 | 10096 | 100 | 10086 | 100 | 10073 | 100 | 100
10−810^{-8}100 | 100 | 10099 | 100 | 10096 | 100 | 10086 | 100 | 10073 | 100 | 100
10−1010^{-10}100 | 100 | 10099 | 100 | 10096 | 100 | 10086 | 100 | 10073 | 100 | 100
Adamflat10−410^{-4}100 | 100 | 10095 | 100 | 10083 | 100 | 10066 | 100 | 10054 | 100 | 100
10−610^{-6}100 | 100 | 10095 | 100 | 10083 | 100 | 10066 | 100 | 10053 | 100 | 100
10−810^{-8}98 | 100 | 10095 | 100 | 10083 | 98 | 10066 | 94 | 10047 | 93 | 100
10−1010^{-10}77 | 54 | 7876 | 43 | 6961 | 37 | 7045 | 18 | 4522 | 7 | 37
1/k1/k10−410^{-4}94 | 100 | 10088 | 100 | 10065 | 100 | 10032 | 100 | 10012 | 98 | 96
10−610^{-6}94 | 100 | 10088 | 100 | 10062 | 100 | 10023 | 100 | 1009 | 97 | 93
10−810^{-8}94 | 100 | 10086 | 100 | 10062 | 99 | 10019 | 97 | 935 | 92 | 90
10−1010^{-10}79 | 61 | 7770 | 47 | 7045 | 44 | 626 | 24 | 113 | 14 | 45

Table 13.

Gradient descent

Within the budget, gradient descent converges less often for the serial circuit than for the ancilla circuit, and the gap grows with EE (Figure 2, left): on flat targets the serial circuit converges in 65 of 100 runs at E=16E=16 and in 3 at E=32E=32, the ancilla circuit in 99 and 99. On 1/k1/k targets every circuit is slower, and at E≥24E\ge24 gradient descent converges in at most 16 of 100 runs of any circuit (Figure 7 in Appendix § 14). The difference is significant in nine of the ten configurations (Table 12). The parallel circuit, at half the chain length, stays within five runs of the ancilla circuit in every configuration (Table 13).

Figure 7. Share of converged runs (final loss ≤10−6\le10^{-6}) against the encoding budget EE, for 1/k1/k targets and the three optimisers. Bars: 95% Wilson intervals; 100 runs per point.

These counts are relative to the budget (Table 14). The serial circuit is slower throughout, and its counts were still rising when the budget ended: at E=24E=24 on flat targets, 18 of the 24 runs that converge do so after step 27,000. Whether the serial runs that are left would converge with more steps or are stuck, these counts cannot tell. Levenberg–Marquardt, started from the same points, converges in most of them (§ 5.3).

Table 14. Gradient descent on the exact loss: runs out of 100 with loss ≤10−6\le10^{-6} after 7,500, 14,500, 27,000 and all 50,000 steps. These are four of the checkpoints at which the loss was recorded (Appendix § 10), each about twice the one before.

targetsEEserial 7,500serial 14,500serial 27,000serial 50,000ancilla 7,500ancilla 14,500ancilla 27,000ancilla 50,000
flat874869093100100100100
1251748085100100100100
161634556597100100100
240362451929899
3200031469499
1/k1/k8264052719497100100
1215133246789299
1600055185377
24000000516
3200000000

Table 14.

Conditioning and Levenberg–Marquardt

Along gradient descent the loss falls after the Jacobian has become better conditioned, and in the serial circuit this happens less often. We measure conditioning by κJ=σ2E+1/σ1\kappa_J=\sigma_{2E+1}/\sigma_1, the smallest singular value of the Jacobian of the grid values Jdata\mathbf{J}_{\mathrm{data}} relative to the largest, which is that of JJ up to a factor 2\sqrt{2} (Lemma 3.2): on a squared loss, gradient descent makes progress at a rate that is bounded below by the smallest singular value [21 Theorem 1] (Appendix § 10 gives the inequality for our loss), and the largest sets the scale of the step. Equivalently, κJ\kappa_J is the ratio of the smallest to the largest eigenvalue of the tangent kernel JdataJdataT\mathbf{J}_{\mathrm{data}}\mathbf{J}_{\mathrm{data}}^{\mathsf{T}} on the grid, the matrix whose conditioning that theorem uses. worse conditioned than the two-qubit circuits at every EE (Figure 5a in Appendix § 14), but this does not account for the difference in convergence: configurations of different circuits with matched initial κJ\kappa_J still differ, and within a configuration the initial κJ\kappa_J does not predict which runs converge (Appendix § 14). What differs is the course of training. In nearly every run in which the order can be observed, κJ\kappa_J rises above 10−410^{-4} before the loss falls to 10−410^{-4}, and κJ\kappa_J never rises above this level in 465 of the 1,000 serial runs, against 127 of the ancilla runs (Figure 5b, Table 2). This is a description and not a mechanism: the solutions found are well conditioned, so that part of the order is automatic. It suggests a test, however. If poor conditioning is what holds gradient descent back, a method that it does not slow down should remove the difference.

Figure 5. (a) Median log⁡10κJ\log_{10} \kappa_J at initialisation against EE, flat targets; the dotted line marks double precision. (b) Median log⁡10κJ\log_{10} \kappa_J (solid) and median log⁡10\log_{10} loss (dashed) along gradient descent, flat targets, E=16E = 16.

thresholdcircuitabove at startκJ\kappa_J firstsame intervalloss firstnever aboveabove laternever above
10−210^{-2}serial41891753351593
ancilla1243233010382176
parallel844730514360190
10−310^{-3}serial36330380250544
ancilla142588900221157
parallel102631750215175
10−410^{-4}serial76322701130464
ancilla27154470051127
parallel212586120047143

Table 2. Gradient descent on the exact loss: order of the events “κJ\kappa_J exceeds the threshold” (seen at checkpoints) and “loss ≤10−4\le10^{-4}” (seen at every step); numbers of runs, pooled over target families and EE (1,000 runs per circuit). Categories as defined in the text.

Levenberg–Marquardt removes most of the difference between the circuits, but not all of it (Figure 2, middle; Figure 7 for 1/k1/k targets). It uses the same Jacobian as gradient descent but rescales its singular directions, so that poor conditioning alone does not slow it down. Started from the same points, it converges in all 2,000 runs of the two-qubit circuits and in 923 of the 1,000 serial runs: in 377 of the 378 in which gradient descent converges, and in 546 of the 622 in which it does not. For most serial runs that fail under gradient descent, the starting point therefore does not preclude convergence. For the parallel circuit, which Lemma 3.3 does not cover, the result has a second use: all of its runs end below a loss of 10−1010^{-10}, so that it, too, represents every target used here to that accuracy.

A difference remains at large EE: at E≥24E \ge24 the serial circuit converges in 73 to 90 of 100 runs and the ancilla circuit in all, and the difference is significant in these four configurations. At E≤16E \le16 at most four of 100 serial runs fail, and the difference is not significant (Table 12).

Most of the 77 serial runs that do not converge end where the Jacobian has lost rank, as far as the computation resolves it. This is the only kind of point at which a run can come to rest above the optimum: at a stationary point where JJ has full row rank, the model is a least-squares fit of the target (Lemma B.3 in Appendix § 11), and here that fit is the target itself. Lemma 3.3 makes points without full row rank non-generic, but it does not keep optimisation away from them. In the serial circuit there is no margin against this: JJ has full row rank only where the circuit has all 2E+22E+2 tangent directions (proof of Corollary 4.5(ii)), so that the loss of any tangent direction costs a Fourier direction. In 53 of the 77 runs JJ has singular values below 10−8σ110^{-8}\sigma_1 at the end point, and at least 99% of the squared residual lies in the corresponding directions (Table 4); at the 623 converged end points with the same configurations no singular value is below 10−3.7σ110^{-3.7}\sigma_1. The other 24 runs do not end at a point of this form, and Levenberg–Marquardt hardly moves along directions with singular values this small, so that exact rank loss cannot be told from near loss (Appendix § 10).

Table 4. Serial Levenberg–Marquardt runs with final loss above 10−610^{-6} (the two-qubit circuits have none). Stalled: the loss fell by less than 1% over the last quarter of the iterations. Middle block: runs with at least one and with exactly two singular values σi≤10−8σ1\sigma_i \le10^{-8}\sigma_1 at the end point, and runs in which the corresponding left-singular directions carry at least 0.99 of the squared residual. Then medians of the log⁡10\log_{10} relative gradient at the failed end points and of log⁡10σmin⁡/σ1\log_{10}\sigma_{\min}/\sigma_1 at the failed end points, the converged end points and the initial points of the configuration. ninitn_{\mathrm{init}}: median number of singular values ≤10−8σ1\le10^{-8}\sigma_1 at the initial points.

targetsEEfailedstalledanytwoshare ≥0.99\ge0.99log⁡10\log_{10} gradientninitn_{\mathrm{init}}
flat1644333−6.0−9.4−1.5−11.62
flat241010999−7.4−11.2−1.8−16.28
flat321717151415−6.8−10.9−2.0−17.016
1/k1/k1211111−10.9−13.0−1.9−7.90.5
1/k1/k1644333−8.6−10.7−2.2−10.82
1/k1/k241413999−5.7−9.2−2.6−16.28
1/k1/k322724161413−5.2−8.4−2.7−17.016
all7773565353

Table 4.

Adam

The difference persists under Adam, the optimiser of § 6, and it is clearest where gradient descent could not show it (Figure 2, right; Figure 7 for 1/k1/k targets). On 1/k1/k targets at E=24E=24 and 32, where gradient descent converges in at most 16 of 100 runs of any circuit, Adam brings the ancilla circuit to convergence in 100 and 97 runs and the parallel circuit in 100 and 93, but the serial circuit in 23 and 9. Elsewhere, too, the serial circuit falls behind as EE grows, while the ancilla circuit converges in every run of nine configurations. The difference is significant in nine of ten; in the tenth, E=8E=8 on flat targets, every run of every circuit converges (Table 12). For the serial circuit the counts of Adam lie between those of the other two optimisers in every configuration: above gradient descent, and at most at the level of Levenberg–Marquardt. Most failures are not failures of the starting point: of the 327 serial runs in which Adam does not converge, Levenberg–Marquardt converges in 275 from the same initial gates, and Adam converges in 25 of the 77 in which Levenberg–Marquardt does not. The learning rate does not account for the difference: neither extending the grid of rates downwards nor one common rate for all circuits changes which differences are significant (Appendix D, Table 15). Nor do the unequal parameter counts: with the counts matched, in the setup of Section 6, the serial circuit reaches the least-squares optimum on flat targets less often at every EE, in 36 of 100 runs at E=32E = 32, and the control in every run (Appendix D, Figure 6).

Training on data

Setup. We now train on data as in practice. Every task has 200 training and 100 test points on [−π,π)[-\pi,\pi). The optimiser is full-batch Adam, the one in common use, with a cosine schedule and a learning rate tuned per circuit and configuration on separate targets. Parameter counts are matched across architectures (serial circuits with five SU(2) gates per block, ancilla circuits with one SU(4) gate per block, both with 15 parameters per block; parallel circuits with two SU(4) gates per block at half the chain length): the argument of Section 5 on the number of gates per block covers gradient descent only. The match equalises the number of optimiser coordinates, not of independent directions: the five gates of a serial block span only the three directions of su(2)\mathfrak{su}(2) (Proposition 4.4), and no single-qubit circuit matches the two-qubit circuits in the latter. As a reference, the same initial gates are also trained with Levenberg–Marquardt, in every configuration (Table 8). Two checks of the protocol, a wider grid of learning rates and a fourfold step budget on a subset, leave the serial circuit behind the control in every configuration tested (Appendix D, Tables 10 and 11).

Targets. There are two kinds. Poisson-kernel targets are sums of three Poisson kernels: smooth functions with Fourier coefficients at every frequency, which no circuit of degree EE represents. The second kind are three real-world time series, described below. The flat targets of Section 5 are trained in the same setup in Appendix D, where they repeat the comparison of Section 5.3 at matched parameter counts.

Measures. On these targets no circuit of degree EE reaches a training loss of zero, and the lowest loss it can reach differs from target to target. We therefore measure optimisation by the excess training loss over the least-squares fit of degree EE, which the serial and ancilla model classes contain (Appendix A), relative to the variance of the training values. A run reaches the optimum if this excess is at most 10−610^{-6}, the criterion of Section 5. Prediction is measured by the held-out error 1−R21 - R^2 on the test points. Part of this error is common to all circuits of degree EE; besides its value we therefore report the ratio serial over ancilla on the same target.

Poisson-kernel targets. The serial circuit reaches the optimum less often than the ancilla control at every EE, and the difference is significant in each case (Figure 3a; Table 5 in Appendix D): the serial circuit falls from 77 of 100 runs at E=8E = 8 to 1 at E=32E = 32, the control from 100 to 24. The parallel circuit, at half the chain length, stays within four runs of the control except at E=24E = 24, where it reaches the optimum in 37 runs against 62. The shortfall reaches the test points (Figure 3b): from E=16E = 16 on, the held-out error of the serial circuit exceeds that of the control on the same target by a median factor between 1.3 and 1.6. Levenberg–Marquardt narrows the difference in training without removing it: from the same initial gates it brings both two-qubit circuits to the optimum in every run and the serial circuit in 94, 79 and 72 runs at E=16E = 16, 24 and 32, a significant difference at each (Table 8).

Real-world data. Circuits were run on three real-world time series, and all three are reported. The first was the monthly temperatures at Nottingham (nottem) ([2]). On it the serial circuit rarely reaches the optimum, but its held-out error is within 1% of that of the control (Figure 4). How much a shortfall from the training optimum costs on the test points depends on how well that optimum predicts, and on whether what the serial circuit misses carries predictive value. For the temperatures the least-squares fit of degree 32 explains 87% of the held-out variance, less than the fit of degree 24. We therefore chose two further series by a screen, fixed before any circuit was run on them (Appendix A, Table 9): from the 25 distinct univariate series of at least 240 values in Rdatasets ([3]), those whose least-squares fit is still improves on held-out points up to degree 32 and explains at least 95% of the held-out variance, a threshold set with the temperatures in view. Two series pass, weekly US gasoline prices (gasprice) and daily IBM closing prices (ibmclose); the temperatures do not. The task is to fit each series on random points of its window, not to forecast it.

On all three the serial circuit rarely reaches the optimum within the budget, in at most 9 of 100 runs, while the ancilla and the parallel circuit reach it in at least 96 (Figure 4a, Table 6). The size of this difference depends on the budget, its sign does not: with four times as many steps the serial circuit stays behind the control in all seven configurations tested, but on ibmclose it then reaches the optimum in 18 of 30 runs instead of none (Table 11). Levenberg–Marquardt from the same initial gates narrows the difference without closing it: the serial circuit reaches the optimum in 32 to 93 of 100 runs, both two-qubit circuits in all, and the difference is significant in all six configurations (Table 8). On the test points (Figure 4b) the cost ranges from a factor of 1.49 in held-out error on gasprice at E=32E = 32, where all 100 serial runs are worse than the control, to none on the temperatures (Table 6). It is not one-sided: on ibmclose and on the temperatures at E=32E = 32, 30 and 61 of 100 serial runs have a lower held-out error than the control, which is consistent with stopping short of the optimum acting as regularisation. Under Levenberg–Marquardt the typical run of the serial circuit predicts as well as the control: the median ratio of the held-out errors is between 1.00 and 1.01 on every series and on every Poisson-kernel configuration (open diamonds in Figure 3b and Figure 4b). The cost remains in the runs that stop short of the optimum: on gasprice and ibmclose, 7 to 42 of 100 serial runs are more than 5% worse than the paired control run, and on Poisson-kernel targets at E≥24E \ge24 about one in five (Table 7). Counted in restarts, one run of the serial circuit at the optimum takes on average 1.1 to 3.1 runs under Levenberg–Marquardt and 11 to 100 under Adam, where in three of the six configurations none of 100 runs reaches it; the control needs about one.

Poisson-kernel target results: panels (a) Runs at the optimum and (b) Held-out error $1-R^2$; legends Serial, Ancilla, Parallel (2 qubits), Levenberg–Marquardt; encoding budget $E$ values 8, 12, 16, 24, 32

Figure 3. Poisson-kernel targets, Adam at matched parameter counts. (a) Share of runs that reach the least-squares optimum; open diamonds: Levenberg–Marquardt on the same runs of the serial circuit (both two-qubit circuits reach the optimum in every run under it). Bars: 95% Wilson intervals; 100 runs per point. (b) Held-out error 1−R21-R^2: median over runs, bars from the lower to the upper quartile; open diamonds: median of the serial circuit under Levenberg–Marquardt.

Figure 4. Real-world series, Adam at matched parameter counts; panels as in Figure 3, 100 runs per point.

Table 6. Real-world series, full-batch Adam, 100 initialisations per architecture on the same data. Runs at the optimum as in Table 5. Held-out error ratio paired by run index; last column: share of serial runs with higher held-out error than the paired ancilla run.

seriesEEserialancillapar. 2serialancillaserial/ancilla [10%, 90%]worse
gasprice240.041.001.000.95690.95911.05 [1.00, 1.15]0.92
gasprice320.000.980.960.96820.97861.49 [1.30, 1.83]1.00
ibmcl ose240.011.001.000.96070.96411.09 [1.04, 1.14]0.97
ibmcl ose320.001.001.000.96290.96381.03 [0.97, 1.09]0.70
nottem240.091.001.000.89950.90041.01 [0.97, 1.02]0.71
nottem320.001.001.000.88790.88730.99 [0.96, 1.03]0.39

Table 6.

Table 7. Held-out error of the serial circuit relative to the control under Adam and under Levenberg–Marquardt (same data and initial gates): share of serial runs at the optimum; ratio of the held-out errors (1−R2)(1 - R^2), serial over ancilla, paired by run index (for the real series the data are the same and the pairing is arbitrary), median and 10% and 90% quantiles; share of serial runs more than 5% worse than the paired control run. 100 runs per cell.

targetEEAdam at optimumAdam error ratio [10%, 90%]Adam > 5% worseLevenberg–Marquardt at optimumLevenberg–Marquardt error ratio [10%, 90%]Levenberg–Marquardt > 5% worse
Poisson kernel80.771.00 [1.00, 1.19]0.170.991.00 [1.00, 1.00]0.01
Poisson kernel120.421.01 [1.00, 1.91]0.430.971.00 [1.00, 1.00]0.03
Poisson kernel160.171.29 [1.00, 2.33]0.710.941.00 [1.00, 1.00]0.06
Poisson kernel240.031.57 [1.02, 3.70]0.830.791.00 [1.00, 1.30]0.19
Poisson kernel320.011.61 [1.01, 3.48]0.830.721.00 [1.00, 1.16]0.18
gasprice240.041.05 [1.00, 1.15]0.550.581.00 [1.00, 1.12]0.42
gasprice320.001.49 [1.30, 1.83]1.000.701.00 [1.00, 1.38]0.22
ibmclose240.011.09 [1.04, 1.14]0.850.931.00 [1.00, 1.00]0.07
ibmclose320.001.03 [0.97, 1.09]0.360.671.00 [1.00, 1.11]0.33
nottem240.091.01 [0.97, 1.02]0.000.321.01 [0.97, 1.02]0.00
nottem320.000.99 [0.96, 1.03]0.030.591.00 [1.00, 1.01]0.00

Table 7.

Discussion and conclusion

The serial circuit and the ancilla control represent the same functions, both without a structural loss of Fourier directions, yet within the budgets we used first-order methods reach the optimum of the serial circuit less often, by a margin that grows with EE; Levenberg–Marquardt narrows it without closing it at large EE or on the real-world series. What separates the circuits structurally is proved: tangent vectors with one complex component at each input against three, and with it 2E+22E + 2 tangent directions, none of them spare, against at least 6E+66E + 6. What separates them in training is measured. The conditioning of JJ at initialisation does not explain it, and a failed run is not the mark of a bad starting point: most serial runs that fail under gradient descent or Adam converge under Levenberg–Marquardt from the same initial gates. Along gradient descent the loss falls after κJ\kappa_J has recovered in nearly every run in which the order can be observed, and in the serial circuit κJ\kappa_J recovers less often (§ 5.3). We do not show that phase-locking causes the training cost; since it is a property of the two-dimensional state space, its effect cannot be separated from that of the dimension of the state space.

Limitations

All results are for one-dimensional inputs. With two inputs a single qubit no longer represents every trigonometric polynomial of its spectrum (for E≥2E \ge2 its 3(2E+1)3(2E+1) gate parameters fall short of the (2E+1)2(2E+1)^2 coefficients), although it approximates every continuous function as the number of encoding gates grows (Pérez-Salinas et al., [32]); expressivity and training would have to be separated anew. Results are for Haar-random initial gates and noise-free statevector simulation in double precision, which from E=24E = 24 on no longer resolves the initial conditioning of the serial circuit. Convergence is measured within fixed step budgets and one learning-rate schedule: under gradient descent the serial counts were still rising when the budget ended, and a fourfold budget, tested on a subset, changed the size of the deficit but not its sign. Normalised gradient descent (Suzuki et al., [38]) and optimisers driven by SPSA gradient estimates (Wiedmann et al., [43]) were not tested; Adam, normalised coordinate by coordinate, is the closest of our three. Levenberg–Marquardt was run on exact expectation values; under shot noise its linear solve may need stronger damping, which we did not test. Budgets are counted in steps, not in cost: a general two-qubit gate is costlier to implement, and gate noise, which we do not model, would likely affect the two-qubit circuits more. Whether the shortfall in training costs held-out accuracy depends on the target: two of the three real-world series were selected for needing frequencies up to 32, and on the third, chosen before the screen, there is no cost; a target that a low degree fits as well needs only a low encoding budget, at which the difference is smaller. All targets use the full band of the model; encoding budgets above the degree of the target and hardware-native parameterisations of the gates were not studied. The tangent count is proved for the three circuits we compare only, and for the ancilla circuit as a lower bound, which our numerical checks find attained (Table 3).

Conclusion. For one-dimensional inputs, width can be exchanged for depth without losing expressivity, but not without cost in first-order training: the serial circuit, whose parameters share one complex direction at each input, has no tangent direction to spare, and first-order optimisers find its optimum less reliably than that of a two-qubit circuit representing exactly the same functions. In practice the cost matters most under the first-order optimisers in common use, where it reaches the held-out error. A second qubit avoids it, at the price of two-qubit gates; Levenberg–Marquardt, at the price of a linear solve per step, removes it from the typical run but not from every run. Whether the additional directions of the two-qubit circuits are what lets their conditioning recover along the path remains open: the structure we prove is a candidate explanation, not a demonstrated one.

Acknowledgments

This work has been supported by the LMU Sustainability Fund (EfOiE), the BMFTR (QuCUN, QuaRDS, CAQAO), the Munich Quantum Valley (K5, K7), and the Bavarian StMWi (6GQT). The sole responsibility for the report’s contents lies with the authors.

Overview of the appendices and the code

Appendix A gives the experimental protocol, Appendix B the proofs, Appendix C the Lean formalisation and Appendix D further results; Table 1 collects the notation. The repository https://github.com/mpoppel/PhaseLocking contains the simulation code, the result files behind every figure and table, the scripts that regenerate them, and a Lean 4/Mathlib formalisation of the lemmas, propositions, remarks and corollaries of Sections 3 and 4 and Appendix B; results cited from the literature enter there as explicit hypotheses (Appendix C).

NN, LLnumber of qubits; number of encoding layers
EEencoding budget, the number of encoding gates (NLNL if all qubits are encoded; LL for the ancilla circuit)
θ\theta, PPLie-algebra coordinates of all gates; their number
S(x)S(x)encoding layer, RX(x)R_X(x) on the encoded qubits
W(ℓ)W(\ell)block of trainable gates, ℓ=0,…,L\ell= 0,\ldots,L
MMobservable, ZZ on the last qubit
JJcoefficient Jacobian ∂c~/∂θ\partial\widetilde{c}/\partial\theta
κJ\kappa_Jσ2E+1/σ1\sigma_{2^{E+1}}/\sigma_1 of JdataJ_{\mathrm{data}} on the grid of § 5
μ(x)\mu(x)serial envelope ⟨ψ⊥∣M∣ψ⟩\langle\psi^\perp\lvert M\lvert\psi\rangle

Table 1. Notation of the paper.

Experimental details

Code. The repository contains the library phaselock_core.py (circuits, targets, optimisers, statistics); two notebooks that run the experiments and write their results to CSV files, nb1_geometry for the exact loss (§ 5: the three optimisers, conditioning along gradient descent, end points of Levenberg–Marquardt) and nb2_practice for the data (§ 6: learning-rate tuning, evaluation, Levenberg–Marquardt on the same runs, and the checks of learning rate and step budget); the script screen_realdata.py for the screen of real-world series; and the result files themselves. The notebook figures and the scripts tables_exact.py and tables_data.py make all figures and tables from the result files alone; they run no circuit. Simulation is exact statevector simulation in float64 with JAX ([7]), version 0.6.2, on the CPU of a laptop (Apple MacBook Pro, M2, 16 GB memory).

Architectures. All circuits have the form W(L)S(x)W(L−1)⋯S(x)W(0)∣0⟩W^{(L)}S(x)W^{(L-1)}\cdots S(x)W^{(0)}\lvert0\rangle with S(x)=⨂wRX(x)ewS(x)=\bigotimes_w R_X(x)^{e_w}, ew∈{0,1}e_w\in\{0,1\}, and readout ZZ; on two qubits, numbered 0 and 1, the readout is on qubit 1. Serial: N=1N=1, L=EL=E. Ancilla: N=2N=2, encoding on qubit 0 only (e=(1,0)e=(1,0)), L=EL=E. Parallel: N=2N=2, encoding on both qubits, L=E/2L=E/2. Each block is a product of one or more general SU(2N)\mathrm{SU}(2^N) gates. At initialisation every gate is drawn independently from the Haar measure, the uniform distribution on SU(2N)\mathrm{SU}(2^N), by the QR method of Mezzadri [24] followed by division by a 2N2^N-th root of the determinant.

Parameterisation. Each trainable gate is stored as a matrix G∈SU(2N)G\in\mathrm{SU}(2^N), not as a product of rotations with angles, and can be compiled into native gates after training (three rotations for SU(2)\mathrm{SU}(2); at most three CNOT gates and single-qubit rotations for SU(4)\mathrm{SU}(4)) ([40]). Its coordinates are those of § 3: the derivative along Gexp⁡(iθ⋅P)G\exp(i\theta\cdot P), with PP the 4N−14^N-1 non-identity Pauli words, is computed at θ=0\theta=0 by automatic differentiation, and an update multiplies the gate by exp⁡(iθ⋅P)\exp(i\theta\cdot P), evaluated by eigendecomposition of the Hermitian generator. Gradient descent in these coordinates is Riemannian steepest descent on SU(2N)\mathrm{SU}(2^N) with its bi-invariant metric ([1, 45]). On hardware, the gradient in these coordinates can be estimated with the parameter-shift rule, since every Pauli word has eigenvalues ±1\pm1 ([45]); the gate is updated classically and compiled again after each step. The choice does not change what a circuit can represent: angles that cover SU(2N)\mathrm{SU}(2^N) and these coordinates reach the same gates, and where such angles are regular they span the same tangent directions, so that the counts of § 4 hold for them as well. The two differ where angles are singular, as Euler angles are where two of them act alike: there a direction is lost, and nearby directions are distorted. Our coordinates offer every direction at every gate at the same scale, so that a difference between circuits cannot stem from such points. Optimiser trajectories do depend on the coordinates, and training with angles was not studied.

Exact loss (§ 5). The loss is L=∥f−f∗∥L2(S1)2/Var⁡S1(f∗)\mathcal{L} = \lVert f - f^* \rVert_{L^2(S^1)}^2 / \operatorname{Var}_{S^1}(f^*), evaluated on the 2E+12E + 1 equispaced points of [−π,π)[-\pi,\pi); since (f−f∗)2(f-f^*)^2 has degree ≤2E\le2E, this grid average equals the integral over the circle exactly. Targets: flat (c0,ak,bk∼N(0,1))(c_0,a_k,b_k \sim\mathcal{N}(0,1)) and 1/k1/k (ak,bk∼N(0,1)/k)(a_k,b_k \sim\mathcal{N}(0,1)/k) random real trigonometric polynomials of degree EE, shifted and scaled so that sup⁡∣f∗∣=0.9\sup|f^*| = 0.9 on a grid of 8192 points; they lie strictly inside the serial and ancilla model classes. E∈{8,12,16,24,32}E \in\{8,12,16,24,32\}; 100 runs per circuit and configuration, each with its own target and initialisation; the targets are the same for the three circuits.

Optimisers (exact loss). Gradient descent: Riemannian steepest descent (Absil et al., [1], Ch. 4) with Armijo backtracking (Armijo, [4]) (constant 10−410^{-4}; the first trial step doubles the previous accepted step; halving on rejection; initial step 1/λmax⁡1/\lambda_{\max} of the Gauss–Newton matrix at initialisation); budget 50,000 steps. Levenberg–Marquardt (Levenberg, [20]; Marquardt, [22]): steps −Vdiag⁡(si/(si2+λs12))UTr-V \operatorname{diag}(s_i/(s_i^2+\lambda s_1^2))U^\mathsf{T}r from the singular value decomposition Jdata=Udiag⁡(s)VTJ_{\mathrm{data}} = U\operatorname{diag}(s)V^\mathsf{T}, λ\lambda multiplied by 0.3 on acceptance and by 5 on rejection (initial value 10−310^{-3}, clipped to [10−15,108][10^{-15},10^8]), 2,000 iterations. Adam (Kingma & Ba, [15]): β1=0.9\beta_1 = 0.9, β2=0.999\beta_2 = 0.999, ϵ=10−12\epsilon= 10^{-12}, cosine schedule from the peak rate to 1/100 of it, budget 50,000 steps; peak rate from {10−3,3⋅10−3,10−2,3⋅10−2,10−1}\{10^{-3},3\cdot10^{-3},10^{-2},3\cdot10^{-2},10^{-1}\}, selected on 5 separate targets by the tuning score, the 75th percentile of the final log⁡10\log_{10} loss: the selected rate is the centre of the near-best rates, those whose score is within 0.25 of the best. Gradient descent and Levenberg–Marquardt stop updating a run once its loss is below 10−1410^{-14}. Adam always runs the full schedule, and every run is scored at its end, in tuning and in evaluation.

Reported quantities (exact loss). Convergence: a run converges if its final loss is at most 10−610^{-6}. We report the share of converged runs per circuit with a 95% Wilson interval (Wilson, [46]), and the difference of two shares with Newcombe’s hybrid score interval (Newcombe, [28]); a difference is significant if this interval excludes zero. Table 13 gives the counts at 10−410^{-4}, 10−610^{-6}, 10−810^{-8} and 10−1010^{-10}. Budget: for gradient descent, whose loss decreases monotonically under the line search, the number of runs with loss ≤10−6\le10^{-6} after 7,500, 14,500, 27,000 and 50,000 steps (Table 14).

Conditioning: for the loss of § 5, with n=2E+1n = 2E + 1 grid points, residual r\mathbf{r} and V=Var⁡(f∗)V = \operatorname{Var}(f^*), ∇L=2nVJdataTr\nabla\mathcal{L} = \frac{2}{nV}J_{\mathrm{data}}^\mathsf{T}\mathbf{r} and ∥r∥2=nVL\lVert\mathbf{r}\rVert^2 = nV\mathcal{L}, so that ∥∇L∥2≥4nVσmin⁡(Jdata)2L≥4Vσ2E+1(J)2L\lVert\nabla\mathcal{L}\rVert^2 \ge\frac{4}{nV}\sigma_{\min}(\mathbf{J}_{\mathrm{data}})^2\mathcal{L} \ge\frac{4}{V}\sigma_{2E+1}(\mathbf{J})^2\mathcal{L} by Lemma 3.2; this is the inequality of Liu et al. [21] for our loss, and under gradient flow it bounds the rate of decrease of the loss from below. We record κJ\kappa_J at initialisation and at 14 checkpoints along gradient descent, spaced geometrically from step 500 to step 50,000, and the loss at every step. Computed singular values carry absolute errors of order ϵσ1\epsilon\sigma_1, ϵ≈1.1×10−16\epsilon\approx1.1\times10^{-16} (Golub & Van Loan, [13], Sec. 8.6), so that values of κJ\kappa_J below about 101510^{15} are not resolved.

End points of Levenberg–Marquardt (Table 4): for every configuration with a run above 10−610^{-6} (seven, all serial; no Levenberg–Marquardt runs ends between 10−1010^{-10} and 10−610^{-6}), at the end point and at the initial point of each of its 100 runs, the singular values σi\sigma_i of JJ; at the end point also the relative gradient ∥JdataTr∥/(σ1∥r∥)\lVert J_{\mathrm{data}}^\mathsf{T}\mathbf{r}\rVert/(\sigma_1\lVert\mathbf{r}\rVert) and the share of ∥r∥2\lVert\mathbf{r}\rVert^2 in the left-singular directions with σi≤10−8σ1\sigma_i \le10^{-8}\sigma_1. A run has stalled if its loss fell by less than 1% over the last quarter of the iterations. The tolerance 10−810^{-8} is that of the optimiser: with λ≥10−15\lambda\ge10^{-15} the step along a direction with σi≤10−8σ1\sigma_i \le10^{-8}\sigma_1 is at most 0.09 of the Gauss–Newton step, so that exact rank loss cannot be told from near rank loss.

Adam. Converged runs of Adam end not at machine precision but at a level that depends on the learning rate (Appendix § 14). The threshold 10−810^{-8}, which we had fixed before the runs, touches the upper end of these levels for the two-qubit circuits; we therefore report 10−610^{-6}. Two checks of the learning rate apply to every circuit alike (Table 15). Bracketing: if the near-best rates include the smallest rate of the grid, the rates 3⋅10−43\cdot10^{-4} and 10−410^{-4} are added (if they include the largest, 0.3), the rate is selected again on the same tuning targets, and if it changes, the 100 runs are repeated with the new rate. Common rate: all configurations at the rate 10−310^{-3}.

targetsEEtuned rate (10−310^{-3})tuned runsbracketed rate (10−310^{-3})bracketed runscommon runs
flat83 | 1 | 1100 | 100 | 1003 | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}100 | 100 | 10099 | 100 | 100
121 | 1 | 195 | 100 | 1000.1†0.1^{\dagger} | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}82 | 100 | 10095 | 100 | 100
161 | 1 | 183 | 100 | 1000.3 | 0.3 | 0.1†0.1^{\dagger}81 | 100 | 10083 | 100 | 100
241 | 1 | 166 | 100 | 1000.3 | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}66 | 100 | 10066 | 100 | 100
323 | 1 | 153 | 100 | 1003 | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}53 | 100 | 10051 | 100 | 100
1/k1/k81 | 1 | 194 | 100 | 1001 | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}94 | 100 | 10094 | 100 | 100
121 | 1 | 188 | 100 | 1000.3 | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}86 | 100 | 10088 | 100 | 100
161 | 1 | 162 | 100 | 1001 | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}62 | 100 | 10062 | 100 | 100
2410 | 1 | 323 | 100 | 10010†10^{\dagger} | 0.1†0.1^{\dagger} | 323 | 100 | 10029 | 100 | 100
3210 | 1 | 19 | 97 | 9310†10^{\dagger} | 0.1†0.1^{\dagger} | 0.1†0.1^{\dagger}9 | 96 | 803 | 97 | 93

Table 15. Adam on the exact loss, serial | ancilla | parallel: peak learning rate and runs out of 100 with final loss <10−6< 10^{-6} under the tuned rate (main text), under the rate selected after the extension of the grid (†\dagger: near-best rates still include an end of the extended grid), and under the common rate 10−310^{-3}.

Training on data (§ 6). 300 equispaced points of [−π,π)[-\pi,\pi) with one fixed random 200/100 train/test split. Targets: flat as above (sup⁡∣f∗∣=0.9\sup|f^*| = 0.9; reported in Appendix § 14) and Poisson-kernel, a sum of three Poisson kernels with random centres, signs and weights and Fourier coefficients decaying as r∣k∣r^{|k|} with rE=0.05r^E = 0.05 (sup⁡∣f∗∣=0.8\sup|f^*| = 0.8), which is not representable at degree EE; E∈{8,12,16,24,32}E \in\{8,12,16,24,32\}. Real data: monthly mean air temperatures at Nottingham, 1920–1939 (the nottem data set distributed with R; series R of Anderson, [2]), the whole series of 240 values mapped to [−π,π)[-\pi,\pi), one fixed random 180/60 split, centred on the training mean and scaled so that the degree-EE least-squares fit has sup⁡=0.9\sup= 0.9; E∈{24,32}E \in\{24,32\}. Screened series (gasprice, weekly US gasoline prices from 1990 to 2003, from the R package quantreg (Koenker, [17]); ibmclose, daily IBM closing prices, Series B of Box & Jenkins [6]), taken from the R package timeSeriesDataSets (Caceres Rossi, [8]): the last 300 values with an affine trend removed, mapped to [−π,π)[-\pi,\pi), one fixed random 200/100 split, centred and scaled as for the temperatures; E∈{24,32}E \in\{24,32\}; learning-rate grid extended downwards by 3⋅10−43 \cdot10^{-4}. Circuits at matched parameter counts: serial with five gates per block (15 parameters per block), ancilla with one (15), parallel with two (30, at half the chain length). Full-batch Adam as above with 20,000 steps, peak rate tuned per circuit and configuration on 5 separate targets (for the real-world series: 5 separate initialisations) by the 75th percentile of the log⁡10\log_{10} excess training loss, with the selection rule of the exact loss; 100 runs per circuit and configuration (real-world series: 100 initialisations). Levenberg–Marquardt as on the exact loss (2,000 iterations), from the same data and initial gates, in every configuration.

Screening of real-world series. The screen (screen_realdata.py in the repository) was fixed before any circuit was run on a new series. Candidates: every univariate, regularly sampled time series in Rdatasets ([3]) with at least 240 values. At the commit of the archive that we cite (3,648 data sets) these are 30 series; three have a window identical to that of another candidate and two have missing values in the window, which leaves 25. For each, the last min⁡(n,300)\min(n, 300) values, affine trend removed, scaled to max⁡∣y∣=0.8\max|y| = 0.8, on the grid xk=−π+2πk/nx_k = -\pi+ 2\pi k/n; least-squares fits of degree E∈{4,8,12,16,24,32}E \in\{4, 8, 12, 16, 24, 32\} on a random two thirds of the points, held-out R2R^2 on the rest, median over five splits. A series passes if R322−R162≥0.02R^2_{32} - R^2_{16} \ge0.02, R322≥R242−0.005R^2_{32} \ge R^2_{24} - 0.005, R322≥0.95R^2_{32} \ge0.95, and the degree-32 fit has supremum at most 1, so that it lies in the serial and ancilla model classes; circuits are run on every passing series (at most three, by the gain R322−R162R^2_{32} - R^2_{16}). The threshold 0.95 was set after seeing the temperature series, which was part of the design before the screen; no other series influenced the criteria. Table 9 lists all screened series. Three series have R322≥0.95R^2_{32} \ge0.95: the two that pass and boot/wool, which fails on the gain (0.017). The temperatures fail on two criteria (R322=0.868R^2_{32} = 0.868, below 0.95 and below R242−0.005=0.876R^2_{24} - 0.005 = 0.876).

series (Rdatasets)lengthR162R_{16}^{2}R242R_{24}^{2}R322R_{32}^{2}R322−R162R_{32}^{2}-R_{16}^{2}sup⁡∣f32∣\sup|f_{32}|passes
AER/DJFranses7700.7620.8220.858+0.0960.76
AER/DutchSales4250.2710.1680.020−0.2510.46
AER/MarkDollar518−0.057−0.089−0.283−0.2260.31
AER/MarkPound1974−0.137−0.245−0.525−0.3880.15
CardioDataSets/cv_mortality_ts5080.6000.5940.544−0.0560.75
DAAG/mdbAVtJtoD867−0.347−0.5960.670+1.0170.51
boot/manaus10800.3770.4740.620+0.2420.57
boot/wool3090.9390.9500.957+0.0170.74
datasets/nottem240−0.5290.8810.868+1.3970.72
datasets/sunspot.m201431770.8740.8730.870−0.0040.56
datasets/sunspot.month33100.8460.8440.850+0.0040.67
datasets/sunspot.year289−0.012−0.0770.687+0.6990.71
datasets/sunspots28200.8160.8370.833+0.0170.65
datasets/treering79800.0220.1030.004−0.0180.33
forecast/gas476−0.079−0.2260.844+0.9230.64
fpp2/auscafe4260.5900.5450.624+0.0340.47
fpp2/gasoline13550.4020.4650.430+0.0290.52
fpp2/goog10000.8160.8670.878+0.0620.66
fpp2/hyndsight365−0.118−0.215−0.595−0.4770.33
fpp2/usmelec486−0.252−0.483−0.097+0.1550.48
quantreg/MelTemp36500.4560.4180.583+0.1270.72
quantreg/gasprice6950.8930.9550.981+0.0880.75yes
timeSeriesDataSets/co2_ts468−0.245−0.5260.878+1.1230.72
timeSeriesDataSets/elec_ts476−0.189−0.3060.553+0.7420.60
timeSeriesDataSets/ibmclose_ts3690.9200.9490.962+0.0430.68yes

Table 9. Screening of real-world series (Appendix § 10): median held-out R2R^2 of the least-squares fit of degree EE over five random splits, the gain from E=16E=16 to 32, and the supremum of the degree-32 fit. Duplicates and series with missing values omitted.

Measures (data). The reference is the least-squares fit over real trigonometric polynomials of degree ≤E\le E on the training points, with training loss LLSL_{\mathrm{LS}}. For every target its supremum is below 1, so it is the best fit within the serial and ancilla model classes, and LLSL_{\mathrm{LS}} is a lower bound on the training loss of the parallel circuit. Excess training loss: (Ltrain−LLS)/Var⁡(ytrain)(L_{\mathrm{train}} - L_{\mathrm{LS}})/\operatorname{Var}(y_{\mathrm{train}}), on a log⁡10\log_{10} scale floored at −16-16. A run reaches the optimum if its excess training loss is at most 10−610^{-6}. This threshold was set after the step-budget runs, in place of the 10−1510^{-15} used at first: the level at which converged runs end depends on the optimiser and its schedule (Appendix § 14), and a threshold near double precision counts some converged runs as failures. Shares with Wilson intervals, differences with Newcombe’s interval. Test R2R^2 on the held-out points. Held-out error: 1−R21 - R^2, compared as the ratio serial over ancilla for runs with the same run index (the same target; for real-world series the same data, so that the pairing is arbitrary there and the share of pairs in which the serial run is worse estimates the probability that a serial run is worse than an independent ancilla run).

Learning-rate bracketing (data). This check was added after the main experiment; its rule was fixed before the additional runs and is the same for every circuit. It tests whether the selected rate is limited by the edge of the grid. If the near-best rates include the smallest rate of the grid, the next two smaller rates of the sequence 10−k10^{-k}: 3⋅10−43 \cdot10^{-4} and 10−410^{-4} are added (below 10−310^{-3}: 3⋅10−43 \cdot10^{-4} and 10−410^{-4}); if they include the largest, the next larger rate, 0.3, is added. The rate is then selected again on the same tuning runs, and if the selection changes, the 100 evaluation runs are repeated with the new rate, from the same targets and initial gates. A configuration whose best tuning score is at the floor of −16-16 is not extended, since no rate can score better.

Step budget (data). This check, too, was added after the main experiment. It tests whether the shortfall of the serial circuit is a matter of the step budget. It covers seven configurations, serial and ancilla circuits on flat and Poisson-kernel targets at E∈{12,24}E \in\{12, 24\} and on the three real-world series at E=24E = 24, and the first 30 evaluation runs of each, with the same data and initial gates as in the main experiment. Each run takes 80,000 steps instead of 20,000, at the peak rate selected in the main experiment, which is not tuned again. Under the held schedule, which § 6 reports, the rate stays at its peak for 60,000 steps and then follows the cosine decay of the main experiment over the last 20,000, so that only the time at the peak rate grows. Under the stretched schedule the same decay is spread over all 80,000 steps.

Seeds. Every target and every initialisation has its own seed. The seed of a target depends on the target family, EE and the run index; the seed of an initialisation depends on these and on the circuit. Neither depends on the optimiser, so that all circuits are trained on the same targets and all optimisers start from the same initial gates. Tuning uses run indices that do not occur in evaluation, so that no tuning target or initialisation is evaluated.

Proofs

Generality of Definition 3.1. Let d=2Nd=2^N and let a circuit have the encoding layer S′(x)=VS(x)V†S'(x)=VS(x)V^\dagger, the observable M′=VMMVM†M'=V_MMV_M^\dagger and the initial state V0∣0⟩V_0|0\rangle, with fixed V,VM,V0∈SU(d)V,V_M,V_0\in\mathrm{SU}(d); this covers every encoding generator and every observable that has the eigenvalues, including multiplicities, of ours, and every initial state. With blocks W(ℓ)W^{(\ell)} its output is the output of the circuit of Definition 3.1 with the blocks W~(L)=VM†W(L)V\widetilde{W}^{(L)}=V_M^\dagger W^{(L)}V, W~(ℓ)=V†W(ℓ)V\widetilde{W}^{(\ell)}=V^\dagger W^{(\ell)}V for 0<ℓ<L0<\ell<L and W~(0)=V†W(0)V0\widetilde{W}^{(0)}=V^\dagger W^{(0)}V_0 (L≥1L\geq1). The map W↦W~W\mapsto\widetilde{W} is a bijection of SU(d)L+1\mathrm{SU}(d)^{L+1} composed of left and right translations, which preserve Haar measure; with several gates per block it acts on the first and the last gate of each block. The model classes therefore agree. A block W~=AWB\widetilde{W}=AWB satisfies W~exp⁡(iθ⋅P)=AWexp⁡(i(Rθ)⋅P)B\widetilde{W}\exp(i\boldsymbol{\theta}\cdot\boldsymbol{P})=AW\exp(i(R\boldsymbol{\theta})\cdot\boldsymbol{P})B, with RR the orthogonal map of conjugation by BB (as in the proof of Lemma B.2), so the Lie-algebra coordinates of the two circuits differ by orthogonal maps. Hence every statement that holds for all or for almost all gates carries over: the Fourier coefficients agree as functions of the gates, so that JJ is multiplied on the right by an orthogonal matrix and keeps its rank, and the state of the circuit is VMV_M times that of the circuit with blocks W~\widetilde{W}, so that the tangent vectors are moved by the fixed unitary VMV_M and the dimension of their span is unchanged. A statement that names ZZ, ∣0⟩|0\rangle or RXR_X carries over in translated form: the rotation eisZe^{is_Z} of the last block W~(L)\widetilde{W}^{(L)} in Corollary 4.5(i) is the rotation eisM′e^{is_{M'}} of W(L)W^{(L)}, and for N=1N=1 Lemma 4.2(iii) holds because TT commutes with VM∈SU(2)V_M\in\mathrm{SU}(2), so that μ\mu is that of the circuit with blocks W~\widetilde{W} and each hjh_j is a real combination of the functions of the coordinates of the same gate there. Gradient-descent and Levenberg–Marquardt steps are equivariant under such maps, so that the runs of the two circuits correspond. Adam normalises coordinate by coordinate: its runs correspond if every RR is a signed permutation, which holds when VV and V0V_0 map Pauli words to Pauli words up to sign (for instance between RXR_X, RYR_Y and RZR_Z encodings); otherwise they correspond to Adam in a rotated basis of the Lie algebra.

Proof of Lemma 3.2. f=c0+∑k=1E2(Re⁡ckcos⁡kx−Im⁡cksin⁡kx)f=c_0+\sum_{k=1}^{E}2(\operatorname{Re}c_k\cos kx-\operatorname{Im}c_k\sin kx), so the vector of outputs at the inputs is Bc~B\widetilde{c}, with BB the matrix of the functions 1,2cos⁡kx,−2sin⁡kx1,2\cos kx,-2\sin kx at the inputs. BB does not depend on θ\theta, hence Jdata=BJJ_{\mathrm{data}}=BJ. On the n=2E+1n=2E+1 equispaced points x1,…,xnx_1,\ldots,x_n the columns are orthogonal: the product of two different columns is a combination of cos⁡mx\cos mx and sin⁡mx\sin mx with 0<m≤2E0<m\leq2E, and ∑ieimxi=0\sum_i e^{imx_i}=0 for 0<∣m∣<n0<|m|<n. The squared norms are nn for the constant column and 2n2n for the others. BB is then square with BTB=diag⁡(n,2n,…,2n)B^\mathsf{T}B=\operatorname{diag}(n,2n,\ldots,2n), hence invertible, and BBTBB^\mathsf{T} has the same eigenvalues, so that n∥y∥2≤∥BTy∥2≤2n∥y∥2n\lVert y\rVert^2\leq\lVert B^\mathsf{T}y\rVert^2\leq2n\lVert y\rVert^2 for every y∈Rny\in\mathbb{R}^n. Since JdataTy=JT(BTy)J_{\mathrm{data}}^\mathsf{T}y=J^\mathsf{T}(B^\mathsf{T}y) and BTB^\mathsf{T} is onto, the largest and the smallest value of ∥JdataTy∥\lVert J_{\mathrm{data}}^\mathsf{T}y\rVert over unit yy are those of ∥JTz∥\lVert J^\mathsf{T}z\rVert over unit z∈R2E+1z\in\mathbb{R}^{2E+1} up to factors in [n,2n][\sqrt{n},\sqrt{2n}]. These values are the largest and the (2E+1)(2E+1)-th singular values of JdataJ_{\mathrm{data}} and of JJ.

Lemma B.1 (Genericity). Let a circuit of Definition 3.1 have mm gates, and let J(G)J(G) be its coefficient Jacobian at the gates G=(G1,…,Gm)∈G=SU(d)mG=(G_1,\ldots,G_m)\in\mathcal{G}=\mathrm{SU}(d)^m. If rank⁡J=2E+1\operatorname{rank}J=2E+1 at one point of G\mathcal{G}, then it holds outside a set of measure zero for the Haar measure of G\mathcal{G}, the product of the Haar measures of the gates.

Proof. By Lemma 4.1 every cωc_\omega, and hence every entry of c~\widetilde{c}, is a polynomial in the real and imaginary parts of the gate entries. Then, for every coordinate of GiG_i with Pauli word PP is the derivative at s=0s=0 along s↦GieisPs\mapsto G_i e^{isP}; this curve has the velocity iGiPiG_iP, as has s↦Gi(I+isP)s\mapsto G_i(I+isP), so the entry is the derivative of that polynomial along the second curve, again a polynomial in the gate entries. rank⁡J<2E+1\operatorname{rank}J<2E+1 if and only if Δ=det⁡(JJT)=0\Delta=\det(JJ^\mathsf{T})=0, and by assumption Δ\Delta is nonzero at one point. A polynomial is real-analytic on the connected real-analytic manifold G\mathcal{G}. By the identity theorem (Krantz & Parks, [18]), applied in charts and extended by connectedness, Δ\Delta does not vanish identically on any open subset of G\mathcal{G}. So in every real-analytic chart on a connected domain of RD\mathbb{R}^D (exponential charts, for instance) Δ\Delta is a real-analytic function that is not identically zero, and its zero set there has Lebesgue measure zero (Mityagin, [26]). Finitely many such charts cover the compact G\mathcal{G}, and Haar measure is given by a nowhere-vanishing smooth form, so its null sets are the sets that are null in every chart (Knapp, [16], Thm. 8.21 and (8.25)); hence the zero set of Δ\Delta has Haar measure zero. The argument uses of Δ\Delta only that it is a polynomial in the real and imaginary parts of the gate entries that is nonzero at one point, and the proof of Proposition 4.4 applies it to another such polynomial. In the Lean project this null-set property of polynomials enters as a hypothesis (Appendix § 13).

Proof of Lemma 3.3. (i), serial. Every real trigonometric polynomial ff of degree ≤L\leq L with ∥f∥∞≤1\lVert f\rVert_\infty\leq1 is realised by L+1L+1 elements of SU(2)\mathrm{SU}(2). By the Fejér–Riesz theorem (Fejér, [12]; Riesz, [34]), (1+f)/2=∣p∣2(1+f)/2=|p|^2 and (1−f)/2=∣q∣2(1-f)/2=|q|^2 on the circle for polynomials p,qp,q of degree <L<L in eixe^{ix}, so that $|p|^2+|q|^2=1. (By Motlagh & Jordan [27], such a pair is the first column of a circuit of L+1L+1 rotations in U(2)\mathrm{U}(2) interleaved with LL copies of their signal diag⁡(eix,1)\operatorname{diag}(e^{ix},1). Each rotation is a constant phase times an element of SU(2)\mathrm{SU}(2), and, with the Hadamard matrix HH,

diag⁡(eix,1)=−(iX)diag⁡(1,eix)(iX),diag⁡(1,eix)=−eix/2(iH)RX(x)(iH).\operatorname{diag}(e^{ix},1)=-(iX)\operatorname{diag}(1,e^{ix})(iX),\qquad\operatorname{diag}(1,e^{ix})=-e^{ix/2}(iH)R_X(x)(iH).

with iX,iH∈SU(2)iX,iH\in\mathrm{SU}(2) (det⁡H=−1\det H=-1). The factors iXiX and iHiH are absorbed into the neighbouring gates, so the circuit is a serial circuit times a global phase ei(α+Lx/2)e^{i(\alpha+Lx/2)} with constant α\alpha. A global phase cancels in ff, even where it depends on xx. The serial circuit therefore prepares p(eix)∣0⟩+q(eix)∣1⟩p(e^{ix})|0\rangle+q(e^{ix})|1\rangle up to that phase, and its output is ∣p∣2−∣q∣2=f|p|^2-|q|^2=f. Conversely every serial output has degree ≤L\le L and ∣f∣≤∥Z∥=1|f|\le\lVert Z\rVert=1. A block of several gates realises exactly SU(2)\mathrm{SU}(2) (set all but one gate to the identity), so the class does not depend on the number of gates per block. (i), ancilla. Choosing W(ℓ)=Vℓ⊗IW^{(\ell)}=V_\ell\otimes I for ℓ<L\ell<L and W(L)=eiπ/4SWAP⁡(VL⊗I)∈SU(4)W^{(L)}=e^{i\pi/4}\operatorname{SWAP}(V_L\otimes I)\in\mathrm{SU}(4) keeps qubit 1 in ∣0⟩|0\rangle until the last block, which moves the serial state onto qubit 1; the output is the serial output. Conversely, the ancilla output has degree ≤E\le E (Theorem 3.1) and modulus ≤∥M∥=1\le\lVert M\rVert=1. Blocks of several gates realise exactly SU(4)\mathrm{SU}(4). (ii). Parameterise every serial gate by Euler angles, RZRYRZR_ZR_YR_Z, which is surjective onto SU(2)\mathrm{SU}(2). The map FF from the angles to c~\tilde{c} is smooth, and by (i) its image is FE\mathcal{F}_E, which contains the open set {∣c0∣+2∑k≥1∣ck∣<1}\{ |c_0|+2\sum_{k\ge1}|c_k|<1\}. If rank⁡dF<2E+1\operatorname{rank}dF<2E+1 everywhere, the image would consist of critical values, which have measure zero by Sard's theorem [35]; a contradiction. Every Euler-angle direction moves a gate GiG_i with velocity Gi(i t⋅P)G_i(i\,\mathbf{t}\cdot\mathbf{P}) for some real vector t\mathbf{t}, since Gi−1∂GiG_i^{-1}\partial G_i is anti-Hermitian and traceless. So dFdF at the angles is JJ in Lie-algebra coordinates at the corresponding gates times a real matrix, and rank⁡J≥rank⁡dF=2E+1\operatorname{rank}J\ge\operatorname{rank}dF=2E+1 there; JJ has only 2E+12E+1 rows, so rank⁡J=2E+1\operatorname{rank}J=2E+1. For the ancilla circuit, the columns of JJ for Pauli words P⊗IP\otimes I on the embedded blocks of (i), with every other gate of a block the identity, are the columns of the serial JJ, so the embedding of a serial full-rank point is a full-rank point. For both circuits Lemma B.1 extends the full-rank point to almost every choice of gates.

Proof of Lemma 4.1. Write pℓ=(aℓ,bℓ)p_\ell=(a_\ell,b_\ell) for the row and column of the entry that a path selects in block ℓ\ell, and β,β′∈{0,…,d−1}\beta,\beta'\in\{0,\ldots,d-1\} for computational basis states. Multiplying out U∣0⟩U|0\rangle,

⟨β∣U∣0⟩=∑psβ(p;x)∏ℓ=0LWpℓ(ℓ),sβ(p;x)=δaLβδb00∏ℓ=1LS(x)bℓaℓ−1,\langle\beta|U|0\rangle=\sum_p s_\beta(p;x)\prod_{\ell=0}^{L}W^{(\ell)}_{p_\ell},\qquad s_\beta(p;x)=\delta_{a_L\beta}\delta_{b_0 0}\prod_{\ell=1}^{L}S(x)_{b_\ell a_{\ell-1}},

so every term contains exactly one entry of each block, and sβs_\beta does not depend on the blocks. Since f=∑β,β′⟨β∣U∣0⟩Mββ′⟨β′∣U∣0⟩f=\sum_{\beta,\beta'}\langle\beta|U|0\rangle M_{\beta\beta'}\langle\beta'|U|0\rangle,

f(x)=∑p,p′Γ(p,p′;x)∏ℓ=0LWpℓ(ℓ)Wpℓ′(ℓ)‾,Γ(p,p′;x)=∑β,β′sβ′(p′;x)‾Mββ′sβ(p;x).f(x)=\sum_{p,p'}\Gamma(p,p';x)\prod_{\ell=0}^{L}W^{(\ell)}_{p_\ell}\overline{W^{(\ell)}_{p'_\ell}},\qquad\Gamma(p,p';x)=\sum_{\beta,\beta'}\overline{s_{\beta'}(p';x)}M_{\beta\beta'}s_\beta(p;x).

Every entry of a Pauli rotation by the angle xx is a combination of eix/2e^{ix/2} and e−ix/2e^{-ix/2}, so every entry of S(x)S(x) is a combination of exponentials whose exponent is a sum of one term ±12\pm\tfrac12 per encoded qubit. Γ(p,p′;⋅)\Gamma(p,p';\cdot) multiplies LL entries of S(x)S(x) and LL conjugated entries, which together contain 2E2E such terms. It is therefore a finite sum of exponentials eiνxe^{i\nu x}, and each ν\nu is a sum of 2E2E terms ±12\pm\tfrac12, hence an integer with ∣ν∣≤E|\nu|\le E. Let γν(p,p′)\gamma_\nu(p,p') be the coefficient of eiνxe^{i\nu x} in Γ(p,p′;⋅)\Gamma(p,p';\cdot). It depends on SS, MM, the initial state (through δb00\delta_{b_0 0}) and ν\nu only. The blocks do not depend on xx, so comparing coefficients of eiνxe^{i\nu x} with Theorem 3.1 gives the formula for cνc_\nu. Each summand contains exactly one entry and one conjugated entry of each block; collecting equal monomials changes their coefficients, not this form. With several gates per block, each block entry is a polynomial in the entries of its gates, so every cνc_\nu is a polynomial in the real and imaginary parts of the gate entries.

Proof of Lemma 4.2. Let TT be the map (v0,v1)↦(v1‾,−v0‾)(v_0,v_1)\mapsto(\overline{v_1},-\overline{v_0}) on C2\mathbb{C}^2, that is, T=iσyCT=i\sigma_y\mathcal{C} with C\mathcal{C} the complex conjugation in the computational basis; then ∣ψ⊥⟩=T∣ψ⟩|\psi^\perp\rangle=T|\psi\rangle. TT is anti-unitary with ⟨ψ∣Tψ⟩=0\langle\psi|T\psi\rangle=0 and ∥Tψ∥=∥ψ∥\lVert T\psi\rVert=\lVert\psi\rVert. (i) {∣ψ⟩,T∣ψ⟩}\{|\psi\rangle,T|\psi\rangle\} is an orthonormal basis of C2\mathbb{C}^2, so ∂j∣ψ⟩=λj∣ψ⟩+hjT∣ψ⟩\partial_j|\psi\rangle=\lambda_j|\psi\rangle+h_jT|\psi\rangle with λj=i∂jα\lambda_j=i\partial_j\alpha; applying TT and ∂j⟨ψ∣ψ⟩=0\partial_j\langle\psi|\psi\rangle=0 gives (i). Differentiating ⟨ψ∣ψ⟩=1\langle\psi|\psi\rangle=1 gives Re⁡λj=0\operatorname{Re}\lambda_j=0. (ii) ∂jf=2Re⁡⟨∂jψ∣M∣ψ⟩=2Re⁡[λj‾⟨ψ∣M∣ψ⟩+hj‾⟨Tψ∣M∣ψ⟩]\partial_j f=2\operatorname{Re}\langle\partial_j\psi|M|\psi\rangle=2\operatorname{Re}[\overline{\lambda_j}\langle\psi|M|\psi\rangle+\overline{h_j}\langle T\psi|M|\psi\rangle]. The first term is imaginary times real, so its real part vanishes; this gives Eq. (1) with μ=⟨Tψ∣M∣ψ⟩\mu=\langle T\psi|M|\psi\rangle, independent of jj. (iii), locality. Let GjG_j be the gate that carries θj\theta_j, ∣ϕj⟩|\phi_j\rangle the state right after it and Dj(x)D_j(x) the downstream circuit (later gates and encoding layers), so ∣ψ⟩=Dj∣ϕj⟩|\psi\rangle=D_j|\phi_j\rangle and ∂j∣ψ⟩=Dj∂j∣ϕj⟩\partial_j|\psi\rangle=D_j\partial_j|\phi_j\rangle with Ωj=(∂jGj)Gj−1\Omega_j=(\partial_jG_j)G_j^{-1}, which does not depend on xx. Every D∈SU(2)D\in\mathrm{SU}(2) satisfies Dσy=σyD‾D\sigma_y=\sigma_y\overline{D}, so Dj(x)D_j(x), and hj=⟨TDjϕj∣DjΩjϕj⟩=⟨DjTϕj∣DjΩjϕj⟩=⟨Tϕj∣Ωjϕj⟩h_j=\langle T D_j\phi_j|D_j\Omega_j\phi_j\rangle=\langle D_jT\phi_j|D_j\Omega_j\phi_j\rangle=\langle T\phi_j|\Omega_j\phi_j\rangle. (iv), degree. If ℓ\ell encoding layers precede GjG_j, each amplitude of ∣ϕj⟩|\phi_j\rangle is ∑∣k∣≤ℓ,  k≡ℓ  (mod  2)ξkeikx/2\sum_{|k|\le\ell,\;k\equiv\ell\;(\mathrm{mod}\;2)}\xi_ke^{ikx/2} (induction: every entry of RX(x)R_X(x) is a combination of e±ix/2e^{\pm ix/2}, and the gates do not depend on xx), and so is each amplitude of Ωj∣ϕj⟩\Omega_j|\phi_j\rangle. The pairing ⟨Tu∣w⟩=u1w0−u0w1\langle Tu|w\rangle=u_1w_0-u_0w_1 is bilinear (no conjugation), so ⟨Tϕj∣Ωjϕj⟩\langle T\phi_j|\Omega_j\phi_j\rangle has exponents (k+k′)/2(k+k')/2 with k≡k′k\equiv k' (mod 2), integers with ∣k+k′∣/2≤ℓ|k+k'|/2\le\ell. The same argument with ℓ=L\ell=L and MM in place of Ωj\Omega_j applies to μ=⟨Tψ∣M∣ψ⟩\mu=\langle T\psi|M|\psi\rangle.

The choice of ∣ψ⊥⟩|\psi^{\perp}\rangle (statements after Lemma 4.2). The orthogonal complement of ∣ψ⟩|\psi\rangle in C2\mathbb{C}^2 has dimension one, so its unit vectors are eiα∣ψ⊥⟩e^{i\alpha}|\psi^\perp\rangle. Let ∣χ⟩=eiα∣ψ⊥⟩|\chi\rangle=e^{i\alpha}|\psi^\perp\rangle with real α(x)\alpha(x), and let hj′=⟨χ∣∂jψ⟩h'_j=\langle\chi|\partial_j\psi\rangle and μ′=⟨χ∣M∣ψ⟩\mu'=\langle\chi|M|\psi\rangle. Since ⟨χ∣w⟩=e−iα⟨ψ⊥∣w⟩\langle\chi|w\rangle=e^{-i\alpha}\langle\psi^\perp|w\rangle for every ww, hj′=e−iαhjh'_j=e^{-i\alpha}h_j and μ′=e−iαμ\mu'=e^{-i\alpha}\mu, hence hj′∣χ⟩=hj∣ψ⊥⟩h'_j|\chi\rangle=h_j|\psi^\perp\rangle and hj′‾μ′=hj‾μ\overline{h'_j}\mu'=\overline{h_j}\mu: (i) and (ii) hold with ∣χ⟩|\chi\rangle in place of ∣ψ⊥⟩|\psi^\perp\rangle. Steps (i) and (ii) above use the gates nowhere, only ⟨ψ∣ψ⟩=1\langle\psi|\psi\rangle=1 and the derivative ∣∂jψ⟩|\partial_j\psi\rangle, so they hold for any differentiable parameterisation.

Proof of Eq. (2). By Lemma 4.2, hj=∑∣k∣≤Lajkeikxh_j=\sum_{|k|\le L}a_{jk}e^{ikx} and μ=∑∣k∣≤Lbkeikx\mu=\sum_{|k|\le L}b_ke^{ikx}; set ajk=bk=0a_{jk}=b_k=0 for ∣k∣>L|k|>L. Expanding 2Re⁡[hj‾μ]=hj‾μ+hjμ‾2\operatorname{Re}[\overline{h_j}\mu]=\overline{h_j}\mu+h_j\overline{\mu} gives the Fourier coefficients of ∂jf\partial_jf, ∂jcm=∑k(ajk‾bk+m+bk‾aj,k+m)\partial_jc_m=\sum_k(\overline{a_{jk}}b_{k+m}+\overline{b_k}a_{j,k+m}), which are real-linear in aja_j and depend otherwise only on bb. They vanish for ∣m∣>L|m|>L, since ff has degree ≤L\le L, and the real representation of (∂jc0,…,∂jcL)(\partial_jc_0,\ldots,\partial_jc_L) is column jj of JJ. Writing AμA_\mu for this real-linear map from C2L+1≅R2(2L+1)\mathbb{C}^{2L+1}\cong\mathbb{R}^{2(2L+1)} to R2L+1\mathbb{R}^{2L+1} and HH for the matrix of stacked real and imaginary parts of the aja_j gives J=AμHJ=A_\mu H.

Proof of Remark 4.3. ∣ψ⟩|\psi\rangle and the ∣er⟩|e_r\rangle form an orthonormal basis of Cd\mathbb{C}^d, so ∣∂jψ⟩=λj∣ψ⟩+∑rhj,r∣er⟩|\partial_j\psi\rangle=\lambda_j|\psi\rangle+\sum_rh_{j,r}|e_r\rangle with hj,r=⟨er∣∂jψ⟩h_{j,r}=\langle e_r|\partial_j\psi\rangle; applying I−∣ψ⟩⟨ψ∣I-|\psi\rangle\langle\psi| gives (i). As in (i)–(ii) of the proof of Lemma 4.2, Re⁡λj=0\operatorname{Re}\lambda_j=0 and ⟨ψ∣M∣ψ⟩∈R\langle\psi|M|\psi\rangle\in\mathbb{R}, so ∂jf=2Re⁡∑rhj,r⟨er∣M∣ψ⟩\partial_jf=2\operatorname{Re}\sum_rh_{j,r}\langle e_r|M|\psi\rangle, the formula of (ii). Norm. ∑r∣μr∣2=∥Mψ∥2−∣⟨ψ∣M∣ψ⟩∣2=1−f2\sum_r|\mu_r|^2=\|M\psi\|^2-|\langle\psi|M|\psi\rangle|^2=1-f^2 by Parseval’s identity in the basis {∣ψ⟩,∣er⟩}\{|\psi\rangle,|e_r\rangle\}, using M2=IM^2=I and M=M†M=M^\dagger. Adapted basis. Since ⟨er∣ψ⟩=0\langle e_r|\psi\rangle=0, μr=⟨er∣(M−f)∣ψ⟩\mu_r=\langle e_r|(M-f)|\psi\rangle. Since also ⟨ψ∣(M−f)∣ψ⟩=0\langle\psi|(M-f)|\psi\rangle=0, the vector (M−f)∣ψ⟩(M-f)|\psi\rangle lies in ∣ψ⟩⊥|\psi\rangle^\perp, so a basis with ∣e1⟩|e_1\rangle along it exists; in such a basis it is orthogonal to ∣er⟩|e_r\rangle for r≥2r\ge2, and only the term r=1r=1 of (ii) remains. Invariance. Two orthonormal bases of ∣ψ(x)⟩⊥|\psi(x)\rangle^\perp differ by a unitary matrix V(x)V(x), and g↦V(⋅)g(⋅)g\mapsto V(\cdot)g(\cdot) is an invertible real-linear map on functions with values in Cd−1\mathbb{C}^{d-1}, so it preserves the dimension of real spans.

Proof of Proposition 4.4. Let d=2Nd=2^N and let Vℓ(x)=W(ℓ)S(x)W(ℓ−1)⋯S(x)W(0)V_\ell(x)=W^{(\ell)}S(x)W^{(\ell-1)}\cdots S(x)W^{(0)} be the circuit up to block ℓ\ell, so that U=W(L)S⋯SVℓU=W^{(L)}S\cdots SV_\ell. A Lie-algebra coordinate of a gate in block ℓ\ell moves the state by U(x)iVℓ(x)†ΛVℓ(x)∣0⟩U(x)iV_\ell(x)^\dagger\Lambda V_\ell(x)|0\rangle for a traceless Hermitian Λ\Lambda: if A(x)A(x) is the circuit up to that gate, exclusive, the coordinate with Pauli word PP moves the state by UiA†PA∣0⟩UiA^\dagger PA|0\rangle, and A=C†VℓA=C^\dagger V_\ell with CC the product of the gate and of the gates of the block after it, so that Λ=CPC†\Lambda=CPC^\dagger.

We take the tangent-coefficient functions in the orthonormal basis er(x)=U(x)∣r⟩e_r(x)=U(x)|r\rangle, r=1,…,d−1r=1,\ldots,d-1, of ∣ψ(x)⟩⊥|\psi(x)\rangle^\perp; by Remark 4.3(iii) the dimension of their span does not depend on this choice. For the serial circuit U∣1⟩=−T∣ψ⟩=−∣ψ⊥⟩U|1\rangle=-T|\psi\rangle=-|\psi^\perp\rangle. In this basis the function of the coordinate is h(x)=iπ(Vℓ(x)†ΛVℓ(x)∣0⟩)h(x)=i\pi(V_\ell(x)^\dagger\Lambda V_\ell(x)|0\rangle) with π(v)=(⟨r∣v⟩)r≥1\pi(v)=(\langle r|v\rangle)_{r\ge1} for a vector vv, and the Pauli words of the last gate of block ℓ\ell give all traceless Λ\Lambda, so that the span of the functions of block ℓ\ell does not depend on the number of gates per block. Let Tℓ\mathcal{T}_\ell be the span of the functions of blocks 0,…,ℓ0,\ldots,\ell. The functions of block ℓ\ell have degree ≤ℓ\le\ell when one qubit is encoded and ≤2ℓ\le2\ell for the parallel circuit, in which each encoding layer shifts frequencies by up to 1.

Upper bounds. The argument holds for any encoding layer S(x)=∑ae−iax/2ΠaS(x)=\sum_a e^{-iax/2}\Pi_a, with Πa\Pi_a the spectral projections of the encoding generator (multiplicities mam_a). Block 0 gives constant functions, dim⁡T0≤2(d−1)\dim\mathcal{T}_0\le2(d-1). For ℓ≥1\ell\ge1, Vℓ=W(ℓ)SVℓ−1V_\ell=W^{(\ell)}SV_{\ell-1}; with K=W(ℓ)†ΛW(ℓ)K=W^{(\ell)\dagger}\Lambda W^{(\ell)},

S†KS=∑a,bei(a−b)x/2ΠaKΠb.S^\dagger K S=\sum_{a,b}e^{i(a-b)x/2}\Pi_aK\Pi_b.

The block-diagonal part K0=∑aΠaKΠaK_0=\sum_a\Pi_aK\Pi_a commutes with SS, so its contribution iπ(Vℓ−1†K0Vℓ−1∣0⟩)i\pi(V_{\ell-1}^\dagger K_0V_{\ell-1}|0\rangle) is a function of block ℓ−1\ell-1 (K0K_0 is Hermitian with tr⁡K0=tr⁡K=0\operatorname{tr}K_0=\operatorname{tr}K=0). The rest depends real-linearly on the off-diagonal blocks of a Hermitian KK, of real dimension d2−∑ama2d^2-\sum_am_a^2. Hence dim⁡Tℓ/Tℓ−1≤d2−∑ama2\dim\mathcal{T}_\ell/\mathcal{T}_{\ell-1}\le d^2-\sum_am_a^2: this is 22 for the serial circuit (m=(1,1)m=(1,1)), giving dim⁡T≤2+2L=2(E+1)\dim\mathcal{T}\le2+2L=2(E+1), and 16−(1+4+1)=1016-(1+4+1)=10 for the parallel circuit on two qubits (m=(1,2,1)m=(1,2,1)), giving dim⁡T≤6+10L=5E+6\dim\mathcal{T}\le6+10L=5E+6 with L=E/2L=E/2. For one encoded qubit, S(x)=e−ix/2Π++eix/2Π−S(x)=e^{-ix/2}\Pi_++e^{ix/2}\Pi_- with Π±\Pi_\pm the projections onto the ±1\pm1 eigenspaces of XX on that qubit (rank d/2d/2 each), and the off-diagonal part is K+=Π+KΠ−K_+=\Pi_+K\Pi_- and its adjoint.

Lower bounds (one encoded qubit, the first tensor factor: the serial and the ancilla circuit). For ℓ≥1\ell\ge1 the coefficients of hh at e±iℓxe^{\pm i\ell x} come only from the K+K_+ terms. With B±=W(ℓ−1)⋯Π±W(0)B_\pm=W^{(\ell-1)}\cdots\Pi_\pm W^{(0)} and writing K+=∣+⟩⟨−∣⊗QK_+=|+\rangle\langle-|\otimes Q with Q∈Cd/2×d/2Q\in\mathbb{C}^{d/2\times d/2}, they are

iπ(B+†(∣+⟩⊗Qu)) at eiℓx,iπ(B−†(∣−⟩⊗Q†w)) at e−iℓx,i\pi(B_+^\dagger(|+\rangle\otimes Qu))\text{ at }e^{i\ell x},\qquad i\pi(B_-^\dagger(|-\rangle\otimes Q^\dagger w))\text{ at }e^{-i\ell x},

with u=(⟨−∣⊗K)B−∣0⟩u=(\langle-|\otimes\mathbb{K})B_-|0\rangle and w=(⟨+∣⊗K)B+∣0⟩w=(\langle+|\otimes\mathbb{K})B_+|0\rangle. Functions in Tℓ−1\mathcal{T}_{\ell-1} have degree ≤ℓ−1\le\ell-1, so dim⁡Tℓ/Tℓ−1\dim\mathcal{T}_\ell/\mathcal{T}_{\ell-1} is at least the real rank of Q↦(Qu,Q†w)Q\mapsto(Qu,Q^\dagger w) whenever u,w≠0u,w\ne0 and z↦π(B±†(∣±⟩⊗z))z\mapsto\pi(B_\pm^\dagger(|\pm\rangle\otimes z)) are injective. That rank is d2/2−2(d/2−1)2=2(d−1)d^2/2-2(d/2-1)^2=2(d-1), its kernel being {Qu=0,Q†w=0}\{Qu=0,Q^\dagger w=0\}. Together with dim⁡T0=2(d−1)\dim\mathcal{T}_0=2(d-1), which holds at every choice of gates (block 0 gives the constants iπ(W(0)†ΛW(0)∣0⟩)i\pi(W^{(0)\dagger}\Lambda W^{(0)}|0\rangle), and Λ=W(0)(∣v⟩⟨0∣+∣0⟩⟨v∣)W(0)†\Lambda=W^{(0)}(|v\rangle\langle0|+|0\rangle\langle v|)W^{(0)\dagger} gives iviv for every v⊥∣0⟩v\perp|0\rangle), this gives dim⁡T≥2(d−1)(L+1)\dim\mathcal{T}\ge2(d-1)(L+1). At identity all data conditions hold: B±=KB_\pm=\mathbb{K} for ℓ=1\ell=1 and $B_\pm=\Pi_\pm for ℓ≥2\ell\ge2, uu and ww are ∣0⟩|0\rangle up to the factor 2−1/22^{-1/2}, and ∣+⟩⊗z|+\rangle\otimes z keeps zz in the coordinates ∣1⟩⊗z|1\rangle\otimes z, which π\pi retains. Since the hjh_j have degree ≤E\le E, they are determined by their values on 2E+12E+1 equispaced points (the discrete Fourier transform on these points is invertible), so dim⁡T\dim T is the rank of their real samples there, and dim⁡T<k\dim T < k is the vanishing of a polynomial in the real and imaginary parts of the gate entries (the sum of squares of all k×kk \times k minors) that is nonzero at the identity; the exception set is Haar-null as in Lemma B.1. With L=EL=E this is (ii) for d=4d=4 and, with the upper bound, (i) for d=2d=2.

(iii). For the parallel circuit on two qubits, S(x)=RX(x)⊗RX(x)S(x)=R_X(x)\otimes R_X(x), and at identity gates Vℓ(x)=S(ℓx)V_\ell(x)=S(\ell x), so the function of block ℓ\ell and Pauli word PP is gP(ℓx)g_P(\ell x) with gP(θ)=iπ(S(θ)†PS(θ)∣0⟩)g_P(\theta)=i\pi(S(\theta)^\dagger P S(\theta)|0\rangle), the same gPg_P for every block. Conjugation by RXR_X rotates YY and ZZ and fixes I\mathbb{I} and XX on each qubit, so the eight words with exactly one factor in {Y,Z}\{Y,Z\} and the other in {I,X}\{\mathbb{I},X\} (group A) have Fourier coefficients only at θ\theta-frequencies ±1\pm1, and the words YYYY, YZYZ (group B) at ±2\pm2 and 00. A direct computation gives: the coefficient vectors at (±1)(\pm1) of group A are linearly independent (real rank 8), those at (±2)(\pm2) of group B are independent (rank 2), and the two spans meet only in 0 (joint rank 10). Part (iii) is also proved in the Lean file (parallel2_tangent_rank_generic; Appendix § 13). Take a vanishing real combination of the functions of group A and B in blocks 1,…,L1,\ldots,L and of six block-0 words with independent constant vectors (XI,IX,YI,IY,XY,YY)(XI,IX,YI,IY,XY,YY). Its coefficient at the frequency pair ±k\pm k is the group-A part of block kk (if k≤Lk\le L) plus the group-B part of block k/2k/2 (if kk is even); both vanish since their spans meet only in 0, so all coefficients in blocks ℓ≥1\ell\ge1 vanish, and then those of block 0. Hence dim⁡T≥6+10L\dim T\ge6+10L at identity gates, and almost everywhere by the same polynomial argument as above. With the upper bound this is (iii). □

Proof of Corollary 4.5. We use the basis ∣ψ⊥⟩=T∣ψ⟩|\psi^\perp\rangle=T|\psi\rangle of Lemma 4.2; in the basis −∣ψ⊥⟩-|\psi^\perp\rangle of Proposition 4.4 all hjh_j and μ\mu change sign, and the statements are the same. (i) Let GG be the last gate. It is the leftmost factor of the circuit, so along s↦eisZGs\mapsto e^{isZ}G the state is eisZ∣ψ⟩e^{isZ}|\psi\rangle, with tangent vector iZ∣ψ⟩iZ|\psi\rangle at s=0s=0; hence h=⟨Tψ∣iZψ⟩=iμh=\langle T\psi|iZ\psi\rangle=i\mu. Since eisZe^{isZ} commutes with ZZ, ff is the same for every ss. Moreover eisZG=Gexp⁡(isG†ZG)e^{isZ}G=G\exp(isG^\dagger ZG), and G†ZGG^\dagger ZG is Hermitian and traceless, hence ∑ataPa\sum_a t_aP_a with real tat_a and PaP_a the Pauli words. The state is linear in each gate, so the tangent-coefficient function is real-linear in the Lie-algebra direction, and iμ=∑atah(a)i\mu=\sum_a t_a h_{(a)} with h(a)h_{(a)} the functions of the three coordinates of the last gate; thus iμ∈Ti\mu\in T. (ii) By (1) and linearity, ∑jθ˙j∂jf=2Re⁡[hˉμ]\sum_j \dot{\theta}_j\partial_j f=2\operatorname{Re}[\bar{h}\mu] for h=∑jθ˙jhjh=\sum_j\dot{\theta}_jh_j, and Jθ˙J\dot{\theta} holds its Fourier coefficients (Eq. (2)). For h=λiμh=\lambda i\mu this function is 2Re⁡[−iλ∣μ∣2]=02\operatorname{Re}[-i\lambda|\mu|^2]=0, for every choice of gates. Conversely, the real-linear map Φ:T→R2E+1\Phi:T\to\mathbb{R}^{2E+1} that sends hh to the Fourier coefficients of 2Re⁡[hˉμ]2\operatorname{Re}[\bar{h}\mu] has the column space of JJ as its image. If rank⁡J=2E+1\operatorname{rank}J=2E+1, then Φ\Phi is onto, and since dim⁡T≤2E+2\dim T\le2E+2 for every choice of gates (Proposition 4.4(i)), dim⁡ker⁡Φ≤1\dim\ker\Phi\le1. The kernel contains iμi\mu by (i), and μ≠0\mu\ne0 because J≠0J\ne0. Hence ker⁡Φ=R iμ\ker\Phi=\mathbb{R}\,i\mu (and dim⁡T=2E+2\dim T=2E+2 at such gates). (iii) Let FF be the smooth map from the Euler angles of all gates to C\mathbb{C}, as in the proof of Lemma 3.3. By Sard’s theorem ([35]) its critical values have measure zero. Let f∗∈FEf^*\in\mathcal{F}_E not be one of them, and let gates give fθ=f∗f_\theta=f^*. The Euler angles are onto SU(2)\mathrm{SU}(2), so these gates have angles, at which rank⁡dF=2E+1\operatorname{rank}dF=2E+1; since dFdF is JJ at these gates times a real matrix, rank⁡J=2E+1\operatorname{rank}J=2E+1, and (ii) applies. □

Readout rotations and spare directions

For a traceless Hermitian Λ\Lambda that commutes with MM, the curve s↦eisΛGs\mapsto e^{is\Lambda}G of the last gate GG rotates the final state by eisΛe^{is\Lambda} and leaves ff unchanged, by the argument for part (i) of Corollary 4.5. For M=ZM=Z on one qubit these Λ\Lambda form a real space of dimension 1, for M=ZM=Z on one of two qubits of dimension 22+22−1=72^2+2^2-1=7; the tangent-coefficient function depends real-linearly on Λ\Lambda, so the tangent directions of this kind span at most one and at most seven dimensions. The directions that leave ff unchanged to first order form a space of dimension dim⁡T−rank⁡J\dim T-\operatorname{rank}J, and rank⁡J≤2E+1\operatorname{rank}J\le2E+1. The number of spare directions, the dimension of this space beyond the readout rotations, is therefore zero for the serial circuit wherever JJ has full row rank (Corollary 4.5(ii)), at least (5E+6)−(2E+1)−7=3E−2(5E+6)-(2E+1)-7=3E-2 for the parallel circuit wherever part (ii) of Proposition 4.4 holds with equality, and at least (6E+6)−(2E+1)−1=4E−2(6E+6)-(2E+1)-1=4E-2 for the ancilla circuit wherever its part (ii) holds. □

Lemma B.2 (Stacked gates rescale the Riemannian step). Let a block be a product W=Gt⋯G1W=G_t\cdots G_1 of tt gates in SU(d)\mathrm{SU}(d), and update every gate by a right-trivialised gradient step Gi←Giexp⁡(−iηgi⋅P)G_i\leftarrow G_i\exp(-i\eta g_i\cdot P) (or any update with the same first-order term), where gig_i is the gradient of the loss with respect to the coordinates θi\theta_i of the perturbation Giexp⁡(iθi⋅P)G_i\exp(i\theta_i\cdot P) and PP is an orthogonal basis of the traceless Hermitian matrices, each of squared norm tr⁡(PaPb)=dδab\operatorname{tr}(P_aP_b)=d\delta_{ab} (for example the non-identity Pauli words). Then the block moves as Wexp⁡(−itηg⋅P)W\exp(-it\eta g\cdot P) to first order in η\eta, where gg is the gradient with respect to the perturbation Wexp⁡(iθ⋅P)W\exp(i\theta\cdot P) of the block itself.

Proof. Write Bi=Gi−1⋯G1B_i=G_{i-1}\cdots G_1 (B1=IB_1=I). Perturbing gate ii gives Gt⋯GieiΔi⋅PGi−1⋯G1=Wexp⁡(iBi†Δi⋅PBi)G_t\cdots G_i e^{i\Delta_i\cdot P}G_{i-1}\cdots G_1=W\exp(iB_i^\dagger\Delta_i\cdot P B_i). With Λi=θi⋅P\Lambda_i=\theta_i\cdot P define RiθiR_i\theta_i by Bi†(θi⋅P)Bi=(Riθi)⋅PB_i^\dagger(\theta_i\cdot P)B_i=(R_i\theta_i)\cdot P. Conjugation by a unitary preserves the traceless Hermitian matrices and the inner product tr⁡(A†B)\operatorname{tr}(A^\dagger B), in which PP is orthogonal with equal norms, so RiR_i is orthogonal. By the chain rule gi=RiTgg_i=R_i^\mathsf{T}g. After the update of every gate by −ηgi-\eta g_i, the block changes, to first order in η\eta, by W(i∑i(Ri(−ηgi))⋅P)=W(−itηg⋅P)W\left(\mathrm{i}\sum_i\left(R_i(-\eta g_i)\right)\cdot\mathrm{P}\right)=W\left(-\mathrm{i}t\eta g\cdot\mathrm{P}\right) (product rule), since RiRiT=IR_iR_i^{\mathsf{T}}=I.

To first order in the step size, the number of gates in a block therefore acts under Riemannian gradient descent as a factor on the step, which a line search can absorb. The argument does not extend to Adam, whose coordinate-wise normalisation is not invariant under the orthogonal maps RiR_i.

Lemma B.3 (Stationary points). Let L(θ)=1n∑i=1n(fθ(xi)−yi)2\mathcal{L}(\theta)=\frac{1}{n}\sum_{i=1}^{n}(f_\theta(x_i)-y_i)^2 and let BB be the design matrix of the inputs (Lemma 3.2). If J(θ)J(\theta) has full row rank and ∇L(θ)=0\nabla\mathcal{L}(\theta)=0, then fθf_\theta is a least-squares fit of the data among all real trigonometric polynomials of degree ≤E\le E.

Proof. ∇L=2nJdataTr=2nJTBTr\nabla\mathcal{L}=\frac{2}{n}J_{\mathrm{data}}^{\mathsf{T}}r=\frac{2}{n}J^{\mathsf{T}}B^{\mathsf{T}}r with the residual r=Bc~−yr=B\widetilde{c}-y. Full row rank of JJ gives BTr=0B^{\mathsf{T}}r=0, the normal equations of least squares over the column space of BB, which consists of the values at the inputs of the real trigonometric polynomials of degree ≤E\le E.

If the least-squares fit lies in the model class and the loss is above its optimum, a stationary point is therefore a point where JJ is rank-deficient, with BTrB^{\mathsf{T}}r in its left null space. We use the lemma in § 5.3.

Lean formalisation

Every lemma, proposition, remark and corollary of § 3–§ 4 and Appendix § 11 is stated and proved in Lean 4 (v4.28.0) with Mathlib (commit pinned in lake-manifest.json), in the Lean project of the repository, built with lake build. The proofs were developed with the automated prover Aristotle and are checked by the Lean kernel. The project contains no sorry; #print axioms reports only propext, Classical.choice and Quot.sound. Circuits are formalised at the level of gates, as in the paper, and JJ is the derivative of c~\widetilde{c} in Lie-algebra coordinates at the current gates. The README of the project maps each result to its Lean theorems and states the conventions of the file.

Cited results. They enter as explicit hypotheses of the theorems that use them, never as axioms: the Fejér–Riesz factorisation (Fejér, [12]; Riesz, [34]); Theorem 3 of Motlagh & Wiebe [27]; Sard’s theorem (Sard, [35]) for smooth maps Rn→Rm\mathbb{R}^{n}\to\mathbb{R}^{m}; and that the zero set on SU(d)m\mathrm{SU}(d)^{m} of a polynomial in the real and imaginary parts of the entries that is nonzero at one point is null. For Haar measure the last one follows from Mityagin [26], which covers connected open domains of RD\mathbb{R}^{D}, applied in charts, together with the identity theorem for real-analytic functions and the smooth density of Haar measure in charts. Theorem 3.1 is cited and not formalised; its serial and ancilla cases are proved.

Statements made in running text. Formalised are: that parts (i) and (ii) of Lemma 4.2 do not depend on the phase of ∣ψ⟩|\psi\rangle; for the generality of Definition 3.1, the equality of the outputs, that the state is VMV_M times that of the circuit with blocks W~\widetilde{W}, that the gates stay in SU(d)\mathrm{SU}(d), and that the map of the gates is a bijection; and the counts of readout rotations and of spare directions (paragraph Readout rotations and spare directions of Appendix § 11). Not formalised are: that the degree bounds of Lemma 4.2(iii) can fail for another phase; that an encoding generator or an observable with the same eigenvalues differs from ours by a unitary; that translations preserve Haar measure; that JJ and the span of the tangent vectors carry over under the change of frame, and the translated forms of Corollary 4.5(i) and Lemma 4.2(iii); the correspondence of the optimiser runs; and, on two qubits, that a readout rotation leaves ff unchanged beyond first order. For the parallel circuit the project has no coefficient Jacobian; there a direction leaves ff unchanged to first order when the combination of the functions ∂jf\partial_j f vanishes, and these functions span at most 2E+12E+1 dimensions. The Pauli-word instances of Lemma B.2 are proved for one and two qubits, the cases used in this paper. Lemma B.1 is proved with the polynomiality of det⁡(JJT)\det(JJ^{\mathsf{T}}) as a hypothesis, which the paper derives from Lemma 4.1; the hypothesis is discharged for the serial and the ancilla circuit, the circuits to which the lemma is applied. Theorem 3 of Motlagh & Wiebe [27] enters in its authors’ convention, and the conversion of the proof of Lemma 3.3(i) is proved.

Additional results

Conditioning along gradient descent (§ 5.3). The bound that motivates κJ\kappa_J (Appendix § 10, Conditioning) is one-sided: a well-conditioned Jacobian guarantees progress, a poorly conditioned one does not exclude it.

At initialisation the Jacobian of the serial circuit is worse conditioned than that of the two-qubit circuits at every EE (Figure 5a): the median κJ\kappa_J is 10−4.510^{-4.5}, 10−7.110^{-7.1} and 10−11.610^{-11.6} at E=8E = 8, 12, 16 (flat targets) against 10−2.810^{-2.8}, 10−4.210^{-4.2} and 10−5.710^{-5.7} for the ancilla circuit. From E=24E = 24 on the serial median (10−16.210^{-16.2}, 10−17.010^{-17.0}) is at the resolution of double precision and says only that κJ\kappa_J is below about 10−1510^{-15}.

Initial conditioning does not account for the difference in convergence. We compare, per configuration, the median log⁡10κJ\log_{10} \kappa_J at initialisation with the share of runs that converge under gradient descent, and, within a configuration with at least five converged and five other runs, the initial κJ\kappa_J of each run with its outcome (area under the ROC curve, with a bootstrap interval from 1,000 resamples). Configurations of different circuits whose median initial κJ\kappa_J agree within half a decade still differ: the serial circuit at E=8E = 8 and the ancilla circuit at E=12E = 12 (10−4.510^{-4.5} and 10−4.210^{-4.2}) converge under gradient descent in 93 and 100 of 100 runs on flat targets and in 71 and 99 on 1/k1/k targets, and the serial circuit at E=16E = 16 and the ancilla circuit at E=32E = 32 (both 10−11.610^{-11.6}, flat targets) in 65 and 99. In all five such pairs that involve the serial circuit the difference in convergence is significant, although the two-qubit circuit has the larger EE. Within a configuration, the initial κJ\kappa_J of a run does not predict whether it converges: in the eleven configurations with at least five runs of each kind the area under the ROC curve lies between 0.40 and 0.65, and every interval contains 0.5.

Along training the two quantities are ordered (Figure 5b, Table 2). We compare two events in each run: κJ\kappa_J rises above a threshold (10−410^{-4} in the text; 10−210^{-2} and 10−310^{-3} in the table), seen at the first checkpoint at which it does, and the loss falls to 10−410^{-4}, seen at the step at which it does. A run that reaches this loss is counted as above at start if κJ\kappa_J exceeds the threshold at initialisation, as κJ\kappa_J first if it exceeds it at a checkpoint before the loss step, as same interval if it first exceeds it at the first checkpoint at or after the loss step, as loss first if it first exceeds it later, and as never above otherwise; an excursion of κJ\kappa_J between two checkpoints is not seen. The two levels are unrelated. The loss level lies before the convergence threshold: the loss decreases monotonically, so that whatever precedes a loss of 10−410^{-4} also precedes convergence. Of the runs that start with κJ≤10−4\kappa_J \le10^{-4} and reach this loss (551 ancilla, 598 parallel, 330 serial), κJ\kappa_J had risen above its level at an earlier checkpoint in 544, 586 and 322; in all but one of the others the two events fall between the same two checkpoints. Conversely, of the 735 runs in which κJ\kappa_J exceeds 10−410^{-4} at no checkpoint, one reaches a loss of 10−410^{-4}. The serial circuit stays ill-conditioned more often: κJ\kappa_J never exceeds 10−410^{-4} in 465 of its 1,000 runs, against 127 for the ancilla circuit, and for the matched pair above (serial E=16E = 16, ancilla E=32E = 32, flat targets) in 27 against 0 of 100. This is a description and not a mechanism. The minimisers found are well conditioned (κJ\kappa_J between 10−2.310^{-2.3} and 10−0.610^{-0.6} at the end of every converged run), so that a low loss goes with a recovered κJ\kappa_J to some extent by itself, and for higher thresholds of κJ\kappa_J the order is less clear; at 10−210^{-2} the two events fall into the same checkpoint interval in about 40% of the corresponding runs and the loss comes first in 6 to 10%.

Adam on the exact loss (§ 5 and § 5.4). Converged runs end at a level that falls with the learning rate: for the ancilla circuit the median final loss of the runs below 10−610^{-6} is 10−910^{-9}–10−9.610^{-9.6} at the rate 10−310^{-3} (5% and 95% quantiles 10−11.810^{-11.8} and 10−8.210^{-8.2}) and 10−11.810^{-11.8} at 10−410^{-4}. A threshold of 10−1010^{-10} therefore cuts through the converged runs: at E=8E = 8 on flat targets, 77 serial and 54 ancilla runs lie below it, although all 200 are below 10−610^{-6}. Up to 7 of 100 runs per configuration lie between 10−810^{-8} and 10−610^{-6}; under either threshold the same nine of ten differences are significant. On the original grid of rates, 25 of the 30 configurations were tuned to its smallest rate. Bracketing applied to 27 configurations and changed 23 selections; in 21 the near-best rates still include an end of the extended grid, in 18 of them two-qubit circuits at its smallest rate (Table 15).

Checks on data (§ 6). End levels and threshold. Under the schedule of the main experiment Adam leaves 3,255 of the 4,800 evaluation runs below 10−1510^{-15}; with the same decay spread over four times as many steps, every converged ancilla run ends between 10−1010^{-10} and 10−610^{-6}; Levenberg–Marquardt leaves its converged runs between 10−1610^{-16} and 10−1410^{-14}. For every threshold from 10−410^{-4} to 10−1510^{-15}, the difference in the share of runs at the optimum between the ancilla and the serial circuit is positive with a 95% interval that excludes zero in all 16 configurations. Learning-rate bracketing (Table 10). 30 of the 48 configurations have their best tuning score at the floor and are not extended; in 26 of them the near-best rates include an end of the grid. Of the other 18, nine were extended and four selections changed; no share of runs at the optimum changes by more than 0.02. In the ten configurations with E≥16E \ge16 in which most serial runs fail, no rate, the added ones included, brings the tuning score of the serial circuit below 10−4.210^{-4.2}. Five tuning runs cannot separate rates when fewer than about a quarter of the runs fail: for the serial circuit on flat targets at E≤16E \le16 the tuning score is at the floor for at least three rates of the grid, while 0.05 to 0.16 of its evaluation runs fail at the selected rate. Step budget (Table 11). Under the stretched schedule converged runs end higher, at a level that appears to rise with the peak rate, so that shares at a fixed threshold are less comparable between configurations. Under both schedules the serial circuit reaches the optimum less often than the control in all seven configurations; under the held schedule the difference ranges from 0.20 to 0.97 with every interval excluding zero. Its size depends on the budget, and not in one direction: on jmcjmclose the serial circuit reaches the optimum in 18 of 30 runs instead of none, on flat targets at E=24E = 24 and on the temperatures less often than with 20,000 steps (15 instead of 22, and 1 instead of 6).

targetEEpeak rate (tuned →\to bracketed): serialancillapar. 2runs at the optimum, serial | ancilla: tunedbracketed
flat80.03∗0.03^{*}0.01∗0.01^{*}0.01∗0.01^{*}0.95 | 1.000.95 | 1.00
flat120.01∗0.01^{*}0.01∗0.01^{*}0.01∗0.01^{*}0.87 | 1.000.87 | 1.00
flat160.01∗0.01^{*}0.01∗0.01^{*}0.01∗0.01^{*}0.84 | 1.000.84 | 1.00
flat240.03∗0.03^{*}0.01∗0.01^{*}0.01∗0.01^{*}0.60 | 1.000.60 | 1.00
flat320.030.01∗0.01^{*}0.01∗0.01^{*}0.36 | 1.000.36 | 1.00
Poisson kernel80.003∗0.003^{*}0.01∗0.01^{*}0.01∗0.01^{*}0.77 | 1.000.77 | 1.00
Poisson kernel120.0030.01∗0.01^{*}0.01∗0.01^{*}0.42 | 0.990.42 | 0.99
Poisson kernel160.0030.003∗0.003^{*}0.003∗0.003^{*}0.17 | 0.970.17 | 0.97
Poisson kernel240.010.010.0010.03 | 0.620.03 | 0.62
Poisson kernel320.003→0.0010.003\to0.0010.0030.0030.01 | 0.240.00 | 0.24
gasprice240.003→0.01†0.003\to0.01^{\dagger}0.003∗0.003^{*}0.003∗0.003^{*}0.04 | 1.000.02 | 1.00
gasprice320.0030.003∗0.003^{*}0.0030.00 | 0.980.00 | 0.98
ibmclose240.0010.003∗0.003^{*}0.003∗0.003^{*}0.01 | 1.000.01 | 1.00
ibmclose320.0010.003∗0.003^{*}0.001∗0.001^{*}0.00 | 1.000.00 | 1.00
nottem240.010.010.01∗0.01^{*}0.09 | 1.000.09 | 1.00
nottem320.003→0.001†0.003\to0.001^{\dagger}0.01→0.0030.01\to0.0030.01∗0.01^{*}0.00 | 1.000.00 | 1.00

Table 10. Training on data, learning-rate bracketing (Appendix § 10): peak rate before and after the extension of the grid (∗^{*}: best tuning score at the floor, not extended; †^{\dagger}: near-best rates still include an end of the extended grid), and share of runs at the optimum for the serial and the ancilla circuit under the tuned and under the bracketed rates.

Table 11. Training on data, step budget (Appendix § 10): runs at the optimum out of 30, serial | ancilla, for the main experiment (1×, 20,000 steps) and for 80,000 steps with the additional steps at the peak rate (4× held) or with the decay spread over the whole run (4× stretched); last column: ancilla minus serial under the held schedule, with a 95% Newcombe interval. Same data and initialisations in all three columns.

targetEE1×4× held4× stretched4× held
flat1223/30 | 30/3024/30 | 30/3021/30 | 30/30+0.20 [+0.05, +0.37]
flat2422/30 | 30/3015/30 | 30/3015/30 | 30/30+0.50 [+0.30, +0.67]
Poisson kernel1214/30 | 30/3020/30 | 30/3021/30 | 30/30+0.33 [+0.15, +0.51]
Poisson kernel241/30 | 17/300/30 | 28/303/30 | 30/30+0.93 [+0.75, +0.98]
nottem246/30 | 30/301/30 | 30/303/30 | 30/30+0.97 [+0.79, +0.99]
gasprice242/30 | 30/307/30 | 30/307/30 | 30/30+0.77 [+0.56, +0.88]
ibmclose240/30 | 30/3018/30 | 30/3017/30 | 30/30+0.40 [+0.21, +0.58]

Table 11.

Flat targets at matched parameter counts (§ 5.4 and § 6). The flat targets of § 5, trained in the setup of § 6: 200 sampled training points, Adam with 20,000 steps and a tuned learning rate, and parameter counts matched (five gates per block in the serial circuit). The serial circuit reaches the optimum in 95, 87, 84, 60 and 36 of 100 runs at E=8,12,16,24,32E = 8, 12, 16, 24, 32, the ancilla and the parallel circuit in every run (Figure 6, Table 5). The difference to the ancilla control is significant at every EE; at E=8E = 8 the lower end of the interval is 0.003. The setup differs from that of § 5.4 in more than the parameter counts (sampled points, a shorter budget), so that the counts of the two sections are not to be compared with each other; what the runs show is that is the difference between the circuits is there at matched counts. Levenberg–Marquardt from the same initial gates brings the serial circuit to the optimum in 98, 100, 96, 94 and 82 runs at E=8E = 8 to 32, both two-qubit circuits in all (Table 8). These targets are also part of the step-budget check (Table 11).

Table 5. Synthetic targets, full-batch Adam, 100 runs per cell. Runs at the optimum: share with excess training loss at most 10−610^{-6} of the variance. Ancilla−serial: difference of these shares with a 95% Newcombe interval. Held-out error: median and 10%/90% quantiles of (1−Rserial2)/(1−Rancilla2)(1-R^2_{\mathrm{serial}})/(1-R^2_{\mathrm{ancilla}}) over runs on the same target; for flat targets the ancilla error is at the double-precision floor and the ratio is not shown.

targetEEserialancillapar. 2difference [95%]serialancillaserial/ancilla
flat80.951.001.00+0.05 [+0.00, +0.11]1.00001.0000—
flat120.871.001.00+0.13 [+0.07, +0.21]1.00001.0000—
flat160.841.001.00+0.16 [+0.09, +0.24]1.00001.0000—
flat240.601.001.00+0.40 [+0.30, +0.50]1.00001.0000—
flat320.361.001.00+0.64 [+0.54, +0.73]0.97831.0000—
Poisson kernel80.771.001.00+0.23 [+0.15, +0.32]0.99690.99711.00 [1.00, 1.19]
Poisson kernel120.420.990.99+0.57 [+0.46, +0.66]0.99610.99681.01 [1.00, 1.91]
Poisson kernel160.170.970.93+0.80 [+0.70, +0.86]0.99520.99671.29 [1.00, 2.33]
Poisson kernel240.030.620.37+0.59 [+0.48, +0.68]0.99180.99541.57 [1.02, 3.70]
Poisson kernel320.010.240.20+0.23 [+0.14, +0.32]0.98640.99261.61 [1.01, 3.48]

Table 5.

Table 8. Training on data, Levenberg–Marquardt from the same data and initial gates as Adam: share of runs at the optimum (excess training loss at most 10−610^{-6}) under both optimisers, 100 runs per cell, and the difference ancilla minus serial under Levenberg–Marquardt with a 95% Newcombe interval.

targetEEAdam serialAdam ancillaAdam par. 2Levenberg–Marquardt serialLevenberg–Marquardt ancillaLevenberg–Marquardt par. 2ancilla−serial Levenberg–Marquardt [95%]
flat80.951.001.000.981.001.00+0.02 [-0.02, +0.07]
flat120.871.001.001.001.001.00+0.00 [-0.04, +0.04]
flat160.841.001.000.961.001.00+0.04 [-0.00, +0.10]
flat240.601.001.000.941.001.00+0.06 [+0.01, +0.12]
flat320.361.001.000.821.001.00+0.18 [+0.11, +0.27]
Poisson kernel80.771.001.000.991.001.00+0.01 [-0.03, +0.05]
Poisson kernel120.420.990.990.971.001.00+0.03 [-0.01, +0.08]
Poisson kernel160.170.970.930.941.001.00+0.06 [+0.01, +0.12]
Poisson kernel240.030.620.370.791.001.00+0.21 [+0.13, +0.30]
Poisson kernel320.010.240.200.721.001.00+0.28 [+0.19, +0.37]
gasprice240.041.001.000.581.001.00+0.42 [+0.32, +0.52]
gasprice320.000.980.960.701.001.00+0.30 [+0.21, +0.40]
ibmclose240.011.001.000.931.001.00+0.07 [+0.02, +0.14]
ibmclose320.001.001.000.671.001.00+0.33 [+0.24, +0.43]
nottem240.091.001.000.321.001.00+0.68 [+0.58, +0.76]
nottem320.001.001.000.591.001.00+0.41 [+0.31, +0.51]

Table 8.

References

  1. [1]Absil, P.-A., Mahony, R., and Sepulchre, R. Optimization Algorithms on Matrix Manifolds. Princeton University Press, Princeton, NJ, 2008.DOI
  2. [2]Anderson, O. D. Time Series Analysis and Forecasting: The Box–Jenkins Approach. Butterworths, London, 1976.
  3. [3]Arel-Bundock, V. Rdatasets: A collection of datasets originally distributed in R packages. https://github.com/vincentarelbundock/Rdatasets, 2026. Commit ldcc2bf, 15 June 2026.
  4. [4]Armijo, L. Minimization of functions having Lipschitz continuous first partial derivatives. Pacific Journal of Mathematics, 16(1):1–3, 1966.DOI
  5. [5]Barthe, A. and Pérez-Salinas, A. Gradients and frequency profiles of quantum re-uploading models. Quantum, 8:1523, November 2024. ISSN 2521-327X. doi: 10.22331/q-2024-11-14-1523. URL http://dx.doi.org/10.22331/q-2024-11-14-1523.
  6. [6]Box, G. E. P. and Jenkins, G. M. Time Series Analysis: Forecasting and Control. Holden-Day, San Francisco, 1970.
  7. [7]Bradbury, J., Frostig, R., Hawkins, P., Johnson, M. J., Katarzyna, Y., Leary, C., Maclaurin, D., Necula, G., Paszke, A., VanderPlas, J., Wanderman-Milne, S., and Zhang, Q. JAX: composable transformations of Python+NumPy programs. http://github.com/google/jax-ml/jax, 2018.
  8. [8]Caceres Rossi, R. timeSeriesDataSets: Time Series Data Sets for R, 2024. URL https://github.com/lightbluetitan/timeseriesdatasets_R. R package version 0.1.0.
  9. [9]Cerezo, M., Sone, A., Volkoff, T., Cincio, L., and Coles, P. J. Cost function dependent barren plateaus in shallow parametrized quantum circuits. Nature Communications, 12(1):1791, 2021. doi: 10.1038/s41467-021-21728-w.DOI
  10. [10]Dong, Y., Meng, X., Whaley, K. B., and Lin, L. Efficient phase-factor evaluation in quantum signal processing. Physical Review A, 103(4), April 2021. ISSN 2469-9934. doi: 10.1103/physreva.103.042419. URL http://dx.doi.org/10.1103/PhysRevA.103.042419.
  11. [11]Duffy, C. and Jastrzebski, M. Spectral bias in variational quantum machine learning, 2026. URL https://arxiv.org/abs/2506.22555.
  12. [12]Fejér, L. Über trigonometrische Polynome. Journal für die reine und angewandte Mathematik, 146:53–82, 1916.DOI
  13. [13]Golub, G. H. and Van Loan, C. F. Matrix Computations. Johns Hopkins University Press, Baltimore, MD, 4th edition, 2013.
  14. [14]Holzer, P. and Turkalj, I. Spectral invariance and maximality properties of the frequency spectrum of quantum neural networks. arXiv preprint arXiv:2402.14515, 2024.arxiv.org/abs/2402.14515
  15. [15]Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.arxiv.org/abs/1412.6980
  16. [16]Knapp, A. W. Lie Groups Beyond an Introduction. Books by Independent Authors. Anthony W. Knapp, 2023. ISBN 9798989504206. doi: 10.3792/euclid/9798989504206. Published via Project Euclid.
  17. [17]Koenker, R. quantreg: Quantile Regression, 2026. URL https://CRAN.R-project.org/package=quantreg. R package version 6.1.
  18. [18]Krantz, S. G. and Parks, H. R. A Primer of Real Analytic Functions. Birkhäuser Advanced Texts Basler Lehrbücher. Birkhäuser, Boston, MA, 2 edition, 2002. ISBN 978-0-8176-4264-8. doi: 10.1007/978-0-8176-8134-0.DOI
  19. [19]Larocca, M., Ju, N., García-Martín, D., Coles, P. J., and Cerezo, M. T. Theory of overparameterization in quantum neural networks. Nature Computational Science, 3(6):542–551, 2023. doi: 10.1038/s43588-023-00467-6.DOI
  20. [20]Levenberg, K. A method for the solution of certain nonlinear problems in least squares. Quarterly of Applied Mathematics, 2(2):164–168, 1944.DOI
  21. [21]Liu, C., Zhu, L., and Belkin, M. Loss landscapes and optimization in over-parameterized non-linear systems and neural networks, 2021. URL https://arxiv.org/abs/2003.00307.
  22. [22]Marquardt, D. W. An algorithm for least-squares estimation of nonlinear parameters. Journal of the Society for Industrial and Applied Mathematics, 11(2):431–441, 1963.DOI
  23. [23]McClean, J. R., Boixo, S., Smelyanskyy, V. N., Babbush, R., and Neven, H. Barren plateaus in quantum neural network training landscapes. Nature Communications, 9(1):4812, 2018. doi: 10.1038/s41467-018-07090-4.DOI
  24. [24]Mezzadri, F. How to generate random matrices from the classical compact groups. Notices of the American Mathematical Society, 54(5):592–604, 2007.
  25. [25]Mhiri, H., Monbroussou, L., Herrero-Gonzalez, M., Thabet, S., Kashefi, E., and Landman, J. Constrained and vanishing expressivity of quantum Fourier models. Quantum, 9:1847, Sept 2025. ISSN 2521-327X. doi: 10.22331/q-2025-09-03-1847. URL http://dx.doi.org/10.22331/q-2025-09-03-1847.
  26. [26]Mityagin, B. S. The zero set of a real analytic function. Mathematical Notes, 107(3):529–530, Mar 2020. ISSN 1573-8876. doi: 10.1134/S0001434620030189. URL https://doi.org/10.1134/S0001434620030189.
  27. [27]Motlagh, D. and Wiebe, N. Generalized quantum signal processing. PRX Quantum, 5:020368, Jun 2024. doi: 10.1103/PRXQuantum.5.020368. URL https://link.aps.org/doi/10.1103/PRXQuantum.5.020368.DOI
  28. [28]Newcombe, R. G. Interval estimation for the difference between independent proportions: comparison of eleven methods. Statistics in Medicine, 17(8):873–890, 1998. doi: 10.1002/(SICI)1097-0258(19980430)17:8<873::AID-SIM779>3.0.CO;2-I. URL https://doi.org/10.1002/(sici)1097-0258(19980430)17:8<873::aid-sim779>3.0.co;2-i.
  29. [29]Nocedal, J. and Wright, S. J. Numerical Optimization. Springer Series in Operations Research and Financial Engineering. Springer, New York, NY, 2nd edition, 2006. doi: 10.1007/978-0-387-40065-5.DOI
  30. [32]Pérez-Salinas, A., Yaguhbi Rad, M., Barthe, A., and Dunjko, V. Universal approximation of continuous functions with minimal quantum circuits. Physical Review Research, 2025. doi: 10.1103/t49h-jmty. arXiv:2411.19152.
  31. [33]Pérez-Salinas, A., López-Núñez, D., García-Sáez, A., Forn-Díaz, P., and Latorre, J. I. One qubit is a universal approximant. Physical Review A, 104(1), July 2021. ISSN 2469-9934. doi: 10.1103/physreva.104.012405. URL http://dx.doi.org/10.1103/PhysRevA.104.012405.
  32. [34]Riesz, F. Über ein Problem des Herrn Carathéodory. Journal für die reine und angewandte Mathematik, 146:83–87, 1916.DOI
  33. [35]Sard, A. The measure of the critical values of differentiable maps. Bulletin of the American Mathematical Society, 48(12):883–890, 1942. doi: 10.1090/S0002-9904-1942-07811-6. URL https://portal.mardi4nfdi.de/wiki/Publication:5845772.DOI
  34. [36]Schuld, M., Sweke, R., and Meyer, J. J. Effect of data encoding on the expressive power of variational quantum-machine-learning models. Physical Review A, 103(3):032430, 2021. doi: 10.1103/PhysRevA.103.032430.DOI
  35. [37]Strobl, M., Sahin, M. E., van der Horst, L., Kuehn, E., Streit, A., and Jaderberg, B. Fourier fingerprints of ansatzes in quantum machine learning. Quantum Science and Technology, 11(4):045008, 2026. doi: 10.1088/2058-9565/ae8df8.DOI
  36. [38]Suzuki, Y., Yano, H., Raymond, R., and Yamamoto, N. Normalized gradient descent for variational quantum algorithms. arXiv preprint arXiv:2106.10981, 2021.arxiv.org/abs/2106.10981
  37. [39]Topel, S. Overcoming Fourier locking in quantum data re-uploading classifiers via spectral homotopy, 2026.arxiv.org/abs/2607.11013
  38. [40]Vatan, F. and Williams, C. Optimal quantum circuits for general two-qubit gates. Physical Review A, 69(3):032315, 2004.DOI
  39. [41]Wang, J. and Liu, J. Representation learning with quantum signal processing, 2026.arxiv.org/abs/2608.28828
  40. [42]Wang, J., Dong, Y., and Lin, L. On the energy landscape of symmetric quantum signal processing. Quantum, 6:850, 2022. doi: 10.22331/q-2022-11-03-850.DOI
  41. [43]Wiedmann, M., Hölle, M., Periyasamy, M., Meyer, N., Ufrecht, C., Scherer, D. D., Plinge, A., and Mutschler, C. An empirical comparison of optimizers for quantum machine learning with SPSA-based gradients. In 2023 IEEE International Conference on Quantum Computing and Engineering (QCE), 2023. doi: 10.1109/QCE57702.2023.00058.DOI
  42. [44]Wiedmann, M., Periyasamy, M., and Scherer, D. D. Fourier analysis of variational quantum circuits for supervised learning. In 2025 IEEE International Conference on Quantum Computing and Engineering (QCE), volume 1, pp. 1785–1795. IEEE, 2025.DOI
  43. [45]Wiersema, R. and Killoran, N. Optimizing quantum circuits with Riemannian gradient flow. Physical Review A, 107 (6):062421, 2023. doi: 10.1103/PhysRevA.107.062421.DOI
  44. [46]Wilson, E. B. Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158):209–212, 1927. doi: 10.1080/01621459.1927.10502953.DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type