Query-Limited RAM Programs and their Applications

arXiv:2609.40194 · quant-ph, cs.CR · Submitted 2026-09-30 · Read on arXiv

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: Today's paper: "Query-Limited RAM Programs and their Applications".

Mira: As a diligent AI researcher, I have meticulously analyzed the provided excerpts from this arXiv paper concerning Quantum One-Time Programs (OTPs) extended to Query-Limited RAM Programs (QLPs).

Kai: First, who's behind it and why it matters.

Title and authors: Kai: Okay, looking at the summary of this paper, it boils down to introducing QLPs, which are defined as a RAM-generalization of QOTPs that supports structured, stateful computation under bounded or policy-driven access. This means the program can execute sequences of evaluations while actively preventing adversarial forking or rollback of its computational state.

Mira: That emphasis on "preventing adversarial forking" is key; it suggests they are building a framework where the integrity of the computation isn't just about one-shot usage, but about maintaining a consistent internal state across multiple allowed evaluations.

Lev: That consistency is hard to guarantee when you have quantum mechanics involved; running this on real hardware would require extremely sophisticated error correction to ensure that any deviation from the intended sequence doesn't lead to an entirely corrupted result.

Kai: Right, and the paper connects these QLPs back to a specific security model, defining QLP security within the Limited-Effective-Query (LEQ) Oracle model by showing that a secure QLP is equivalent to being able to simulate it using only LEQ access.

Mira: The LEQ model sounds like a clever way to define what "secure" means in this context; it sets an ideal world for simulation, which helps us understand the actual computational power the system can provide under those constraints.

Lev: If they can prove equivalence to an LEQ simulator, that gives us a concrete target for designing quantum error-correcting codes that could protect these QLP systems from noise during execution.

The paper's summary: Kai: The paper then outlines several practical improvements and applications stemming from this QLP framework, including using k-time programs or programs with a prefixed budget to yield token sizes and generation times that depend only polylogarithmically on k.

Mira: That polylogarithmic scaling is interesting; it suggests that as the allowed number of queries increases, the resources needed for the resulting quantum tokens don't explode exponentially, which is much more favorable than what we usually see in complexity analysis.

Lev: Polylogarithmic dependence on k means that if we are designing a system where k is large, we can actually scale up the computational capacity of our quantum tokens with predictable resource increases, which is something I'd find very useful for scaling up computations.

Kai: They also introduce Pay-Per-Use programs as an amplifier to upgrade standard signature assumptions into one-shot signatures with flexible formats, leading to a semi-quantum query-limited program where users can query the program on many inputs if they have distinct serial numbers.

Mira: That PPU mechanism seems like a way to bridge the gap between simple signing and richer interaction; it allows for dynamic usage based on verified effort, which is something we need for flexible service models.

Lev: If that PPU mechanism works as described, it means we could potentially build AI services where the cost is verifiable by the user before they run many complex queries, which addresses resource management concerns directly.

The paper's improvements: Kai: So, to wrap up the paper "Query-Limited RAM Programs and their Applications," it establishes a way to move from stateless OTPs to stateful QLPs that allow for structured computation under policy constraints. The implications suggest we can build quantum tokens whose size is tied only to the program's definition rather than its runtime execution path.

Mira: I think the real impact lies in how they connect these theoretical constructs back to practical application areas like dynamic service models and verifiable resource usage through their PPU programs. It gives a solid mathematical foundation for designing AI services with inherent control over complexity.

Lev: For me, it's about seeing a path toward fault-tolerant systems; if the security proofs hold up as stated, it suggests we can design quantum error correction tailored specifically to protect these stateful evaluation sequences within the QLP structure.

Kai: It’s exciting to see how this framework lets us formalize more complex interactions with quantum computation in a way that remains rigorously secure against adversarial manipulation of the state.

Mira: Indeed, it provides a necessary layer of control over quantum programs that moves beyond what we currently have in standard OTP implementations.

Lev: I'm just hopeful that the simulation paradigm they define holds up when we try to translate these QLP concepts into the noisy physical reality of current quantum hardware architectures.

Conclusion: Kai: So we've covered how these Query-Limited RAM Programs, or QLPs, extend quantum one-time programs to handle stateful computation under bounded access rules.

Mira: Exactly, and the core idea is that this framework lets us build AI models where the computational resources scale predictably with their complexity rather than just being arbitrary execution paths.

Lev: I'm still thinking about how those security proofs translate to actual hardware; if we can’t simulate that LEQ oracle efficiently, running a QLP on real quantum processors seems like a monumental task.

Kai: Right, and the results showed that budget-limited programs can have token sizes that depend only polylogarithmically on k, which is pretty compelling for practical token management.

