Classical Hardness of Learning Functions of Hamiltonians
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: I'm Kai, and with me are Mira and Lev, guest researcher.
Mira: Today's paper: "Classical Hardness of Learning Functions of Hamiltonians".
Kai: The gist: This paper rigorously proves that for two specific distribution-dependent Hamiltonian function learning problems,
Mira: First, who's behind it and why it matters.
Paper summary: Kai: So, this paper is about something called Hamiltonian function learning. Essentially, they're looking at predicting things like the trace of a function applied to some quantum system Tr
f(H)ρ: just from classical descriptions of that system.
Mira: The authors propose two specific problems for this: one involving the cosine function, fcos,π(λ) = cos(πλ), and another using the exponential function, fexp,β(λ) = e −βλ.
Kai: What they claim is that even if you have an efficient classical randomized learner for these two specific tasks under squared loss—meaning they're measuring how close the prediction is to the actual value—it implies a classical polynomial-time algorithm for factoring random RSA moduli on average.
Mira: That’s a pretty strong connection because it links learning problems in quantum mechanics directly to one of the hardest problems in classical cryptography, which is integer factorization.
Kai: It matters because it shows that the difficulty of learning these specific quantum quantities isn't just some abstract math problem; it’s tied to a fundamental cryptographic assumption about how hard factoring is for classical computers.
Mira: The paper sets up a rigorous proof showing this connection under the assumption that factoring random RSA moduli is classically hard on average, which they call Assumption two point five >
Conclusion: Kai: Thinking about this whole "Classical Hardness of Learning Functions of Hamiltonians" idea, the authors are basically showing that for these particular learning problems, if a classical randomized learner can do well, then factoring RSA is easy on average.
Mira: It’s a bit counterintuitive because we usually think learning hard things implies they should be hard to learn classically >
Kai: But this paper constructs these specific problems using distributions that share the same underlying structure, and they use a reduction strategy similar to what Kearns and Valiant did to link them.
Mira: The implication for someone just listening is that if you could efficiently learn these types of quantum state predictions classically, you’d have a classical algorithm that can factor RSA moduli in polynomial time when chosen randomly >
Kai: It highlights the deep interplay between learning theory, quantum mechanics, and number theory; it suggests that the structure of certain quantum measurements is intrinsically linked to the difficulty of factoring.
Mira: The authors show this holds for both fcos,π and fexp,β problems under Assumption two point five >
Sota Hashimoto, *Akinori Kawachi†
quant-ph, cs.LG
Submitted: 2026-10-01
Updated: 2026-10-01
Comments: 11 pages, 1 figure
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 92/100
The gist: The gist: This paper rigorously proves that for two specific distribution-dependent Hamiltonian function learning problems, an efficient classical randomized learner under squared loss implies an
Key concepts
- Hamiltonian Function Learning (HFL)
- This is a machine learning problem where the goal is to predict a value derived from a quantum system's Hamiltonian and state. Specifically, the paper focuses on predicting Tr[f(Hx)ρx] based on classical descriptions of H and ρ.
- Distribution-Specific Regression
- The problems are framed as regression tasks where the target function depends on specific probability distributions (Pcos,π and Pexp,β). The input data is constructed from pairs of Hamiltonian/state descriptions drawn from these distributions.
- Reduction to Factoring Hardness
- The core strategy links the learnability of these functions to integer factorization. If a classical learner can solve the HFL problems efficiently, it allows one to construct an algorithm that factors RSA moduli in polynomial time, suggesting factoring is easy.
Terminology
Summary
The gist: This paper rigorously proves that for two specific distribution-dependent Hamiltonian function learning problems, an efficient classical randomized learner under squared loss implies an average-case classical polynomial-time algorithm for factoring random RSA moduli
Problem Formulation and Context
The problem studied is Hamiltonian function learning, where the goal is to predict quantities of the form Tr[f(H)ρ] from a classical description of a Hamiltonian H and a quantum state ρ, given labeled examples The authors focus on two specific functions: fcos,π(λ) = cos(πλ) and fexp,β(λ) = e−βλ. These problems are framed as distribution-specific regression problems where the target function is Fn(x):= Tr[f(Hx)ρx]. The construction involves inputs x ∈ Xn being a polynomial-length classical description of a pair of a Hamiltonian Hx and a density operator ρx on m(n) = poly(n) qubits.
The Reduction Strategy
The proof establishes hardness by reducing the efficient learnability of either problem to the average-case hardness of integer factorization. The reduction follows the strategy of Kearns and Valiant. Specifically, given a challenge modulus N ∼ Dn, an efficient classical learner A is used to obtain a hypothesis g from i.i.d. training samples drawn from Den. The algorithm B then uses this hypothesis to recover the factors of N by comparing outputs on inputs constructed from N.
Construction of Hard Instances
The construction for the hard instances involves relating the target function values to a bit, zj:= bit(L(n))j(min[p, q]). For fcos,π-HFL, the target value is defined as ycos,π:= 1 − 2i[b = zj]. For fexp,β-HFL, the target is yexp,β:= 1 − (1 − ecβ,n)i[b = zj]. The input space Xn is defined as Xn:= xN,j,b: N ∈ supp(Dn), j ∈ [L(n)], b ∈ 0, 1. The distributions Pcos,π and Pexp,β are constructed such that they share the same marginal distribution µn on Xn.
Verification of Hardness
Lemma 3.2 establishes the efficiency and target-separation properties required for the reduction. It shows that both Pcos,πn and Pexp,βn are efficiently samplable by classical randomized polynomial-time algorithms. Furthermore, it provides bounds on the target function differences: Fcos,πn(xN,j,b) − 1 − 2i[b = zj] ≤ 2ν(n) and Fexp,βn(xN,j,b) − 1 − (1 − e−β)i[b = zj] ≤ (1 − e−β)ν(n), where ν is a negligible function.
Conclusion of the Proof
The final step involves running the learner A and using Markov’s inequality to show that if Rµn(g) ≤ τ(n), then Pr[N∼Dn,S,A[pb = min[p, q]] ≥ 99/100 > 2/3. This demonstrates that neither problem is efficiently learnable by a classical randomized algorithm under squared loss under the assumption of average-case factoring hardness. The reduction is noted to be more general than stated, applying to problems where recovery of a polynomial-length witness from an input is hard on average for classical randomized polynomial-time algorithms. The paper concludes that under Assumption 2.5, neither problem is efficiently learnable by a classical randomized algorithm under squared loss in the sense of Definition 2.3.
--- Page 9 ---
The final divisibility check succeeds and B outputs p, bNpb = (min[p, q], max[p, q]) >
--- Page 8 ---
The algorithm B runs in classical randomized polynomial time. Since ε(n)−1 = poly(n) and δ(n−1) = 200, the sample size in Step 1 is polynomial in n. Each sample and each challenge input can be generated in polynomial time by Lemma 3.2. By Definition 2.3, A runs in polynomial time and the hypothesis g is evaluable in polynomial time. Since L(n) = poly(n), the reconstruction and divisibility check also take polynomial time. Whenever RN (g) ≤ τ(n), we have pb = min[p, q]. Consequently, Pr(N,p,q)∼Den,S,A[pb = min[p, q]] ≥ 99/100 > 2/3. Whenever pb = min[p, q], the final divisibility check succeeds and B outputs p, bNpb = (min[p, q], max[p, q]) >
--- Page 7 ---
By construction, the two distributions have the same marginal distribution µn on Xn. Define the target functions on Xn by Fcos,πn(x):= Tr[cos(πHx)ρx], Fexp,βn(x):= Tr[e−βHx ρx]. We then set Lcos,π:= (Xn, Fcos,πn,Pcos,πn)n∈N and Lexp,β:= (Xn, Fexp,βn,Pexp,βn)n∈N. By construction these are fcos,π-HFL and fexp,β-HFL problems, respectively in the sense of Definition 2.2.
--- Page 6 ---
We now construct two f-HFL problems with these properties. Fix n ∈ N. Draw (N, p, q) ∼ Den, and choose a bit position j ∈ [L(n)] and a bit b ∈ 0, 1 independently and uniformly at random. Let zj:= bit(L(n))j(min[p, q]). From N, j, b, we construct a polynomial-size quantum circuit UN,j,b based on Shor’s factoring algorithm [Sho97] with success-probability amplification. Any classical random bits used in the factoring procedure are generated coherently using ancillary qubits and retained as part of the workspace, so that UN,j,b is a fixed unitary circuit determined by N, j, b. The circuit coherently performs the factoring procedure with designated registers containing candidate factors (p′, q′) and a designated one-qubit output register o that indicates acceptance or rejection. If the verification succeeds, it computes z:= min[p′, q′] and checks whether b = bit(L(n))j(z). The circuit accepts if this condition is satisfied in at least one repetition, and rejects otherwise. Since N = pq with distinct primes p and q, every valid nontrivial factorization of N yields the same value min[p′, q′].
Improvements for AI systems
-
The AI system can be used to break classical randomized polynomial-time algorithms for integer factorization by leveraging an efficient classical learner for Hamiltonian function learning problems. The proof shows that if a classical randomized learner exists under squared loss, it yields a
classical randomized polynomial-time algorithm B for factoring a random modulus drawn from Dn.
-
The system can perform quantum advantage demonstrations in machine learning tasks related to predicting quantities of the form
Tr[f(H)ρ] from classical descriptions of a Hamiltonian H and a quantum state ρ,
specifically for functions likecos(tλ)
andexp,β(λ).
This is achieved by constructing distribution-specific problems where the target functions are approximated up to negligible error. -
The AI system can be used to design quantum circuits based on Shor’s factoring algorithm to construct specific projector Hamiltonians, such as
HN,j,b:= U†N,j,bΠaccUN,j,b,
which are then used as inputs for the Hamiltonian function learning task. -
The system can identify and exploit structural properties of the target functions that ensure separation between hypotheses; for example, the construction ensures that
the target values for b = 0 and b = 1 are separated by a constant: when b equals the j-th bit of min[p, q], the two target values are close to-1 and e − β, respectively.
-
The system can generate training samples from i.i.d. triples sampled from the
RSA modulus distribution
(Den) to train classical learners for Hamiltonian function learning problems, enabling a reduction to the average-case hardness of factoring random RSA moduli under Assumption 2.5.
Sources
- Quantum Advantage in Learning Quantum Dynamics via Fourier coefficient extraction
- Exponential separations between classical and quantum learners
- Learning functions of Hamiltonians with Hamiltonian Fourier features
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
- Theory of quantum-enhanced interferometry with general Markovian light sources
- A convergent hierarchy of spectral gap certificates for qubit Hamiltonians
- Universal Bound and Phase Transition in Many-Body Fermionic Non-Gaussianity