Introduction
A classical neuron applies an activation function to an affine function of its input [15 Sec. 6.3] , an idea that goes back to McCulloch and Pitts [34 ] and Rosenblatt [42 ] . The activation must not itself be affine, because compositions of affine maps are affine. With any continuous activation that is not a polynomial, however, neural networks approximate every continuous function on a compact set [28 ] . This approximation capacity underlies the use of neural networks as models of nonlinear input–output relations [15 Sec. 6.4.1] .
Quantum learning models obtain their nonlinearity in a different way. Unitary evolution is linear in the state, but the map from the input x x x to the encoded state is not [33 , 47 ] . A data re-uploading circuit encodes the input x x x several times, with trainable gates in between, and returns an expectation value f ( x ) f(x) f ( x ) as its output [38 ] ; we call f f f the model function. For encodings by Pauli rotations with angle x x x , f f f is a trigonometric polynomial in x x x [48 ] , and a single qubit already suffices for universal approximation [39 , 61 ] . Quantum variants of Kolmogorov–Arnold networks use such one-qubit circuits as trainable activation functions [25 ] or implement the activations by quantum singular value transformation (QSVT) of block-encoded inputs [24 ] .
Universal approximation establishes the expressive capacity of a model, but does not determine the resources required to approximate a given target function. Previous work has investigated the accessible frequency spectra [48 ] , the depth requirements for fixed encoding frequencies [29 ] , and the classical representation of quantum model functions [32 ] . We ask how individual quantum resources constrain the functions that a model can approximate and derive lower bounds on the resources required for a given target.
We fix the encoding gate and the measured observable. Each trainable gate is assigned its resource power, the largest increase of a resource measure that the gate can cause. The sum over the trainable gates is the cumulative resource power. The encoding and measurement are not included in this sum, even when they can generate resourceful states.
A simple example shows why the encoding matters. Consider one qubit that starts in ∣ 0 ⟩ |0\rangle ∣0 ⟩ and is measured with Z Z Z , and the target g ( x ) = cos 4 x g(x)=\cos4x g ( x ) = cos 4 x on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . If the input enters through the rotation R y ( x ) R_y(x) R y ( x ) , four encoding calls realize g g g with identity trainable gates, because this gate itself creates coherence between the basis states. If it enters through the phase gate R z ( x ) R_z(x) R z ( x ) , the trainable gates must create this coherence. Realizing g g g then requires cumulative cohering power at least 2 at any depth, and two trainable rotations attain this value (Section 4.1). A resource requirement is a property of the model, with its encoding and readout, and not of the target alone.
Main contributions.
Coherence and imaginarity. A state has coherence if it is not diagonal in the computational basis, and imaginarity if its density matrix is not real. For phase encoding and Z Z Z readout, cumulative cohering power bounds the oscillation of the model function at any depth and its nonaffinity at fixed depth, while cumulative imaginarity power bounds its odd part (Theorems 1 and 2 ). In phase encoding the input is the angle of a rotation about the z z z axis. The oscillation is the difference between the largest and the smallest value of the function. The nonaffinity is the sum of the absolute values of its Chebyshev coefficients beyond degree one; it vanishes exactly for affine functions and bounds the distance from them. The depth is the number of layers of the circuit, each of which encodes the input once and applies one trainable gate. With zero cohering power only constant model functions remain. With zero imaginarity power exactly the continuous even targets can be approximated uniformly.
Two-qubit entanglement. With each input encoded locally on its own qubit, trainable two-qubit gates R Z Z R_{ZZ} R Z Z and Z ⊗ Z Z\otimes Z Z ⊗ Z readout, cumulative entangling power bounds the distance from product functions, which have one factor for each input, at any depth. At zero power, exactly the bounded product functions are uniformly approximable (Theorem 3). Without a restriction on the entangling power, the model approximates every continuous target with values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] uniformly (Appendix § 15 .§ 1 ).
Approximation with Clifford trainable gates. Magic is a resource for universal quantum computation beyond stabilizer operations [7 ] , and Clifford gates are the gates that cannot create it. In our model with phase encoding, the encoding gate already supplies non-Clifford operations for every input except x = 0 x=0 x = 0 , where it is the identity. On domains bounded away from this input, Clifford trainable gates therefore suffice for uniform approximation. Replacing unrestricted trainable gates by Clifford gates increases the depth at most polynomially in the original depth, the inverse error and the inverse distance of the domain from x = 0 x=0 x = 0 (Theorem 4).
Table 1 summarizes the resulting coherence, imaginarity and entanglement requirements.
Table 1. Resource requirements that hold at any depth. For each resource, the cumulative power P R P_R P R of the trainable gates (3) bounds one property of the model function f f f : its oscillation osc ( f ) \operatorname{osc}(f) osc ( f ) , its odd part f o d d f_{\mathrm{odd}} f odd , or its uniform distance (6) from the bounded product functions P \mathcal{P} P (19) . All three bounds are sharp. The last column gives the power that is necessary, but not sufficient, to approximate a target g g g with uniform error ε \varepsilon ε , where ( a ) + = max { a , 0 } (a)_+ = \max\{a,0\} ( a ) + = max { a , 0 } .
Outline. Section 2 introduces the resource measures, the power of a gate and the notions of approximation. § 3 defines the one-qubit model with its three encodings and states its universality. § 4 gives the coherence and imaginarity bounds. § 5 introduces the two-qubit model and relates entangling power to the distance from product functions. § 6 shows that Clifford trainable gates suffice for approximation on domains bounded away from zero. § 7 summarizes the results and discusses their dependence on the model, the connection to generative learning, and open questions on resources, training and generalization. The proofs are collected in the appendices.
Framework and notation
We first define the resource measures, the power of a trainable gate and the approximation error. A state ρ \rho ρ is a positive semidefinite matrix of trace one, and an observable M M M is Hermitian. We write 1 1 1 for the identity. For Hermitian A A A and B B B , the order A ≤ B A \le B A ≤ B means that B − A B-A B − A has nonnegative eigenvalues. Matrix entries, the transpose A T A^{\mathsf{T}} A T and the entrywise conjugate A ‾ \overline{A} A refer to the computational basis. The adjoint is A † = ( A ‾ ) T A^{\dagger}=(\overline{A})^{\mathsf{T}} A † = ( A ) T . With ∥ v ∥ 2 \lVert v\rVert_2 ∥ v ∥ 2 denoting the Euclidean norm, the operator norm is ∥ A ∥ o p = max ∥ v ∥ 2 = 1 ∥ A v ∥ 2 \lVert A\rVert_{\mathrm{op}}=\max_{\lVert v\rVert_2=1}\lVert Av\rVert_2 ∥ A ∥ op = max ∥ v ∥ 2 = 1 ∥ A v ∥ 2 . The trace norm is ∥ A ∥ 1 = Tr A † A \lVert A\rVert_1=\operatorname{Tr}\sqrt{A^{\dagger}A} ∥ A ∥ 1 = Tr A † A .
Resource measures
A resource theory describes what can be done under a restriction [12 ] . It specifies free states, which are available at no cost, and free operations, which cannot turn a free state into a state that is not free. All other states are resourceful. A resource measure quantifies their resource content: it vanishes on the free states and cannot increase under free operations [12 Sec. VI.A] . We consider coherence, imaginarity and magic for one qubit, and entanglement for two qubits. In each case the free states form a closed convex set F \mathcal{F} F that contains the maximally mixed state. We measure each resource by its generalized robustness, called global robustness in Ref. [12 Sec. VI.E.2] . It is the least t ≥ 0 t \ge0 t ≥ 0 such that adding t t t times some state τ \tau τ to ρ \rho ρ and normalizing gives a free state,
R F ( ρ ) = min { t ≥ 0 : ρ + t τ 1 + t ∈ F for some state τ } . (1) R_{\mathcal{F}}(\rho)=\min\left\{t\ge0:\frac{\rho+t\tau}{1+t}\in\mathcal{F}\text{ for some state }\tau\right\}. \tag*{(1)} R F ( ρ ) = min { t ≥ 0 : 1 + t ρ + t τ ∈ F for some state τ } . (1)
It vanishes exactly on F \mathcal{F} F . With σ \sigma σ denoting the free state ( ρ + t τ ) / ( 1 + t ) (\rho+t\tau)/(1+t) ( ρ + t τ ) / ( 1 + t ) , the condition in (1) reads ( 1 + t ) σ − ρ = t τ ≥ 0 (1+t)\sigma-\rho=t\tau\ge0 ( 1 + t ) σ − ρ = t τ ≥ 0 . The robustness is therefore also the least t ≥ 0 t\ge0 t ≥ 0 with ρ ≤ ( 1 + t ) σ \rho\le(1+t)\sigma ρ ≤ ( 1 + t ) σ for some σ ∈ F \sigma\in\mathcal{F} σ ∈ F . A quantum operation Φ \Phi Φ that maps free states to free states turns this inequality into Φ ( ρ ) ≤ ( 1 + t ) Φ ( σ ) \Phi(\rho)\le(1+t)\Phi(\sigma) Φ ( ρ ) ≤ ( 1 + t ) Φ ( σ ) with Φ ( σ ) ∈ F \Phi(\sigma)\in\mathcal{F} Φ ( σ ) ∈ F , so it cannot increase R F R_{\mathcal{F}} R F . This makes the robustness a resource measure for all four resources. The generalized robustness also quantifies an advantage in the discrimination of quantum operations (subchannel discrimination). Over all such tasks, 1 + R F ( ρ ) 1+R_{\mathcal{F}}(\rho) 1 + R F ( ρ ) is the largest ratio between the success probability with input state ρ \rho ρ and the best success probability with a free input state [51 ] .
Coherence. Coherence is superposition with respect to a fixed basis, here the computational basis. The free states are the diagonal states, also called incoherent, and free operations cannot create off-diagonal entries from them [4 , 45 ] . Coherence underlies interference and has been studied as a resource for quantum algorithms, metrology and thermodynamics [45 ] . For a qubit, (1) equals C ( ρ ) = ∑ j ≠ k ∣ ρ j k ∣ C(\rho)=\sum_{j\ne k}\lvert\rho_{jk}\rvert C ( ρ ) = ∑ j = k ∣ ρ j k ∣ , the ℓ 1 \ell_1 ℓ 1 -norm of coherence [4 , 35 ] .
Imaginarity. Imaginarity is defined with respect to the same basis. The free states are the real states, whose density matrices have only real entries, ρ = ρ T \rho=\rho^{\mathsf{T}} ρ = ρ T , and the free operations are those with real Kraus operators [GHG18, WKR+21a, WKR+21b]. The theory was introduced to study what complex numbers contribute to quantum information processing. For example, the two-qubit states ( 1 ± Y ⊗ Y ) / 4 (1\pm Y\otimes Y)/4 ( 1 ± Y ⊗ Y ) /4 are real, and local operations with classical communication distinguish them perfectly. When the local measurements are restricted to real ones, the two states give identical outcome distributions [57 Eq. (10)] . Here (1) is the robustness of imaginarity [58 Eq. (61)] , with the closed form I ( ρ ) = 1 2 ∥ ρ − ρ T ∥ 1 I(\rho)=\frac{1}{2}\lVert\rho-\rho^{\mathsf{T}}\rVert_1 I ( ρ ) = 2 1 ∥ ρ − ρ T ∥ 1 [58 Proposition 5] .
Magic. For magic the restriction is to stabilizer operations: Clifford gates, measurements in the computational basis and the preparation of stabilizer states [55 ] . A Clifford gate maps Pauli operators to Pauli operators up to signs under conjugation, and the stabilizer states are the states that Clifford gates produce from computational basis states. A computation built from these operations alone can be simulated efficiently on a classical computer [1 ] , and it becomes universal for quantum computation when suitable non-stabilizer states, called magic states, are supplied [7 ] . The pure stabilizer states of a qubit are the six eigenstates of the Pauli operators X X X , Y Y Y , Z Z Z , and the free states form their convex hull S T A B \mathrm{STAB} STAB . We use the generalized robustness of magic M = R S T A B M=R_{\mathrm{STAB}} M = R STAB , normalized to vanish on free states. In Ref. [43 Eq. (15)] this measure appears as Λ + − 1 \Lambda^+-1 Λ + − 1 , where Λ + ( ρ ) \Lambda^+(\rho) Λ + ( ρ ) is the least λ \lambda λ with ρ ≤ λ σ \rho\le\lambda\sigma ρ ≤ λσ for some σ ∈ S T A B \sigma\in\mathrm{STAB} σ ∈ STAB .
Entanglement. A state of the two qubits is separable if it is a convex mixture of product states ρ A ⊗ ρ B \rho_A\otimes\rho_B ρ A ⊗ ρ B , and entangled otherwise [HHHH09]. Two parties who each hold one of the qubits can prepare exactly the separable states by local operations and classical communication, and these operations cannot create entanglement. Entangled states are the resource for teleportation, dense coding and quantum cryptography [HHHH09]. We write S e p \mathrm{Sep} Sep for the set of separable states and R g = R S e p R_g = R_{\mathrm{Sep}} R g = R Sep for the generalized robustness of entanglement [49 ] . In the robustness of Vidal and Tarrach [56 ] the admixed state τ \tau τ in (1) is separable; here it is arbitrary.
Resource power
A gate acts on a state that depends on the circuit input and on the preceding gates. We quantify the gate independently of this state by its largest possible resource increase. For any of the measures R R R above, we use the resource increasing power of a unitary V V V [26 Eq. (2)] , which we call its resource power for short. It is the largest increase in R R R over input states,
p R ( V ) = max ρ { R ( V ρ V † ) − R ( ρ ) } , (2) p_R(V) = \max_{\rho} \{R(V\rho V^\dagger) - R(\rho)\}, \tag*{(2)} p R ( V ) = ρ max { R ( V ρ V † ) − R ( ρ )} , (2)
where the maximum is over all states of the system on which V V V acts, without ancillas. We write p C p_C p C , p I p_I p I , p M p_M p M and p E p_E p E for the cohering, imaginarity, magic and entangling power. For coherence, (2) is the coherence power of Ref. [16 Definition 1] , called generalized cohering power in Ref. [9 Eq. (6)] . Other definitions take the largest absolute change of the resource, max { p R ( V ) , p R ( V † ) } \max\{p_R(V),p_R(V^\dagger)\} max { p R ( V ) , p R ( V † )} [5 , 60 ] , or the largest resource created from a free state. For all gates whose power we compute, they give the same value (Lemma 2.1 and Appendix § 15 .§ 2 ). Averages over free input states are also used, for example the entangling power of Zanardi et al. [63 ] and the imaginarity-generating power of Ref. [3 ] .
The power is nonnegative, because V V V leaves the free, maximally mixed state unchanged. It vanishes exactly when V V V maps free states to free states: a gate that takes some free state outside F \mathcal{F} F has positive power, and a gate that preserves the free states cannot increase R R R (§ 2.1 ).
For a specified gate sequence, we define the cumulative resource power as the sum of the individual gate powers,
P R = ∑ j p R ( V j ) . (3) P_R = \sum_j p_R(V_j). \tag*{(3)} P R = j ∑ p R ( V j ) . (3)
For any circuit input, each gate V j V_j V j raises R R R by at most p R ( V j ) p_R(V_j) p R ( V j ) , so the gates counted in (3) contribute a total increase of at most P R P_R P R . In our models these are the trainable gates, not the encoding gates. The cumulative power is a property of the gate sequence: different decompositions of the same unitary can have different cumulative powers (Appendix § 15 .§ 5 ).
One qubit in the Bloch picture
In the Bloch ball, one-qubit states are represented by vectors and unitary gates act as rotations. The free states of coherence, imaginarity and magic form an axis, a disk and an octahedron, respectively (Figure 1 ).
Figure 1. One-qubit resources in the Bloch ball. Panels (a)–(c) show the same state with Bloch vector s = ( − 1 , 1 , 1 ) / 2 \boldsymbol{s}=(-1,1,1)/2 s = ( − 1 , 1 , 1 ) /2 . The free states form the blue z z z axis, x z xz x z disk and stabilizer octahedron, respectively. In (a) and (b) the green segment joins the state to its orthogonal projection onto the free set, and its length is the coherence in (a) and the imaginarity in (b). In (c) the state lies outside the stabilizer octahedron. Panels (d)–(f) use the same gate R x ( π / 4 ) R_x(\pi/4) R x ( π /4 ) . Light blue dashes show the rotated free sets. The two blue dots mark the north pole before and after rotation. In (d) and (e) the green segment has length sin θ \sin\theta sin θ , where θ = π / 4 \theta=\pi/4 θ = π /4 is the marked tilt angle, giving the cohering and imaginarity powers, respectively. In (f) the rotated north pole lies outside the original octahedron, so the gate has positive magic power.
States. A state is ρ = ( 1 + s ⋅ σ ) / 2 \rho= (1+s\cdot\sigma)/2 ρ = ( 1 + s ⋅ σ ) /2 with σ = ( X , Y , Z ) \sigma= (X,Y,Z) σ = ( X , Y , Z ) and a Bloch vector s ∈ R 3 s \in\mathbb{R}^3 s ∈ R 3 , ∥ s ∥ 2 ≤ 1 \lVert s\rVert_2 \le1 ∥ s ∥ 2 ≤ 1 ; pure states have ∥ s ∥ 2 = 1 \lVert s\rVert_2 = 1 ∥ s ∥ 2 = 1 . We write e x , e y , e z e_x,e_y,e_z e x , e y , e z for the unit vectors along the axes and s ⊥ = ( s x , s y ) T s_\perp= (s_x,s_y)^\mathsf{T} s ⊥ = ( s x , s y ) T for the part of s s s in the transverse (x y xy x y ) plane. The diagonal states lie on the z z z axis and the real states lie in the x z xz x z plane (Figure 1 (a), (Figure 1 b)), and coherence and imaginarity are the distances of s s s from these sets,
C ( ρ ) = ∥ s ⊥ ∥ 2 , I ( ρ ) = ∣ s y ∣ . (4) C(\rho) = \lVert s_\perp\rVert_2,\qquad I(\rho) = |s_y|. \tag*{(4)} C ( ρ ) = ∥ s ⊥ ∥ 2 , I ( ρ ) = ∣ s y ∣. (4)
The pure stabilizer states are the points ± e x , ± e y , ± e z \pm e_x,\pm e_y,\pm e_z ± e x , ± e y , ± e z , and STAB is the octahedron ∣ s x ∣ + ∣ s y ∣ + ∣ s z ∣ ≤ 1 |s_x|+|s_y|+|s_z|\le1 ∣ s x ∣ + ∣ s y ∣ + ∣ s z ∣ ≤ 1 (Figure 1 (c)).
Gates. We write R a ( t ) = e − i t σ a / 2 R_a(t)=e^{-it\sigma_a/2} R a ( t ) = e − i t σ a /2 for rotations generated by the Pauli matrices. Up to a global phase, a one-qubit gate is a unitary matrix of determinant one, V ∈ S U ( 2 ) V\in\mathrm{SU}(2) V ∈ SU ( 2 ) . Conjugation by V V V acts on the Bloch vector by a real orthogonal matrix of determinant one, O ( V ) ∈ S O ( 3 ) O(V)\in\mathrm{SO}(3) O ( V ) ∈ SO ( 3 ) , the Bloch rotation of V V V ,
V ( s ⋅ σ ) V † = ( O ( V ) s ) ⋅ σ . V(s\cdot\sigma)V^\dagger= (O(V)s)\cdot\sigma. V ( s ⋅ σ ) V † = ( O ( V ) s ) ⋅ σ .
These rotations satisfy O ( V W ) = O ( V ) O ( W ) O(VW)=O(V)O(W) O ( V W ) = O ( V ) O ( W ) and O ( V † ) = O ( V ) T O(V^\dagger)=O(V)^\mathsf{T} O ( V † ) = O ( V ) T . The gate R a ( t ) R_a(t) R a ( t ) acts as the rotation by the angle t t t about e a e_a e a , as shown for R x ( π / 4 ) R_x(\pi/4) R x ( π /4 ) in Figure 1 (d)–(Figure 1 f). A Clifford gate maps X , Y , Z X,Y,Z X , Y , Z to Pauli operators up to signs, so its Bloch rotation permutes the axes up to signs.
Powers. The cohering and imaginarity powers depend only on how far the Bloch rotation tilts the z z z axis and the y y y axis.
Lemma 2.1 (Cohering and imaginarity power of qubit gates). For V ∈ S U ( 2 ) V\in\mathrm{SU}(2) V ∈ SU ( 2 ) ,
p C ( V ) = 1 − O ( V ) z z 2 , p I ( V ) = 1 − O ( V ) y y 2 . (5) \begin{aligned}
p_{\mathrm{C}}(V)&=\sqrt{1-O(V)_{zz}^{2}},\\
p_{\mathrm{I}}(V)&=\sqrt{1-O(V)_{yy}^{2}}. \tag*{(5)}
\end{aligned} p C ( V ) p I ( V ) = 1 − O ( V ) z z 2 , = 1 − O ( V ) y y 2 . (5) For coherence, the largest increase occurs for the basis state ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , so p C ( V ) = C ( V ∣ 0 ⟩ ⟨ 0 ∣ V † ) p_{\mathrm{C}}(V)=C(V\lvert0\rangle\langle0\rvert V^\dagger) p C ( V ) = C ( V ∣ 0 ⟩ ⟨ 0 ∣ V † ) . For imaginarity, it occurs for a pure real state with Bloch vector proportional to ( O ( V ) y x , 0 , O ( V ) y z ) (O(V)_{yx},0,O(V)_{yz}) ( O ( V ) y x , 0 , O ( V ) y z ) , provided p I ( V ) > 0 p_{\mathrm{I}}(V)>0 p I ( V ) > 0 .
The proof is given in Appendix § 11 .§ 2 . For coherence, the lemma agrees with the results for the ℓ 1 \ell_1 ℓ 1 -norm of coherence in Refs. [9 Proposition 9] and [16 Theorem 1] .
Geometrically, p C ( V ) p_{\mathrm{C}}(V) p C ( V ) is the sine of the angle by which O ( V ) O(V) O ( V ) tilts the z z z axis (Figure 1 (d)). The transverse projections of O ( V ) e z O(V)e_z O ( V ) e z and O ( V ) T e z O(V)^{\mathsf{T}}e_z O ( V ) T e z both have length p C ( V ) p_{\mathrm{C}}(V) p C ( V ) , since both vectors have unit length and z z z component O ( V ) z z O(V)_{zz} O ( V ) z z . In terms of the matrix entries, O ( V ) z z = ∣ V 00 ∣ 2 − ∣ V 10 ∣ 2 O(V)_{zz}=\lvert V_{00}\rvert^2-\lvert V_{10}\rvert^2 O ( V ) z z = ∣ V 00 ∣ 2 − ∣ V 10 ∣ 2 is the Z Z Z expectation value of V ∣ 0 ⟩ V\lvert0\rangle V ∣ 0 ⟩ . The two squares add up to one, so that p C ( V ) = 2 ∣ V 00 ∣ ∣ V 10 ∣ p_{\mathrm{C}}(V)=2\lvert V_{00}\rvert\lvert V_{10}\rvert p C ( V ) = 2 ∣ V 00 ∣ ∣ V 10 ∣ , twice the product of the absolute values of a diagonal and an off-diagonal entry of V V V . In the same way, p I ( V ) p_{\mathrm{I}}(V) p I ( V ) is the sine of the angle by which O ( V ) O(V) O ( V ) tilts the y y y axis, and with it the x z xz x z plane of real states (Figure 1 (e)).
This geometry also characterizes the gates of zero resource power. A gate has zero cohering power exactly when its rotation maps the z z z axis to itself, possibly reversing its direction. It has zero imaginarity power exactly when the same holds for the y y y axis, that is, when its matrix is real up to a global phase. It has zero magic power exactly when it is a Clifford gate (Figure 1 (f)). Indeed, by § 2.2 such a gate maps the octahedron STAB into itself, and a rotation does so only if it maps the vertices, the only unit vectors in the octahedron, to vertices.
Approximation error and nonaffinity
We compare a model function f f f with a target function g g g using the following notions of approximation. For a compact input domain X \mathcal{X} X , C ( X ; J ) \mathcal{C}(\mathcal{X};J) C ( X ; J ) denotes the continuous functions on X \mathcal{X} X with values in J J J . Unless stated otherwise, approximation is uniform. On a domain D D D we write ∥ h ∥ ∞ , D = sup x ∈ D ∣ h ( x ) ∣ \lVert h\rVert_{\infty,D} = \sup_{x\in D}|h(x)| ∥ h ∥ ∞ , D = sup x ∈ D ∣ h ( x ) ∣ and omit D D D when the domain is clear. The distance of g g g from a nonempty class A A A of functions is the infimum of the error over the class,
dist ( g , A ) = inf h ∈ A ∥ g − h ∥ ∞ (6) \operatorname{dist}(g,A)=\inf_{h\in A}\lVert g-h\rVert_{\infty} \tag*{(6)} dist ( g , A ) = h ∈ A inf ∥ g − h ∥ ∞ (6)
and the uniform closure of A ⊆ C ( X ; R ) A\subseteq\mathcal{C}(\mathcal{X};\mathbb{R}) A ⊆ C ( X ; R ) consists of all g ∈ C ( X ; R ) g\in\mathcal{C}(\mathcal{X};\mathbb{R}) g ∈ C ( X ; R ) at distance zero from A A A . The oscillation osc ( h ) = max h − min h \operatorname{osc}(h)=\max h-\min h osc ( h ) = max h − min h is twice the distance of h h h from the constant functions. We write ( a ) + = max { a , 0 } (a)_{+}=\max\{a,0\} ( a ) + = max { a , 0 } and h o d d ( x ) = [ h ( x ) − h ( − x ) ] / 2 h_{\mathrm{odd}}(x)=[h(x)-h(-x)]/2 h odd ( x ) = [ h ( x ) − h ( − x )] /2 for the odd part of h h h on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] .
§ 6 also considers the mean absolute error ∥ f − g ∥ L 1 ( μ ) \lVert f-g\rVert_{L^{1}(\mu)} ∥ f − g ∥ L 1 ( μ ) , where the Borel probability measure μ \mu μ describes the input distribution and
∥ h ∥ L 1 ( μ ) = ∫ X ∣ h ( x ) ∣ d μ ( x ) . (7) \lVert h\rVert_{L^{1}(\mu)}=\int_{\mathcal{X}}|h(x)|\,\mathrm{d}\mu(x). \tag*{(7)} ∥ h ∥ L 1 ( μ ) = ∫ X ∣ h ( x ) ∣ d μ ( x ) . (7)
With phase encoding (§ 3 ) the model function is a trigonometric polynomial in x x x [48 ] , that is, a finite sum of terms c k e i k x c_k e^{\mathrm{i}kx} c k e i k x with integers k k k ; its degree is the largest ∣ k ∣ |k| ∣ k ∣ that occurs. It therefore has an absolutely convergent Chebyshev expansion on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] [52 Chap. 3] . We write
f ( x ) = ∑ n ≥ 0 a n T n ( x ) , N ( f ) = ∑ n ≥ 2 ∣ a n ∣ , (8) \begin{aligned}
f(x)&=\sum_{n\geq0}a_nT_n(x),\\
\mathcal{N}(f)&=\sum_{n\geq2}|a_n|, \tag*{(8)}
\end{aligned} f ( x ) N ( f ) = n ≥ 0 ∑ a n T n ( x ) , = n ≥ 2 ∑ ∣ a n ∣ , (8)
where T n ( cos φ ) = cos ( n φ ) T_n(\cos\varphi)=\cos(n\varphi) T n ( cos φ ) = cos ( n φ ) and a 0 a_0 a 0 carries no factor 1 / 2 1/2 1/2 . Since T 0 ( x ) = 1 T_0(x)=1 T 0 ( x ) = 1 and T 1 ( x ) = x T_1(x)=x T 1 ( x ) = x , N ( f ) \mathcal{N}(f) N ( f ) vanishes exactly when f f f is affine. We therefore use it as a measure of nonaffinity . The bound ∣ T n ∣ ≤ 1 |T_n|\leq1 ∣ T n ∣ ≤ 1 on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] implies that the distance from f f f to the affine functions is at most N ( f ) \mathcal{N}(f) N ( f ) , but the two quantities need not coincide.
The one-qubit model
Universal approximation with a single qubit was established by Pérez-Salinas et al. [39 Theorem 4] for trainable input weights and by Yu et al. [61 ] for a fixed encoding rotation. We work in the second setting.
Let x ∈ X x\in\mathcal{X} x ∈ X be the input. The encoding gate E ( x ) E(x) E ( x ) is applied L ∈ N 0 L\in\mathbb{N}_0 L ∈ N 0 times. We call each application an encoding call and L L L the encoding depth, or simply the depth. With the parameters θ = ( θ 0 , … , θ L ) \boldsymbol{\theta}=(\theta_0,\ldots,\theta_L) θ = ( θ 0 , … , θ L ) of the L + 1 L+1 L + 1 trainable gates, the circuit and its output are
ρ r = 1 2 ( 1 + r Z ) , 0 < r ≤ 1 , U θ ( x ) = V L E ( x ) ⋯ V 1 E ( x ) V 0 , ρ θ ( x ) = U θ ( x ) ρ r U θ ( x ) † , f θ ( x ) = Tr Z ρ θ ( x ) , (9) \begin{aligned}
\rho_r&=\frac{1}{2}(1+rZ),\qquad0<r\leq1,\\
U_{\boldsymbol{\theta}}(x)&=V_LE(x)\cdots V_1E(x)V_0,\\
\rho_{\boldsymbol{\theta}}(x)&=U_{\boldsymbol{\theta}}(x)\rho_rU_{\boldsymbol{\theta}}(x)^{\dagger},\\
f_{\boldsymbol{\theta}}(x)&=\operatorname{Tr}Z\rho_{\boldsymbol{\theta}}(x), \tag*{(9)}
\end{aligned} ρ r U θ ( x ) ρ θ ( x ) f θ ( x ) = 2 1 ( 1 + r Z ) , 0 < r ≤ 1 , = V L E ( x ) ⋯ V 1 E ( x ) V 0 , = U θ ( x ) ρ r U θ ( x ) † , = Tr Z ρ θ ( x ) , (9)
with U θ ( x ) = V 0 U_{\boldsymbol{\theta}}(x)=V_0 U θ ( x ) = V 0 for L = 0 L=0 L = 0 (Figure 2 ). The measured observable, here Z Z Z , is the readout, and its expectation value f θ f_{\boldsymbol{\theta}} f θ is the model function. The data-independent trainable gates V j = V ( θ j ) ∈ SU ( 2 ) V_j=V(\theta_j)\in\operatorname{SU}(2) V j = V ( θ j ) ∈ SU ( 2 ) are restricted only through their cumulative resource power. For a fixed circuit we drop the index θ \boldsymbol{\theta} θ and write U U U , ρ \rho ρ and f f f . The input state ρ r = ( 1 − r ) ∣ 0 ⟩ ⟨ 0 ∣ + r ∣ 0 ⟩ ⟨ 0 ∣ \rho_r=(1-r)|0\rangle\langle0|+r|0\rangle\langle0| ρ r = ( 1 − r ) ∣0 ⟩ ⟨ 0∣ + r ∣0 ⟩ ⟨ 0∣ is the pure state ∣ 0 ⟩ |0\rangle ∣0 ⟩ mixed with the maximally mixed state, and its Bloch vector has length r r r . Values r < 1 r<1 r < 1 model depolarizing noise on the input. Since Z Z Z is traceless, the maximally mixed component contributes zero to f f f . What remains is r r r times the model function for the pure input ∣ 0 ⟩ |0\rangle ∣0 ⟩ , so f f f takes values in [ − r , r ] [-r,r] [ − r , r ] .
Figure 2. Data re-uploading circuit (9) with data-independent trainable gates V j V_j V j , a fixed encoding gate E ( x ) E(x) E ( x ) and Z Z Z readout.
Table 2 gives the three encoding gates and their domains. § 4 and § 6 use phase encoding.
Table 2. Fixed encoding gates and their input domains. The amplitude encoding gate maps ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ to 1 − x ∣ 0 ⟩ + x ∣ 1 ⟩ \sqrt{1-x}\lvert0\rangle+\sqrt{x}\lvert1\rangle 1 − x ∣ 0 ⟩ + x ∣ 1 ⟩ , and each encoding call applies this entire gate.
With unrestricted trainable gates and depth, the model with any of these encodings approximates every target in C ( X ; [ − r , r ] ) \mathcal{C}(\mathcal{X};[-r,r]) C ( X ; [ − r , r ]) uniformly (Proposition B.1 ). This known universality provides the reference for our bounds: without resource restrictions the model can approximate every target, so the bounds identify limitations imposed by those restrictions. Yu et al. characterize the unitaries that the circuits implement with phase encoding by Laurent polynomials, that is, polynomials in e i x / 2 e^{\mathrm{i}x/2} e i x /2 and e − i x / 2 e^{-\mathrm{i}x/2} e − i x /2 , for general and for real trainable gates [61 Lemmas 3 and 1] , and deduce approximation theorems. In the published version these are formulated for square-integrable targets on the full period [ − π , π ] [-\pi,\pi] [ − π , π ] and up to a normalizing constant [61 Theorem 4 and Proposition 2] . The proofs of Theorems 2 –4 require uniform approximation of the target itself on the stated input intervals, with real trainable gates for even targets. Appendix § 12 derives these statements from the two lemmas of Yu et al. using Fejér’s theorem and the Fejér–Riesz factorization, the polynomial approximation results collected in Appendix § 11 .§ 3 .
The model function also determines the distribution of the measurement outcome, so approximating a function amounts to approximating a conditional distribution. At fixed x x x , measuring Z Z Z gives bit y = 0 y=0 y = 0 for eigenvalue + 1 +1 + 1 and y = 1 y=1 y = 1 for − 1 -1 − 1 . The conditional probabilities are p ( 0 ∣ x ) = [ 1 + f ( x ) ] / 2 p(0\mid x)=[1+f(x)]/2 p ( 0 ∣ x ) = [ 1 + f ( x )] /2 and p ( 1 ∣ x ) = [ 1 − f ( x ) ] / 2 p(1\mid x)=[1-f(x)]/2 p ( 1 ∣ x ) = [ 1 − f ( x )] /2 [39 Eq. (14)] . For a target conditional distribution p ∗ ( ⋅ ∣ x ) p^*(\cdot\mid x) p ∗ ( ⋅ ∣ x ) on { 0 , 1 } \{0,1\} { 0 , 1 } , let g ( x ) = 2 p ∗ ( 0 ∣ x ) − 1 g(x)=2p^*(0\mid x)-1 g ( x ) = 2 p ∗ ( 0 ∣ x ) − 1 . The two probability errors have opposite signs and equal magnitude. The total variation distance between the distributions, TV ( p , q ) = 1 2 ∑ y ∣ p ( y ) − q ( y ) ∣ \operatorname{TV}(p,q)=\frac{1}{2}\sum_y\lvert p(y)-q(y)\rvert TV ( p , q ) = 2 1 ∑ y ∣ p ( y ) − q ( y )∣ , therefore equals 1 2 ∣ f ( x ) − g ( x ) ∣ \frac{1}{2}\lvert f(x)-g(x)\rvert 2 1 ∣ f ( x ) − g ( x )∣ at each x x x . Taking the supremum or averaging over the input distribution μ \mu μ gives
sup x ∈ X TV ( p ( ⋅ ∣ x ) , p ∗ ( ⋅ ∣ x ) ) = 1 2 ∥ f − g ∥ ∞ , (10) \sup_{x\in\mathcal{X}}\operatorname{TV}(p(\cdot\mid x),p^*(\cdot\mid x))=\frac{1}{2}\lVert f-g\rVert_\infty, \tag*{(10)} x ∈ X sup TV ( p ( ⋅ ∣ x ) , p ∗ ( ⋅ ∣ x )) = 2 1 ∥ f − g ∥ ∞ , (10)
∫ X TV ( p ( ⋅ ∣ x ) , p ∗ ( ⋅ ∣ x ) ) d μ ( x ) = 1 2 ∥ f − g ∥ L 1 ( μ ) . (11) \int_{\mathcal{X}}\operatorname{TV}(p(\cdot\mid x),p^*(\cdot\mid x))\,d\mu(x)=\frac{1}{2}\lVert f-g\rVert_{L^1(\mu)}. \tag*{(11)} ∫ X TV ( p ( ⋅ ∣ x ) , p ∗ ( ⋅ ∣ x )) d μ ( x ) = 2 1 ∥ f − g ∥ L 1 ( μ ) . (11)
With unrestricted trainable gates and depth, the uniformly approximable conditional distributions on { 0 , 1 } \{0,1\} { 0 , 1 } are precisely those for which x ↦ p ∗ ( 0 ∣ x ) x\mapsto p^*(0\mid x) x ↦ p ∗ ( 0 ∣ x ) is continuous and takes values in [ ( 1 − r ) / 2 , ( 1 + r ) / 2 ] [(1-r)/2,(1+r)/2] [( 1 − r ) /2 , ( 1 + r ) /2 ] .
Coherence and imaginarity in the one-qubit model
We use phase encoding R z ( x ) R_z(x) R z ( x ) on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and measure Z Z Z . The cumulative powers P C P_{\mathrm{C}} P C and P I P_{\mathrm{I}} P I sum the cohering and imaginarity powers (2) of the trainable gates V 0 , … , V L V_0,\ldots,V_L V 0 , … , V L in (9) .
The initial Bloch vector is r e z r e_z r e z , and the readout is its final z z z component. In the notation of § 2.3 ,
f ( x ) = r e z T O ( V L ) R ( x ) ⋯ O ( V 1 ) R ( x ) O ( V 0 ) e z , R ( x ) = ( Q x 0 0 1 ) , (12) f(x)=r e_z^{\mathsf{T}}O(V_L)R(x)\cdots O(V_1)R(x)O(V_0)e_z,
\qquad
R(x)=\begin{pmatrix}Q_x&0\\0&1\end{pmatrix}, \tag*{(12)} f ( x ) = r e z T O ( V L ) R ( x ) ⋯ O ( V 1 ) R ( x ) O ( V 0 ) e z , R ( x ) = ( Q x 0 0 1 ) , (12)
where R ( x ) = O ( R z ( x ) ) R(x)=O(R_z(x)) R ( x ) = O ( R z ( x )) is the rotation by the angle x x x about the z z z axis and Q x Q_x Q x rotates the transverse plane by this angle.
Coherence and oscillation
The phase gate rotates the transverse component of the Bloch vector and leaves its z z z component unchanged. For f f f to depend on x x x , a trainable gate must first create a transverse component and a later gate must rotate part of it into the z z z direction. A gate V V V maps e z \mathbf{e}_z e z to a unit Bloch vector whose transverse component has length p C ( V ) p_C(V) p C ( V ) . In the reverse direction, p C ( V ) p_C(V) p C ( V ) is the largest absolute z z z component obtained by rotating a unit vector in the transverse plane (Lemma 2.1 and Figure 1 (d)). Consider one encoding call between two opposite rotations about y y y ,
U ( x ) = R y ( − α ) R z ( x ) R y ( α ) , U(x)=R_y(-\alpha)R_z(x)R_y(\alpha), U ( x ) = R y ( − α ) R z ( x ) R y ( α ) ,
f ( x ) = r ( cos 2 α + sin 2 α cos x ) . (13) f(x)=r(\cos^2\alpha+\sin^2\alpha\cos x). \tag*{(13)} f ( x ) = r ( cos 2 α + sin 2 α cos x ) . (13)
The first rotation sends r e z r\mathbf{e}_z r e z to r ( sin α , 0 , cos α ) r(\sin\alpha,0,\cos\alpha) r ( sin α , 0 , cos α ) . The phase gate turns its transverse component through x x x , after which R y ( − α ) R_y(-\alpha) R y ( − α ) converts part of it back into the measured component. Each trainable gate has cohering power ∣ sin α ∣ |\sin\alpha| ∣ sin α ∣ by Lemma 2.1, and the coefficient of cos x \cos x cos x in f / r f/r f / r is the product of these powers. The general bound is quadratic in P C P_C P C for the same reason.
Theorem 1 (Cohering power bounds oscillation and nonaffinity). Let f f f be the model function of a circuit with L ≥ 1 L\ge1 L ≥ 1 encoding calls and cumulative cohering power P C P_C P C . Then
osc ( f ) ≤ 2 r min { 1 , P C 2 / 4 } , \operatorname{osc}(f)\le2r\min\{1,P_C^2/4\}, osc ( f ) ≤ 2 r min { 1 , P C 2 /4 } , N ( f ) ≤ K L r min { 1 , P C 2 / 4 } , (14) \mathcal{N}(f)\le K_Lr\min\{1,P_C^2/4\}, \tag*{(14)} N ( f ) ≤ K L r min { 1 , P C 2 /4 } , (14) where K L = min { L 2 / 2 , 2 π L } K_L=\min\{L^2/2,\sqrt{2\pi L}\} K L = min { L 2 /2 , 2 π L } . When P C = 0 P_C=0 P C = 0 the only model functions are the constants f ≡ r f\equiv r f ≡ r and f ≡ − r f\equiv-r f ≡ − r . The bound on the oscillation is attained for every P C ≤ 2 P_C\le2 P C ≤ 2 when $L\ge 2.
The proof in Appendix § 13 follows the two amplitudes of the qubit through the circuit with pure input ∣ 0 ⟩ |0\rangle ∣0 ⟩ . Let S S S be the largest product of the absolute values of the ∣ 0 ⟩ |0\rangle ∣0 ⟩ amplitude at an input x x x and the ∣ 1 ⟩ |1\rangle ∣1 ⟩ amplitude at an input y y y , over all pairs of inputs. The encoding gate changes only phases and leaves S S S unchanged, whereas a trainable gate V j V_j V j can increase it by at most p C ( V j ) / 2 p_C(V_j)/2 p C ( V j ) /2 . Since S S S starts at zero and the outputs at two inputs differ by at most 2 r S 2 2rS^2 2 r S 2 , the oscillation is at most r P C 2 / 2 rP_C^2/2 r P C 2 /2 . The circuit ((13) ), with two or more encoding calls and an additional fixed phase R z ( π / 2 ) R_z(\pi/2) R z ( π /2 ) , attains this bound. To obtain the nonaffinity bound, we use that f f f is a trigonometric polynomial of degree at most L L L . The proof bounds its oscillation over a full period; Bernstein’s inequality then controls its derivatives and hence the sum of the absolute values of its Chebyshev coefficients beyond degree one.
The oscillation bound gives a necessary cohering power for approximating a target. If a circuit approximates a target g g g with ∥ f − g ∥ ∞ ≤ ε \lVert f-g\rVert_\infty\le\varepsilon ∥ f − g ∥ ∞ ≤ ε , then osc ( g ) ≤ osc ( f ) + 2 ε ≤ r P C 2 / 2 + 2 ε \operatorname{osc}(g)\le\operatorname{osc}(f)+2\varepsilon\le rP_C^2/2+2\varepsilon osc ( g ) ≤ osc ( f ) + 2 ε ≤ r P C 2 /2 + 2 ε , that is,
P C ≥ 2 r ( osc ( g ) − 2 ε ) + . (15) P_C\ge\sqrt{\frac{2}{r}\bigl(\operatorname{osc}(g)-2\varepsilon\bigr)_+}. \tag*{(15)} P C ≥ r 2 ( osc ( g ) − 2 ε ) + . (15)
At any depth, a nonconstant target requires positive P C P_C P C once ε < osc ( g ) / 2 \varepsilon<\operatorname{osc}(g)/2 ε < osc ( g ) /2 . For a target with range [ − r , r ] [-r,r] [ − r , r ] , the required power is at least 2 1 − ε / r 2\sqrt{1-\varepsilon/r} 2 1 − ε / r when 0 ≤ ε ≤ r 0\le\varepsilon\le r 0 ≤ ε ≤ r . A single gate has cohering power at most one, so as ε → 0 \varepsilon\to0 ε → 0 this requirement approaches the combined power of two maximally cohering gates. Exact realization of r cos 4 x r\cos4x r cos 4 x , which for r = 1 r=1 r = 1 is the example of the introduction, requires P C ≥ 2 P_C\ge2 P C ≥ 2 . This value is attained: in the circuit R y ( − π / 2 ) R z ( x ) 2 R y ( π / 2 ) R_y(-\pi/2)R_z(x)^2R_y(\pi/2) R y ( − π /2 ) R z ( x ) 2 R y ( π /2 ) each of the two rotations about the y y y axis has cohering power one, and ((13) ) gives f ( x ) = r cos 4 x f(x)=r\cos4x f ( x ) = r cos 4 x .
The distance of f f f from the constants is osc ( f ) / 2 \operatorname{osc}(f)/2 osc ( f ) /2 , the quantity shown in Figure 3 (a). Since constants are affine, the distance from f f f to the affine functions is also at most r P C 2 / 4 rP_C^2/4 r P C 2 /4 at any depth. The nonaffinity bound controls the sum of the absolute values of all Chebyshev coefficients beyond degree one, but its constant K L K_L K L grows with depth.
Figure 3. Resource bounds and sampled circuits. (a) Distance of f f f from the constant functions, with the bound min { 1 , P C 2 / 4 } \min\{1,P_C^2/4\} min { 1 , P C 2 /4 } of Theorem 1. (b) Uniform norm of the odd part of f f f , with the bound min { 1 , P I } \min\{1,P_I\} min { 1 , P I } of Theorem 2 . (c) Distance of f f f from the product functions, with the bound min { 1 , P E } \min\{1,P_E\} min { 1 , P E } of Theorem 3. For the random circuits it is a numerical estimate: On a grid of 33 × 33 33 \times33 33 × 33 equally spaced inputs, we minimize the maximum error over the two factors of a product function, one at a time, until it improves by less than 10 − 7 10^{-7} 1 0 − 7 . We keep the smallest error from eight starting values. The gray regions are excluded by the bounds. The explicit families saturate them (Appendices § 13 , D and E.4). The random circuits have up to eight encoding calls in (a) and (b) and up to three R Z Z R_{ZZ} R Z Z gates in (c).
Imaginarity and the odd part
Complex conjugation in the computational basis reflects the Bloch vector in the x z xz x z plane, the plane of real states (Figure 1 (b)). It leaves the input state ρ r \rho_r ρ r and the readout Z Z Z unchanged and maps R z ( x ) R_z(x) R z ( x ) to R z ( − x ) R_z(-x) R z ( − x ) . Real trainable gates therefore give an even model function. With unrestricted depth, such circuits uniformly approximate every continuous even target g : [ − 1 , 1 ] → [ − r , r ] g:[-1,1]\to[-r,r] g : [ − 1 , 1 ] → [ − r , r ] (Proposition B.1). For a general gate V V V , the Bloch rotations of V V V and of its complex conjugate V ‾ \overline{V} V differ in operator norm by exactly 2 p I ( V ) 2p_I(V) 2 p I ( V ) (Appendix § 14 ). Summed over the trainable gates, these differences bound the odd part
f o d d ( x ) = f ( x ) − f ( − x ) 2 . f_{\mathrm{odd}}(x)=\frac{f(x)-f(-x)}{2}. f odd ( x ) = 2 f ( x ) − f ( − x ) .
Theorem 2 (Imaginarity power bounds the odd part). For phase encoding and Z Z Z readout,
∥ f o d d ∥ ∞ ≤ r min { 1 , P I } . (16) \lVert f_{\mathrm{odd}}\rVert_{\infty} \le r\min\{1,P_I\}. \tag*{(16)} ∥ f odd ∥ ∞ ≤ r min { 1 , P I } . (16)
Allowing arbitrary encoding depth, the uniform closure of the model functions with P I = 0 P_I=0 P I = 0 consists of all even functions in C ( [ − 1 , 1 ] ; [ − r , r ] ) C([-1,1];[-r,r]) C ([ − 1 , 1 ] ; [ − r , r ]) . For every g ∈ C ( [ − 1 , 1 ] ; [ − r , r ] ) g \in C([-1,1];[-r,r]) g ∈ C ([ − 1 , 1 ] ; [ − r , r ]) , the infimum of ∥ f − g ∥ ∞ \lVert f-g\rVert_{\infty} ∥ f − g ∥ ∞ over these circuits equals ∥ g o d d ∥ ∞ \lVert g_{\mathrm{odd}}\rVert_{\infty} ∥ g odd ∥ ∞ . The bound (17) is attained for every P I ≤ 1 P_I \le1 P I ≤ 1 when L ≥ 2 L \ge2 L ≥ 2 .
Since ∥ g o d d ∥ ∞ ≤ ∥ f o d d ∥ ∞ + ∥ g − f ∥ ∞ \lVert g_{\mathrm{odd}}\rVert_{\infty} \le\lVert f_{\mathrm{odd}}\rVert_{\infty}+\lVert g-f\rVert_{\infty} ∥ g odd ∥ ∞ ≤ ∥ f odd ∥ ∞ + ∥ g − f ∥ ∞ , an approximation with ∥ f − g ∥ ∞ ≤ ϵ \lVert f-g\rVert_{\infty} \le\epsilon ∥ f − g ∥ ∞ ≤ ϵ requires
P I ≥ 1 r ( ∥ g o d d ∥ ∞ − ϵ ) + . (17) P_I \ge\frac{1}{r}\left(\lVert g_{\mathrm{odd}}\rVert_{\infty}-\epsilon\right)_+. \tag*{(17)} P I ≥ r 1 ( ∥ g odd ∥ ∞ − ϵ ) + . (17)
The odd part includes any linear term in g g g . For an odd target the bound reduces to P I ≥ ( ∥ g ∥ ∞ − ϵ ) + / r P_I \ge(\lVert g\rVert_{\infty}-\epsilon)_+/r P I ≥ (∥ g ∥ ∞ − ϵ ) + / r . Appendix § 14 gives circuits attaining (17), plotted in Figure 3 (b).
Two-qubit entanglement and product functions
With two inputs x 1 x_1 x 1 and x 2 x_2 x 2 , we ask how far the model function is from a product of functions of the individual inputs. The two qubits start in ∣ 00 ⟩ \lvert00\rangle ∣ 00 ⟩ . Qubit i i i encodes x i ∈ D i x_i \in D_i x i ∈ D i with one of the gates in Table 2 , where D i D_i D i is the input domain of this gate, and it has no direct access to the other input. A circuit is any finite sequence of these encoding gates, arbitrary local gates U A ⊗ U B U_A \otimes U_B U A ⊗ U B , and two-qubit gates R Z Z ( γ ) = e − i γ Z ⊗ Z / 2 R_{ZZ}(\gamma)=e^{-i\gamma Z\otimes Z/2} R Z Z ( γ ) = e − iγ Z ⊗ Z /2 . Only the encoding gates depend on the inputs.
The readout is Z ⊗ Z Z \otimes Z Z ⊗ Z , which measures the parity of the two outcome bits. Its expectation value f ( x 1 , x 2 ) f(x_1,x_2) f ( x 1 , x 2 ) is the model function, and [ 1 + f ( x 1 , x 2 ) ] / 2 [1+f(x_1,x_2)]/2 [ 1 + f ( x 1 , x 2 )] /2 is the probability of even parity.
The gates R Z Z R_{ZZ} R Z Z are the only gates of the model that can create entanglement, and their entangling power has a closed form.
Lemma 5.1 (Entangling power of R Z Z R_{\mathrm{ZZ}} R ZZ ). For every γ ∈ R \gamma\in\mathbb{R} γ ∈ R , the entangling power (2) of R Z Z ( γ ) R_{\mathrm{ZZ}}(\gamma) R ZZ ( γ ) is
p E ( R Z Z ( γ ) ) = ∣ sin γ ∣ , (18) p_E(R_{\mathrm{ZZ}}(\gamma)) = \lvert\sin\gamma\rvert, \tag*{(18)} p E ( R ZZ ( γ )) = ∣ sin γ ∣ , (18) and the maximum increase in R g R_g R g is attained on a product state.
Appendix E.2 proves the lemma. Local gates have zero entangling power, so the cumulative entangling power of a circuit with the two-qubit gates R Z Z ( γ 1 ) , … , R Z Z ( γ m ) R_{\mathrm{ZZ}}(\gamma_1), \ldots, R_{\mathrm{ZZ}}(\gamma_m) R ZZ ( γ 1 ) , … , R ZZ ( γ m ) is
P E = ∑ j = 1 m ∣ sin γ j ∣ . P_E = \sum_{j=1}^{m} \lvert\sin\gamma_j \rvert. P E = j = 1 ∑ m ∣ sin γ j ∣ .
With unrestricted depth and entangling power, the model approximates every g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ] ) g \in\mathcal{C}(D_1 \times D_2;[-1,1]) g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ]) uniformly (Proposition E.1 ). The model can therefore approximate targets that are not products; the bound below quantifies the entangling power they require. To our knowledge, universality has been established for related models but not for this one. Appendix E.1 proves the proposition and compares these settings [PSLNGS+21, SSM21, MDTD25, YCJ+24, PSYRBD25. In the proof, three R Z Z ( π / 2 ) R_{\mathrm{ZZ}}(\pi/2) R ZZ ( π /2 ) gates and local gates implement a SWAP, giving the first qubit access to both inputs. The construction then approximates a rotation whose angle is a trigonometric polynomial in the two encoding angles. The proof of Theorem 3 does not depend on this universality result.
If P E = 0 P_E = 0 P E = 0 , every R Z Z R_{\mathrm{ZZ}} R ZZ angle is a multiple of π \pi π . Up to a global phase, R Z Z ( k π ) R_{\mathrm{ZZ}}(k\pi) R ZZ ( k π ) is the identity for even k k k and Z ⊗ Z Z \otimes Z Z ⊗ Z for odd k k k . The full circuit therefore factors into two local circuits, and its Z ⊗ Z Z \otimes Z Z ⊗ Z expectation is the product of their Z Z Z expectations. This is why we compare f f f with the class of bounded product functions,
P = { ( x 1 , x 2 ) ↦ a ( x 1 ) b ( x 2 ) : a ∈ C ( D 1 ; [ − 1 , 1 ] ) , b ∈ C ( D 2 ; [ − 1 , 1 ] ) } . (19) \mathcal{P} = \{(x_1,x_2) \mapsto a(x_1)b(x_2) : a \in\mathcal{C}(D_1;[-1,1]),\ b \in\mathcal{C}(D_2;[-1,1])\}. \tag*{(19)} P = {( x 1 , x 2 ) ↦ a ( x 1 ) b ( x 2 ) : a ∈ C ( D 1 ; [ − 1 , 1 ]) , b ∈ C ( D 2 ; [ − 1 , 1 ])} . (19)
Theorem 3 (Entangling power bounds the distance from product functions). Every function f f f computed by this model satisfies
dist ( f , P ) ≤ min { 1 , P E } . (20) \operatorname{dist}(f,\mathcal{P}) \le\min\{1,P_E\}. \tag*{(20)} dist ( f , P ) ≤ min { 1 , P E } . (20) Allowing arbitrarily many local encoding calls, the uniform closure of the model functions with P E = 0 P_E = 0 P E = 0 is exactly P \mathcal{P} P . For any number of applications of the local encoding gates, an approximation of g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ] ) g \in\mathcal{C}(D_1 \times D_2;[-1,1]) g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ]) with ∥ f − g ∥ ∞ ≤ ε \lVert f-g\rVert_\infty\le\varepsilon ∥ f − g ∥ ∞ ≤ ε requires
P E ≥ ( dist ( g , P ) − ε ) + . (21) P_E \ge\bigl(\operatorname{dist}(g,\mathcal{P})-\varepsilon\bigr)_+. \tag*{(21)} P E ≥ ( dist ( g , P ) − ε ) + . (21) The bound (20) is attained for every P E ≤ 1 P_E \le1 P E ≤ 1 .
The proof in Appendix E.3 removes the R Z Z R_{\mathrm{ZZ}} R ZZ gates one at a time. Local gates first reduce each angle to 0 ≤ γ j ≤ π / 2 0 \le\gamma_j \le\pi/2 0 ≤ γ j ≤ π /2 . In this range, removing R Z Z ( γ j ) R_{\mathrm{ZZ}}(\gamma_j) R ZZ ( γ j ) and multiplying the resulting model function by cos γ j \cos\gamma_j cos γ j changes the output by at most sin γ j \sin\gamma_j sin γ j . After all R Z Z R_{\mathrm{ZZ}} R ZZ gates have been removed, the circuit contains only local gates and its output is a product function. The accumulated error is at most P E P_E P E . The factors a a a and b b b are arbitrary, so each may be highly nonaffine in its own input; the bound concerns only the lack of product structure.
For example, the target cos 2 x 1 cos 2 x 2 + p sin 2 x 1 sin 2 x 2 \cos2x_1 \cos2x_2 + p \sin2x_1 \sin2x_2 cos 2 x 1 cos 2 x 2 + p sin 2 x 1 sin 2 x 2 on [ − 1 , 1 ] 2 [-1,1]^2 [ − 1 , 1 ] 2 has distance p p p from P \mathcal{P} P for 0 ≤ p ≤ 1 0 \le p \le1 0 ≤ p ≤ 1 (Appendix E.4). Approximating it with a uniform error of at most ε \varepsilon ε requires P E ≥ p − ε P_E \ge p-\varepsilon P E ≥ p − ε . At p = 1 p=1 p = 1 the target is cos ( 2 x 1 − 2 x 2 ) \cos(2x_1-2x_2) cos ( 2 x 1 − 2 x 2 ) . Figure 3 (c) shows circuits attaining the distance bound for each p p p . The full class of functions approximable at a given positive P E P_E P E remains unknown.
Approximation with Clifford trainable gates
We return to the one-qubit model of § 3 , with R Z ( x ) R_Z(x) R Z ( x ) as the encoding gate on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and Z Z Z as the readout. The bounds on oscillation, the odd part and distance from product functions hold at any depth. For magic the situation is different. Restricting the trainable gates to Clifford gates is equivalent to requiring zero cumulative magic power P M P_M P M (§ 2.3 and (2) ), but on this interval the encoding gate itself is non-Clifford for every x ≠ 0 x \ne0 x = 0 . Non-Clifford operations are therefore available even at P M = 0 P_M = 0 P M = 0 . We ask how much additional depth is needed when all trainable gates are Clifford.
Theorem 4 (Clifford trainable gates suffice). Let g ∈ C ( [ − 1 , 1 ] ; [ − r , r ] ) g \in\mathcal{C}([-1,1];[-r,r]) g ∈ C ([ − 1 , 1 ] ; [ − r , r ]) and ε , δ ∈ ( 0 , 1 ) \varepsilon,\delta\in(0,1) ε , δ ∈ ( 0 , 1 ) . There is a circuit (9) with phase encoding and Clifford trainable gates, so that P M = 0 P_M=0 P M = 0 , whose model function satisfies
∣ f ( x ) − g ( x ) ∣ ≤ ε whenever δ ≤ ∣ x ∣ ≤ 1. (22) |f(x)-g(x)| \le\varepsilon\qquad\text{whenever } \delta\le|x| \le1. \tag*{(22)} ∣ f ( x ) − g ( x ) ∣ ≤ ε whenever δ ≤ ∣ x ∣ ≤ 1. (22) If g g g is the model function of a circuit with D D D encoding calls and unrestricted trainable gates, the number of encoding calls can be chosen polynomial in D D D , 1 / ε 1/\varepsilon 1/ ε and 1 / δ 1/\delta 1/ δ .
The proof in Appendix § 16 starts from a circuit with unrestricted trainable gates. It approximates each of these gates by a sequence of Clifford gates and encoding gates. The construction uses a rotation by π / 2 \pi/2 π /2 about an axis at angle π / 4 \pi/4 π /4 to the z z z axis. This gate is not Clifford and, together with the Clifford gates, generates a dense set of one-qubit gates. A recursion builds such a rotation from Clifford gates and encoding gates R z ( x ) R_z(x) R z ( x ) : the angle between its axis and the z z z axis converges geometrically to π / 4 \pi/4 π /4 , uniformly for δ ≤ ∣ x ∣ ≤ 1 \delta\le|x| \le1 δ ≤ ∣ x ∣ ≤ 1 . The direction of the axis around the z z z axis, its azimuth ϕ ( x ) \phi(x) ϕ ( x ) , depends on the input and is not controlled, but it is the same for all gates built from this rotation. Each trainable gate V j V_j V j is then approximated only up to a common rotation, by a gate sequence W j ( x ) W_j(x) W j ( x ) close to B ( x ) V j B ( x ) † B(x)V_jB(x)^\dagger B ( x ) V j B ( x ) † with B ( x ) = R z ( ϕ ( x ) ) B(x)=R_z(\phi(x)) B ( x ) = R z ( ϕ ( x )) . Since B ( x ) B(x) B ( x ) commutes with the encoding gate, the rotations between successive gates cancel. The two that remain at the ends commute with the input state and the readout, so the model function does not change.
Theorem 4 excludes a neighborhood of x = 0 x=0 x = 0 because the encoding gate is the identity there: the whole circuit is then a Clifford gate, and f ( 0 ) ∈ { − r , 0 , r } f(0)\in\{-r,0,r\} f ( 0 ) ∈ { − r , 0 , r } . This obstruction does not prevent approximation in mean when the input distribution μ \mu μ gives probability zero to the single input x = 0 x=0 x = 0 , that is, μ ( { 0 } ) = 0 \mu(\{0\})=0 μ ({ 0 }) = 0 . The probability of the excluded interval then tends to zero as δ → 0 \delta\to0 δ → 0 . Since ∣ f − g ∣ ≤ 2 r |f-g|\le2r ∣ f − g ∣ ≤ 2 r there, the theorem gives
∥ f − g ∥ L 1 ( μ ) ≤ ε + 2 r μ ( { x : ∣ x ∣ < δ } ) . \|f-g\|_{L^1(\mu)} \le\varepsilon+ 2r\,\mu(\{x:|x|<\delta\}). ∥ f − g ∥ L 1 ( μ ) ≤ ε + 2 r μ ({ x : ∣ x ∣ < δ }) .
Both terms on the right can be made arbitrarily small, and with them the mean error. By (11) the same conclusion holds for the mean total variation error when p ∗ ( 0 ∣ x ) p_*(0\mid x) p ∗ ( 0 ∣ x ) is continuous in x x x and takes values in [ ( 1 − r ) / 2 , ( 1 + r ) / 2 ] [(1-r)/2,(1+r)/2] [( 1 − r ) /2 , ( 1 + r ) /2 ] . For r = 1 r=1 r = 1 this is the entire probability interval.
At fixed depth, non-Clifford trainable gates can nevertheless improve the approximation, as an example with one encoding call shows. The first Clifford gate sends r e z r\mathbf{e}_z r e z to one of the six vectors ± r e x , ± r e y , ± r e z \pm r\mathbf{e}_x,\pm r\mathbf{e}_y,\pm r\mathbf{e}_z ± r e x , ± r e y , ± r e z . The encoding R z ( x ) R_z(x) R z ( x ) rotates the transverse components through x x x and preserves the z z z component. The final Clifford gate selects one of the three resulting components, up to sign, as the readout (§ 2.3 ). The possible model functions are therefore $0,\pm r,\pm r\cos x$ and ± r sin x \pm r\sin x ± r sin x . For example, R y ( π / 2 ) R_y(\pi/2) R y ( π /2 ) followed by R z ( x ) R_z(x) R z ( x ) gives the Bloch vector r ( cos x , sin x , 0 ) r(\cos x,\sin x,0) r ( cos x , sin x , 0 ) . Under a final rotation R x ( θ ) R_x(\theta) R x ( θ ) , the incoming y y y component contributes to the measured z z z component with coefficient sin θ \sin\theta sin θ , so f ( x ) = r sin θ sin x f(x)=r\sin\theta\sin x f ( x ) = r sin θ sin x . For θ = π / 6 \theta=\pi/6 θ = π /6 this is $(r/2)\sin x. Every model function with Clifford trainable gates and one encoding call differs from this target by at least ( r / 2 ) sin 1 (r/2)\sin1 ( r /2 ) sin 1 in the uniform norm. A non-Clifford trainable gate, by contrast, realizes this target exactly with one encoding call. With Clifford trainable gates, the smallest uniform error drops from ( r / 2 ) sin 1 ≈ 0.42 r (r/2)\sin1 \approx0.42\,r ( r /2 ) sin 1 ≈ 0.42 r at one encoding call to 0.054 r 0.054\,r 0.054 r at twelve (Figure 4 ).
Figure 4. Approximation with Clifford trainable gates. (a) All distinct model functions with at most five encoding calls, 863 in total. (b) The target g ( x ) = ( r / 2 ) sin x g(x)=(r/2)\sin x g ( x ) = ( r /2 ) sin x (gray) and its best uniform approximations with at most L = 6 L=6 L = 6 and L = 12 L=12 L = 12 encoding calls. (c) Smallest uniform error on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] for this target with at most L L L encoding calls, normalized by r r r . The circuits are enumerated exhaustively, and their errors are evaluated numerically on a fine grid.
Discussion and outlook
For data re-uploading models with fixed encoding and readout, we have related the resource powers of the trainable gates to properties of the model function. With phase encoding on one qubit, cohering power limits its oscillation and imaginarity power its odd part. For two qubits that each encode one input, entangling power limits its distance from product functions. The three bounds are sharp and hold at any depth, so additional layers cannot make up for a missing resource. They give lower bounds on the cumulative power required to approximate a target (Table 1 ). Only the bound on the nonaffinity depends on the depth, and its constant K L K_L K L is not known to be optimal. For magic, the phase encoding itself supplies non-Clifford operations. On domains bounded away from x = 0 x=0 x = 0 , Clifford trainable gates suffice for uniform approximation, with the polynomial increase in depth stated in Theorem 4. Magic in the trainable gates can improve the accuracy at a fixed depth, but on such domains it is not required.
The requirements depend on the encoding and readout as well as on the target function. With phase encoding, both R z ( x ) R_z(x) R z ( x ) and Z Z Z are diagonal in the reference basis, so trainable gates must convert between diagonal and off-diagonal state components before the input can affect the output. With the encoding R y ( x ) R_y(x) R y ( x ) and identity trainable gates, however, U ( x ) = R y ( L x ) U(x)=R_y(Lx) U ( x ) = R y ( Lx ) gives f ( x ) = r cos ( L x ) f(x)=r\cos(Lx) f ( x ) = r cos ( Lx ) at P C = 0 P_C=0 P C = 0 , as in the example of the introduction: the encoding gate itself supplies the coherence. The requirements also depend on the elementary gate set. If SWAP were an elementary gate, it would have zero entangling power but could move the state between the two input wires and produce cos ( x 1 + x 2 ) \cos(x_1+x_2) cos ( x 1 + x 2 ) , which is not a product. Our model instead decomposes SWAP into local gates and R Z Z R_{ZZ} R Z Z gates whose powers enter P E P_E P E . Splitting one R Z Z R_{ZZ} R Z Z rotation into smaller rotations can likewise change this sum (Appendix § 15 .§ 5 ). Each bound is therefore a requirement on the trainable gates of a specified model, with its encoding, readout and elementary gates.
The bounds also apply to generative learning when the model produces samples as measurement outcomes with conditional probabilities p ( y ∣ x ) p(y\mid x) p ( y ∣ x ) . For one qubit, the error of the model function is twice the total variation error of the conditional Bernoulli distribution, by Eqs. (10) and (11) . The resource lower bounds therefore apply directly to these conditional distributions. For several qubits, measurement produces bit strings [30 ] , and a single moment such as ⟨ Z ⊗ Z ⟩ \langle Z\otimes Z\rangle ⟨ Z ⊗ Z ⟩ no longer determines their joint distribution. Other generative models treat a vector of expectation values, evaluated at a random input, as a real-valued sample [6 ] . Approximating a particular map is then sufficient to approximate its output law, because the Wasserstein-1 distance W 1 W_1 W 1 between two such laws is at most the mean distance between the two maps at the same random input [54 Chap. 6] . A resource lower bound for that map, however, need not apply to every map generating the same law. In the product encoding of Barthe et al., for example, each output component comes from a separate one-qubit circuit with access to the full common input; this shared randomness can correlate the outputs without entanglement.
Open questions.
Functions and resources. Other encodings, measurements and multiqubit resources, including contextuality [11 ] , require their own function-class characterizations. Block encoding and QSVT [17 ] , alongside other protocols for nonlinear transformations [20 ] , provide further settings in which to study resource requirements and the functions approximable with free operations. For magic, our construction with Clifford trainable gates has polynomial depth, but it is not optimized. The optimal depth, and the gain from non-Clifford trainable gates at a fixed depth, are open. A broader question is which function classes admit simple representations by quantum models.
Training. We seek resource-dependent lower bounds on the number of statistical queries needed to learn with quantum models. We conjecture that, among suitable ensembles of target functions, those whose targets have greater resource requirements have higher average-case statistical query complexity at fixed learning accuracy and query tolerance. Here, the resource requirement of a target is the minimum cumulative resource power needed to approximate it to this accuracy within a fixed family of quantum learning models. This conjecture is motivated by average-case hardness results in the statistical query model for learning the output distributions of random brickwork
circuits [37 ] and of random circuits from the orthogonal and symplectic groups [46 ] . Haar random states are known to be rich in several resources [13 ] , including entanglement [23 ] , coherence [50 ] , magic [53 ] , imaginarity [19 ] and, on more than half of the system, fermionic non-Gaussianity [2 ] . These results motivate the conjecture but do not establish it. They concern the resources contained in random states rather than the power needed to approximate a target, and they use different resource measures from ours. Hardness also does not require every resource: random orthogonal circuits are hard to learn although their states are real and thus free of imaginarity.
Generalization. Resource-dependent statistical complexity bounds [8 ] provide a starting point for studying generalization. We ask when additional resources improve performance on unseen data and what resource levels are needed at a given sample size. The error due to finite training data must be distinguished from approximation error.
Acknowledgments
The authors thank Eric R. Anschuetz for discussions. During this work, O.S. was supported by the Federal Ministry of Research, Technology and Space (BMFTR), Germany, through the QC service center QUICS (grant no. 13N17418). L.P. is supported by the National Research Foundation, Singapore through the National Quantum Office, hosted in ASTAR, under its Centre for Quantum Technologies Funding Initiative (S24Q2d0009). L.P. is also partially supported by the A STAR under its Young Investigator Research Grant (YIRG) M25N8c0131.
Declaration of AI use
For literature review, derivations and manuscript preparation, the authors first used OpenAI’s GPT-6 Astra and then Anthropic’s Claude Fable 5, reviewing both models’ contributions line by line.
Appendix
The appendix contains the proofs. Appendix § 11 provides auxiliary results, Appendix § 12 proves the universality of the one-qubit model, and Appendices § 13 –§ 16 prove Theorems 1–4 in order.
Auxiliary results
This appendix collects the circuit approximation bounds, the proof of Lemma 2.1, and the results on trigonometric and Chebyshev polynomials used below.
Circuit approximation bounds
We use two standard estimates that relate errors in individual gates to errors in the implemented unitary and in expectation values [36 Sec. 4.5.3, Box 4.1] . We state the product estimate for matrices of operator norm at most one, and the measurement estimate for arbitrary input states and observables.
Let the square matrices A j , B j A_j, B_j A j , B j have the same size and operator norm at most one. We use the telescoping identity
A m ⋯ A 1 − B m ⋯ B 1 = ∑ j = 1 m A m ⋯ A j + 1 ( A j − B j ) B j − 1 ⋯ B 1 , A_m \cdots A_1 - B_m \cdots B_1 = \sum_{j=1}^{m} A_m \cdots A_{j+1}(A_j-B_j)B_{j-1} \cdots B_1, A m ⋯ A 1 − B m ⋯ B 1 = j = 1 ∑ m A m ⋯ A j + 1 ( A j − B j ) B j − 1 ⋯ B 1 ,
where an empty product is the identity. The triangle inequality and submultiplicativity of the operator norm give
∥ A m ⋯ A 1 − B m ⋯ B 1 ∥ op ≤ ∑ j = 1 m ∥ A j − B j ∥ op . (23) \left\lVert A_m \cdots A_1 - B_m \cdots B_1 \right\rVert_{\operatorname{op}} \le\sum_{j=1}^{m}\left\lVert A_j-B_j\right\rVert_{\operatorname{op}}. \tag*{(23)} ∥ A m ⋯ A 1 − B m ⋯ B 1 ∥ op ≤ j = 1 ∑ m ∥ A j − B j ∥ op . (23)
To compare expectation values, let U 1 , U 2 U_1,U_2 U 1 , U 2 be unitaries, put Δ = U 1 − U 2 \Delta=U_1-U_2 Δ = U 1 − U 2 and write ρ i = U i ρ U i † \rho_i=U_i\rho U_i^\dagger ρ i = U i ρ U i † for the output states. The identity ρ 1 − ρ 2 = Δ ρ U † + U 2 ρ Δ † \rho_1-\rho_2=\Delta\rho U^\dagger+U_2\rho\Delta^\dagger ρ 1 − ρ 2 = Δ ρ U † + U 2 ρ Δ † , together with ∥ A D B ∥ 1 ≤ ∥ A ∥ o p ∥ D ∥ 1 ∥ B ∥ o p \lVert ADB\rVert_1\le\lVert A\rVert_{\mathrm{op}}\lVert D\rVert_1\lVert B\rVert_{\mathrm{op}} ∥ A D B ∥ 1 ≤ ∥ A ∥ op ∥ D ∥ 1 ∥ B ∥ op and ∥ ρ ∥ 1 = 1 \lVert\rho\rVert_1=1 ∥ ρ ∥ 1 = 1 , implies ∥ ρ 1 − ρ 2 ∥ 1 ≤ 2 ∥ Δ ∥ o p \lVert\rho_1-\rho_2\rVert_1\le2\lVert\Delta\rVert_{\mathrm{op}} ∥ ρ 1 − ρ 2 ∥ 1 ≤ 2 ∥ Δ ∥ op . For any observable M M M ,
∣ Tr M ( ρ 1 − ρ 2 ) ∣ ≤ ∥ M ∥ o p ∥ ρ 1 − ρ 2 ∥ 1 ≤ 2 ∥ M ∥ o p ∥ U 1 − U 2 ∥ o p . (24) \lvert\operatorname{Tr} M(\rho_1-\rho_2)\rvert\le\lVert M\rVert_{\mathrm{op}}\lVert\rho_1-\rho_2\rVert_1\le2\lVert M\rVert_{\mathrm{op}}\lVert U_1-U_2\rVert_{\mathrm{op}}. \tag*{(24)} ∣ Tr M ( ρ 1 − ρ 2 )∣ ≤ ∥ M ∥ op ∥ ρ 1 − ρ 2 ∥ 1 ≤ 2 ∥ M ∥ op ∥ U 1 − U 2 ∥ op . (24)
Cohering and imaginarity power of qubit gates
Lemma 2.1 (restated). For a qubit gate V ∈ S U ( 2 ) V\in\mathrm{SU}(2) V ∈ SU ( 2 ) with Bloch rotation O = O ( V ) O=O(V) O = O ( V ) , the cohering and imaginarity powers are
p C ( V ) = 1 − O z z 2 , p_C(V)=\sqrt{1-O_{zz}^{2}}, p C ( V ) = 1 − O z z 2 , p I ( V ) = 1 − O y y 2 . p_I(V)=\sqrt{1-O_{yy}^{2}}. p I ( V ) = 1 − O y y 2 . For coherence, the largest increase occurs for the basis state ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , so p C ( V ) = C ( V ∣ 0 ⟩ ⟨ 0 ∣ V † ) p_C(V)=C(V\lvert0\rangle\langle0\rvert V^\dagger) p C ( V ) = C ( V ∣ 0 ⟩ ⟨ 0 ∣ V † ) . For imaginarity, it occurs for a pure real state with Bloch vector proportional to ( O y x , 0 , O y z ) (O_{yx},0,O_{yz}) ( O y x , 0 , O y z ) , provided p I ( V ) > 0 p_I(V)>0 p I ( V ) > 0 .
Proof. By (4), each measure is the Euclidean distance of the Bloch vector from the corresponding free set,
R ( ρ ) = ∥ Π ⊥ s ∥ 2 , Π ⊥ = 1 − Π , R(\rho)=\lVert\Pi^\perp s\rVert_2,\qquad\Pi^\perp=1-\Pi, R ( ρ ) = ∥ Π ⊥ s ∥ 2 , Π ⊥ = 1 − Π ,
where Π \Pi Π is the orthogonal projector onto the z z z axis for coherence and onto the x z xz x z plane for imaginarity. Decomposing s = Π ⊥ s + Π s s=\Pi^\perp s+\Pi s s = Π ⊥ s + Π s gives
R ( V ρ V † ) = ∥ Π ⊥ O s ∥ 2 ≤ ∥ Π ⊥ O Π ⊥ s ∥ 2 + ∥ Π ⊥ O Π s ∥ 2 ≤ R ( ρ ) + ∥ Π ⊥ O Π ∥ o p , \begin{aligned}
R(V\rho V^\dagger)&=\lVert\Pi^\perp O s\rVert_2\\
&\le\lVert\Pi^\perp O\Pi^\perp s\rVert_2+\lVert\Pi^\perp O\Pi s\rVert_2\\
&\le R(\rho)+\lVert\Pi^\perp O\Pi\rVert_{\mathrm{op}},
\end{aligned} R ( V ρ V † ) = ∥ Π ⊥ O s ∥ 2 ≤ ∥ Π ⊥ O Π ⊥ s ∥ 2 + ∥ Π ⊥ O Π s ∥ 2 ≤ R ( ρ ) + ∥ Π ⊥ O Π ∥ op ,
using ∥ Π ⊥ O ∥ o p ≤ 1 \lVert\Pi^\perp O\rVert_{\mathrm{op}}\le1 ∥ Π ⊥ O ∥ op ≤ 1 and ∥ Π s ∥ 2 ≤ 1 \lVert\Pi s\rVert_2\le1 ∥ Π s ∥ 2 ≤ 1 . Thus p R ( V ) ≤ ∥ Π ⊥ O Π ∥ o p p_R(V)\le\lVert\Pi^\perp O\Pi\rVert_{\mathrm{op}} p R ( V ) ≤ ∥ Π ⊥ O Π ∥ op . Equality holds for a unit vector s s s in the range of Π \Pi Π that maximizes ∥ Π ⊥ O s ∥ 2 \lVert\Pi^\perp O s\rVert_2 ∥ Π ⊥ O s ∥ 2 : the corresponding pure state is free, so R ( ρ ) = 0 R(\rho)=0 R ( ρ ) = 0 and R ( V ρ V † ) = ∥ Π ⊥ O Π ∥ o p R(V\rho V^\dagger)=\lVert\Pi^\perp O\Pi\rVert_{\mathrm{op}} R ( V ρ V † ) = ∥ Π ⊥ O Π ∥ op . It remains to compute this norm for each resource. For coherence the only possibly nonzero entries of Π ⊥ O Π \Pi^\perp O\Pi Π ⊥ O Π are O x z O_{xz} O x z and O y z O_{yz} O y z in the z z z column. This column of O O O has unit length, so the operator norm is ( O x z 2 + O y z 2 ) 1 / 2 = 1 − O z z 2 (O_{xz}^{2}+O_{yz}^{2})^{1/2}=\sqrt{1-O_{zz}^{2}} ( O x z 2 + O y z 2 ) 1/2 = 1 − O z z 2 . For imaginarity they are O y x O_{yx} O y x and O y z O_{yz} O y z in the y y y row, which also has unit length, giving 1 − O y y 2 \sqrt{1-O_{yy}^{2}} 1 − O y y 2 . A maximizing vector for coherence is s = e z s=e_z s = e z , the Bloch vector of ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , because the range of Π \Pi Π is the z z z axis. For imaginarity, ∥ Π ⊥ O s ∥ 2 = ∣ O y x s x + O y z s z ∣ \lVert\Pi^\perp O s\rVert_2=\lvert O_{yx}s_x+O_{yz}s_z\rvert ∥ Π ⊥ O s ∥ 2 = ∣ O y x s x + O y z s z ∣ for s s s in the x z xz x z plane. If p I ( V ) > 0 p_I(V)>0 p I ( V ) > 0 , the Cauchy-Schwarz inequality shows that this is largest when s s s is proportional to ( O y x , 0 , O y z ) (O_{yx},0,O_{yz}) ( O y x , 0 , O y z ) . The inverse gate has the Bloch rotation O T O^{\mathsf T} O T , with the same diagonal entries and therefore the same powers. □
Polynomial approximation
A trigonometric polynomial of degree at most L L L is a function p ( t ) = ∑ k = − L L c k e i k t p(t)=\sum_{k=-L}^{L}c_k e^{ikt} p ( t ) = ∑ k = − L L c k e ik t . It is real-valued exactly when c − k = c k ‾ c_{-k}=\overline{c_k} c − k = c k for every k k k . The universality proof in Appendix B uses Fejér means to approximate a target function and Fejér–Riesz factorization to construct the circuit amplitudes. The nonaffinity bound in Appendix C uses Bernstein’s inequality to control derivatives and (A.5) to control Chebyshev coefficients.
Fejér means. For a real continuous 2 π 2\pi 2 π -periodic function h h h and an integer N ≥ 1 N\ge1 N ≥ 1 , set
h N ( t ) = ∫ − π π K N ( s ) h ( t − s ) d s 2 π , h_N(t)=\int_{-\pi}^{\pi}K_N(s)h(t-s)\frac{\mathrm{d}s}{2\pi}, h N ( t ) = ∫ − π π K N ( s ) h ( t − s ) 2 π d s ,
K N ( s ) = 1 N ∣ ∑ k = 0 N − 1 e i k s ∣ 2 . K_N(s)=\frac{1}{N}\left\lvert\sum_{k=0}^{N-1}e^{iks}\right\rvert^2. K N ( s ) = N 1 k = 0 ∑ N − 1 e ik s 2 .
The Fejér means h N h_N h N are trigonometric polynomials of degree at most N − 1 N-1 N − 1 and converge uniformly to h h h [62 Chap. III, Theorem (3.4)] . The kernel K N K_N K N is nonnegative and has mean one, so every h N ( t ) h_N(t) h N ( t ) lies between the minimum and maximum of h h h . Since K N K_N K N is even, h N h_N h N is even whenever h h h is.
Fejér–Riesz factorization. If a trigonometric polynomial p p p of degree at most L L L is nonnegative on R \mathbb{R} R , then
p ( t ) = ∣ P ( e i t ) ∣ 2 (25) p(t)=\left|P\left(e^{it}\right)\right|^2 \tag*{(25)} p ( t ) = P ( e i t ) 2 (25)
for a polynomial P P P of degree at most L L L [14 ] . For p ≠ 0 p \ne0 p = 0 , the factor without zeros in the open unit disk and normalized by P ( 0 ) > 0 P(0)>0 P ( 0 ) > 0 is unique [14 Sec. 2] . If p p p is even, conjugating the coefficients of P P P gives a factor with the same properties. Uniqueness therefore implies that the coefficients of P P P are real. For p = 0 p=0 p = 0 , take P = 0 P=0 P = 0 .
Bernstein’s inequality. A real trigonometric polynomial p p p of degree at most L L L satisfies [QZ19, Theorem 1.1]
sup t ∈ R ∣ p ′ ( t ) ∣ ≤ L sup t ∈ R ∣ p ( t ) ∣ . (26) \sup_{t\in\mathbb{R}}\left|p'(t)\right|\le L\sup_{t\in\mathbb{R}}\left|p(t)\right|. \tag*{(26)} t ∈ R sup ∣ p ′ ( t ) ∣ ≤ L t ∈ R sup ∣ p ( t ) ∣ . (26)
Chebyshev coefficients. For a continuously differentiable function h h h on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , put H ( θ ) = h ( cos θ ) H(\theta)=h(\cos\theta) H ( θ ) = h ( cos θ ) on [ 0 , π ] [0,\pi] [ 0 , π ] . With the normalization in (8) , the Chebyshev coefficients are [52 Chap. 3]
β 0 = 1 π ∫ 0 π H ( θ ) d θ , \beta_0=\frac{1}{\pi}\int_0^\pi H(\theta)\,d\theta, β 0 = π 1 ∫ 0 π H ( θ ) d θ ,
β n = 2 π ∫ 0 π H ( θ ) cos ( n θ ) d θ ( n ≥ 1 ) . \beta_n=\frac{2}{\pi}\int_0^\pi H(\theta)\cos(n\theta)\,d\theta\qquad(n\ge1). β n = π 2 ∫ 0 π H ( θ ) cos ( n θ ) d θ ( n ≥ 1 ) .
For n ≥ 1 n\ge1 n ≥ 1 , integration by parts gives
2 π ∫ 0 π H ′ ( θ ) sin ( n θ ) d θ = − 2 n π ∫ 0 π H ( θ ) cos ( n θ ) d θ = − n β n . \frac{2}{\pi}\int_0^\pi H'(\theta)\sin(n\theta)\,d\theta=-\frac{2n}{\pi}\int_0^\pi H(\theta)\cos(n\theta)\,d\theta=-n\beta_n. π 2 ∫ 0 π H ′ ( θ ) sin ( n θ ) d θ = − π 2 n ∫ 0 π H ( θ ) cos ( n θ ) d θ = − n β n .
Bessel’s inequality [44 Theorem 8.12] bounds the sum of squared coefficients in an orthonormal system by the squared L 2 L^2 L 2 norm of the function. Applied on [ 0 , π ] [0,\pi] [ 0 , π ] to the normalized cosine functions when k = 0 k=0 k = 0 and sine functions when k = 1 k=1 k = 1 , it gives
∑ n ≥ 1 n 2 k ∣ β n ∣ 2 ≤ 2 π ∫ 0 π ∣ H ( k ) ( θ ) ∣ 2 d θ ≤ 2 max θ ∈ [ 0 , π ] ∣ H ( k ) ( θ ) ∣ 2 , k = 0 , 1. (27) \sum_{n\ge1}n^{2k}|\beta_n|^2\le\frac{2}{\pi}\int_0^\pi\left|H^{(k)}(\theta)\right|^2\,d\theta\le2\max_{\theta\in[0,\pi]}\left|H^{(k)}(\theta)\right|^2,\qquad k=0,1. \tag*{(27)} n ≥ 1 ∑ n 2 k ∣ β n ∣ 2 ≤ π 2 ∫ 0 π H ( k ) ( θ ) 2 d θ ≤ 2 θ ∈ [ 0 , π ] max H ( k ) ( θ ) 2 , k = 0 , 1. (27)
Universality of the one-qubit model
We derive the uniform approximation statement used in our proofs from the polynomial characterization of circuit unitaries by Yu et al. [61 ] and the approximation results in Appendix § 11 .§ 3 . The version with unrestricted gates is used in Theorem 4 and for the factors of the product class in Theorem 3; the version for even targets with real gates is used in Theorem 2 .
Proposition B.1 (Uniform approximation on the input intervals). For each encoding in Table 2 , circuits with unrestricted trainable gates and depth, input ρ r \rho_r ρ r and Z Z Z readout approximate every g ∈ C ( X ; [ − r , r ] ) g\in\mathcal{C}(\mathcal{X};[-r,r]) g ∈ C ( X ; [ − r , r ]) uniformly. Here X = [ − 1 , 1 ] \mathcal{X}=[-1,1] X = [ − 1 , 1 ] for R z ( x ) R_z(x) R z ( x ) and R y ( x ) R_y(x) R y ( x ) , and X = [ 0 , 1 ] \mathcal{X}=[0,1] X = [ 0 , 1 ] for amplitude encoding. For phase encoding, real trainable gates suffice for every even target.
Proof. The model function for the input ρ r \rho_r ρ r is r r r times the one for the pure input ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ (§ 3 ), so it suffices to treat r = 1 r=1 r = 1 .
We first recall which polynomials can occur as circuit amplitudes. Let P P P and Q Q Q be Laurent polynomials in z = e i t / 2 z=e^{it/2} z = e i t /2 of degree at most L L L in which all exponents have the parity of L L L , that is, of the form ∑ j = 0 L c j z 2 j − L \sum_{j=0}^{L}c_jz^{2j-L} ∑ j = 0 L c j z 2 j − L , and let ∣ P ( t ) ∣ 2 + ∣ Q ( t ) ∣ 2 = 1 \lvert P(t)\rvert^2+\lvert Q(t)\rvert^2=1 ∣ P ( t ) ∣ 2 + ∣ Q ( t ) ∣ 2 = 1 for all real t t t . By Ref. [61 Lemma 3] , there is then a circuit (9) with L L L encoding gates R z ( t ) R_z(t) R z ( t ) that implements the unitary
U ( t ) = ( P ( t ) Q ( t ) − Q ( t ) Q ( t ) P ( t ) P ( t ) ) , U(t)=\begin{pmatrix}
\frac{P(t)}{Q(t)} & -Q(t)\\
Q(t) & \frac{P(t)}{P(t)}
\end{pmatrix}, U ( t ) = ( Q ( t ) P ( t ) Q ( t ) − Q ( t ) P ( t ) P ( t ) ) ,
with trainable gates that are products of rotations about the z z z and y y y axes. If P P P and Q Q Q have real coefficients, rotations R y ( θ j ) R_y(\theta_j) R y ( θ j ) suffice as trainable gates [61 Lemma 1] , and these have real matrices. The state U ( t ) ∣ 0 ⟩ U(t)|0\rangle U ( t ) ∣0 ⟩ has the amplitudes P ( t ) P(t) P ( t ) and Q ( t ) Q(t) Q ( t ) , so the model function of the circuit is ∣ P ∣ 2 − ∣ Q ∣ 2 |P|^2-|Q|^2 ∣ P ∣ 2 − ∣ Q ∣ 2 .
To construct such amplitudes for a target function, let h : J → [ − 1 , 1 ] h:J\to[-1,1] h : J → [ − 1 , 1 ] be continuous, with J = [ − 1 , 1 ] J=[-1,1] J = [ − 1 , 1 ] or J = [ 0 , π ] J=[0,\pi] J = [ 0 , π ] . Write J = [ a , b ] J=[a,b] J = [ a , b ] . On [ b , a + 2 π ] [b,a+2\pi] [ b , a + 2 π ] , interpolate linearly from h ( b ) h(b) h ( b ) to h ( a ) h(a) h ( a ) and then extend periodically. This gives a continuous periodic extension with values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . Its Fejér means are real trigonometric polynomials with values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , and they converge to it uniformly (Appendix § 11 .§ 3 ). Let q q q be one of these means and L L L its degree. The polynomials ( 1 ± q ) / 2 (1\pm q)/2 ( 1 ± q ) /2 are nonnegative, and the Fejér–Riesz factorization (A.3) gives
1 + q ( t ) 2 = ∣ P 0 ( e i t ) ∣ 2 , 1 − q ( t ) 2 = ∣ Q 0 ( e i t ) ∣ 2 \frac{1+q(t)}{2}=\left|P_0(e^{it})\right|^2,\qquad\frac{1-q(t)}{2}=\left|Q_0(e^{it})\right|^2 2 1 + q ( t ) = P 0 ( e i t ) 2 , 2 1 − q ( t ) = Q 0 ( e i t ) 2
with polynomials P 0 P_0 P 0 and Q 0 Q_0 Q 0 of degree at most L L L . Set P ( t ) = z − L P 0 ( z 2 ) P(t)=z^{-L}P_0(z^2) P ( t ) = z − L P 0 ( z 2 ) and Q ( t ) = z − L Q 0 ( z 2 ) Q(t)=z^{-L}Q_0(z^2) Q ( t ) = z − L Q 0 ( z 2 ) with z = e i t / 2 z=e^{it/2} z = e i t /2 . A monomial of degree k k k in P 0 P_0 P 0 or Q 0 Q_0 Q 0 acquires the exponent 2 k − L 2k-L 2 k − L , so P P P and Q Q Q have the form required above, and ∣ P ∣ 2 + ∣ Q ∣ 2 = 1 |P|^2+|Q|^2=1 ∣ P ∣ 2 + ∣ Q ∣ 2 = 1 because ∣ z ∣ = 1 |z|=1 ∣ z ∣ = 1 . The corresponding circuit has the model function ∣ P ∣ 2 − ∣ Q ∣ 2 = q |P|^2-|Q|^2=q ∣ P ∣ 2 − ∣ Q ∣ 2 = q . Hence model functions with phase encoding approximate h h h uniformly on J J J .
If h h h is even on J = [ − 1 , 1 ] J=[-1,1] J = [ − 1 , 1 ] , its endpoint values agree, so the extension is constant on the rest of the period and is even. Its Fejér means are then even as well, and P 0 P_0 P 0 and Q 0 Q_0 Q 0 can be chosen with real coefficients (Appendix § 11 .§ 3 ). Then P P P and Q Q Q have real coefficients too, and real trainable gates suffice.
Taking J = [ − 1 , 1 ] J=[-1,1] J = [ − 1 , 1 ] and h = g h=g h = g proves the claim for phase encoding. For R y R_y R y encoding the identity R y ( t ) = R x ( − π / 2 ) R z ( t ) R x ( π / 2 ) R_y(t)=R_x(-\pi/2)R_z(t)R_x(\pi/2) R y ( t ) = R x ( − π /2 ) R z ( t ) R x ( π /2 ) gives a fixed change of basis that can be absorbed into the trainable gates, as described after Eq. (14) of Ref. [61 ] , so the model functions are the same. Amplitude encoding applies R y ( t ) R_y(t) R y ( t ) with t = 2 arcsin x t=2\arcsin\sqrt{x} t = 2 arcsin x , which runs from 0 0 0 to π \pi π as x x x runs from 0 0 0 to 1 1 1 , with continuous inverse x = sin 2 ( t / 2 ) x=\sin^2(t/2) x = sin 2 ( t /2 ) . Approximating h ( t ) = g ( sin 2 ( t / 2 ) ) h(t)=g(\sin^2(t/2)) h ( t ) = g ( sin 2 ( t /2 )) on J = [ 0 , π ] J=[0,\pi] J = [ 0 , π ] therefore gives the same uniform error for g g g on [ 0 , 1 ] [0,1] [ 0 , 1 ] .
Coherence bound
Theorem 1 (restated). Let f f f be the model function of the circuit (9) with input state ρ r \rho_r ρ r , 0 < r ≤ 1 0<r\leq1 0 < r ≤ 1 , phase encoding R z ( x ) R_z(x) R z ( x ) on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , Z Z Z readout and L ≥ 1 L\geq1 L ≥ 1 encoding calls. If its trainable gates have cumulative cohering power P C P_C P C , then
osc ( f ) ≤ 2 r min { 1 , P C 2 / 4 } , \operatorname{osc}(f)\leq2r\min\{1,P_C^2/4\}, osc ( f ) ≤ 2 r min { 1 , P C 2 /4 } , N ( f ) ≤ K L r min { 1 , P C 2 / 4 } , \mathcal{N}(f)\leq K_Lr\min\{1,P_C^2/4\}, N ( f ) ≤ K L r min { 1 , P C 2 /4 } , where K L = min { L 2 / 2 , 2 π L } K_L=\min\{L^2/2,\sqrt{2\pi L}\} K L = min { L 2 /2 , 2 π L } . At P C = 0 P_C=0 P C = 0 the only model functions are f = r f=r f = r and f = − r f=-r f = − r . For L ≥ 2 L\geq2 L ≥ 2 the oscillation bound is attained for every $0\leq P_C\leq2.
Proof. Let q = f / r q=f/r q = f / r , the output of the same circuit with the pure input ∣ 0 ⟩ |0\rangle ∣0 ⟩ (§ 3 ). We first bound its oscillation over all real inputs. This will allow us to apply Bernstein’s inequality (A.4), which requires a bound over a whole period, when estimating the nonaffinity.
At any stage of the circuit, let a x a_x a x and b x b_x b x be the absolute values of the amplitudes of ∣ 0 ⟩ |0\rangle ∣0 ⟩ and ∣ 1 ⟩ |1\rangle ∣1 ⟩ for the input x ∈ R x\in\mathbb{R} x ∈ R , so that a x 2 + b x 2 = 1 a_x^2+b_x^2=1 a x 2 + b x 2 = 1 . Set
S = sup x , y ∈ R a x b y . S=\sup_{x,y\in\mathbb{R}}a_xb_y. S = x , y ∈ R sup a x b y .
Initially b y = 0 b_y=0 b y = 0 for every y y y , and hence S = 0 S=0 S = 0 . The encoding gate changes only the phases of the amplitudes and leaves S S S unchanged. For a trainable gate V V V , let c = ∣ V 00 ∣ c=|V_{00}| c = ∣ V 00 ∣ and s = ∣ V 10 ∣ s=|V_{10}| s = ∣ V 10 ∣ be the absolute values of its diagonal and off-diagonal entries, so that c 2 + s 2 = 1 c^2+s^2=1 c 2 + s 2 = 1 and p C ( V ) = 2 c s p_C(V)=2cs p C ( V ) = 2 cs (§ 2.3 ). By the triangle inequality, the absolute values a x ′ a'_x a x ′ and b y ′ b'_y b y ′ after the gate satisfy
a x ′ b y ′ ≤ ( c a x + s b x ) ( s a y + c b y ) = c 2 a x b y + s 2 a y b x + c s ( a x a y + b x b y ) ≤ S + c s . \begin{aligned}
a'_xb'_y\leq(ca_x+sb_x)(sa_y+cb_y) \\
&=c^2a_xb_y+s^2a_yb_x+cs(a_xa_y+b_xb_y)\leq S+cs.
\end{aligned} a x ′ b y ′ ≤ ( c a x + s b x ) ( s a y + c b y ) = c 2 a x b y + s 2 a y b x + cs ( a x a y + b x b y ) ≤ S + cs .
The last inequality uses a x b y , a y b x ≤ S a_xb_y,a_yb_x\leq S a x b y , a y b x ≤ S , c 2 + s 2 = 1 c^2+s^2=1 c 2 + s 2 = 1 and a x a y + b x b y ≤ 1 a_xa_y+b_xb_y\leq1 a x a y + b x b y ≤ 1 , the latter by Cauchy–Schwarz. Each trainable gate therefore raises S S S by at most p C ( V ) / 2 p_C(V)/2 p C ( V ) /2 , and at the end of the circuit S ≤ P C / 2 S\leq P_C/2 S ≤ P C /2 . At readout q ( x ) = a x 2 − b x 2 = 1 − 2 b x 2 q(x)=a_x^2-b_x^2=1-2b_x^2 q ( x ) = a x 2 − b x 2 = 1 − 2 b x 2 , so for all x , y ∈ R x,y\in\mathbb{R} x , y ∈ R
∣ q ( x ) − q ( y ) ∣ 2 = ∣ b x 2 − b y 2 ∣ = ∣ ( a y b x ) 2 − ( a x b y ) 2 ∣ ≤ S 2 ≤ P C 2 4 . \frac{|q(x)-q(y)|}{2}=|b_x^2-b_y^2|=|(a_yb_x)^2-(a_xb_y)^2|\le S^2\le\frac{P_C^2}{4}. 2 ∣ q ( x ) − q ( y ) ∣ = ∣ b x 2 − b y 2 ∣ = ∣ ( a y b x ) 2 − ( a x b y ) 2 ∣ ≤ S 2 ≤ 4 P C 2 .
Here we used a x 2 + b x 2 = a y 2 + b y 2 = 1 a_x^2+b_x^2=a_y^2+b_y^2=1 a x 2 + b x 2 = a y 2 + b y 2 = 1 and the fact that both products are at most S S S . Thus q q q oscillates by at most P C 2 / 2 P_C^2/2 P C 2 /2 over R \mathbb{R} R . Together with ∣ q ∣ ≤ 1 |q|\le1 ∣ q ∣ ≤ 1 , this proves the bound on osc ( f ) \operatorname{osc}(f) osc ( f ) in (14) .
When P C = 0 P_C=0 P C = 0 , we have S = 0 S=0 S = 0 at the end of the circuit, that is, a x b y = 0 a_xb_y=0 a x b y = 0 for all x x x and y y y . Hence either b y = 0 b_y=0 b y = 0 for all y y y or a x = 0 a_x=0 a x = 0 for all x x x , so that f ≡ r f\equiv r f ≡ r or f ≡ − r f\equiv-r f ≡ − r . Taking all trainable gates to be the identity gives f ≡ r f\equiv r f ≡ r . Replacing V 0 V_0 V 0 by R y ( π ) R_y(\pi) R y ( π ) gives f ≡ − r f\equiv-r f ≡ − r .
To show that the oscillation bound is sharp, let L ≥ 2 L\ge2 L ≥ 2 and 0 ≤ α ≤ π / 2 0\le\alpha\le\pi/2 0 ≤ α ≤ π /2 , and take V 0 = R y ( α ) V_0=R_y(\alpha) V 0 = R y ( α ) , V L = R y ( − α ) R z ( π / 2 ) V_L=R_y(-\alpha)R_z(\pi/2) V L = R y ( − α ) R z ( π /2 ) and identity gates in between. The factor R z ( π / 2 ) R_z(\pi/2) R z ( π /2 ) changes only the phases of the entries of V L V_L V L , so both gates have the cohering power sin α \sin\alpha sin α , and P C = 2 sin α P_C=2\sin\alpha P C = 2 sin α . The circuit is R y ( − α ) R z ( L x + π / 2 ) R y ( α ) R_y(-\alpha)R_z(Lx+\pi/2)R_y(\alpha) R y ( − α ) R z ( Lx + π /2 ) R y ( α ) , and (13) gives
q ( x ) = cos 2 α + sin 2 α cos ( L x + π / 2 ) = cos 2 α − sin 2 α sin ( L x ) . q(x)=\cos^2\alpha+\sin^2\alpha\cos(Lx+\pi/2)=\cos^2\alpha-\sin^2\alpha\sin(Lx). q ( x ) = cos 2 α + sin 2 α cos ( Lx + π /2 ) = cos 2 α − sin 2 α sin ( Lx ) .
The points x = ± π / ( 2 L ) x=\pm\pi/(2L) x = ± π / ( 2 L ) lie in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and give osc ( f ) = 2 r sin 2 α = r P C 2 / 2 \operatorname{osc}(f)=2r\sin^2\alpha=rP_C^2/2 osc ( f ) = 2 r sin 2 α = r P C 2 /2 . For L ≥ 4 L\ge4 L ≥ 4 , x = 0 x=0 x = 0 and x = π / L x=\pi/L x = π / L both lie in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and attain the extrema without the phase shift. Figure 3 (a) shows this family for L = 4 L=4 L = 4 .
For L = 1 L=1 L = 1 , put u = O ( V 0 ) e z u=O(V_0)e_z u = O ( V 0 ) e z and v = O ( V 1 ) e z v=O(V_1)e_z v = O ( V 1 ) e z . Equation (12) gives q ( x ) = u z v z + v ⊥ T Q x u ⊥ q(x)=u_zv_z+v_\perp^{\mathsf T}Q_xu_\perp q ( x ) = u z v z + v ⊥ T Q x u ⊥ . As Q x Q_x Q x rotates u ⊥ u_\perp u ⊥ in the transverse plane, the second term is a cosine of amplitude ∥ u ⊥ ∥ 2 ∥ v ⊥ ∥ 2 = p C ( V 0 ) p C ( V 1 ) ≤ P C 2 / 4 \|u_\perp\|_2\|v_\perp\|_2=p_C(V_0)p_C(V_1)\le P_C^2/4 ∥ u ⊥ ∥ 2 ∥ v ⊥ ∥ 2 = p C ( V 0 ) p C ( V 1 ) ≤ P C 2 /4 . On an interval of length two a cosine oscillates by at most 2 sin 1 2\sin1 2 sin 1 times its amplitude, so the bound is strict when P C > 0 P_C>0 P C > 0 .
We now use the oscillation bound to estimate the nonaffinity. By (12) , q q q is a polynomial of degree at most L L L in the entries cos x \cos x cos x and ± sin x \pm\sin x ± sin x of Q x Q_x Q x , and hence a real trigonometric polynomial of degree at most L L L . Let q ∗ q_* q ∗ be the midpoint between its maximum and minimum over R \mathbb{R} R , and let Γ = min { 1 , P C 2 / 4 } \Gamma=\min\{1,P_C^2/4\} Γ = min { 1 , P C 2 /4 } . By the first part, q − q ∗ q-q_* q − q ∗ is bounded by Γ \Gamma Γ on all of R \mathbb{R} R . Applying Bernstein’s inequality (A.4) once and twice gives
∥ q ′ ∥ ∞ , R ≤ L Γ , ∥ q ′ ′ ∥ ∞ , R ≤ L 2 Γ . (28) \|q'\|_{\infty,\mathbb{R}}\le L\Gamma,\qquad\|q''\|_{\infty,\mathbb{R}}\le L^2\Gamma. \tag*{(28)} ∥ q ′ ∥ ∞ , R ≤ L Γ , ∥ q ′′ ∥ ∞ , R ≤ L 2 Γ. (28)
Let β n \beta_n β n be the Chebyshev coefficients of q q q on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , so that N ( f ) = r ∑ n ≥ 2 ∣ β n ∣ \mathcal{N}(f)=r\sum_{n\ge2}|\beta_n| N ( f ) = r ∑ n ≥ 2 ∣ β n ∣ . We bound this sum in two ways. The first estimate is the better one for L ≤ 2 L\le2 L ≤ 2 , the second for L ≥ 3 L\ge3 L ≥ 3 .
For the first estimate, subtract q ′ ( 0 ) x q'(0)x q ′ ( 0 ) x from q q q . This changes only β 1 \beta_1 β 1 , which does not enter the sum, and makes the derivative vanish at x = 0 x=0 x = 0 . Set G ( θ ) = q ( cos θ ) − q ′ ( 0 ) cos θ G(\theta)=q(\cos\theta)-q'(0)\cos\theta G ( θ ) = q ( cos θ ) − q ′ ( 0 ) cos θ . Then G ′ ( θ ) = − sin θ [ q ′ ( cos θ ) − q ′ ( 0 ) ] G'(\theta)=-\sin\theta\,[q'(\cos\theta)-q'(0)] G ′ ( θ ) = − sin θ [ q ′ ( cos θ ) − q ′ ( 0 )] , and the mean value theorem with (C.1) gives ∣ G ′ ( θ ) ∣ ≤ L 2 Γ ∣ sin θ cos θ ∣ |G'(\theta)|\le L^2\Gamma|\sin\theta\cos\theta| ∣ G ′ ( θ ) ∣ ≤ L 2 Γ∣ sin θ cos θ ∣ . Since ∫ 0 π sin 2 θ cos 2 θ d θ = π / 8 \int_0^\pi\sin^2\theta\cos^2\theta\,\mathrm{d}\theta=\pi/8 ∫ 0 π sin 2 θ cos 2 θ d θ = π /8 , (A.5) with k = 1 k=1 k = 1 yields
∑ n ≥ 2 n 2 ∣ β n ∣ 2 ≤ L 4 Γ 2 4 . \sum_{n\ge2}n^2|\beta_n|^2\le\frac{L^4\Gamma^2}{4}. n ≥ 2 ∑ n 2 ∣ β n ∣ 2 ≤ 4 L 4 Γ 2 .
Applying Cauchy–Schwarz to n ∣ β n ∣ n|\beta_n| n ∣ β n ∣ and 1 / n 1/n 1/ n gives
( ∑ n ≥ 2 ∣ β n ∣ ) 2 ≤ ( ∑ n ≥ 2 n 2 ∣ β n ∣ 2 ) ( ∑ n ≥ 2 1 n 2 ) ≤ L 4 Γ 2 4 . \left(\sum_{n\ge2}|\beta_n|\right)^2
\le\left(\sum_{n\ge2}n^2|\beta_n|^2\right)\left(\sum_{n\ge2}\frac{1}{n^2}\right)
\le\frac{L^4\Gamma^2}{4}. ( n ≥ 2 ∑ ∣ β n ∣ ) 2 ≤ ( n ≥ 2 ∑ n 2 ∣ β n ∣ 2 ) ( n ≥ 2 ∑ n 2 1 ) ≤ 4 L 4 Γ 2 .
For the last inequality we used ∑ n ≥ 2 n − 2 ≤ ∑ n ≥ 2 ( 1 / ( n − 1 ) − 1 / n ) = 1 \sum_{n\ge2}n^{-2}\le\sum_{n\ge2}(1/(n-1)-1/n)=1 ∑ n ≥ 2 n − 2 ≤ ∑ n ≥ 2 ( 1/ ( n − 1 ) − 1/ n ) = 1 . Taking square roots gives the first bound.
For the second estimate, let H ( θ ) = q ( cos θ ) − q ∗ H(\theta)=q(\cos\theta)-q_* H ( θ ) = q ( cos θ ) − q ∗ . The constant shift affects only β 0 \beta_0 β 0 . Then ∥ H ∥ ∞ , [ 0 , π ] ≤ Γ \|H\|_{\infty,[0,\pi]}\le\Gamma ∥ H ∥ ∞ , [ 0 , π ] ≤ Γ and ∥ H ′ ′ ∥ ∞ , [ 0 , π ] ≤ ∥ q ′ ′ ∥ ∞ , R ≤ L Γ \|H''\|_{\infty,[0,\pi]}\le\|q''\|_{\infty,\mathbb{R}}\le L\Gamma ∥ H ′′ ∥ ∞ , [ 0 , π ] ≤ ∥ q ′′ ∥ ∞ , R ≤ L Γ . Adding (A.5) for k = 0 k=0 k = 0 and, divided by L 2 L^2 L 2 , for k = 1 k=1 k = 1 gives
∑ n ≥ 1 ( 1 + n 2 L 2 ) ∣ β n ∣ 2 ≤ 4 Γ 2 . \sum_{n\ge1}\left(1+\frac{n^2}{L^2}\right)|\beta_n|^2\le4\Gamma^2. n ≥ 1 ∑ ( 1 + L 2 n 2 ) ∣ β n ∣ 2 ≤ 4 Γ 2 .
The Cauchy–Schwarz inequality with these weights yields
( ∑ n ≥ 2 ∣ β n ∣ ) 2 ≤ ( ∑ n ≥ 1 1 1 + n 2 / L 2 ) 4 Γ 2 ≤ π L 2 4 Γ 2 , \left(\sum_{n\ge2}|\beta_n|\right)^2
\le\left(\sum_{n\ge1}\frac{1}{1+n^2/L^2}\right)4\Gamma^2
\le\frac{\pi L}{2}\,4\Gamma^2, ( n ≥ 2 ∑ ∣ β n ∣ ) 2 ≤ ( n ≥ 1 ∑ 1 + n 2 / L 2 1 ) 4 Γ 2 ≤ 2 π L 4 Γ 2 ,
because t ↦ ( 1 + t 2 / L 2 ) − 1 t\mapsto(1+t^2/L^2)^{-1} t ↦ ( 1 + t 2 / L 2 ) − 1 decreases for t ≥ 0 t\ge0 t ≥ 0 , so its integral on [ n − 1 , n ] [n-1,n] [ n − 1 , n ] bounds its value at n n n . The integral on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) is π L / 2 \pi L/2 π L /2 . Hence ∑ n ≥ 2 ∣ β n ∣ ≤ 2 π L Γ \sum_{n\ge2}|\beta_n|\le\sqrt{2\pi L}\Gamma ∑ n ≥ 2 ∣ β n ∣ ≤ 2 π L Γ .
Taking the smaller bound gives N ( f ) ≤ r min { L 2 / 2 , 2 π L } min { 1 , P C 2 / 4 } = K L r min { 1 , P C 2 / 4 } \mathcal{N}(f)\le r\min\{L^2/2,\sqrt{2\pi L}\}\min\{1,P_C^2/4\}=K_Lr\min\{1,P_C^2/4\} N ( f ) ≤ r min { L 2 /2 , 2 π L } min { 1 , P C 2 /4 } = K L r min { 1 , P C 2 /4 } . ∙იდӡб
Imaginarity bound
Theorem 2 (restated). Let f f f be the model function of the circuit (9) with input state ρ r \rho_r ρ r , 0 < r ≤ 1 0 < r \le1 0 < r ≤ 1 , phase encoding R z ( x ) R_z(x) R z ( x ) on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and Z Z Z readout. At any depth, the cumulative imaginarity power P I P_I P I of the trainable gates bounds the odd part of the output,
∥ f o d d ∥ ∞ ≤ r min { 1 , P I } . \lVert f_{\mathrm{odd}}\rVert_\infty\le r\min\{1,P_I\}. ∥ f odd ∥ ∞ ≤ r min { 1 , P I } . Allowing arbitrary encoding depth, the uniform closure of the model functions with P I = 0 P_I=0 P I = 0 consists of all even functions in C ( [ − 1 , 1 ] ; [ − r , r ] ) \mathcal{C}([-1,1];[-r,r]) C ([ − 1 , 1 ] ; [ − r , r ]) . For every g ∈ C ( [ − 1 , 1 ] ; [ − r , r ] ) g\in\mathcal{C}([-1,1];[-r,r]) g ∈ C ([ − 1 , 1 ] ; [ − r , r ]) , the infimum of ∥ f − g ∥ ∞ \lVert f-g\rVert_\infty ∥ f − g ∥ ∞ over these circuits equals ∥ g o d d ∥ ∞ \lVert g_{\mathrm{odd}}\rVert_\infty ∥ g odd ∥ ∞ . For L ≥ 2 L\ge2 L ≥ 2 encoding calls the bound is attained for every 0 ≤ P I ≤ 1 0\le P_I\le1 0 ≤ P I ≤ 1 .
Proof. We compare the circuit with its complex conjugate, as outlined in § 4.2 . Complex conjugation maps Y Y Y to − Y -Y − Y and leaves X X X and Z Z Z unchanged. On Bloch vectors it therefore acts as the reflection T = diag ( 1 , − 1 , 1 ) T=\operatorname{diag}(1,-1,1) T = diag ( 1 , − 1 , 1 ) , and O ( V ‾ ) = T O ( V ) T O(\overline{V})=TO(V)T O ( V ) = T O ( V ) T for every V ∈ SU ( 2 ) V\in\operatorname{SU}(2) V ∈ SU ( 2 ) .
For a single gate, write O = O ( V ) O=O(V) O = O ( V ) . Conjugation by T T T reverses the sign of exactly those entries of O O O that connect the y y y axis with the x z xz x z plane, so that
O − T O T = 2 ( 0 O x y 0 O y x 0 O y z 0 O z y 0 ) . O-TOT=2\begin{pmatrix}0 & O_{xy} & 0\\ O_{yx} & 0 & O_{yz}\\ 0 & O_{zy} & 0\end{pmatrix}. O − T O T = 2 0 O y x 0 O x y 0 O z y 0 O y z 0 .
Put u = ( O x y , O z y ) T u=(O_{xy},O_{zy})^{\mathsf T} u = ( O x y , O z y ) T and v = ( O y x , O y z ) T v=(O_{yx},O_{yz})^{\mathsf T} v = ( O y x , O y z ) T . Since the y y y column and row of O O O have unit length, ∥ u ∥ 2 = ∥ v ∥ 2 = 1 − O y y 2 \lVert u\rVert^2=\lVert v\rVert^2=1-O_{yy}^2 ∥ u ∥ 2 = ∥ v ∥ 2 = 1 − O y y 2 . For a unit vector s s s , write w = ( s x , s z ) T w=(s_x,s_z)^{\mathsf T} w = ( s x , s z ) T . The x z xz x z component of ( O − T O T ) s / 2 (O-TOT)s/2 ( O − T O T ) s /2 is s y u s_yu s y u , and its y y y component is v T w v^{\mathsf T}w v T w . Hence
1 4 ∥ ( O − T O T ) s ∥ 2 2 = s y 2 ∥ u ∥ 2 + ∣ v T w ∣ 2 ≤ ( 1 − O y y 2 ) ( s y 2 + ∥ w ∥ 2 ) = 1 − O y y 2 . \frac{1}{4}\lVert(O-TOT)s\rVert_2^2=s_y^2\lVert u\rVert^2+\lvert v^{\mathsf T}w\rvert^2\le(1-O_{yy}^2)(s_y^2+\lVert w\rVert^2)=1-O_{yy}^2. 4 1 ∥( O − T O T ) s ∥ 2 2 = s y 2 ∥ u ∥ 2 + ∣ v T w ∣ 2 ≤ ( 1 − O y y 2 ) ( s y 2 + ∥ w ∥ 2 ) = 1 − O y y 2 .
Equality holds for s = e y s=e_y s = e y . Thus Lemma 2.1 gives
∥ O − T O T ∥ o p = 2 1 − O y y 2 = 2 p I ( V ) . (29) \lVert O-TOT\rVert_{\mathrm{op}}=2\sqrt{1-O_{yy}^2}=2p_I(V). \tag*{(29)} ∥ O − T O T ∥ op = 2 1 − O y y 2 = 2 p I ( V ) . (29)
To apply this estimate to the full circuit, write O j = O ( V j ) O_j=O(V_j) O j = O ( V j ) in (12) . Since R ( − x ) = T R ( x ) T R(-x)=TR(x)T R ( − x ) = T R ( x ) T , T 2 = 1 T^2=1 T 2 = 1 and T e z = e z Te_z=e_z T e z = e z ,
f ( − x ) = r e z T O L R ( − x ) ⋯ R ( − x ) O 0 e z = r e z T ( T O L T ) R ( x ) ⋯ R ( x ) ( T O 0 T ) e z . \begin{aligned}
f(-x)&=r e_z^{\mathsf T}O_LR(-x)\cdots R(-x)O_0e_z\\
&=r e_z^{\mathsf T}(TO_LT)R(x)\cdots R(x)(TO_0T)e_z.
\end{aligned} f ( − x ) = r e z T O L R ( − x ) ⋯ R ( − x ) O 0 e z = r e z T ( T O L T ) R ( x ) ⋯ R ( x ) ( T O 0 T ) e z .
This is the output at x x x of the circuit with the complex-conjugated gates V j ‾ \overline{V_j} V j . It differs from f ( x ) f(x) f ( x ) only through the factors T O j T TO_jT T O j T in place of O j O_j O j , so (A.1) and (D.1) give
∣ f ( x ) − f ( − x ) ∣ ≤ r ∑ j = 0 L ∥ O j − T O j T ∥ o p = 2 r P I . \lvert f(x)-f(-x)\rvert\le r\sum_{j=0}^{L}\lVert O_j-TO_jT\rVert_{\mathrm{op}}=2rP_I. ∣ f ( x ) − f ( − x )∣ ≤ r j = 0 ∑ L ∥ O j − T O j T ∥ op = 2 r P I .
Since f o d d ( x ) = [ f ( x ) − f ( − x ) ] / 2 f_{\mathrm{odd}}(x)=[f(x)-f(-x)]/2 f odd ( x ) = [ f ( x ) − f ( − x )] /2 , this means ∣ f o d d ∣ ≤ r P I \lvert f_{\mathrm{odd}}\rvert\le rP_I ∣ f odd ∣ ≤ r P I . Moreover, ∣ f o d d ∣ ≤ r \lvert f_{\mathrm{odd}}\rvert\le r ∣ f odd ∣ ≤ r because f f f takes values in [ − r , r ] [-r,r] [ − r , r ] . This proves (16) .
At zero power, (16) implies that every model function is even, and so is every uniform limit of such functions. Conversely, Proposition B.1 gives uniform approximation of every even target in C ( [ − 1 , 1 ] ; [ − r , r ] ) \mathcal{C}([-1,1];[-r,r]) C ([ − 1 , 1 ] ; [ − r , r ]) by circuits whose trainable gates have real matrices. Such gates are rotations R y ( θ ) R_y(\theta) R y ( θ ) , for which O y y = 1 O_{yy}=1 O y y = 1 and hence p I = 0 p_I=0 p I = 0 .
For an arbitrary target g ∈ C ( [ − 1 , 1 ] ; [ − r , r ] ) g\in\mathcal{C}([-1,1];[-r,r]) g ∈ C ([ − 1 , 1 ] ; [ − r , r ]) , let f f f be a model function with P I = 0 P_I=0 P I = 0 . Since f f f is even, g o d d = ( g − f ) o d d g_{\mathrm{odd}}=(g-f)_{\mathrm{odd}} g odd = ( g − f ) odd , and therefore ∥ g o d d ∥ ∞ ≤ ∥ g − f ∥ ∞ \lVert g_{\mathrm{odd}}\rVert_\infty\le\lVert g-f\rVert_\infty ∥ g odd ∥ ∞ ≤ ∥ g − f ∥ ∞ . Conversely, the even part g − g o d d g-g_{\mathrm{odd}} g − g odd takes the value [ g ( x ) + g ( − x ) ] / 2 [g(x)+g(-x)]/2 [ g ( x ) + g ( − x )] /2 at x x x , so it is continuous and takes values in [ − r , r ] [-r,r] [ − r , r ] . It is therefore a uniform limit of model functions with P I = 0 P_I=0 P I = 0 , and its distance from g g g is ∥ g o d d ∥ ∞ \lVert g_{\mathrm{odd}}\rVert_\infty ∥ g odd ∥ ∞ .
To show that the bound is sharp, consider R x ( β ) R z ( x ) L R y ( π / 2 ) R_x(\beta)R_z(x)^LR_y(\pi/2) R x ( β ) R z ( x ) L R y ( π /2 ) . The first rotation sends the Bloch vector to r e x r e_x r e x , and the encoding gates then send it to r ( cos L x , sin L x , 0 ) r(\cos Lx,\sin Lx,0) r ( cos Lx , sin Lx , 0 ) . The final rotation gives the measured z z z component r sin β sin ( L x ) r\sin\beta\sin(Lx) r sin β sin ( Lx ) . Its cumulative imaginarity power is P I = ∣ sin β ∣ P_I=\lvert\sin\beta\rvert P I = ∣ sin β ∣ , since R y ( π / 2 ) R_y(\pi/2) R y ( π /2 ) and the intervening identity gates are real. For L ≥ 2 L\ge2 L ≥ 2 the point x = π / ( 2 L ) x=\pi/(2L) x = π / ( 2 L ) lies in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , and there ∣ f o d d ∣ = r P I \lvert f_{\mathrm{odd}}\rvert=rP_I ∣ f odd ∣ = r P I . □ \square □
The two-qubit model
Universality
Proposition E.1 (Uniform approximation with two qubits). In the model of § 5 with unrestricted depth and cumulative entangling power, every g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ] ) g \in\mathcal{C}(D_1 \times D_2;[-1,1]) g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ]) can be approximated uniformly. Each qubit may use any of the three local encodings in Table 2 .
Proof. We use a SWAP built from R Z Z R_{ZZ} R Z Z gates to give the first qubit access to both inputs, then approximate a rotation R y ( h ) R_y(h) R y ( h ) on this qubit. Here h h h is a trigonometric polynomial close to arccos g \arccos g arccos g , so the ideal rotation has a Z Z Z expectation value cos h \cos h cos h close to g g g .
First, we express the three encodings in terms of their rotation angles t i t_i t i instead of the inputs x i x_i x i : t i = x i ∈ J i = [ − 1 , 1 ] t_i=x_i\in J_i=[-1,1] t i = x i ∈ J i = [ − 1 , 1 ] for the two rotation encodings, and t i = 2 arcsin x i ∈ J i = [ 0 , π ] t_i=2\arcsin\sqrt{x_i}\in J_i=[0,\pi] t i = 2 arcsin x i ∈ J i = [ 0 , π ] for amplitude encoding. As in the proof of Proposition B.1, this change of coordinates and a fixed local change of basis, which turns R y ( t i ) R_y(t_i) R y ( t i ) into R z ( t i ) R_z(t_i) R z ( t i ) , preserve the uniform error. We can therefore use phase encoding on J = J 1 × J 2 J=J_1\times J_2 J = J 1 × J 2 , writing g ( t 1 , t 2 ) g(t_1,t_2) g ( t 1 , t 2 ) for the target in these coordinates.
To implement the SWAP using the allowed gates, note that the operators Q ⊗ Q Q\otimes Q Q ⊗ Q with Q ∈ { X , Y , Z } Q\in\{X,Y,Z\} Q ∈ { X , Y , Z } commute, and their sum is 2 SWAP − 1 2\operatorname{SWAP}-1 2 SWAP − 1 . Exponentiating this identity gives
SWAP = e i π / 4 ∏ Q ∈ { X , Y , Z } e − i π Q ⊗ Q / 4 , (30) \operatorname{SWAP}=e^{i\pi/4}\prod_{Q\in\{X,Y,Z\}}e^{-i\pi Q\otimes Q/4}, \tag*{(30)} SWAP = e iπ /4 Q ∈ { X , Y , Z } ∏ e − iπ Q ⊗ Q /4 , (30)
and each factor is an R Z Z ( π / 2 ) R_{ZZ}(\pi/2) R Z Z ( π /2 ) gate conjugated by local gates; the powers of these gates enter P E P_E P E . Conjugating the encoding gate on the second wire by this product gives R z ( t 2 ) R_z(t_2) R z ( t 2 ) on the first wire and the identity on the second; the global phase cancels. The first qubit can therefore use both encoding gates R z ( t 1 ) R_z(t_1) R z ( t 1 ) and R z ( t 2 ) R_z(t_2) R z ( t 2 ) , interspersed with arbitrary data-independent gates. At readout the second qubit is in ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , so the first qubit’s Z Z Z expectation value equals the two-qubit Z ⊗ Z Z\otimes Z Z ⊗ Z expectation value.
We next construct circuits that uniformly approximate R y ( a cos θ ) R_y(a\cos\theta) R y ( a cos θ ) , where θ = k 1 t 1 + k 2 t 2 + β \theta=k_1t_1+k_2t_2+\beta θ = k 1 t 1 + k 2 t 2 + β , k 1 , k 2 ∈ Z k_1,k_2\in\mathbb{Z} k 1 , k 2 ∈ Z and a , β ∈ R a,\beta\in\mathbb{R} a , β ∈ R . The gate W = R z ( θ ) W=R_z(\theta) W = R z ( θ ) is a product of encoding gates, their inverses and the fixed gate R z ( β ) R_z(\beta) R z ( β ) ; the inverses are obtained by conjugation with R x ( π ) R_x(\pi) R x ( π ) . Let T = − i Y / 2 T=-iY/2 T = − iY /2 , so that R y ( a ) = e a T R_y(a)=e^{aT} R y ( a ) = e a T . Conjugation by W W W rotates Y Y Y about the z z z axis by the angle θ \theta θ , and conjugation by W † W^\dagger W † rotates it by − θ -\theta − θ , so that
W T W † + W † T W = 2 cos θ T . WTW^\dagger+W^\dagger TW=2\cos\theta T. W T W † + W † T W = 2 cos θ T .
The Lie product formula expresses the exponential of a sum of matrices as a limit of alternating products of their exponentials [18 Theorem 2.11] . Applied to the two generators above, it shows that the circuits
[ W R y ( a 2 n ) W † W † R y ( a 2 n ) W ] n \left[WR_y\left(\frac{a}{2n}\right)W^\dagger W^\dagger R_y\left(\frac{a}{2n}\right)W\right]^n [ W R y ( 2 n a ) W † W † R y ( 2 n a ) W ] n
converge to e a cos θ T = R y ( a cos θ ) e^{a\cos\theta T}=R_y(a\cos\theta) e a c o s θ T = R y ( a cos θ ) as n → ∞ n\to\infty n → ∞ , for every real a a a . The convergence is uniform on J J J . To see this, put u = a / ( 2 n ) u=a/(2n) u = a / ( 2 n ) , A = W T W † A=WTW^\dagger A = W T W † and B = W † T W B=W^\dagger TW B = W † T W . Each bracket is e u A e u B e^{uA}e^{uB} e u A e u B , while e u A + u B = R y ( a cos θ / n ) e^{uA+uB}=R_y(a\cos\theta/n) e u A + u B = R y ( a cos θ / n ) . Both Taylor expansions start with 1 + u ( A + B ) 1+u(A+B) 1 + u ( A + B ) , and their remainder operators are O ( u 2 ) O(u^2) O ( u 2 ) in operator norm, uniformly in θ \theta θ , since ∥ A ∥ o p = ∥ B ∥ o p = 1 / 2 \lVert A\rVert_{\mathrm{op}}=\lVert B\rVert_{\mathrm{op}}=1/2 ∥ A ∥ op = ∥ B ∥ op = 1/2 . The bracket and R y ( a cos θ / n ) R_y(a\cos\theta/n) R y ( a cos θ / n ) are unitary, so (A.1) bounds the error between their n n n th powers by n O ( u 2 ) = O ( a 2 / n ) n\,O(u^2)=O(a^2/n) n O ( u 2 ) = O ( a 2 / n ) .
This construction extends to every real trigonometric polynomial h ( t 1 , t 2 ) h(t_1,t_2) h ( t 1 , t 2 ) , since h h h is a finite sum of terms a cos ( k 1 t 1 + k 2 t 2 + β ) a\cos(k_1t_1+k_2t_2+\beta) a cos ( k 1 t 1 + k 2 t 2 + β ) . The corresponding rotations about the y y y axis commute and multiply to R y ( h ) R_y(h) R y ( h ) , so circuits on the first qubit approximate R y ( h ) R_y(h) R y ( h ) uniformly on J J J . To approximate an arbitrary continuous target, we use the Stone–Weierstrass theorem: a real algebra of continuous functions on a compact set is uniformly dense in the space of continuous real-valued functions if it contains the constants and separates points [44 Theorem 7.32] . The trigonometric polynomials form such an algebra on J J J . Indeed, sine and cosine distinguish any two points in each coordinate interval J i J_i J i , since its length is less than 2 π 2\pi 2 π .
For a continuous g : J → [ − 1 , 1 ] g:J\to[-1,1] g : J → [ − 1 , 1 ] and ε > 0 \varepsilon>0 ε > 0 , we may therefore choose a trigonometric polynomial h h h with ∥ h − arccos g ∥ ∞ ≤ ε / 2 \lVert h-\arccos g\rVert_\infty\leq\varepsilon/2 ∥ h − arccos g ∥ ∞ ≤ ε /2 . The gate R y ( h ) R_y(h) R y ( h ) has the Z Z Z expectation value cos h \cos h cos h on ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ , and ∣ cos h − g ∣ ≤ ∣ h − arccos g ∣ ≤ ε / 2 \lvert\cos h-g\rvert\leq\lvert h-\arccos g\rvert\leq\varepsilon/2 ∣ cos h − g ∣ ≤ ∣ h − arccos g ∣ ≤ ε /2 . By (A.2), a circuit within ε / 4 \varepsilon/4 ε /4 of R y ( h ) R_y(h) R y ( h ) in operator norm changes this expectation value by at most ε / 2 \varepsilon/2 ε /2 . ∕
Relation to other universality results. Proposition E.1 is not needed for the resource bounds. It establishes that the model constrained by Theorem 3 is universal when the entangling power is unrestricted. To our knowledge, universality has not been shown before for a model of this kind, with two qubits at every accuracy, each encoding its own input, R Z Z R_{ZZ} R Z Z gates and Z ⊗ Z Z \otimes Z Z ⊗ Z readout. The closest results concern other models. Yu et al. [59 Theorem 2] prove that data re-uploading circuits with fixed encoding gates, measured with Z Z Z on one qubit, approximate every continuous function from [ 0 , 1 ] d [0,1]^d [ 0 , 1 ] d to [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] uniformly. Their construction adds the terms of a Bernstein polynomial of degree n n n by a linear combination of unitaries with an index register and controlled gates, and its number of qubits grows as O ( d log n ) O(d \log n) O ( d log n ) . Pérez-Salinas et al. [40 Theorem 1] study the setting to which our proof reduces once the SWAP has moved both encoding gates to the first qubit: one qubit with a separate fixed encoding gate for each input coordinate. Their statement concerns the amplitude ⟨ 0 ∣ U ∣ 0 ⟩ \langle0|U|0\rangle ⟨ 0∣ U ∣0 ⟩ , with the coordinate s k ∈ [ 0 , 1 ] s_k \in[0,1] s k ∈ [ 0 , 1 ] encoded by e i π s k Z e^{i\pi s_k Z} e iπ s k Z . At s k = 0 s_k=0 s k = 0 and s k = 1 s_k=1 s k = 1 this gate equals 1 1 1 and − 1 -1 − 1 , so the encoding gates at the two endpoints differ only by a global phase. Holding the other coordinates fixed, the amplitudes at the two endpoints therefore have the same modulus, which rules out uniform approximation of targets whose moduli differ there. For the target s ↦ s 1 s \mapsto s_1 s ↦ s 1 this forces a uniform error of at least 1 / 2 1/2 1/2 . In our proof the output is a Z Z Z expectation value, and the encoding angles range over intervals shorter than a period. The two ends of an input interval therefore need not give the same output. Other universality results use trainable input weights [39 ] . Another approach allows the number of qubits to grow with the required accuracy and chooses an observable that depends on the target. Results of this kind give approximation in L 2 L^2 L 2 [48 App. C] and, for continuous targets of N N N inputs on a domain compactly contained in [ 0 , 2 π ] N [0,2\pi]^N [ 0 , 2 π ] N , in the uniform norm [31 Theorem 3] . Ref. [29 ] studies the depth required to replace trainable input weights by fixed encoding gates.
Entangling power of R Z Z R_{ZZ} R Z Z
Lemma 5.1 (restated). For every γ ∈ R \gamma\in\mathbb{R} γ ∈ R , the largest increase in generalized entanglement robustness over all two-qubit inputs is
p E ( R Z Z ( γ ) ) = ∣ sin γ ∣ . p_E(R_{ZZ}(\gamma)) = |\sin\gamma|. p E ( R Z Z ( γ )) = ∣ sin γ ∣. A product input attains the maximum.
Proof. We first express the action of R Z Z ( γ ) R_{ZZ}(\gamma) R Z Z ( γ ) in terms of its action at three fixed angles. The resulting identity (E.3) will also be used to bound the distance from product functions in Appendix § 15 .§ 3 . Let P = Z ⊗ Z P=Z\otimes Z P = Z ⊗ Z and Φ γ ( ρ ) = R Z Z ( γ ) ρ R Z Z ( γ ) † \Phi_\gamma(\rho)=R_{ZZ}(\gamma)\rho R_{ZZ}(\gamma)^\dagger Φ γ ( ρ ) = R Z Z ( γ ) ρ R Z Z ( γ ) † . Since
R Z Z ( γ ) = cos ( γ / 2 ) 1 − i sin ( γ / 2 ) P , (31) R_{ZZ}(\gamma)=\cos(\gamma/2)\mathbb{1}-i\sin(\gamma/2)P, \tag*{(31)} R Z Z ( γ ) = cos ( γ /2 ) 1 − i sin ( γ /2 ) P , (31)
we have
Φ γ ( ρ ) = ρ + P ρ P 2 + cos γ ρ − P ρ P 2 + sin γ i ( P ρ − ρ P ) 2 . \Phi_\gamma(\rho)=\frac{\rho+P\rho P}{2}+\cos\gamma\frac{\rho-P\rho P}{2}+\sin\gamma\frac{i(P\rho-\rho P)}{2}. Φ γ ( ρ ) = 2 ρ + P ρP + cos γ 2 ρ − P ρP + sin γ 2 i ( P ρ − ρP ) .
Write A A A , B B B and C C C for the three linear maps of ρ \rho ρ on the right-hand side, so that Φ γ = A + B cos γ + C sin γ \Phi_\gamma=A+B\cos\gamma+C\sin\gamma Φ γ = A + B cos γ + C sin γ . The values at three angles determine them: Φ 0 = A + B \Phi_0=A+B Φ 0 = A + B and Φ ± π / 2 = A ± C \Phi_{\pm\pi/2}=A\pm C Φ ± π /2 = A ± C give A = ( Φ π / 2 + Φ − π / 2 ) / 2 A=(\Phi_{\pi/2}+\Phi_{-\pi/2})/2 A = ( Φ π /2 + Φ − π /2 ) /2 , C = ( Φ π / 2 − Φ − π / 2 ) / 2 C=(\Phi_{\pi/2}-\Phi_{-\pi/2})/2 C = ( Φ π /2 − Φ − π /2 ) /2 and B = Φ 0 − A B=\Phi_0-A B = Φ 0 − A . Substitution gives
Φ γ = cos γ Φ 0 + b + Φ π / 2 − b − Φ − π / 2 , (32) \Phi_\gamma=\cos\gamma\,\Phi_0+b_+\Phi_{\pi/2}-b_-\Phi_{-\pi/2}, \tag*{(32)} Φ γ = cos γ Φ 0 + b + Φ π /2 − b − Φ − π /2 , (32)
where b ± = [ sin γ ± ( 1 − cos γ ) ] / 2 b_\pm=[\sin\gamma\pm(1-\cos\gamma)]/2 b ± = [ sin γ ± ( 1 − cos γ )] /2 . For 0 ≤ γ ≤ π / 2 0\le\gamma\le\pi/2 0 ≤ γ ≤ π /2 both b + b_+ b + and b − b_- b − are nonnegative, and b + + b − = sin γ b_++b_-=\sin\gamma b + + b − = sin γ . It suffices to consider these angles. Shifting γ \gamma γ by π \pi π multiplies R Z Z ( γ ) R_{ZZ}(\gamma) R Z Z ( γ ) by − i P -iP − i P , and conjugation by X ⊗ 1 X\otimes\mathbb{1} X ⊗ 1 reverses the sign of γ \gamma γ . Both − i P -iP − i P and X ⊗ 1 X\otimes\mathbb{1} X ⊗ 1 are local gates, which leave R g R_g R g unchanged, and neither operation changes ∣ sin γ ∣ |\sin\gamma| ∣ sin γ ∣ .
To bound the increase in robustness, note that every two-qubit state ω \omega ω satisfies ω ≤ 2 τ \omega\le2\tau ω ≤ 2 τ with τ = [ ω + ( Z ⊗ 1 ) ω ( Z ⊗ 1 ) ] / 2 \tau=[\omega+(Z\otimes\mathbb{1})\omega(Z\otimes\mathbb{1})]/2 τ = [ ω + ( Z ⊗ 1 ) ω ( Z ⊗ 1 )] /2 , because 2 τ − ω = ( Z ⊗ 1 ) ω ( Z ⊗ 1 ) 2\tau-\omega=(Z\otimes\mathbb{1})\omega(Z\otimes\mathbb{1}) 2 τ − ω = ( Z ⊗ 1 ) ω ( Z ⊗ 1 ) is positive semidefinite. This averaging removes the off-diagonal blocks of ω \omega ω in the computational basis of the first qubit. Thus τ \tau τ is a mixture of two product states, one for each basis state of the first qubit, and therefore separable. Let ρ \rho ρ be any state, with t = R g ( ρ ) t=R_g(\rho) t = R g ( ρ ) and ρ ≤ ( 1 + t ) σ \rho\le(1+t)\sigma ρ ≤ ( 1 + t ) σ for some σ ∈ Sep \sigma\in\operatorname{Sep} σ ∈ Sep (§ 2.1 ). In (E.3), we have Φ 0 ( ρ ) = ρ ≤ ( 1 + t ) σ \Phi_0(\rho)=\rho\le(1+t)\sigma Φ 0 ( ρ ) = ρ ≤ ( 1 + t ) σ and Φ π / 2 ( ρ ) ≤ 2 τ \Phi_{\pi/2}(\rho)\le2\tau Φ π /2 ( ρ ) ≤ 2 τ for a separable τ \tau τ . The coefficients cos γ \cos\gamma cos γ and b + b_+ b + are nonnegative, while − b − Φ − π / 2 ( ρ ) -b_-\Phi_{-\pi/2}(\rho) − b − Φ − π /2 ( ρ ) is negative semidefinite. Thus
Φ γ ( ρ ) ≤ ( 1 + t ) cos γ σ + 2 b + τ . \Phi_\gamma(\rho)\le(1+t)\cos\gamma\,\sigma+2b_+\tau. Φ γ ( ρ ) ≤ ( 1 + t ) cos γ σ + 2 b + τ .
The coefficients sum to ( 1 + t ) cos γ + 2 b + = 1 + t cos γ + sin γ (1+t)\cos\gamma+2b_{+}=1+t\cos\gamma+\sin\gamma ( 1 + t ) cos γ + 2 b + = 1 + t cos γ + sin γ . Dividing the right-hand side by this sum gives a convex mixture of the separable states σ \sigma σ and τ \tau τ . Hence R g ( Φ γ ( ρ ) ) ≤ t cos γ + sin γ ≤ R g ( ρ ) + sin γ R_g(\Phi_\gamma(\rho))\leq t\cos\gamma+\sin\gamma\leq R_g(\rho)+\sin\gamma R g ( Φ γ ( ρ )) ≤ t cos γ + sin γ ≤ R g ( ρ ) + sin γ .
To show that this bound is attained on a product input, we use the pure-state formula for robustness. Write the Schmidt decomposition of a normalized pure state as ∣ ψ ⟩ = ∑ i λ i ∣ u i ⟩ ⊗ ∣ v i ⟩ |\psi\rangle=\sum_i\lambda_i|u_i\rangle\otimes|v_i\rangle ∣ ψ ⟩ = ∑ i λ i ∣ u i ⟩ ⊗ ∣ v i ⟩ , with orthonormal families on each qubit and λ i ≥ 0 \lambda_i\geq0 λ i ≥ 0 , ∑ i λ i 2 = 1 \sum_i\lambda_i^2=1 ∑ i λ i 2 = 1 . Its robustness is R g ( ∣ ψ ⟩ ⟨ ψ ∣ ) = ( ∑ i λ i ) 2 − 1 R_g(|\psi\rangle\langle\psi|)=(\sum_i\lambda_i)^2-1 R g ( ∣ ψ ⟩ ⟨ ψ ∣ ) = ( ∑ i λ i ) 2 − 1 [56 , 49 ] .
Let ∣ ± ⟩ = ( ∣ 0 ⟩ ± ∣ 1 ⟩ ) / 2 |\pm\rangle=(|0\rangle\pm|1\rangle)/\sqrt{2} ∣ ± ⟩ = ( ∣0 ⟩ ± ∣1 ⟩) / 2 . By (E.2), the state R Z Z ( γ ) ∣ + + ⟩ = cos ( γ / 2 ) ∣ + + ⟩ − i sin ( γ / 2 ) ∣ − − ⟩ R_{ZZ}(\gamma)|++\rangle=\cos(\gamma/2)|++\rangle-i\sin(\gamma/2)|--\rangle R Z Z ( γ ) ∣ + + ⟩ = cos ( γ /2 ) ∣ + + ⟩ − i sin ( γ /2 ) ∣ − − ⟩ has Schmidt coefficients cos ( γ / 2 ) \cos(\gamma/2) cos ( γ /2 ) and sin ( γ / 2 ) \sin(\gamma/2) sin ( γ /2 ) . The gate thus raises the robustness of the product state ∣ + + ⟩ |++\rangle ∣ + + ⟩ from zero to 2 cos ( γ / 2 ) sin ( γ / 2 ) = sin γ 2\cos(\gamma/2)\sin(\gamma/2)=\sin\gamma 2 cos ( γ /2 ) sin ( γ /2 ) = sin γ .
Since R Z Z ( − γ ) R_{ZZ}(-\gamma) R Z Z ( − γ ) equals R Z Z ( γ ) R_{ZZ}(\gamma) R Z Z ( γ ) conjugated by the local gate X ⊗ 1 X\otimes1 X ⊗ 1 , the largest possible decrease in robustness equals the largest increase. The definition based on the absolute change then gives the same power ∣ sin γ ∣ |\sin\gamma| ∣ sin γ ∣ .
Distance from product functions
Theorem 3 (restated). Let f f f be a model function of the two-qubit circuit of § 5 , and let P \mathcal{P} P be the products of continuous factors a : D 1 → [ − 1 , 1 ] a:D_1\to[-1,1] a : D 1 → [ − 1 , 1 ] and b : D 2 → [ − 1 , 1 ] b:D_2\to[-1,1] b : D 2 → [ − 1 , 1 ] . At any depth,
dist ( f , P ) ≤ min { 1 , P E } . \operatorname{dist}(f,\mathcal{P})\leq\min\{1,P_E\}. dist ( f , P ) ≤ min { 1 , P E } . Allowing arbitrarily many local encoding calls, the uniform closure of the model functions with P E = 0 P_E=0 P E = 0 is exactly P \mathcal{P} P .
To approximate g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ] ) g\in\mathcal{C}(D_1\times D_2;[-1,1]) g ∈ C ( D 1 × D 2 ; [ − 1 , 1 ]) within uniform error ε \varepsilon ε requires
P E ≥ ( dist ( g , P ) − ε ) + . P_E\geq\bigl(\operatorname{dist}(g,\mathcal{P})-\varepsilon\bigr)_{+}. P E ≥ ( dist ( g , P ) − ε ) + . The distance bound is attained for every P E ∈ [ 0 , 1 ] P_E\in[0,1] P E ∈ [ 0 , 1 ] .
Proof. We compare the circuit with a product circuit by removing its entangling gates one at a time. As in Appendix § 15 .§ 2 , we may assume 0 ≤ γ j ≤ π / 2 0\leq\gamma_j\leq\pi/2 0 ≤ γ j ≤ π /2 for all j j j . The local gates − i Z ⊗ Z -iZ\otimes Z − i Z ⊗ Z and X ⊗ 1 X\otimes1 X ⊗ 1 that reduce an angle to this range become part of the circuit, and they do not change ∣ sin γ j ∣ |\sin\gamma_j| ∣ sin γ j ∣ . Fix the input and one of the gates, with angle γ \gamma γ , and let F ( t ) F(t) F ( t ) be the output of the circuit in which this gate is replaced by R Z Z ( t ) R_{ZZ}(t) R Z Z ( t ) . The output is linear in the state after the gate, so (E.3) gives
F ( γ ) − cos γ F ( 0 ) = b + F ( π / 2 ) − b − F ( − π / 2 ) . F(\gamma)-\cos\gamma F(0)=b_{+}F(\pi/2)-b_{-}F(-\pi/2). F ( γ ) − cos γ F ( 0 ) = b + F ( π /2 ) − b − F ( − π /2 ) .
All outputs lie in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , and b + + b − = sin γ b_{+}+b_{-}=\sin\gamma b + + b − = sin γ , so that ∣ F ( γ ) − cos γ F ( 0 ) ∣ ≤ sin γ |F(\gamma)-\cos\gamma F(0)|\leq\sin\gamma ∣ F ( γ ) − cos γ F ( 0 ) ∣ ≤ sin γ . Since R Z Z ( 0 ) = 1 R_{ZZ}(0)=1 R Z Z ( 0 ) = 1 , F ( 0 ) F(0) F ( 0 ) is the output with the gate removed.
We now apply this estimate successively to R Z Z ( γ 1 ) , … , R Z Z ( γ m ) R_{ZZ}(\gamma_1),\ldots,R_{ZZ}(\gamma_m) R Z Z ( γ 1 ) , … , R Z Z ( γ m ) . Let f j f_j f j be the model function of the circuit without the first j j j of them, and κ j = cos γ 1 ⋯ cos γ j \kappa_j=\cos\gamma_1\cdots\cos\gamma_j κ j = cos γ 1 ⋯ cos γ j , with f 0 = f f_0=f f 0 = f and κ 0 = 1 \kappa_0=1 κ 0 = 1 . Since κ j = κ j − 1 cos γ j \kappa_j=\kappa_{j-1}\cos\gamma_j κ j = κ j − 1 cos γ j , the following sum telescopes,
f − κ m f m = ∑ j = 1 m κ j − 1 ( f j − 1 − cos γ j f j ) . f-\kappa_m f_m=\sum_{j=1}^{m}\kappa_{j-1}(f_{j-1}-\cos\gamma_j f_j). f − κ m f m = j = 1 ∑ m κ j − 1 ( f j − 1 − cos γ j f j ) .
The one-gate estimate bounds the uniform norm of each difference in parentheses by ∣ sin γ j ∣ |\sin\gamma_j| ∣ sin γ j ∣ . Since ∣ κ j − 1 ∣ ≤ 1 |\kappa_{j-1}|\leq1 ∣ κ j − 1 ∣ ≤ 1 , the triangle inequality gives
∥ f − κ m f m ∥ ∞ ≤ ∑ j = 1 m ∣ sin γ j ∣ = P E . (33) \lVert f-\kappa_m f_m\rVert_\infty\leq\sum_{j=1}^{m}|\sin\gamma_j|=P_E. \tag*{(33)} ∥ f − κ m f m ∥ ∞ ≤ j = 1 ∑ m ∣ sin γ j ∣ = P E . (33)
The last circuit contains only local gates. Hence f m f_m f m is a product of two one-qubit model functions, and κ m f m \kappa_m f_m κ m f m lies in P \mathcal{P} P because ∣ κ m ∣ ≤ 1 |\kappa_m|\leq1 ∣ κ m ∣ ≤ 1 . The distance from P \mathcal{P} P is also at most one, since 0 ∈ P 0\in\mathcal{P} 0 ∈ P and ∣ f ∣ ≤ 1 |f|\leq1 ∣ f ∣ ≤ 1 . This proves (20) .
We next identify the functions approximable with zero entangling power. At P E = 0 P_E=0 P E = 0 , (E.4) gives f = κ m f m ∈ P f=\kappa_m f_m\in\mathcal{P} f = κ m f m ∈ P . Conversely, by Proposition B.1 with r = 1 r=1 r = 1 , each factor of a function in P \mathcal{P} P is a uniform limit of one-qubit model functions, which require only local gates. It remains to show that P \mathcal{P} P is uniformly closed. Let h n ∈ P h_n\in\mathcal{P} h n ∈ P converge uniformly to h h h . Each h n h_n h n is a product, so h n ( x 1 , x 2 ) h n ( y 1 , y 2 ) = h n ( x 1 , y 2 ) h n ( y 1 , x 2 ) h_n(x_1,x_2)h_n(y_1,y_2)=h_n(x_1,y_2)h_n(y_1,x_2) h n ( x 1 , x 2 ) h n ( y 1 , y 2 ) = h n ( x 1 , y 2 ) h n ( y 1 , x 2 ) for all inputs. Passing to the limit at these four points gives the same identity for h h h , which is continuous and takes values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . If h ≡ 0 h \equiv0 h ≡ 0 , then h ∈ P h \in\mathcal{P} h ∈ P . Otherwise choose ( y 1 , y 2 ) (y_1,y_2) ( y 1 , y 2 ) at which ∣ h ∣ |h| ∣ h ∣ is maximal. Then a ( x 1 ) = h ( x 1 , y 2 ) a(x_1)=h(x_1,y_2) a ( x 1 ) = h ( x 1 , y 2 ) and b ( x 2 ) = h ( y 1 , x 2 ) / h ( y 1 , y 2 ) b(x_2)=h(y_1,x_2)/h(y_1,y_2) b ( x 2 ) = h ( y 1 , x 2 ) / h ( y 1 , y 2 ) are continuous and bounded by one, and h = a b h=ab h = ab . Hence the uniform closure at P E = 0 P_E=0 P E = 0 is exactly P \mathcal{P} P .
Finally, the necessary power bound (21) follows from (20) and the triangle inequality dist ( g , P ) ≤ ∥ g − f ∥ ∞ + dist ( f , P ) \operatorname{dist}(g,\mathcal{P}) \le\lVert g-f\rVert_\infty+\operatorname{dist}(f,\mathcal{P}) dist ( g , P ) ≤ ∥ g − f ∥ ∞ + dist ( f , P ) . Lemma E.2 below proves the sharpness assertion. □
Sharpness of the distance bound
Lemma E.2 (Circuits saturating the distance bound). For every p ∈ [ 0 , 1 ] p\in[0,1] p ∈ [ 0 , 1 ] and every choice of the two local encodings, there is a circuit with two encoding calls on each qubit and one R Z Z R_{ZZ} R Z Z gate whose model function satisfies dist ( f , P ) = P E = p \operatorname{dist}(f,\mathcal{P})=P_E=p dist ( f , P ) = P E = p .
Proof. Each qubit applies its encoding gate twice. With the encoding angles t i t_i t i of Appendix § 15 .§ 1 and suitable local gates, qubit i i i is then rotated by R y ( θ i ) R_y(\theta_i) R y ( θ i ) , where θ i = 2 t i \theta_i=2t_i θ i = 2 t i for the two rotation encodings and θ i = 2 t i − π \theta_i=2t_i-\pi θ i = 2 t i − π for amplitude encoding. Indeed, conjugation by R x ( − π / 2 ) R_x(-\pi/2) R x ( − π /2 ) turns R z ( t ) R_z(t) R z ( t ) into R y ( t ) R_y(t) R y ( t ) , and the gate R y ( − π ) R_y(-\pi) R y ( − π ) shifts the angle. In every case θ i \theta_i θ i is a continuous increasing function of x i x_i x i whose range contains [ − π / 2 , π / 2 ] [-\pi/2,\pi/2] [ − π /2 , π /2 ] .
Let G γ = e − i γ X ⊗ Y / 2 G_\gamma=e^{-i\gamma X\otimes Y/2} G γ = e − iγ X ⊗ Y /2 with 0 ≤ γ ≤ π / 2 0\le\gamma\le\pi/2 0 ≤ γ ≤ π /2 , which is R Z Z ( γ ) R_{ZZ}(\gamma) R Z Z ( γ ) conjugated by local gates, and apply [ R y ( θ 1 ) ⊗ R y ( θ 2 ) ] G γ [R_y(\theta_1)\otimes R_y(\theta_2)]G_\gamma [ R y ( θ 1 ) ⊗ R y ( θ 2 )] G γ to ∣ 00 ⟩ |00\rangle ∣00 ⟩ . This circuit has P E = sin γ P_E=\sin\gamma P E = sin γ . Since ( X ⊗ Y ) ∣ 00 ⟩ = i ∣ 11 ⟩ (X\otimes Y)|00\rangle=i|11\rangle ( X ⊗ Y ) ∣00 ⟩ = i ∣11 ⟩ ,
G γ ∣ 00 ⟩ = cos ( γ / 2 ) ∣ 00 ⟩ + sin ( γ / 2 ) ∣ 11 ⟩ . G_\gamma|00\rangle=\cos(\gamma/2)|00\rangle+\sin(\gamma/2)|11\rangle. G γ ∣00 ⟩ = cos ( γ /2 ) ∣00 ⟩ + sin ( γ /2 ) ∣11 ⟩ .
In this state ⟨ Z ⊗ Z ⟩ = 1 \langle Z\otimes Z\rangle=1 ⟨ Z ⊗ Z ⟩ = 1 , ⟨ X ⊗ X ⟩ = sin γ \langle X\otimes X\rangle=\sin\gamma ⟨ X ⊗ X ⟩ = sin γ and ⟨ X ⊗ Z ⟩ = ⟨ Z ⊗ X ⟩ = 0 \langle X\otimes Z\rangle=\langle Z\otimes X\rangle=0 ⟨ X ⊗ Z ⟩ = ⟨ Z ⊗ X ⟩ = 0 . With R y ( θ ) † Z R y ( θ ) = Z cos θ − X sin θ R_y(\theta)^\dagger ZR_y(\theta)=Z\cos\theta-X\sin\theta R y ( θ ) † Z R y ( θ ) = Z cos θ − X sin θ , the model function is
f γ = cos θ 1 cos θ 2 + sin γ sin θ 1 sin θ 2 . (34) f_\gamma=\cos\theta_1\cos\theta_2+\sin\gamma\sin\theta_1\sin\theta_2. \tag*{(34)} f γ = cos θ 1 cos θ 2 + sin γ sin θ 1 sin θ 2 . (34)
We show that dist ( f γ , P ) = p \operatorname{dist}(f_\gamma,\mathcal{P})=p dist ( f γ , P ) = p with p = sin γ p=\sin\gamma p = sin γ , and may assume p > 0 p>0 p > 0 . The product function cos θ 1 cos θ 2 \cos\theta_1\cos\theta_2 cos θ 1 cos θ 2 differs from f γ f_\gamma f γ by at most p p p . Conversely, suppose that h ( x 1 , x 2 ) = a ( x 1 ) b ( x 2 ) h(x_1,x_2)=a(x_1)b(x_2) h ( x 1 , x 2 ) = a ( x 1 ) b ( x 2 ) in P \mathcal{P} P satisfies ∥ f γ − h ∥ ∞ < p \lVert f_\gamma-h\rVert_\infty<p ∥ f γ − h ∥ ∞ < p . Where θ 1 = θ 2 = θ \theta_1=\theta_2=\theta θ 1 = θ 2 = θ , we have f γ = p + ( 1 − p ) cos 2 θ ≥ p f_\gamma=p+(1-p)\cos^2\theta\ge p f γ = p + ( 1 − p ) cos 2 θ ≥ p and therefore h > 0 h>0 h > 0 . Regarded as functions of the angles, a a a and b b b thus satisfy a ( θ ) b ( θ ) > 0 a(\theta)b(\theta)>0 a ( θ ) b ( θ ) > 0 for all θ ∈ [ − π / 2 , π / 2 ] \theta\in[-\pi/2,\pi/2] θ ∈ [ − π /2 , π /2 ] . Being continuous, they have no zeros on this interval and the same constant sign, so that h > 0 h>0 h > 0 at θ 1 = π / 2 , θ 2 = − π / 2 \theta_1=\pi/2,\theta_2=-\pi/2 θ 1 = π /2 , θ 2 = − π /2 . But f γ = − p f_\gamma=-p f γ = − p at this point, so h h h differs from f γ f_\gamma f γ by more than p p p there. This contradiction shows that no function in P \mathcal{P} P is closer to f γ f_\gamma f γ than p p p , and therefore
dist ( f γ , P ) = sin γ = P E . \operatorname{dist}(f_\gamma,\mathcal{P})=\sin\gamma=P_E. dist ( f γ , P ) = sin γ = P E .
Choosing γ = arcsin p \gamma=\arcsin p γ = arcsin p realizes each p ∈ [ 0 , 1 ] p\in[0,1] p ∈ [ 0 , 1 ] . □
An R Z Z ( γ ) R_{ZZ}(\gamma) R Z Z ( γ ) gate placed immediately before readout can contribute to P E P_E P E without changing f f f , since it commutes with Z ⊗ Z Z\otimes Z Z ⊗ Z .
Dependence on the gate set
The SWAP gate maps the set of separable states onto itself and therefore has zero entangling power. If SWAP were allowed as an elementary gate, the circuit
( 1 ⊗ R y ( x 2 ) ) SWAP ( R y ( x 1 ) ⊗ 1 ) (\mathbb{1}\otimes R_y(x_2))\operatorname{SWAP}(R_y(x_1)\otimes\mathbb{1}) ( 1 ⊗ R y ( x 2 )) SWAP ( R y ( x 1 ) ⊗ 1 )
would have P E = 0 P_E=0 P E = 0 and the model function cos ( x 1 + x 2 ) \cos(x_1+x_2) cos ( x 1 + x 2 ) , which is not a product function. In our gate set the decomposition (E.1) uses three R Z Z ( π / 2 ) R_{ZZ}(\pi/2) R Z Z ( π /2 ) gates, each of power one. This implementation of SWAP contributes three to P E P_E P E .
For every positive integer n n n , R Z Z ( γ ) = [ R Z Z ( γ / n ) ] n R_{ZZ}(\gamma)=[R_{ZZ}(\gamma/n)]^n R Z Z ( γ ) = [ R Z Z ( γ / n ) ] n . The power ∣ sin ( γ / n ) ∣ |\sin(\gamma/n)| ∣ sin ( γ / n ) ∣ of each factor tends to zero as n → ∞ n\to\infty n → ∞ , while the sum of the n n n powers tends to ∣ γ ∣ |\gamma| ∣ γ ∣ . Since ∣ sin γ ∣ ≤ n ∣ sin ( γ / n ) ∣ |\sin\gamma|\le n|\sin(\gamma/n)| ∣ sin γ ∣ ≤ n ∣ sin ( γ / n ) ∣ , splitting the gate never lowers the cumulative power, and in general it raises it.
Approximation with Clifford trainable gates
The gates of zero magic power are precisely the Clifford gates (§ 2.3 ). To prove Theorem 4, we first construct a quarter-turn from encoding gates and Clifford gates. Its axis makes an angle arbitrarily close to π / 4 \pi/4 π /4 with the z z z axis, uniformly on δ ≤ ∣ x ∣ ≤ 1 \delta\leq|x| \leq1 δ ≤ ∣ x ∣ ≤ 1 (Lemma F.1 ). We then replace each trainable gate by a product of this quarter-turn, the Clifford gate R z ( π / 2 ) R_z(\pi/2) R z ( π /2 ) and their inverses.
Gate sequences. A finite product of Clifford gates and encoding gates R z ( x ) R_z(x) R z ( x ) is a word in these gates. Its encoding depth counts only the occurrences of R z ( x ) R_z(x) R z ( x ) . Merging adjacent Clifford gates turns a word into a circuit ((9) ) with Clifford trainable gates. The inverse of a word is a word, since R z ( − x ) = X R z ( x ) X R_z(-x)=XR_z(x)X R z ( − x ) = X R z ( x ) X , and R y ( x ) R_y(x) R y ( x ) is a word, because it equals R z ( x ) R_z(x) R z ( x ) conjugated by the Clifford gate R x ( − π / 2 ) R_x(-\pi/2) R x ( − π /2 ) .
Rotations by π / 2 \pi/2 π /2 . For a unit vector n ∈ R 3 n \in\mathbb{R}^3 n ∈ R 3 we write
S n = e − i π n ⋅ σ / 4 = 1 − i n ⋅ σ 2 . S_n=e^{-i\pi\,n\cdot\sigma/4}=\frac{1-i\,n\cdot\sigma}{\sqrt{2}}. S n = e − iπ n ⋅ σ /4 = 2 1 − i n ⋅ σ .
On Bloch vectors this gate acts as the quarter-turn about n n n , that is, as the rotation v ↦ ( n ⋅ v ) n + n × v v\mapsto(n\cdot v)n+n\times v v ↦ ( n ⋅ v ) n + n × v by the angle π / 2 \pi/2 π /2 . Its square S n 2 = − i n ⋅ σ S_n^2=-i\,n\cdot\sigma S n 2 = − i n ⋅ σ acts as the half-turn v ↦ 2 ( n ⋅ v ) n − v v\mapsto2(n\cdot v)n-v v ↦ 2 ( n ⋅ v ) n − v . The gate S = R z ( π / 2 ) S=R_z(\pi/2) S = R z ( π /2 ) is the quarter-turn S e z S_{e_z} S e z , and conjugation moves the axis: U S n U † = S O ( U ) n US_nU^\dagger=S_{O(U)n} U S n U † = S O ( U ) n for every U ∈ SU ( 2 ) U\in\operatorname{SU}(2) U ∈ SU ( 2 ) . Since ∥ ( n − n ′ ) ⋅ σ ∥ o p = ∥ n − n ′ ∥ 2 \lVert(n-n')\cdot\sigma\rVert_{\mathrm{op}}=\lVert n-n'\rVert_2 ∥( n − n ′ ) ⋅ σ ∥ op = ∥ n − n ′ ∥ 2 , two quarter-turns satisfy
∥ S n − S n ′ ∥ o p = ∥ n − n ′ ∥ 2 2 . (35) \lVert S_n-S_{n'}\rVert_{\mathrm{op}}=\frac{\lVert n-n'\rVert_2}{\sqrt{2}}. \tag*{(35)} ∥ S n − S n ′ ∥ op = 2 ∥ n − n ′ ∥ 2 . (35)
The non-Clifford rotation we approximate is the quarter-turn S n ∗ S_{n_*} S n ∗ about
n ∗ = e x + e z 2 . n_*=\frac{e_x+e_z}{\sqrt{2}}. n ∗ = 2 e x + e z .
Since n ∗ ⋅ σ = ( X + Z ) / 2 n_*\cdot\sigma=(X+Z)/\sqrt{2} n ∗ ⋅ σ = ( X + Z ) / 2 is the Hadamard gate H H H , the square of the rotation is S n ∗ 2 = − i H S_{n_*}^2=-iH S n ∗ 2 = − i H . The gate S n ∗ S_{n_*} S n ∗ is not Clifford, because it maps e z e_z e z to ( 1 / 2 , − 1 / 2 , 1 / 2 ) (1/2,-1/\sqrt{2},1/2) ( 1/2 , − 1/ 2 , 1/2 ) . Conjugating S S S by a word U U U produces the axis n = O ( U ) e z n=O(U)e_z n = O ( U ) e z . For n n n to make approximately the same angle with the z z z axis as n ∗ n_* n ∗ , its z z z component n z = O ( U ) z z n_z=O(U)_{zz} n z = O ( U ) z z must approximate t ∗ = ( n ∗ ) z = 1 / 2 t_*=(n_*)_z=1/\sqrt{2} t ∗ = ( n ∗ ) z = 1/ 2 . Exact equality on an interval is impossible. The entry O ( U ( x ) ) z z O(U(x))_{zz} O ( U ( x ) ) z z is a trigonometric polynomial in x x x , so equality with t ∗ t_* t ∗ throughout an interval would make it constant on R \mathbb{R} R . At x = 0 x=0 x = 0 , however, the word is a Clifford gate, for which the entry is 0 0 0 or ± 1 \pm1 ± 1 .
Lemma F.1 (Approximating the z z z component of the rotation axis). For all δ , η ∈ ( 0 , 1 ) \delta,\eta\in(0,1) δ , η ∈ ( 0 , 1 ) there is a word U U U with at most δ − 4 η − 2 \delta^{-4}\eta^{-2} δ − 4 η − 2 encoding gates such that
∣ O ( U ( x ) ) z z − t ∗ ∣ ≤ η whenever δ ≤ ∣ x ∣ ≤ 1. |O(U(x))_{zz}-t_*|\leq\eta\qquad\text{whenever }\delta\leq|x|\leq1. ∣ O ( U ( x ) ) z z − t ∗ ∣ ≤ η whenever δ ≤ ∣ x ∣ ≤ 1.
Proof. We iterate a map on words that drives O ( U ) z z O(U)_{zz} O ( U ) z z towards t ∗ t_* t ∗ . For U ∈ SU ( 2 ) U\in\operatorname{SU}(2) U ∈ SU ( 2 ) let n = O ( U ) e z n=O(U)e_z n = O ( U ) e z and t = n z = O ( U ) z z t=n_z=O(U)_{zz} t = n z = O ( U ) z z , so that U S U † = S n USU^\dagger=S_n U S U † = S n , and define
Ψ ( U ) = S n S S n 2 = ( U S U † ) S ( U S 2 U † ) . \Psi(U)=S_nSS_n^2=(USU^\dagger)S(US^2U^\dagger). Ψ ( U ) = S n S S n 2 = ( U S U † ) S ( U S 2 U † ) .
If U U U is a word with m m m encoding gates, then Ψ ( U ) \Psi(U) Ψ ( U ) is a word with 4 m 4m 4 m encoding gates.
To find the induced recursion for t t t , we compute O ( Ψ ( U ) ) z z O(\Psi(U))_{zz} O ( Ψ ( U ) ) z z by applying the half-turn about n n n , the quarter-turn about e z e_z e z and the quarter-turn about n n n to e z e_z e z in turn. The half-turn gives 2 t n − e z 2tn-e_z 2 t n − e z , and the quarter-turn about e z e_z e z maps this vector to
v = ( 2 t 2 − 1 ) e z + 2 t e z × n . v=(2t^2-1)e_z+2t\,e_z\times n. v = ( 2 t 2 − 1 ) e z + 2 t e z × n .
Since n ⋅ ( e z × n ) = 0 n\cdot(e_z\times n)=0 n ⋅ ( e z × n ) = 0 and ∥ e z × n ∥ 2 2 = 1 − t 2 \lVert e_z\times n\rVert_2^2=1-t^2 ∥ e z × n ∥ 2 2 = 1 − t 2 , we obtain n ⋅ v = t ( 2 t 2 − 1 ) n\cdot v=t(2t^2-1) n ⋅ v = t ( 2 t 2 − 1 ) and e z ⋅ ( n × v ) = ( e z × n ) ⋅ v = 2 t ( 1 − t 2 ) e_z\cdot(n\times v)=(e_z\times n)\cdot v=2t(1-t^2) e z ⋅ ( n × v ) = ( e z × n ) ⋅ v = 2 t ( 1 − t 2 ) . The last quarter-turn maps v v v to ( n ⋅ v ) n + n × v (n\cdot v)n+n\times v ( n ⋅ v ) n + n × v . Its z z z component is O ( Ψ ( U ) ) z z = F ( t ) O(\Psi(U))_{zz}=F(t) O ( Ψ ( U ) ) z z = F ( t ) , where
F ( t ) = t 2 ( 2 t 2 − 1 ) + 2 t ( 1 − t 2 ) = t + t ( 1 − t ) ( 1 − 2 t 2 ) . (36) \begin{aligned}
F(t)&=t^2(2t^2-1)+2t(1-t^2)\\
&=t+t(1-t)(1-2t^2). \tag*{(36)}
\end{aligned} F ( t ) = t 2 ( 2 t 2 − 1 ) + 2 t ( 1 − t 2 ) = t + t ( 1 − t ) ( 1 − 2 t 2 ) . (36)
To estimate convergence to t ∗ t_\ast t ∗ , set ρ ( t ) = 2 t ( 1 − t ) ( t + t ∗ ) \rho(t)=2t(1-t)(t+t_\ast) ρ ( t ) = 2 t ( 1 − t ) ( t + t ∗ ) . Using 1 − 2 t 2 = − 2 ( t − t ∗ ) ( t + t ∗ ) 1-2t^2=-2(t-t_\ast)(t+t_\ast) 1 − 2 t 2 = − 2 ( t − t ∗ ) ( t + t ∗ ) gives the identities
F ( t ) − t ∗ = ( 1 − ρ ( t ) ) ( t − t ∗ ) , 1 − F ( t ) = ( 1 − t ) ( 1 − t + 2 t 3 ) . (37) \begin{aligned}
F(t)-t_\ast&=(1-\rho(t))(t-t_\ast),\\
1-F(t)&=(1-t)(1-t+2t^3). \tag*{(37)}
\end{aligned} F ( t ) − t ∗ 1 − F ( t ) = ( 1 − ρ ( t )) ( t − t ∗ ) , = ( 1 − t ) ( 1 − t + 2 t 3 ) . (37)
For 0 < t < 1 0<t<1 0 < t < 1 we have 0 < ρ ( t ) < ( 1 + t ∗ ) / 2 < 1 0<\rho(t)<(1+t_\ast)/2<1 0 < ρ ( t ) < ( 1 + t ∗ ) /2 < 1 , so each iteration moves t t t towards t ∗ t_\ast t ∗ without overshooting. Near t = 1 t=1 t = 1 this contraction is slow, because the factor 1 − ρ ( t ) 1-\rho(t) 1 − ρ ( t ) tends to one. There, however, ( 1 − F ( t ) ) / ( 1 − t ) (1-F(t))/(1-t) ( 1 − F ( t )) / ( 1 − t ) tends to two, so a step nearly doubles the distance from one. We therefore measure the error relative to this distance, by λ ( t ) = ( t − t ∗ ) / ( 1 − t ) \lambda(t)=(t-t_\ast)/(1-t) λ ( t ) = ( t − t ∗ ) / ( 1 − t ) , and show that each step at least halves it. By (F.3), λ ( F ( t ) ) = λ ( t ) ( 1 − ρ ( t ) ) / ( 1 − t + 2 t 3 ) \lambda(F(t))=\lambda(t)(1-\rho(t))/(1-t+2t^3) λ ( F ( t )) = λ ( t ) ( 1 − ρ ( t )) / ( 1 − t + 2 t 3 ) , and
( 1 − t + 2 t 3 ) − 2 ( 1 − ρ ( t ) ) = ( 1 − t ) ( 2 t 2 + ( 4 t ∗ − 2 ) t − 1 ) . (1-t+2t^3)-2(1-\rho(t))=(1-t)(2t^2+(4t_\ast-2)t-1). ( 1 − t + 2 t 3 ) − 2 ( 1 − ρ ( t )) = ( 1 − t ) ( 2 t 2 + ( 4 t ∗ − 2 ) t − 1 ) .
The quadratic factor increases with t t t and is positive at t = 0.54 t=0.54 t = 0.54 . For 0.54 ≤ t < 1 0.54\leq t<1 0.54 ≤ t < 1 the denominator 1 − t + 2 t 3 1-t+2t^3 1 − t + 2 t 3 is therefore at least twice the numerator 1 − ρ ( t ) 1-\rho(t) 1 − ρ ( t ) , so that
∣ λ ( F ( t ) ) ∣ ≤ 1 2 ∣ λ ( t ) ∣ for 0.54 ≤ t < 1. (38) \lvert\lambda(F(t))\rvert\leq\frac{1}{2}\lvert\lambda(t)\rvert\qquad\text{for }0.54\leq t<1. \tag*{(38)} ∣ λ ( F ( t ))∣ ≤ 2 1 ∣ λ ( t )∣ for 0.54 ≤ t < 1. (38)
We now choose the initial word and bound the number of iterations needed for accuracy η \eta η . Let U 0 ( x ) = R y ( x ) U_0(x)=R_y(x) U 0 ( x ) = R y ( x ) and U k + 1 = Ψ ( U k ) U_{k+1}=\Psi(U_k) U k + 1 = Ψ ( U k ) . Then U k U_k U k is a word with 4 k 4^k 4 k encoding gates, and by (F.2) the numbers t k = O ( U k ( x ) ) z z t_k=O(U_k(x))_{zz} t k = O ( U k ( x ) ) z z satisfy t 0 = cos x t_0=\cos x t 0 = cos x and t k + 1 = F ( t k ) t_{k+1}=F(t_k) t k + 1 = F ( t k ) . For δ ≤ ∣ x ∣ ≤ 1 \delta\leq\lvert x\rvert\leq1 δ ≤ ∣ x ∣ ≤ 1 we have t 0 ≥ cos 1 > 0.54 t_0\geq\cos1>0.54 t 0 ≥ cos 1 > 0.54 . Concavity of sine on [ 0 , 1 / 2 ] [0,1/2] [ 0 , 1/2 ] gives sin ( ∣ x ∣ / 2 ) ≥ ∣ x ∣ sin ( 1 / 2 ) \sin(\lvert x\rvert/2)\geq\lvert x\rvert\sin(1/2) sin (∣ x ∣ /2 ) ≥ ∣ x ∣ sin ( 1/2 ) , so 1 − t 0 = 2 sin 2 ( x / 2 ) ≥ 2 δ 2 sin 2 ( 1 / 2 ) ≥ 2 δ 2 / 5 1-t_0=2\sin^2(x/2)\geq2\delta^2\sin^2(1/2)\geq2\delta^2/5 1 − t 0 = 2 sin 2 ( x /2 ) ≥ 2 δ 2 sin 2 ( 1/2 ) ≥ 2 δ 2 /5 . All t k t_k t k lie between t 0 t_0 t 0 and t ∗ t_\ast t ∗ , so (F.4) applies in every step and gives
∣ t k − t ∗ ∣ = ( 1 − t k ) ∣ λ ( t k ) ∣ ≤ 2 − k ( 1 − t k ) ∣ t 0 − t ∗ ∣ 1 − t 0 ≤ 2 − k 2 δ 2 , \lvert t_k-t_\ast\rvert=(1-t_k)\lvert\lambda(t_k)\rvert\leq2^{-k}\frac{(1-t_k)\lvert t_0-t_\ast\rvert}{1-t_0}\leq\frac{2^{-k}}{2\delta^2}, ∣ t k − t ∗ ∣ = ( 1 − t k ) ∣ λ ( t k )∣ ≤ 2 − k 1 − t 0 ( 1 − t k ) ∣ t 0 − t ∗ ∣ ≤ 2 δ 2 2 − k ,
because 1 − t k < 1 / 2 1-t_k<1/2 1 − t k < 1/2 and ∣ t 0 − t ∗ ∣ < 1 / 3 \lvert t_0-t_\ast\rvert<1/3 ∣ t 0 − t ∗ ∣ < 1/3 . Let k ≥ 0 k\geq0 k ≥ 0 be the smallest integer with 2 k ≥ 1 / ( 2 δ 2 η ) 2^k\geq1/(2\delta^2\eta) 2 k ≥ 1/ ( 2 δ 2 η ) . Then ∣ t k − t ∗ ∣ ≤ η \lvert t_k-t_\ast\rvert\leq\eta ∣ t k − t ∗ ∣ ≤ η and 4 k ≤ δ − 4 η − 2 4^k\leq\delta^{-4}\eta^{-2} 4 k ≤ δ − 4 η − 2 , so U = U k U=U_k U = U k has the stated properties. □ \square □
Theorem 4 (restated). Let g ∈ C ( [ − 1 , 1 ] ; [ − r , r ] ) g\in\mathcal{C}([-1,1];[-r,r]) g ∈ C ([ − 1 , 1 ] ; [ − r , r ]) , 0 < r ≤ 1 0<r\leq1 0 < r ≤ 1 , and ε , δ ∈ ( 0 , 1 ) \varepsilon,\delta\in(0,1) ε , δ ∈ ( 0 , 1 ) . There is a one-qubit circuit with input ρ r \rho_r ρ r , phase encoding R z ( x ) R_z(x) R z ( x ) , Clifford trainable gates and Z Z Z readout whose model function satisfies
∣ f ( x ) − g ( x ) ∣ ≤ ε for δ ≤ ∣ x ∣ ≤ 1. \lvert f(x)-g(x)\rvert\leq\varepsilon\qquad\text{for }\delta\leq\lvert x\rvert\leq1. ∣ f ( x ) − g ( x )∣ ≤ ε for δ ≤ ∣ x ∣ ≤ 1. Its cumulative magic power is zero. If g g g itself is realized by a circuit of the same model with unrestricted trainable gates and D D D encoding calls, the Clifford circuit can be chosen with encoding depth polynomial in D D D , 1 / ε 1/\varepsilon 1/ ε and 1 / δ 1/\delta 1/ δ .
Proof. Let g g g be the model function of a circuit with D D D encoding calls and trainable gates V 0 , … , V D V_0,\ldots,V_D V 0 , … , V D , and put η = ε / ( 4 ( D + 1 ) ) \eta=\varepsilon/(4(D+1)) η = ε / ( 4 ( D + 1 )) .
We first show that S S S and S n ∗ S_{n_\ast} S n ∗ generate a dense subgroup of S U ( 2 ) \mathrm{SU}(2) SU ( 2 ) , so that products of these gates and their inverses can approximate each V j V_j V j . Indeed, S S † = 1 2 ( 1 − i Z ) ( 1 + i H ) SS^\dagger=\frac{1}{2}(1-iZ)(1+iH) S S † = 2 1 ( 1 − i Z ) ( 1 + i H ) has the trace 1 + 1 / 2 1+1/\sqrt{2} 1 + 1/ 2 . Its rotation angle θ \theta θ therefore satisfies cos ( θ / 2 ) = cos 2 ( π / 8 ) \cos(\theta/2)=\cos^2(\pi/8) cos ( θ /2 ) = cos 2 ( π /8 ) . Boykin et al. prove that θ / π \theta/\pi θ / π is irrational for this value [10 ] . Hence the powers of S n ∗ S_{n_\ast} S n ∗ are dense in the rotations about its axis. Since S S S is diagonal and S n ∗ + = ( 1 + i H ) / 2 S^+_{n_\ast}=(1+iH)/\sqrt{2} S n ∗ + = ( 1 + i H ) / 2 has a nonzero off-diagonal entry, S S n ∗ + SS^+_{n_\ast} S S n ∗ + cannot be a rotation about z z z . Conjugating by the quarter-turn S S S therefore gives rotations about a second, nonparallel axis. Rotations about these two axes generate all rotations, as in the universality proof for the Hadamard and π / 8 \pi/8 π /8 gates [36 ] , Sec. 4.5.3]. The Bloch rotations of the closure of the generated group are therefore all of S O ( 3 ) \mathrm{SO}(3) SO ( 3 ) . Every rotation is the Bloch rotation of exactly two elements ± V \pm V ± V of S U ( 2 ) \mathrm{SU}(2) SU ( 2 ) , and since S 4 = − 1 S^4=-1 S 4 = − 1 belongs to the group, the closure contains both. Hence it equals S U ( 2 ) \mathrm{SU}(2) SU ( 2 ) . For a finite gate set that is closed under inverses and generates a dense subgroup of S U ( 2 ) \mathrm{SU}(2) SU ( 2 ) , the Solovay–Kitaev theorem bounds the number of gates needed for accuracy η \eta η by a polynomial in log ( 1 / η ) \log(1/\eta) log ( 1/ η ) [36 ] , Appendix 3]. Applied to { S ± 1 , S n ∗ ± 1 } \{S^{\pm1},S_{n_\ast}^{\pm1}\} { S ± 1 , S n ∗ ± 1 } , it gives, for every j j j , a product w j ( S , S n ∗ ) w_j(S,S_{n_\ast}) w j ( S , S n ∗ ) of at most N N N factors within η \eta η of V j V_j V j in operator norm, with N N N bounded by such a polynomial. We write w j ( S , S n ) w_j(S,S_n) w j ( S , S n ) for the same product with S n ∗ S_{n_\ast} S n ∗ replaced by another quarter-turn S n S_n S n .
To obtain a circuit using only the allowed gates, we replace S n S_n S n by a quarter-turn U S U † USU^\dagger U S U † constructed from a word U U U . Let U U U be the word of Lemma F.1 with accuracy η / ( 2 N ) \eta/(2N) η / ( 2 N ) . Fix x x x with δ ≤ ∣ x ∣ ≤ 1 \delta\leq\lvert x\rvert\leq1 δ ≤ ∣ x ∣ ≤ 1 and let n = O ( U ( x ) ) e z n=O(U(x))_{e_z} n = O ( U ( x ) ) e z , so that U ( x ) S U ( x ) † = S n U(x)SU(x)^\dagger=S_n U ( x ) S U ( x ) † = S n . Let ϕ \phi ϕ be the azimuthal angle of n n n , measured from the positive x x x axis in the x y xy x y plane, and let n ′ = O ( R z ( ϕ ) ) n ∗ n'=O(R_z(\phi))n_\ast n ′ = O ( R z ( ϕ )) n ∗ . This unit vector has the azimuth ϕ \phi ϕ and the z z z component t ∗ t_\ast t ∗ . The transverse parts of n \mathbf{n} n and n ′ \mathbf{n}' n ′ are parallel, with the lengths ( 1 − n z 2 ) 1 / 2 (1-n_z^2)^{1/2} ( 1 − n z 2 ) 1/2 and t ∗ t_\ast t ∗ . Since t ∗ = 1 / 2 t_\ast= 1/\sqrt{2} t ∗ = 1/ 2 and ∣ n z ∣ ≤ 1 |n_z| \le1 ∣ n z ∣ ≤ 1 , their difference satisfies
∣ 1 − n z 2 − t ∗ ∣ = ∣ n z − t ∗ ∣ ∣ n z + t ∗ ∣ 1 − n z 2 + t ∗ ≤ ( 1 + 2 ) ∣ n z − t ∗ ∣ . \left|\sqrt{1-n_z^2}-t_\ast\right|=\frac{|n_z-t_\ast||n_z+t_\ast|}{\sqrt{1-n_z^2}+t_\ast}\leq(1+\sqrt{2})|n_z-t_\ast|. 1 − n z 2 − t ∗ = 1 − n z 2 + t ∗ ∣ n z − t ∗ ∣∣ n z + t ∗ ∣ ≤ ( 1 + 2 ) ∣ n z − t ∗ ∣.
Adding the squares of this difference and of the difference n z − t ∗ n_z-t_\ast n z − t ∗ of the z z z components gives ∥ n − n ′ ∥ 2 ≤ 2 2 ∣ n z − t ∗ ∣ \lVert\mathbf{n}-\mathbf{n}'\rVert^2 \leq2\sqrt{2}|n_z-t_\ast| ∥ n − n ′ ∥ 2 ≤ 2 2 ∣ n z − t ∗ ∣ . Thus (F.1) gives
∥ S n − S n ′ ∥ o p ≤ 2 ∣ n z − t ∗ ∣ ≤ η N . \lVert S_{\mathbf{n}}-S_{\mathbf{n}'}\rVert_{\mathrm{op}}\leq2|n_z-t_\ast|\leq\frac{\eta}{N}. ∥ S n − S n ′ ∥ op ≤ 2∣ n z − t ∗ ∣ ≤ N η .
The same bound holds for the inverse gates because taking adjoints preserves the operator norm. At most N N N factors differ between w j ( S , S n ) w_j(S,S_{\mathbf{n}}) w j ( S , S n ) and w j ( S , S n ′ ) w_j(S,S_{\mathbf{n}'}) w j ( S , S n ′ ) , so (A.1) bounds their difference by N ( η / N ) = η N(\eta/N)=\eta N ( η / N ) = η . Now S n ′ = R z ( ϕ ) S n ∗ R z ( − ϕ ) S_{\mathbf{n}'}=R_z(\phi)S_{\mathbf{n}_\ast}R_z(-\phi) S n ′ = R z ( ϕ ) S n ∗ R z ( − ϕ ) , and S S S commutes with R z ( ϕ ) R_z(\phi) R z ( ϕ ) , so that w j ( S , S n ′ ) = R z ( ϕ ) w j ( S , S n ∗ ) R z ( − ϕ ) w_j(S,S_{\mathbf{n}'})=R_z(\phi)w_j(S,S_{\mathbf{n}_\ast})R_z(-\phi) w j ( S , S n ′ ) = R z ( ϕ ) w j ( S , S n ∗ ) R z ( − ϕ ) . This operator is within η \eta η of R z ( ϕ ) V j R z ( − ϕ ) R_z(\phi)V_jR_z(-\phi) R z ( ϕ ) V j R z ( − ϕ ) . The words W j = w j ( S , U S U † ) W_j=w_j(S,USU^\dagger) W j = w j ( S , U S U † ) thus satisfy
∥ W j ( x ) − R z ( ϕ ) V j R z ( − ϕ ) ∥ o p ≤ 2 η for j = 0 , … , D , (39) \lVert W_j(x)-R_z(\phi)V_jR_z(-\phi)\rVert_{\mathrm{op}}\leq2\eta\qquad\text{for }j=0,\ldots,D, \tag*{(39)} ∥ W j ( x ) − R z ( ϕ ) V j R z ( − ϕ ) ∥ op ≤ 2 η for j = 0 , … , D , (39)
with the same angle ϕ = ϕ ( x ) \phi=\phi(x) ϕ = ϕ ( x ) for every gate.
Because the same angle ϕ \phi ϕ occurs for every gate, the intervening rotations cancel in the full circuit. Replace each trainable gate V j V_j V j by the word W j W_j W j . Since R z ( ϕ ) R_z(\phi) R z ( ϕ ) commutes with the encoding gate,
R z ( ϕ ) V D R z ( − ϕ ) R z ( x ) ⋯ R z ( x ) R z ( ϕ ) V 0 R z ( − ϕ ) = R z ( ϕ ) [ V D R z ( x ) ⋯ R z ( x ) V 0 ] R z ( − ϕ ) . \begin{aligned}
R_z(\phi)V_DR_z(-\phi)R_z(x)\cdots R_z(x)R_z(\phi)V_0R_z(-\phi)
&=R_z(\phi)\left[V_DR_z(x)\cdots R_z(x)V_0\right]R_z(-\phi).
\end{aligned} R z ( ϕ ) V D R z ( − ϕ ) R z ( x ) ⋯ R z ( x ) R z ( ϕ ) V 0 R z ( − ϕ ) = R z ( ϕ ) [ V D R z ( x ) ⋯ R z ( x ) V 0 ] R z ( − ϕ ) .
and by (F.5) and (A.1) the unitary of the new circuit is within 2 ( D + 1 ) η 2(D+1)\eta 2 ( D + 1 ) η of this operator. The rotation R z ( ϕ ) R_z(\phi) R z ( ϕ ) commutes with the input state ρ r \rho_r ρ r and with the readout Z Z Z , so the operator on the right has output g ( x ) g(x) g ( x ) . By (A.2), the output of the new circuit therefore differs from g ( x ) g(x) g ( x ) by at most 4 ( D + 1 ) η = ε 4(D+1)\eta=\varepsilon 4 ( D + 1 ) η = ε .
It remains to bound the encoding depth. The new circuit has only Clifford trainable gates, so P M = 0 P_M=0 P M = 0 . Each word W j W_j W j contains at most N N N factors ( U S U † ) ± 1 (USU^\dagger)^{\pm1} ( U S U † ) ± 1 , each with at most 2 δ − 4 ( 2 N / η ) 2 2\delta^{-4}(2N/\eta)^2 2 δ − 4 ( 2 N / η ) 2 encoding gates. In total the circuit has at most D + 8 ( D + 1 ) N 3 δ − 4 η − 2 D+8(D+1)N^3\delta^{-4}\eta^{-2} D + 8 ( D + 1 ) N 3 δ − 4 η − 2 encoding calls. This is at most ( D + 1 ) 3 δ − 4 ε − 2 (D+1)^3\delta^{-4}\varepsilon^{-2} ( D + 1 ) 3 δ − 4 ε − 2 times a polynomial in log ( ( D + 1 ) / ε ) \log((D+1)/\varepsilon) log (( D + 1 ) / ε ) , and hence polynomial in D D D , 1 / ε 1/\varepsilon 1/ ε and 1 / δ 1/\delta 1/ δ .
For a general g ∈ C ( [ − 1 , 1 ] ; [ − r , r ] ) g\in\mathcal{C}([-1,1];[-r,r]) g ∈ C ([ − 1 , 1 ] ; [ − r , r ]) , Proposition B.1 gives a circuit with unrestricted trainable gates whose model function is within ε / 2 \varepsilon/2 ε /2 of g g g . Applying the previous steps to this function with ε / 2 \varepsilon/2 ε /2 in place of ε \varepsilon ε proves (22) . □
Relation to fixed-point search. The map Ψ \Psi Ψ alternates copies of U U U and U † U^\dagger U † with Clifford phase shifts, like the recursion U ↦ U C U † C U U\mapsto UCU^\dagger CU U ↦ U C U † C U of fixed-point quantum search. For C = R z ( − π / 2 ) C=R_z(-\pi/2) C = R z ( − π /2 ) that recursion acts as e ↦ e ( 1 − 2 e ) 2 e\mapsto e(1-2e)^2 e ↦ e ( 1 − 2 e ) 2 on e = ( 1 − O ( U ) z z ) / 2 e=(1-O(U)_{zz})/2 e = ( 1 − O ( U ) z z ) /2 , as in fixed-point search with both phase shifts equal to π / 2 \pi/2 π /2 [27 Eq. (5)] . The fixed point e = 0 e=0 e = 0 is neutral, that is, the map has derivative one there. Near zero, e e e then decays only as 1 / ( 4 n ) 1/(4n) 1/ ( 4 n ) after n n n steps, while each step triples the number of copies of the preceding word. The gate count is then superpolynomial in 1 / e 1/e 1/ e . For F F F , inequality (F.4) makes the rescaled error decrease geometrically.