← Lab /Quantum

QGANs can load hash-based signature distributions onto near-term quantum hardware

Quantum Generative Adversarial Networks can encode the probability distribution of hash-based digital signatures into quantum memory

Quantum arXiv 15 Jul 2026 Method Prototype evidence

Published as “Towards quantum machine learning for assessing the resilience of post-quantum cryptography”

Why it matters

If scalable QGANs become feasible, they could aid cryptoanalysis by modeling PQC output distributions and narrowing key search spaces.

Summary

The paper shows that a hybrid quantum-classical QGAN can learn the probability distribution of SPHINCS+ hash-based signature bytes, with the hardware-efficient ansatz achieving the most accurate approximation and the real-amplitudes ansatz outperforming the larger N-local ansatz despite fewer parameters. The evidence comes from simulated experiments on a 16-qubit register using 213 signatures and Kullback-Leibler divergence metrics. However, the study is limited to simulation on a small data subset, does not perform a full cryptanalytic attack, and acknowledges sensitivity to noise on current NISQ hardware.

What they found 3

  1. QGAN learns the SPHINCS+ signature distribution using hardware-efficient and real-amplitudes ansatzes

    “obtained results one can conclude that the proposed method is able to learn the probability distribution of the signatures in the case of hardware-efficient ansatz and real-amplitudes ansatz.”

  2. Real-amplitudes ansatz outperforms N-local ansatz despite fewer parameters

    “real-amplitudes ansatz, despite using only 56 trainable parameters, was able to deliver a better approximation of the real data compared with N-local ansatz (using 96 trainable parameters).”

  3. Hardware-efficient ansatz yields the most accurate approximation

    “the results of hardwareefficient ansatz are better and lead to a more accurate approximation of the real distribution.”

Caveats 3

  • the presented study does not present a full cryptanalytic attack, such as key recovery or message forgery, thus limiting its immediate practical implications.
  • the framework presented in this work is limited by the current state of the quantum computing technology. In particular, QGANs are sensitive to noise and the current quantum computers are still lacking the level of error-correction required to implement them with high fidelity.
  • the presented experiments are based on the simulation and the considered dataset consists only of a small portion of signature data.

What’s new here 4

  • First application of QGANs to learn the distribution of a post-quantum hash-based signature scheme (SPHINCS+).
  • Empirical comparison of three variational ansatzes (N-local, real-amplitudes, hardware-efficient) for this task.
  • Demonstrates that a real-amplitudes ansatz with only 56 parameters can outperform a larger N-local ansatz with 96 parameters.
  • Provides a concrete hybrid framework that loads PQC data into a quantum state using O(poly(n)) gates.