Learning Hamiltonians for O(1) Oracle-Query Quantum State Preparation
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Quantum Radio. Generated commentary on the latest quantum physics and condensed matter papers.
Kai: Hi, I'm Kai.
Mira: And I'm Mira, here with Lev.
Kai: We're looking at the paper: "Learning Hamiltonians for O(1) Oracle-Query Quantum State Preparation".
Mira: Here's the gist of the paper. The gist: The proposed method introduces a Hamiltonian-based quantum state preparation framework that shifts computational effort from the quantum device to a classical preprocessing stage, enabling O(1) quantum query complexity for arbitrary datasets.
Kai: How it works The core idea is to learn the parameters of a diagonal Hamiltonian through a classical training phase, while the quantum circuit itself performs only fixed-depth Hamiltonian evolution and mixing operations The approach learns the parameters of a diagonal Hamiltonian through a classical training phase, while the quantum circuit itself performs only fixed-depth Hamiltonian evolution and mixing operations.
Mira: This off-device training eliminates the repeated quantum-evaluation cycles inherent to variational schemes and allows the entire state-preparation stage to be executed via a constant-depth quantum evolution.
Kai: The process involves several key steps for state preparation: 1.
Paper summary: Kai: So, we're looking at this paper called "Learning Hamiltonians for O(one) Oracle-Query Quantum State Preparation <ref:2512.19181#pg1,Learning Hamiltonians for O(1) Oracle-Query Quantum State Preparation>." Essentially, they propose using a Hamiltonian based method that runs on a shallow circuit. The core idea is to do the heavy lifting classically first and then use the quantum computer for just fixed-depth evolution and mixing operations.
Mira: They claim this approach learns the parameters of a diagonal Hamiltonian through a classical training phase, while the quantum circuit itself only does fixed-depth Hamiltonian evolution and mixing operations. It shifts everything to a classical preprocessing stage, which they say is O(N log N) for N data values.
Lev: That O(one) query complexity for the oracle access is what's interesting here <ref:2512.19181#pg1>. They manage to encode N classical data values into n = two N qubits using only O(one) quantum queries, which they say is a huge shift from what we see in variational schemes where you need repeated evaluations <ref:2512.19181#pg1>.
Kai: It means the overall computational cost moves to the classical side of things, but the actual quantum execution stays shallow. They’re focusing on learning parameters for a diagonal Hamiltonian.
Mira: And they handle structured datasets differently too, saying if you have a function generating them, you can avoid that oracle access entirely by using a Walsh basis and only keeping a polynomial number of significant terms.
Conclusion: Kai: So, looking at "Learning Hamiltonians for O(one) Oracle-Query Quantum State Preparation," the main thing is transferring the computational burden of finding the state preparation into a classical learning process that costs O(N log N) <ref:2512.19181#pg1,Learning Hamiltonians for O(1) Oracle-Query Quantum State Preparation>.
Mira: It’s about trading expensive quantum queries for a more manageable classical one. They show you can get an O(one) query complexity for encoding data values, which is great if you have many different data points to represent <ref:2512.19181#pg1>.
Lev: From my side, what this means is that the actual quantum circuit execution doesn't need to be deep or complex; it stays constant-depth because all the optimization happens off device. That makes it much more compatible with current hardware limitations for state preparation tasks.
Kai: And they’re keeping fidelity high, even when they restrict the Hamiltonian to just one-local and two-local terms, which is good for near-term devices. It seems like a practical path forward because it keeps the quantum part shallow while moving optimization off the quantum device.
Mira: So in simple terms, this paper shows how you can get an arbitrary state preparation using a constant number of quantum steps once you have learned the right classical Hamiltonian parameters from some training data.
Lev: It’s about complexity transfer, shifting the hard work to classical computation so that the quantum part doesn't run into decoherence issues during its actual execution time.
Centre for Quantum Engineering and Photonics Technology, Sharif University of Technology
quant-ph
Submitted: 2025-12-22
Updated: 2026-10-20
Comments: 11 pages, 7 figures
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
Importance score: 79/100
The gist: The gist: The proposed method introduces a Hamiltonian-based quantum state preparation framework that shifts computational effort from the quantum device to a classical preprocessing stage, enabling
Key concepts
- Hamiltonian-based Quantum State Preparation
- This is a technique where the goal is to prepare a specific quantum state by simulating the time evolution governed by a Hamiltonian (a mathematical operator describing the system's energy). Instead of running complex quantum circuits repeatedly, this method learns the necessary parameters for that Hamiltonian beforehand.
- Complexity Transfer
- This refers to moving computationally expensive parts of an algorithm from the quantum hardware to classical computation. In this paper, the difficult task of learning and optimizing the Hamiltonian parameters is done classically (O(N log N)), while the quantum execution remains simple and fast (constant depth).
- Oracle Access
- An oracle is a hypothetical black box that can efficiently provide information about a specific function or data. This paper shows how to replace direct, repeated queries to this oracle with knowledge of the learned Hamiltonian parameters, allowing for O(1) quantum queries regardless of the dataset size.
- Walsh Basis Expansion
- This is a mathematical technique used to express complex functions (like those generated by structured datasets) as a sum of simpler basis functions called Walsh operators. By keeping only a few significant terms in this expansion, the required Hamiltonian can be truncated, allowing for oracle-free state preparation.
Summary
The gist: The proposed method introduces a Hamiltonian-based quantum state preparation framework that shifts computational effort from the quantum device to a classical preprocessing stage, enabling O(1) quantum query complexity for arbitrary datasets.
How it works
The core idea is to learn the parameters of a diagonal Hamiltonian through a classical training phase, while the quantum circuit itself performs only fixed-depth Hamiltonian evolution and mixing operations The approach learns the parameters of a diagonal Hamiltonian through a classical training phase, while the quantum circuit itself performs only fixed-depth Hamiltonian evolution and mixing operations. This off-device training eliminates the repeated quantum-evaluation cycles inherent to variational schemes and allows the entire state-preparation stage to be executed via a constant-depth quantum evolution.
The process involves several key steps for state preparation:
-
Classical Training of Hamiltonian Parameters: A classical routine trains the parameters of a diagonal Hamiltonian whose simulated evolution generates the target amplitudes. The loss function guiding this optimization is the Sum-of-Squares Error (SSE) between obtained and target amplitudes.
-
Quantum Evolution with Oracle Access (Method 1): If oracle access to the Hamiltonian is available, the simulation of diagonal evolutions can be implemented efficiently by assuming a unitary oracle Uk such that Uk ∣j⟩ ∣0⟩ = ∣j⟩ ∣hk,j ⟩. A sequence of single-qubit phase gates P(θ) then acts directly on these encoded qubits according to P(θ) ∣l⟩ = e iθl ∣l» for l ∈ [0, 1], so the cumulative effect of all phase rotations is to imprint a global factor e−ihk,j on the joint state ∣j⟩ ∣hk,j ⟩. The inverse oracle U†k is subsequently applied to uncompute the ancillary register, restoring it to ∣0⟩ while leaving the computational register ∣j» with the acquired phase e−ihk,j.
-
Quantum Evolution without Oracle Access (Method 2): For structured datasets, expanding the diagonal Hamiltonian in a Walsh basis and retaining only a polynomial number of coefficients enables state preparation in poly(n) time using poly(n) parameters. This formulation allows for the explicit gate-level decomposition of terms, yielding a fully oracle-free realization of the truncated evolution.
Complexity Analysis and Efficiency
The method achieves a quantum time complexity reduction from O(N) to O(1) by incorporating a classical learning procedure of cost O(N log N). The O(1) refers to the number of queries to an oracle that provides the coefficients of a diagonal Hamiltonian used in the simulation. This shifts oracle-access from the dataset values themselves to the Hamiltonian parameters, allowing for O(1) quantum query complexity for arbitrary datasets. Although the classical preprocessing cost formally scales as O(N log N), numerical analysis shows that the effective runtime behaves as approximately 10−7 × N log N. Furthermore, this structure reduces space complexity of the simulation to O(N), avoiding the quadratic storage overhead inherent to arbitrary gate matrices.
Hardware Efficiency and Structured Data Exploitation
The method is naturally hardware-efficient by restricting the Hamiltonian to one-local and two-local terms, or by selecting parameters compatible with a given device topology. When expanding the diagonal Hamiltonian in a Walsh basis and retaining only a polynomial number of significant terms, state preparation can be achieved in poly(n) time without significant fidelity loss. By choosing Walsh operators aligned with native qubit connectivity (e.g., one-local and nearest-neighbor two-local interactions), this truncated model remains analytically tractable and can be implemented directly on hardware-constrained Quantum Processing Units (QPUs). This truncation allows for the elimination of oracle access entirely for structured datasets.
Performance Results
The results demonstrate that even with severe truncation of the Walsh expansion—restricted to physically local operators—high-fidelity state preparation can be achieved in poly(n) time, where n = log2 N. The method preserves high preparation fidelity, as evidenced by the infidelities being on the order of 10−5 for structured datasets. For structured datasets like linear or sine amplitude profiles, the approach maintains small final loss using only a constant number of Hamiltonian simulations. The achieved state-preparation infidelities range from 2.2 × 10−5 for the Two-Local model to 1.1 × 10−4 for the Hardware-Efficient variant on linear data.
Conclusion
By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth. This mechanism exemplifies what we refer to as complexity transfer: shifting the algorithm’s asymptotically expensive components to classical computation, while keeping the quantum circuit depth constant and coherence-compatible. By transferring oracle access from the dataset itself to the Hamiltonian parameters, our method achieves O(1) quantum query complexity for arbitrary datasets. The cost of this generality is absorbed entirely by a classical learning phase with complexity O(N log N), while the quantum execution remains constant-depth.
Improvements for AI systems
-
Classical preprocessing for state preparation can be shifted entirely off-device, enabling quantum circuits to remain shallow and coherence compatible by training diagonal Hamiltonian parameters classically. This allows for a quantum time complexity reduction from O(N) to O(1) for arbitrary datasets, as
the number of oracle calls does not depend on the structure, distribution, or statistics of the target amplitudes.
-
The system can perform quantum state preparation in polynomial time poly(n) without requiring oracle access to the dataset values by expanding the Hamiltonian in a Walsh basis and retaining only a polynomial number of significant terms. This is achieved when
the corresponding diagonal Hamiltonian can be implemented on the quantum device with poly(n) gate complexity using its explicit gate-level decomposition.
-
The improved AI system can prepare target quantum states for linear and sinusoidal amplitude profiles with high fidelity, demonstrating that even with severe truncation of the Walsh expansion,
high-fidelity state preparation can be achieved in poly(n) time.
-
The method is naturally hardware efficient by restricting the Hamiltonian to one-local and two-local terms or selecting parameters compatible with a given device topology, yielding circuits with reduced gate counts while maintaining preparation fidelity. This ensures that the final quantum execution is
well aligned with the limitations of current and near-term quantum hardware.
-
The system can achieve O(1) quantum query complexity for arbitrary datasets by leveraging oracle access to Hamiltonian terms instead of dataset values, a capability that
sharply contrasts with existing oracle-based approaches, most notably Bausch’s structured-oracle construction.
Abstract
We propose a Hamiltonian-based quantum state preparation method implemented via a shallow parametrized quantum circuit. The approach learns the parameters of a diagonal Hamiltonian through a classical training phase, while the quantum circuit itself performs only fixed-depth Hamiltonian evolution and mixing operations. With oracle access to the learned Hamiltonian parameters, N classical data values can be encoded into n= 2 N qubits using O(1) quantum queries, shifting the overall computational cost to an O(N) classical preprocessing stage. For structured datasets generated by an underlying function, oracle access can be avoided by expressing the Hamiltonian in the Walsh basis and retaining only a polynomial number of significant terms. In this regime, quantum state preparation is achieved in poly(n) time using poly(n) parameters, reaching infidelities on the order of 10-5. By restricting the Hamiltonian to one-local and two-local terms, the method naturally yields hardware-efficient circuits suitable for near-term quantum devices. This separation keeps the quantum execution shallow while moving optimization to classical computation.
Sources
- Parallel Data Processing in Quantum Machine Learning
- Quantum Amplitude Amplification and Estimation
- Creating superpositions that correspond to efficiently integrable probability distributions
- Low-depth measurement-based deterministic quantum state preparation
- Hybrid Quantum State Preparation via Data Compression
- Quantum state preparation without coherent arithmetic
- Black-box Hamiltonian simulation and unitary implementation
- Hamiltonian Simulation by Uniform Spectral Amplification
- Reducing the Number of Qubits from $n^2$ to $n\log_{2} (n)$ to Solve the Traveling Salesman Problem with Quantum Computers: A Proposal for Demonstrating Quantum Supremacy in the NISQ Era
Related papers
- Reconquering Bell sampling on qudits: stabilizer learning and testing, quantum pseudorandomness bounds, and more
- Encrypted clones can leak: Classification of informative subsets in Quantum Encrypted Cloning
- Polynomial-time classical and quantum simulation of quantum impurity models
- Incoherent Imaging with Spatially Structured Quantum Probes
- A quasiparticle-protected superconducting qubit
- Theory of quantum-enhanced interferometry with general Markovian light sources