Mira: That scaling is significant because it suggests we can manage the memory footprint of complex quantum agents in a way that's much more efficient than linear scaling.

Lev: If those time bounds hold up, it opens the door for developing resource-aware quantum tokens where the complexity of the token is directly tied to its programmed constraints.

Kai: And they also showed how pay-per-use programs can act as an amplifier to upgrade signature assumptions, creating semi-quantum query-limited programs that let users query models on many inputs securely.

Mira: That PPU mechanism provides a solid mathematical basis for dynamic pricing and verifiable computational effort in AI services.

Lev: That ability to retroactively bound the cost of queries is interesting because it addresses a major hurdle in billing complex generative models transparently.

Kai: Overall, this paper on Query-Limited RAM Programs really lays out the architecture for building stateful, controllable quantum computation that’s secure against state manipulation.

Mira: It gives us a clear roadmap for designing quantum systems where control over memory and access is paramount, which is essential for robust AI infrastructure.

Lev: If the LEQ simulation holds up in practice, it sets a strong benchmark for what we need to achieve in terms of error management within these QLP structures.

Kai: We'll keep an eye on how this framework integrates with our experimental setups next, and then we'll look at those papers on entanglement collapse and complexity constraints.

Jiahui Liu, Justin Raizes, Bhaskar Roberts, Omri Shmueli

Fujitsu Research · NTT Research

quant-ph, cs.CR

Submitted: 2026-09-30

Updated: 2026-09-30

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 92/100

The gist: As a diligent AI researcher, I have meticulously analyzed the provided excerpts from this arXiv paper concerning Quantum One-Time Programs (OTPs) extended to Query-Limited RAM Programs (QLPs).

Key concepts

One-Shot Programs (OSPs)
These programs bridge one-shot signatures with the single effective query paradigm. They are used to show that one-shot programs imply query-limited capabilities, strengthening the security guarantees for quantum computation.
QLP Compiler
This compiler manages successive evaluations by tracking both an access counter and the program's full working memory. It is secure if its functionality can be simulated using only Limited-Effective-Query (LEQ) access.
Limited-Effective-Query (LEQ) Oracle model
This is the formal security setting where QLP compilers are evaluated. A compiler is secure if it can be simulated by an oracle that enforces strict limits on how many effective queries the program can make, ensuring state consistency.

Terminology

Summary

As a diligent AI researcher, I have meticulously analyzed the provided excerpts from this arXiv paper concerning Quantum One-Time Programs (OTPs) extended to Query-Limited RAM Programs (QLPs). The material presents a sophisticated framework for extending classical one-time computation into a quantum, query-limited setting, focusing heavily on compiler construction and rigorous security proofs within specific oracle models.

Here is a detailed, synthesized summary of the paper's core contributions:


This research introduces the extension of Quantum One-Time Programs (OTPs) to Query-Limited RAM Programs (QLPs). QLPs are designed to support structured, stateful computation under bounded or policy-driven access constraints, crucially preventing adversarial forking or rollback of computational state. This capability allows for new applications beyond stateless OTPs, such as quantum tokens for Turing Machines whose size is governed by code length and transferable k-time or budget-limited programs.

The foundation of the work lies in unifying concepts through One-Shot Programs (OSPs), which serve to bridge one-shot signatures with the single effective query paradigm. The authors establish a critical implication: one-shot programs generically imply query-limited programs, meaning that strengthening the unclonability guarantees of one-shot signatures translates directly into enhanced computational functionality within QLPs. Furthermore, they clarify the relationship between signature-token primitives and quantum OTPs via generic constructions, demonstrating that one-time signing programs imply one-time general computation.

The paper defines a specific QLP compiler capable of handling successive evaluations. Unlike standard models, the state maintained by this compiler includes not only an access counter but also the program's full working memory.

Security Definition: The security of QLPs is formally defined within the Limited-Effective-Query (LEQ) Oracle model. A QLP compiler is deemed secure if its entire encoded program can be simulated using only LEQ access, expressed by the equivalence: QLP(P) about c SimO LEQ P.

The research demonstrates several powerful applications enabled by this framework:

  • Budget-Limited Programs: The work shows that k-time programs and programs with a prefixed budget yield token sizes and generation times that depend only polylogarithmically on k.

  • Pay-Per-Use (PPU) Programs: A novel capability is introduced where the authors show how OSPs can be used as an amplifier to upgrade standard signature assumptions into one-shot signatures with flexible formats. This leads to the construction of a generalized one-time program compiler that allows users to query the program on many inputs, provided they possess distinct serial numbers. This mechanism is then used to construct a semi-quantum query-limited program.

  • Retroactive Bound Determination: The ability to retroactively determine the bound k via PPU programs suggests promising new solutions for Software-as-a-Service (SaaS) models that maintain minimal communication and resource usage.

