Long Range Frequency Tuning for QML Michael Poppel, Jonas Stein, Sebastian Wölckert, Markus Baumann, Claudia Linnhoff-Popien Abstract Quantum machine learning models using angle encoding naturally represent truncated Fourier series, providing universal function approximation capabilities with sufficient circuit depth. For unary fixed-frequency encodings, circuit depth scales as 𝒪 ⁡ ( ω max ​ ( ω max + ε − 2 ) ) \mathcal{O}(\omega_{\max}(\omega_{\max}+\varepsilon^{-2})) with target frequency magnitude ω max \omega_{\max} and precision ε \varepsilon . Trainable-frequency approaches theoretically reduce this to match the target spectrum size, requiring only as many encoding gates as frequencies in the target spectrum. Despite this compelling efficiency, their practical effectiveness hinges on a key assumption: that gradient-based optimization can drive prefactors to arbitrary target values. We demonstrate through systematic experiments that frequency prefactors exhibit limited trainability: movement is constrained to approximately ± 1 \pm 1 units with typical learning rates. When target frequencies lie outside this reachable range, optimization frequently fails. To overcome this frequency reachability limitation, we propose grid-based initialization using ternary encodings, which generate dense integer frequency spectra. While this approach requires 𝒪 ⁡ ( log 3 ⁡ ω max ) \mathcal{O}(\log_{3}\omega_{\max}) encoding gates—more than the theoretical optimum but exponentially fewer than fixed-frequency methods—it ensures target frequencies lie within the locally reachable range. On synthetic target functions deliberately constructed with three shifted high frequencies to isolate the reachability challenge, ternary grid initialization achieves a median R 2 R^{2} score of 0.9969, compared to 0.1841 for the trainable-frequency baseline. For the real-world Flight Passengers dataset, which contains a broader frequency distribution including lower frequencies, ternary grid initialization achieves a median R 2 R^{2} score of 0.9671 across 10 random initializations, representing a 22.8% improvement over trainable-frequency initialization (median R 2 R^{2} = 0.7876). 1 Introduction The identification of latent relationships within complex, high-dimensional datasets represents a fundamental challenge across numerous scientific and commercial domains. Drug development, for example, requires modeling quantum effects such as electron delocalization and chemical bonding, leading to exponential scaling when computed classically ( 13 ) . Similarly, financial markets exhibit complex, high-dimensional feature dependencies that traditional modeling approaches struggle to capture, as they typically assume constant correlations and neglect tail dependencies ( 9 ) . Both domains exemplify problems where the dimensionality and complexity of relationships exceed the practical capabilities of classical approaches. Quantum machine learning (QML) emerges as a promising paradigm to address these challenges, offering theoretical advantages over classical approaches. Studies demonstrate that quantum models can represent more complex functions than classical counterparts ( 12 ) , exhibiting higher effective dimensionality and potential computational advantages compared to traditional neural networks ( 1 ) . However, substantial challenges remain for QML. Barren plateaus limit the number of trainable qubits ( 18 ) , while NISQ hardware constraints hinder practical deployment. Although qubit counts continue rising and error rates are improving, circuit depth must remain shallow to mitigate noise accumulation, making efficient parameter utilization critical. Analogous to activation functions in classical neural networks, quantum circuits achieve expressivity through angle encoding, data re-uploading, and entangling gates. As shown by 19 , these mechanisms enable quantum models to represent truncated Fourier series. Recent research has focused on identifying resource-efficient circuit structures, with 16 and 23 establishing minimal architectures for fixed-frequency encodings. Trainable-frequency (TF) quantum models extend this paradigm by learning the generators for data encoding unitaries, enabling non-regularly spaced frequencies and flexible spectral richness tailored to specific tasks ( 8 ) . Theoretically, TF models can reduce encoding gate requirements from polynomial scaling in fixed-frequency models to matching the target spectrum size itself, assuming gradient-based optimization can drive prefactors to arbitrary target values. However, we demonstrate that this assumption fails in practice. By shifting the target frequency spectrum by 10 units relative to the original example from 8 , we reveal that TF models struggle to reach frequencies beyond a narrow range around initialization, with reliable convergence occurring only for nearby target frequencies. To address this limitation, we propose a grid-based initialization strategy using ternary encoding gates ( 17 ; 10 ; 20 ) that places frequencies at regular, densely spaced intervals across the target spectrum, enabling the model to achieve the desired frequency representation through local fine-tuning during training. We summarize our contributions as follows: • We demonstrate that TF quantum models exhibit limited frequency reachability, with reliable convergence occurring only when target frequencies lie within a narrow range around initialization values. • We systematically analyze and formalize parameter scaling requirements across trainable-frequency models and fixed-frequency approaches, showing that ternary encodings can also be used to achieve exponential reduction in encoding gates while maintaining identical ansatz parameter requirements. • We introduce a grid-based initialization strategy using ternary encoding gates that establishes a dense frequency spectrum with |\Omega|=3^{k} frequencies for k encoding gates, ensuring target frequencies lie within the locally reachable optimization range and achieving reliable convergence where standard trainable-frequency approaches fail. 2 Theoretical Background 2.1 Fixed-Frequency Variational Quantum Circuits Variational quantum circuits (VQCs) represent a prominent class of QML models that encode and process data through parametrized quantum operations. Definition 2.1 (Unary Fixed-Frequency VQC) . An L -layer unary fixed-frequency VQC with angle encoding consists of feature maps (FM) S(x)=e^{ixH} where H=\frac{1}{2}\sigma for a Pauli operator \sigma\in\{\sigma_{x},\sigma_{y},\sigma_{z}\} implementing rotation gates R(x)=e^{-i\frac{x}{2}\sigma} with R\in\{R_{x},R_{y},R_{z}\} and unit prefactors, parametrized ansatz layers W_{i}(\boldsymbol{\theta}_{i}) with trainable parameters \boldsymbol{\theta}=(\boldsymbol{\theta}_{0},\ldots,\boldsymbol{\theta}_{L}) , and an observable M for measurement. The circuit is formed by interleaving feature maps and ansatz layers: U(x,\boldsymbol{\theta})=W_{L}(\boldsymbol{\theta}_{L})S(x)\cdots S(x)W_{0}(\boldsymbol{\theta}_{0}), (1) with model output f_{\boldsymbol{\theta}}(x)=\langle 0|U^{\dagger}(x,\boldsymbol{\theta})MU(x,\boldsymbol{\theta})|0\rangle. (2) Parameters are optimized by minimizing a loss function \mathcal{L}(\boldsymbol{\theta}) : \boldsymbol{\theta}^{*}=\underset{\boldsymbol{\theta}}{\text{argmin}}\,\mathcal{L}(\boldsymbol{\theta}) ( 5 ) . Fourier Representation. A fundamental property of angle-encoded quantum circuits is their representation as truncated Fourier series. Theorem 2.2 (Fourier Representation of VQCs ( 19 ) ) . For a variational quantum circuit with angle encoding, the model output f_{\boldsymbol{\theta}}(x) can be expressed as a Fourier series: f_{\boldsymbol{\theta}}(x)=\sum_{\omega\in\Omega}c_{\omega}(\boldsymbol{\theta})e^{i\omega x}, (3) where \Omega is the frequency spectrum determined by the feature map S(x) and observable M , and c_{\omega}(\boldsymbol{\theta})\in\mathbb{C} are parameter-dependent Fourier coefficients. For unary fixed-frequency circuits with L layers, |\Omega|=2L+1 . This representation extends to all angle-encoding architectures, including the ternary fixed-frequency and trainable-frequency circuits introduced below, though with different frequency spectra determined by their respective prefactor configurations. The frequency spectrum can be generated through equivalent circuit architectures: serial ( L FMs applied sequentially to the same qubit), parallel ( L FMs applied simultaneously to L distinct qubits), or hybrid ( l_{s} serial and l_{p} parallel FMs with l_{s}\cdot l_{p}=L ), all generating identical spectra ( 7 ) . Corollary 2.3 (Parameter Scaling ( 19 ) ) . For an L -layer angle-encoding circuit with frequency spectrum |\Omega|=2L+1 , independent control of all Fourier coefficients requires at least M\geq 2L+1 ansatz parameters. These parameters must be independently trainable to provide actual degrees of freedom for coefficient control. Parameter sharing or architectural constraints that reduce the effective number of independent parameters will limit expressivity accordingly. Definition 2.4 (Ternary Fixed-Frequency VQC) . A ternary fixed-frequency variational quantum circuit extends Definition 2.1 by using exponentially-spaced prefactors in the FMs. The FM in layer i takes the form S_{i}(x)=e^{i3^{i}xH} where the prefactor 3^{i} is fixed for i\in\{0,\ldots,L-1\} . The circuit structure and output follow Definition 2.1 , with these ternary FMs interleaved with ansatz layers. This encoding strategy generates a dense integer frequency spectrum, achieving exponential growth in the number of unique frequencies with each additional encoding gate. Notably, ternary encodings achieve the largest possible cardinality for separable encoding generators ( 17 ) . 2.2 Trainable-Frequency Variational Quantum Circuits The circuits discussed above use fixed prefactors in the FMs, limiting the frequency spectrum to predetermined values. We now introduce trainable-frequency circuits where these prefactors become optimizable parameters. Definition 2.5 (Unary Trainable-Frequency VQC) . A unary trainable-frequency variational quantum circuit extends Definition 2.1 by parameterizing the FM prefactors. The FM takes the form S(x,\boldsymbol{\alpha})=e^{i\alpha xH} where the prefactor \boldsymbol{\alpha}\in\mathbb{R}^{L} is trainable alongside the ansatz parameters \boldsymbol{\theta} . For angle encoding with Pauli operators, this yields rotation gates R(x,\alpha)=e^{-i\frac{\alpha x}{2}\sigma} where R\in\{R_{x},R_{y},R_{z}\} . The circuit becomes U(x,\boldsymbol{\theta},\boldsymbol{\alpha})=W_{L}(\boldsymbol{\theta}_{L})S(x,\boldsymbol{\alpha}_{L})\cdots S(x,\boldsymbol{\alpha}_{1})W_{0}(\boldsymbol{\theta}_{0}), (4) with model output f_{\boldsymbol{\theta},\boldsymbol{\alpha}}(x)=\langle 0|U^{\dagger}(x,\boldsymbol{\theta},\boldsymbol{\alpha})MU(x,\boldsymbol{\theta},\boldsymbol{\alpha})|0\rangle. (5) 2.3 Quantum Models as Universal Function Approximators Having established that angle-encoded quantum circuits represent truncated Fourier series, we now examine their universal approximation capabilities and compare the parameter requirements across different architectural choices. Theorem 2.6 (Universal Approximation for Trainable-Frequency VQCs ( 24 ; 15 ) ) . Consider a unary trainable-frequency circuit as defined in Definition 2.5 where the ansatz layers W(\boldsymbol{\theta}) form a universal gate set. For any continuous function f:[0,1]^{d}\to[-1,1] and \varepsilon>0 , there exists circuit depth L and parameters \boldsymbol{\theta},\boldsymbol{\alpha} such that \left|f_{\boldsymbol{\theta},\boldsymbol{\alpha}}(x)-f(x)\right|<\varepsilon\quad\forall x\in[0,1]^{d}. (6) Importantly, 24 demonstrate that the choice of Pauli rotation gate for encoding does not affect approximation capability, provided the ansatz gates are universal. 3 Comparison of Encoding Gate and Ansatz Parameter Requirements Theorem 2.6 establishes that for any target function f and precision \varepsilon>0 , there exists a circuit depth sufficient for unary trainable-frequency circuits to achieve approximation. Assumption 3.1 . We denote by k_{\text{opt}} the minimum circuit depth (number of encoding gates) required for unary trainable-frequency circuits to achieve approximation error below a specified \varepsilon for a given target function. We use k_{\text{opt}} as the baseline for comparing different architectural choices. Remark 3.2 (Dynamic Frequency Spectrum) . Unlike fixed-frequency circuits, the frequency spectrum |\Omega| in trainable-frequency circuits depends on the evolved prefactor values \{\alpha_{i}\} . For k_{\text{opt}} encoding gates with prefactors initialized at unity, the initial spectrum contains |\Omega|=2k_{\text{opt}}+1 frequencies. However, during training: • Minimum spectrum: If all prefactors converge to zero, |\Omega|=1 (zero frequency only, i.e., constant output) • Maximum spectrum: If prefactors become distinct powers of 3, |\Omega|=3^{k_{\text{opt}}} frequencies By Corollary 2.3 , since the spectrum can grow to |\Omega|=3^{k_{\text{opt}}} during training, a conservative design requires |\boldsymbol{\theta}|\geq 3^{k_{\text{opt}}} ansatz parameters to maintain full expressivity. Proposition 3.3 (Unary Fixed-Frequency Requirements ( 16 ) ) . Approximating a single trainable-frequency gate with prefactor |\alpha_{i}|\leq k_{\text{opt}} using unary fixed-frequency gates with unit prefactors requires \mathcal{O}(|\alpha_{i}|+\varepsilon^{-2}) encoding gates to achieve approximation error \varepsilon . Consequently, approximating a complete trainable-frequency circuit with k_{\text{opt}} trainable encoding gates requires k\in\mathcal{O}\left(k_{\text{opt}}\cdot(k_{\text{opt}}+\varepsilon^{-2})\right) (7) unary fixed-frequency encoding gates. These gates generate a fixed frequency spectrum with |\Omega|=2k+1 frequencies. By Corollary 2.3 , the ansatz requires |\boldsymbol{\theta}|=2k+1 parameters. Proof. Each trainable frequency can be approximated by a truncated Fourier series, requiring circuit depth proportional to both the frequency magnitude and the inverse precision squared ( 16 ) . Summing over all k_{\text{opt}} trainable gates yields the encoding gate complexity. The ansatz parameter requirement follows from Corollary 2.3 , which establishes that |\Omega|=2k+1 frequencies require at least 2k+1 trainable parameters for arbitrary coefficient control. ∎ Unlike trainable-frequency circuits where the spectrum can evolve during training (Remark 3.2 ), fixed-frequency circuits have a constant frequency spectrum determined at initialization, and thus require a fixed number of ansatz parameters throughout training. Proposition 3.4 (Ternary Fixed-Frequency Requirements) . Approximating a single trainable-frequency gate with prefactor |\alpha_{i}|\leq k_{\text{opt}} using ternary fixed-frequency gates with prefactors \{3^{0},3^{1},\ldots\} requires \mathcal{O}(\log_{3}|\alpha_{i}|+\log_{3}(\varepsilon^{-1})) encoding gates to achieve approximation error \varepsilon . Consequently, approximating a complete trainable-frequency circuit with k_{\text{opt}} trainable encoding gates requires k\in\mathcal{O}\left(k_{\text{opt}}\cdot(\log_{3}k_{\text{opt}}+\log_{3}(\varepsilon^{-1}))\right) (8) ternary fixed-frequency encoding gates. Despite the exponential reduction in encoding gates, these gates generate the same frequency spectrum size as the unary fixed approach, |\Omega|=2k_{\text{unary}}+1 , where k_{\text{unary}}\in\mathcal{O}(k_{\text{opt}}^{2}+k_{\text{opt}}\varepsilon^{-2}) from Proposition 3.3 . By Corollary 2.3 , the ansatz requires |\boldsymbol{\theta}|=2k_{\text{unary}}+1 parameters. Proof. The proof follows by adjusting Corollary 2 in 16 to account for ternary encoding efficiency. A complete derivation is provided in Appendix A . ∎ The key advantage of ternary encodings is the exponential reduction in encoding gate count while maintaining identical ansatz parameter requirements, as both architectures generate frequency spectra of the same cardinality. Remark 3.5 (Parameter Generation Capacity) . In unary fixed-frequency architectures, a sufficient number of independently trainable parameters can be generated on a single qubit, as each additional layer introduces new frequencies and corresponding parameters. In contrast, ternary encoding induces exponential growth in the number of accessible frequencies, which cannot be accommodated by simply increasing circuit depth. The number of independently controllable parameters per ansatz layer is upper bounded by \max(\dim(\mathfrak{g}))=4^{q}-1 for a q -qubit system, where \mathfrak{g} denotes the dynamical Lie algebra (DLA) generated by the circuit ( 11 ) . Consequently, ternary encoding schemes with k encoding gates generating |\Omega|=3^{k} frequencies must balance this exponential growth with a corresponding increase in circuit width: q\geq\log_{4}(3^{k}+1) qubits are required for single-layer ansatz architectures to provide sufficient parameterization. Table 1 : Comparison of parameter scaling for different VQC architectures relative to the trainable-frequency baseline k_{\text{opt}} from Assumption 3.1 . Architecture Encoding Gates Ansatz Parameters Spectrum Unary Trainable k_{\text{opt}} 2k_{\text{opt}}+1 (initial) Dynamic \Omega(3^{k_{\text{opt}}}) (worst-case) Unary Fixed \mathcal{O}(k_{\text{opt}}(k_{\text{opt}}+\varepsilon^{-2})) \mathcal{O}(k_{\text{opt}}^{2}+k_{\text{opt}}\varepsilon^{-2}) Fixed Ternary Fixed \mathcal{O}(k_{\text{opt}}(\log_{3}k_{\text{opt}}+\log_{3}(\varepsilon^{-1}))) \mathcal{O}(k_{\text{opt}}^{2}+k_{\text{opt}}\varepsilon^{-2}) Fixed Table 1 summarizes the key scaling differences. Ternary fixed-frequency encodings achieve exponential improvement in encoding gate count compared to unary fixed approaches, while both fixed-frequency methods share identical ansatz parameter requirements that remain constant during training. Trainable-frequency circuits offer the most efficient encoding gate usage but have a dynamic frequency spectrum (Remark 3.2 ), requiring careful provisioning of ansatz parameters. The unary trainable-frequency approach presents a compelling option due to its substantial parameter efficiency: requiring only k_{\text{opt}} encoding gates, compared to the quadratic scaling of fixed-frequency methods. When the number of frequencies in the target function is known a priori, this approach becomes particularly attractive—as demonstrated by 8 , who achieve near-perfect approximation of a three-frequency target function using exactly three trainable encoding gates, matching the theoretical optimum. 4 Frequency Reachability Limitations in Trainable Models Despite the compelling efficiency of trainable-frequency approaches established in the previous section, their practical effectiveness hinges on a key assumption: that gradient-based optimization can drive prefactors to arbitrary target values. To test this assumption, we systematically examine the frequency reachability of trainable-frequency models by measuring how far prefactors can move from initialization during training. 4.1 Experimental Setup Reachability validation. We reproduce the trainable-frequency experiment from 8 , which successfully fitted a target function with frequency spectrum \Omega_{1}=\{1,1.2,3\} using trainable unary prefactors initialized to 1.0. To test frequency reachability, we shift the entire target frequency spectrum by 10 units to \Omega_{2}=\{11,11.2,13\} , testing whether trainable prefactors can reach frequencies far from their initialization. We analyze prefactor evolution and gradient behavior on this shifted spectrum to understand the optimization dynamics underlying the reachability limitation. The target functions are defined as truncated Fourier series: t(x)=c_{0}+\sum_{i=1}^{3}\left[a_{i}\cos(\omega_{i}x)+b_{i}\sin(\omega_{i}x)\right] (9) where \omega_{i}\in\Omega represents the target frequency set, and coefficients c_{0},a_{i},b_{i} are randomly sampled from [0,1) . For all experiments, we generate 10 distinct target functions per frequency configuration (each with randomly sampled coefficients) and train each target with 10 different weight initializations, yielding 100 runs per configuration. Robustness evaluation. To systematically evaluate how ternary grid initialization performs across varying frequency ranges, we conduct additional experiments with randomly shifted spectra. Starting from the original spectrum \Omega_{1}=\{1,1.2,3\} from 8 , we add random offsets drawn from \mathcal{N}(\mu,1) with mean \mu ranging from 0 to 9. This deliberately shifts all frequencies toward higher values for illustrative purposes—isolating the reachability challenge—whereas real-world datasets typically contain broader frequency distributions that retain lower-frequency components alongside higher frequencies. Model validation uses an 80/20 random train/test split for all datasets. All experiments for the synthetic target functions use identical quantum circuit architectures with 3 qubits and 3 FMs; for the real-world Flight Passengers dataset ( 3 ) we use 4 qubits and 4 FMs. The ansatz blocks employ PennyLane’s special unitary gates ( qml.SpecialUnitary(\boldsymbol{\theta}) ), providing 63 parameters per layer for the 3-qubit circuits and 255 parameters per layer for the 4-qubit architecture and ensuring the full dimension of the DLA is reached. This guarantees sufficient expressivity to avoid spurious local minima caused by insufficient parameter counts ( 11 ) . 1 1 1 While full special unitary parametrization becomes impractical for larger qubit counts due to exponential parameter scaling, overlapping 2-qubit special unitary gates provide a scalable alternative with strong empirical performance ( 22 ) . The classical baseline uses a feedforward architecture with two hidden layers of 64 units each, ReLU activations, and 10% dropout, trained with Adam (learning rate 0.001) for 500 epochs. Further details for the experimental set-up can be found in Appendix D . 4.2 Results Figure 1 demonstrates limitations in frequency reachability. While the original experiment with \Omega_{1} converges successfully to the target function ( Figure 1a ), our frequency-shifted variant with \Omega_{2} fails to achieve adequate fits when using the same unary initialization strategy ( Figure 1b ). Despite identical optimization procedures and sufficient training time, the model remains constrained to a limited range around its initialization. To systematically quantify prefactor mobility, we must address a technical challenge: when all three prefactors are initialized to the identical value of 1.0, the optimizer sometimes fails to distinguish between them during early training iterations, causing them to update in lock-step rather than independently. This behavior is shown in Figure 5 , where prefactors occasionally remain identical for extended periods before diverging. To ensure independent prefactor evolution from the start, we introduce slightly perturbed initial values of \{1.01,1.02,1.03\} for our detailed analysis. This small perturbation has only marginal effect on the final R^{2} scores (see Figure 6 ) but ensures that gradient signals are distinct for each prefactor from the first optimization step. (a) Frequencies from 8 \Omega_{1}=\{1,1.2,3\} with unary prefactors. (b) Frequencies \Omega_{2}=\{11,11.2,13\} with unary prefactors. (c) Frequencies \Omega_{2}=\{11,11.2,13\} with ternary prefactors. Figure 1 : Target and trained predictions for the original Jaderberg experiment with unary initial prefactors (a), the frequency-shifted variant with unary prefactors showing poor fit (b), and the same shifted frequencies with ternary grid initialization demonstrating successful recovery (c). With this initialization, Figure 2 a reveals that prefactors exhibit severely limited mobility during optimization. For learning rates of 0.001 and 0.01, both mean and maximum displacement remain below 1—far too small to reach the target frequency range of 11–13. Even with an aggressive learning rate of 0.1, the maximum displacement reaches only approximately 7, and the mean displacement remains around 2, indicating that most prefactors fail to achieve the required displacement. (a) Distribution of prefactor displacement from initial values after 5,000 iterations, showing means, medians, and extrema. (b) Prefactor gradients after the first optimizer iteration for different initial prefactors. Figure 2 : Prefactor displacement and gradient analysis across 100 target functions. Initial prefactors were set to \{1.01,1.02,1.03\} to ensure distinct gradient signals from the start of training. 4.3 Analysis The gradient analysis in Figure 2b reveals the underlying cause of this reachability limitation. We compute prefactor gradients for a target function with spectrum \Omega_{2}=\{11,11.2,13\} after the first optimizer iteration for various initial prefactor values, effectively sweeping across the parameter space. The results show that gradient magnitudes are significantly stronger when initial prefactors lie near the target frequencies. Conversely, prefactors initialized far from targets receive weak gradient signals, providing insufficient directional information for the optimizer. This creates a fundamental challenge: the optimization landscape exhibits strong locality, with effective gradient information available only within a limited neighborhood of each target frequency. When prefactors are initialized outside this neighborhood, the loss surface provides inadequate guidance for convergence, resulting in the limited mobility observed in Figure 2a . The prefactor evolution during training further illustrates this local fine-tuning behavior. Figure 3 shows that with learning rates of 0.001 and 0.01, unary prefactors remain confined near their initial values. Only the aggressive learning rate of 0.1 enables occasional long-distance movement for unary prefactors. However, this produces unreliable and inconsistent results, as evidenced by the low density of large deviations in the violin plot ( Figure 2a ). (a) LR = 0.001 (b) LR = 0.01 (c) LR = 0.1 Figure 3 : Prefactor evolution for different learning rates with initial prefactors of \{1.01,1.02,1.03\} for unary initialization on target functions with frequency spectrum \Omega_{2}=\{11,11.2,13\} . Each panel shows the best-performing run (highest R^{2} score) for that learning rate. Only the aggressive learning rate of 0.1 enables substantial prefactor movement, but this occurs unreliably as demonstrated by Figure 6 . These observations reveal a critical gap between theoretical flexibility and practical trainability in trainable-frequency models. While such models can theoretically represent arbitrary frequency spectra, gradient-based optimization constrains accessible frequencies to a narrow neighborhood around initialization—approximately \pm 1 unit for standard learning rates of 0.01 and 0.001. This motivates an alternative approach: rather than relying on long-distance prefactor tuning, we initialize with a dense grid of frequencies that ensures all target frequencies lie within the locally reachable range, as presented in the following section. 5 Dense Grid Initialization via Ternary Trainable-Frequency VQCs To overcome the frequency reachability limitations demonstrated in Section 4 , we propose combining ternary encoding with trainable prefactors. Definition 5.1 (Ternary Trainable-Frequency VQC) . A ternary trainable-frequency VQC extends the unary trainable-frequency architecture (Definition 2.5 ) by initializing prefactors with exponentially-spaced values \{\alpha_{j}^{(0)}=3^{j}\}_{j=0}^{k-1} , which then become trainable during optimization. The circuit structure and output follow Definition 2.5 . For k encoding gates, this initialization generates a dense integer frequency spectrum: \Omega_{\text{grid}}^{(0)}=\left\{-\left\lfloor\frac{3^{k}}{2}\right\rfloor,\ldots,-1,0,1,\ldots,\left\lfloor\frac{3^{k}}{2}\right\rfloor\right\}. (10) Proposition 5.2 (Ternary Trainable-Frequency Requirements) . For a ternary trainable-frequency circuit covering target frequencies up to \omega_{\max} , the circuit requires k=\lceil\log_{3}(2\omega_{\max}+1)\rceil encoding gates and |\boldsymbol{\theta}|\geq 2\omega_{\max}+1 ansatz parameters. Proof. For k ternary encoding gates, the maximum frequency is \left\lfloor\frac{3^{k}}{2}\right\rfloor=\frac{3^{k}-1}{2} . To cover [-\omega_{\max},\omega_{\max}] , we require \frac{3^{k}-1}{2}\geq\omega_{\max} , yielding k\geq\log_{3}(2\omega_{\max}+1) . Taking the ceiling ensures k is a natural number. The ansatz parameter requirement follows from Corollary 2.3 . ∎ Corollary 5.3 (Ternary Encoding Gate Complexity) . Ternary encoding circuits can approximate arbitrary frequency encodings e^{i\omega_{\max}xH} to precision \epsilon using k\in\mathcal{O}\left(\log_{3}\omega_{\max}+\log_{3}\left(\frac{1}{\epsilon}\right)\right) (11) fixed encoding gates with exponentially-spaced prefactors \{3^{0},3^{1},\ldots,3^{k-1}\} . This represents an exponential improvement over unary encoding, which requires \mathcal{O}(\omega_{\max}+\epsilon^{-2}) encoding gates. Proof. By Fejér’s theorem and properties of Cesàro means, arbitrary target frequencies can be approximated using truncated Fourier series with coefficients from the ternary frequency spectrum. The logarithmic dependence on both \omega_{\max} and \epsilon^{-1} follows from the exponential density of ternary encodings. A complete derivation is provided in Appendix A . ∎ Crucially, the dense initial grid ensures all target frequencies within [-\omega_{\max},\omega_{\max}] lie within \pm 1/2 unit of a grid frequency, placing them within the locally reachable optimization range established in Section 4 . This architecture represents a practical middle ground between theoretical optimality and reliable convergence. We distinguish two cases relative to the unary trainable-frequency baseline ( k_{\text{opt}} gates from Assumption 3.1 ): Case 1: Sparse target spectra. When the number of target frequencies is small relative to \omega_{\max} (i.e., k_{\text{opt}}\ll\log_{3}(2\omega_{\max}+1) ), the unary trainable approach is theoretically more efficient, requiring only k_{\text{opt}} encoding gates and 2k_{\text{opt}}+1 ansatz parameters. The ternary grid requires \lceil\log_{3}(2\omega_{\max}+1)\rceil gates and 2\omega_{\max}+1 parameters—substantially more than the theoretical minimum. However, as demonstrated in Section 4 , unary initialization fails to achieve reliable convergence when target frequencies lie beyond a narrow range around initialization, making theoretical efficiency irrelevant in practice. Case 2: Dense or unknown frequency coverage. When target frequencies span the full range [-\omega_{\max},\omega_{\max}] , unary approaches require k_{\text{opt}}\approx\omega_{\max} encoding gates and 2\omega_{\max}+1 ansatz parameters. The ternary grid achieves exponential improvement with only \mathcal{O}(\log_{3}\omega_{\max}) encoding gates while maintaining identical ansatz parameter requirements. Moreover, when the target spectrum is unknown a priori, ternary initialization provides robust coverage without requiring advance knowledge of specific target frequencies. The key insight is that ternary grid initialization trades modest parameter overhead in sparse cases for robust reachability, enabling reliable convergence where theoretical optimality alone proves insufficient. 5.1 Experimental Validation We validate this approach using ternary prefactors \{1,3,9\} on the frequency-shifted targets from Section 4 , comparing against unary fixed-frequency, ternary fixed-frequency (Definition 2.4 ), and unary trainable-frequency baselines. The ternary grid \Omega_{\text{grid}}=\{-13,\ldots,13\} encompasses target frequencies \Omega_{2}=\{11,11.2,13\} , enabling accurate fitting ( Figure 1c ). Testing on frequency-shifted variants (original frequencies \Omega=\{1,1.2,3\} plus random offsets from \mathcal{N}(\mu,1) , \mu\in[0,9] ), Figure 4 shows trainable ternary prefactors achieve R^{2}>0.95 consistently across all 100 runs per shift, while trainable unary prefactors deteriorate with increasing shifts, even underperforming fixed ternary baselines. Figure 4 : R^{2} score interquartile ranges for frequency-shifted targets. Trainable ternary prefactors (LR = 0.001) achieve consistently high scores across all shifts, fixed ternary prefactors come close, while trainable unary and fixed unary prefactors fail. On the Flight Passengers dataset, ternary trainable-frequency (4-qubit parallel, 510 parameters) achieved median R^{2}=0.9671 across 10 runs, exceeding fixed ternary (0.9056), trainable unary (0.7876) and fixed unary (0.7066) (see Figure 7 in Appendix). The smaller performance gap compared to synthetic experiments reflects the dataset’s broader frequency distribution: real-world time series data typically contains lower-frequency components that remain within the reachable range even with unary initialization. For comparison, a classical feedforward network (4,417 parameters) achieved median R^{2}=0.9828 , demonstrating that ternary trainable-frequency approaches classical performance. 6 Discussion Understanding the reachability limitation. Our gradient analysis ( Section 4 ) reveals that prefactor gradients vanish rapidly with distance from target frequencies, creating a fundamentally local optimization landscape. This suggests the limitation is not an artifact of our specific optimizer but rather a structural property of the loss surface. One possible explanation is non-stationarity: updating frequency prefactors reshapes the entire loss landscape, potentially invalidating gradient directions for ansatz parameters. The extent of prefactor movement varies with learning rate: The ternary grid with unit spacing accommodates even conservative learning rates for local fine-tuning between adjacent grid points. Preliminary explorations of alternating optimization schemes and adaptive learning rates did not yield systematic improvements, supporting the interpretation that this is a fundamental barrier to long-distance prefactor tuning rather than an optimizer-specific phenomenon. Practical considerations. While our approach requires specifying a maximum target frequency \omega_{\max} , this can be determined empirically by progressively adding ternary encoding gates until performance converges. Due to logarithmic scaling, this search requires only \mathcal{O}(\log\omega_{\max}) iterations. The total parameter requirement of \mathcal{O}(\omega_{\max}) ansatz parameters remains necessary across all approaches to independently control frequencies in the target range. Limitations and caveats. Trainable-frequency models incorporate parameterized classical data processing through learnable prefactors that multiply input data ( \alpha x ) before quantum encoding. This creates ambiguity regarding whether expressivity originates from classical or quantum components ( 23 ) . Caution is therefore warranted when claiming quantum advantages for such models. Additionally, all approaches discussed here face the curse of dimensionality when scaling to higher-dimensional inputs, with parameter requirements scaling as \mathcal{O}(\exp(d)) for d -dimensional data ( 16 ) . Current quantum simulators and near-term hardware impose practical limits to moderate-dimensional problems, and whether future fault-tolerant devices can leverage this exponential structure more efficiently than classical approaches remains an open question. 7 Conclusion We have demonstrated that trainable-frequency quantum models, despite their theoretical promise of minimal gate requirements, face significant practical limitations due to constrained frequency reachability during gradient-based optimization. Through systematic experiments, we quantified this limitation: while prefactor movement ranges from approximately \pm 1/2 units with conservative learning rates to \pm 7 units with aggressive rates, reliable convergence occurs only within a narrow range around initialization. This causes optimization failure when target frequencies lie outside the locally reachable range. Our proposed ternary grid initialization strategy addresses this limitation by establishing a dense integer frequency spectrum that ensures target frequencies lie within the reachable range from initialization. On synthetic target functions designed to isolate the reachability challenge, this approach achieved median R^{2}=0.9969 compared to 0.1841 for standard trainable-frequency initialization. On the real-world Flight Passengers dataset, ternary grid initialization achieved a 22.8% improvement (median R^{2}=0.9671 vs 0.7876). By combining the gate efficiency of ternary encodings with trainable prefactors, our approach provides a practical path forward for deploying frequency-adaptive quantum models on near-term hardware, achieving exponential gate reduction while ensuring reliable convergence where theoretical optimality alone proves insufficient. Impact Statement This paper presents work whose goal is to advance the field of (Quantum) Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here. LLM Statement Large language models have been used for the production of this paper to polish writing, debug the code for conducting the experiments and generate the code for plotting the results. Reproducibility Statement The circuit diagram for the various experiments can be found in Appendix E . The target functions and a high level description of the experimental set up is provided in Section 4.1 and in more detail in Appendix D . In the supplementary materials we have included a zip file with the Jupyter notebook for generating the results for the ternary-trainable model shown in Figure 4 , together with the dataset and the code for generating the plot with the results. Appendix A Improved Encoding Gate Complexity with Ternary Encoding This appendix provides the detailed proof supporting the parameter scaling analysis in Section 3 . We extend Corollary 2 from 16 by demonstrating that ternary encoding as described in 20 ; 17 creates a dense frequency spectrum with only k=\mathcal{O}(\log_{3}w) encoding gates. Following 16 , we use the normalized domain x\in[0,1] for the theoretical analysis. This result generalizes straightforwardly to any compact interval through appropriate rescaling of the input variable. In practice, data normalization to intervals such as [-\pi,\pi] is common and also used in our experiments. Throughout the theoretical analysis, we adopt Fourier bases of the form e^{in\pi x} for mathematical convenience; this corresponds to a rescaling of the input and is without loss of generality. We also use the notation w to denote maximum frequency throughout this appendix, which corresponds to \omega_{\max} in the main text. We adopt this notation to maintain consistency with the cited proof. Before presenting the main result in Section A.3 , we provide the necessary mathematical components. A.1 Circuit Architecture Definition A.1 (Ternary Encoding Circuit with WSW Architecture) . A ternary encoding quantum circuit with k encoding gates follows the WSW (Weight-Signal-Weight) architecture introduced in Section 2 : U_{k}^{\mathrm{ternary}}(\boldsymbol{\theta},x)=W_{k}(\boldsymbol{\theta}_{k})\cdot S_{k-1}(x)\cdot W_{k-1}(\boldsymbol{\theta}_{k-1})\cdots S_{1}(x)\cdot W_{1}(\boldsymbol{\theta}_{1})\cdot S_{0}(x)\cdot W_{0}(\boldsymbol{\theta}_{0}), (12) where: • S_{j}(x)=e^{i\cdot 3^{j}\pi x\sigma_{z}} are fixed encoding gates at exponentially-spaced frequencies \{3^{0},3^{1},3^{2},\ldots,3^{k-1}\} (in the \pi -Fourier basis), • W_{j}(\boldsymbol{\theta}_{j}) are parameterized ansatz blocks with parameters \boldsymbol{\theta}_{j} , • x\in[0,1] is the input data, • \boldsymbol{\theta}=(\boldsymbol{\theta}_{0},\boldsymbol{\theta}_{1},\ldots,\boldsymbol{\theta}_{k}) denotes all variational parameters. The parameterized ansatz blocks must provide sufficient expressivity to control all accessible frequencies, as discussed in Remark A.6 . As established in Section 3 , ternary encoding with k gates provides access to all integer frequencies in the range \Omega_{k}=\{n\in\mathbb{Z}:|n|\leq M\} with M=(3^{k}-1)/2\approx 3^{k}/2 ( 20 ; 17 ) . This dense integer coverage is the key property enabling logarithmic scaling in encoding gate count. By the generalized quantum signal processing framework ( 16 ) , this circuit can be written as: U_{k}^{\mathrm{ternary}}(\boldsymbol{\theta},x)=R_{M}(\boldsymbol{\theta},x), (13) where R_{M} is a 2\times 2 unitary matrix of the form: R_{M}(\boldsymbol{\theta},x)=\begin{pmatrix}P_{M}(x)&-Q_{M}^{*}(x)\\ Q_{M}(x)&P_{M}^{*}(x)\end{pmatrix}, (14) with |P_{M}(x)|^{2}+|Q_{M}(x)|^{2}=1 (unitarity condition). A.2 Mathematical Background The Frobenius norm is a matrix norm defined as: \lVert A\rVert_{F}=\sqrt{\mathrm{Tr}(A^{\dagger}A)}. (15) Theorem A.2 (Fejér’s Theorem ( 21 ) ) . Let f\in C([0,2]) be a continuous 2 -periodic function, and let S_{N}(f)(x)=\sum_{n=-N}^{N}\hat{f}_{n}e^{in\pi x} denote the N th partial sum of its Fourier series. Then the Cesàro means \sigma_{N}(f)(x)=\frac{1}{N+1}\sum_{k=0}^{N}S_{k}(f)(x) converge uniformly to f on [0,2] , i.e., \lim_{N\to\infty}\sup_{x\in[0,2]}\lvert\sigma_{N}(f)(x)-f(x)\rvert=0. By Theorem 5 in 16 , it is possible to construct arbitrary polynomials P(e^{ix}) of degree at most M such that the matrix R_{M} in Equation 14 approximates the target encoding: R_{M}(\boldsymbol{\theta},x)\approx\begin{pmatrix}e^{iwx}&0\\ 0&e^{-iwx}\end{pmatrix}=e^{iwx\sigma_{z}}, (16) where w is the target frequency. The key insight is that P_{M}(x) can be chosen as a Cesàro mean of the function e^{iwx} , which converges uniformly by Fejér’s theorem. Definition A.3 (Cesàro Means) . Let f:\mathbb{R}\rightarrow\mathbb{C} be a continuous function with period 2\pi , and let S_{n}(x)=\sum_{j=-n}^{n}c_{j}e^{ij\pi x} be its n -th partial Fourier sum. The Cesàro mean of order M is given by P_{M}(x)=\frac{1}{M+1}\sum_{n=0}^{M}S_{n}(x)=\sum_{n=-M}^{M}\frac{M+1-\lvert n\rvert}{M+1}c_{n}e^{in\pi x}, (17) where c_{n} are the Fourier coefficients of f . The equality holds by counting: each coefficient c_{n} appears in (M+1-|n|) partial sums. With this choice of P_{M}(x) , the Frobenius norm of the approximation error can be expressed as: \lVert R_{M}(\boldsymbol{\theta},x)-e^{iwx\sigma_{z}}\rVert_{F}=\sqrt{2}\sqrt{\lvert P_{M}(x)-e^{iwx}\rvert^{2}+\lvert Q_{M}(x)\rvert^{2}}. (18) Using the reverse triangle inequality and the unitarity condition |P_{M}|^{2}+|Q_{M}|^{2}=1 , we can derive a useful bound. Since |e^{iwx}|=1 , we have: \lvert e^{iwx}-P_{M}(x)\rvert\geq 1-\lvert P_{M}(x)\rvert\geq\frac{1-\lvert P_{M}(x)\rvert^{2}}{2}=\frac{\lvert Q_{M}(x)\rvert^{2}}{2}, (19) therefore the Frobenius norm can be bounded as: \lVert R_{M}(\boldsymbol{\theta},x)-e^{iwx\sigma_{z}}\rVert_{F}\leq\sqrt{2}\sqrt{\lvert e^{iwx}-P_{M}(x)\rvert^{2}+2\lvert e^{iwx}-P_{M}(x)\rvert}. (20) With Fejér’s theorem ( Theorem A.2 ), the supremum of this norm can be made arbitrarily small provided e^{iwx} satisfies the continuity and periodicity requirements. This is ensured by using an auxiliary function that extends e^{iwx} periodically: a(x)=\begin{cases}e^{iwx},&\text{if }0\leq x\leq 1,\\ e^{iw(2-x)},&\text{if }1