Quantum One-Time Protection of Any Randomized Algorithm

Sam Gunn, Ramis Movassagh

TL;DR

Researchers from Google Quantum AI have developed a scheme for "quantum one-time tokens" that allow a user to run a randomized classical program—such as a generative AI model—exactly once. By leveraging the unclonable nature of quantum states, this method ensures that once a program is executed, the token is "consumed," preventing unauthorized re-runs or piracy without requiring a constant internet connection to a central server.

What Problem Does This Paper Address?

In the software industry, there is a fundamental tension between usability and exclusivity.

  1. If you give a user the code (even obfuscated), they can run it an infinite number of times (piracy).
  2. If you keep the code on your server and let users query it (API model), you maintain control, but the user needs a constant connection, and the provider faces massive server costs.

This problem is especially relevant for generative AI, where models are incredibly expensive to train and contain proprietary data. Ideally, a provider would like to give a user a "digital ticket" that lets them run a model locally on their own hardware exactly once. Classically, this is impossible because digital bits can always be copied. This paper uses quantum mechanics—specifically the fact that quantum information cannot be perfectly cloned—to solve this "pay-per-query" dilemma for any randomized algorithm.

Methods

The authors propose a hybrid construction that combines classical cryptography with quantum states:

  • Quantum One-Time Authentication: The "token" is a small quantum state ($|\psi\rangle$). To run the program, the user must perform a specific measurement on this state based on their chosen input. This measurement produces a "tag" that proves they had the token.
  • Classical Obfuscation: The actual program (e.g., the AI model) is wrapped in a "black box" (obfuscated) so the user can't see the internal logic. This obfuscated program is designed to only trigger if it receives a valid "tag" from the quantum measurement.
  • Randomness Seeding: Since the target programs are randomized, the scheme uses a hash of the input and the quantum authentication tag to generate the "random" bits needed for the algorithm.
  • The "Collapsing" Property: The core technical innovation is proving that the function used to generate the output is "collapsing." In quantum terms, this means that once the user gets an output, the state of the system "collapses" in a way that prevents them from ever finding a second valid input-tag pair.

Crucially, the quantum requirements are independent of the program's complexity. You could protect a trillion-parameter LLM using a quantum token consisting of only a few dozen qubits.

Datasets

Not discussed in the paper. As a theoretical cryptography and quantum information paper, it focuses on mathematical proofs and algorithmic construction rather than empirical testing on specific datasets.

Key Insights and Ideas

  • Hardware Agnostic Security: The quantum state doesn't need to "run" the AI model. It only acts as a lock. This means the scheme could be implemented on near-term, noisy (NISQ) quantum devices or early fault-tolerant systems, while the heavy lifting of the AI model happens on standard classical GPUs.
  • The Power of Randomization: The scheme specifically targets randomized algorithms. The authors show that if the program's output has enough "min-entropy" (i.e., the output isn't easily predictable), the quantum measurement naturally enforces the one-time-use constraint.
  • Black-Box Security: They prove security in the "black-box" model, meaning that even if an attacker has a quantum computer and can probe the obfuscated program in complex ways, they still can't extract a second use from a single token.

Key Results

  • Formal Security Proof: The authors provide a rigorous proof that their construction satisfies "one-time security." If an adversary tries to generate two different outputs from one token, their probability of success is negligibly small.
  • Generalization: Unlike previous work that only protected specific mathematical functions (like digital signatures), this is the first general-purpose scheme for any randomized classical algorithm.
  • Efficiency: They demonstrate that the "advantage" an attacker might gain scales down exponentially with the security parameters, making the system highly robust with relatively few quantum resources.

Limitations and Future Work

  • Reliance on Obfuscation: The classical part of the scheme relies on "program obfuscation." While theoretical "Indistinguishability Obfuscation" (iO) exists, it is currently too slow for practical use. The authors suggest that heuristic obfuscation (common in the software industry today) could be used in the meantime.
  • Quantum Communication: Currently, the proprietor must physically or via a quantum network send a quantum state to the user. The authors mention "remote state preparation" as a way to do this over classical channels, but note that those protocols are currently too complex for near-term hardware.
  • Deterministic Programs: This specific proof only works for randomized algorithms. Protecting a purely deterministic program (where the same input always gives the same output) remains a harder challenge due to "rewinding" attacks.

Summary updated

BibTeX
@inproceedings{gunn2025quantum,
  author = {Sam Gunn and Ramis Movassagh},
  title = {{Quantum One-Time Protection of Any Randomized Algorithm}},
  booktitle = {CRYPTO},
  year = {2025},
  doi = {10.1007/978-3-032-01878-6\_11},
}
Figure