The security analysis is exceptionally thorough, relying on complex hybrid oracle constructions to prove the compiler's integrity against adversaries operating in different computational models.

  • SEQ Security: The security proof for the generalized OTP compiler relies on simulating functionality using an oracle that explicitly records queries and enforces state consistency (SEQ security). The construction of a SEQ simulator demonstrates that real-world oracles are computationally indistinguishable from ideal-world simulators, confirming this crucial property.

  • Hybrid Oracle Simulation: A significant portion of the analysis involves constructing and comparing various hybrid quantum oracle constructions (Hybrid 4 through Hybrid 14). Key findings establish strong equivalences:

  • Hybrids (8) and (9) act equivalently on a specific state, with the SEQ check mechanism being functionally identical across both.

  • Hybrids 5 and 6 are proven to be perfectly indistinguishable after any number of quantum queries.

  • Hybrid 7 and Hybrid 8 are perfectly indistinguishable.

  • The final security proof culminates in showing that the real-world hybrid oracle (O P_Hyb in hybrid 1) is computationally indistinguishable from the ideal simulator (SimO_LEQ P in hybrid 8).

The paper concludes by establishing several critical theorems that validate the constructed compilers:

  • **Theorem 4.

Improvements for AI systems

Based on the provided scientific paper, here are specific ways to improve AI systems by leveraging the concepts introduced in Query-Limited RAM Programs (QLPs) and related primitives:


The core contribution of this work is extending Quantum One-Time Programs (OTPs) into stateful, controlled access mechanisms called Query-Limited RAM Programs (QLPs). This moves beyond stateless one-time computation to enable structured, stateful computation under bounded or policy-driven access.

Here are the specific improvements and capabilities for AI systems:

  1. Fundamental Shift from Stateless to Stateful Computation:

  2. Enabling Stateful Service Provision (SaaS/API Models):

  3. Efficient Delegation of Complex Computation (k-time/Budgeted Programs):

  4. Resource-Aware Quantum Token Management:

Specific Improvements and Capabilities:

  1. A QLP Compiler can be used to construct quantum tokens for Turing Machines whose size depends only on the code length (and not runtime). This allows for creating stateful AI models where the computational complexity of the token is tied to the program's definition, rather than its execution path, which is crucial for efficient model representation.

  2. Development of Quantum Tokens for State-Dependent Functionality: The QLP framework allows issuing a quantum token where its size and generation time depend only polylogarithmically on the number of steps/queries allowed (k). This enables the creation of quantum tokens that represent complex, stateful AI agents or models whose required resources scale with their inherent complexity, not the arbitrary sequence of user queries.

  3. Implementing Fine-Grained Access Policies in Cloud AI: QLPs support access policies enforced by the program itself rather than relying on an always-online provider. This allows for secure Software-as-a-Service (SaaS) models where users can query a powerful AI model, but the model's internal state (e.g., context, memory) is strictly controlled and cannot be arbitrarily manipulated or forked by the user across queries.

  4. Building Pay-Per-Use (PPU) AI Services: The paper introduces PPU programs where users can retroactively prove a cost bound on their queries before payment. This allows for AI services where users are charged based on verified computational effort, enabling dynamic pricing and preventing prove-then-query-more attacks, which is critical for billing complex generative models.

  5. Semi-Quantum Query-Limited Programs for Cross-Platform Delegation: The ability to construct semi-quantum QLP compilers allows a user to transfer the capability of evaluating a restricted program (e.g., an AI model's stateful evaluation logic) to another user via classical communication, without needing a fully quantum infrastructure. This enables secure, low-overhead delegation of computation between different users or systems over classical channels.

  6. Advanced Security Primitives for Model Integrity: By leveraging One-Shot Programs (OSPs) built on one-shot signatures, AI models can be secured against adversaries who might try to fork the inner state between queries. The security proof shows that these primitives translate into enhanced functionality, specifically allowing the token to gate sequences of state transitions without relying on trusted hardware or online authorities.

  7. Quantum-Enhanced Signature Schemes for Model Authorization: By utilizing One-Shot Signature Schemes, one can construct signature tokens that are not only unclonable but also provide a verifiable link between a program state (serial number) and the right to perform specific computations, strengthening authorization mechanisms in decentralized AI systems.

In summary, this research provides the theoretical foundation for creating quantum-secure AI services that are:

  • Stateful and controllable (QLPs).

  • Efficiently delegable across platforms (Semi-Quantum QLPs).

  • Resource-aware and auditable (PPU programs).

  • Secure against state manipulation/forking attacks (OSPs/QLPs).

Sources

Related papers