Expressive equivalence of classical and quantum restricted Boltzmann machines

Maria Demidik, Cenk Tüysüz, Nico Piatkowski, Michele Grossi, Karl Jansen

The field of Quantum Machine Learning (QML) often feels like a tug-of-war between two extremes. On one side, we have classical models like Restricted Boltzmann Machines (RBMs) that are well-understood but require massive hidden layers to capture complex data. On the other, we have Quantum Restricted Boltzmann Machines (QRBMs) that are incredibly expressive but computationally "intractable" to train because their non-commuting parts make calculating gradients a nightmare.

In a new paper titled "Expressive equivalence of classical and quantum restricted Boltzmann machines," researchers from DESY, CERN, and several European institutes have found a "Goldilocks" middle ground: the semi-quantum Restricted Boltzmann Machine (sqRBM).

TL;DR

The authors introduce the sqRBM, a model that is "quantum" only in its hidden layer. This clever design allows for exact gradient calculations while proving that a single quantum hidden unit can do the work of three classical ones, offering a 3x reduction in qubit requirements for the same representational power.

What Problem Does This Paper Address?

Generative modeling—learning to create new data that looks like your training set—is a cornerstone of machine learning. Classical RBMs do this using a "visible" layer for data and a "hidden" layer to capture latent features. To model complex distributions, you need a lot of hidden units, which becomes computationally expensive.

Quantum versions (QRBMs) should, in theory, be much more efficient. However, they use "non-commuting" Hamiltonians (where the order of operations matters). This makes it nearly impossible to derive simple formulas for how to update the model (the gradients). Most researchers have to settle for rough approximations or "frozen" quantum terms that don't actually learn. Furthermore, many QML models suffer from "barren plateaus," where the gradients vanish as the system grows, making them impossible to scale.

Methods

The authors propose the sqRBM. The "semi-quantum" trick is simple but profound:

  1. Commuting Visible Layer: The part of the model that interacts with classical data is kept "classical" (commuting).
  2. Non-Commuting Hidden Layer: The hidden units use non-commuting Pauli operators ($X, Y, Z$).

Because the visible layer commutes, the authors were able to derive closed-form analytical expressions for both the output probabilities and the gradients. This means you can train an sqRBM using standard gradient descent without the "intractable" overhead of a full QRBM.

Datasets

The researchers validated their model using four synthetic datasets of increasing difficulty:

  • Simplified-BAS (Bars and Stripes): A standard benchmark for generative models representing grid patterns.
  • $O(n^2)$ Dataset: Uniform probability over randomly chosen bitstrings.
  • Cardinality Dataset: Bitstrings where exactly half the bits are set to 1.
  • Parity Dataset: Bitstrings with an even number of 1s (notoriously difficult for simple models to learn).

Key Insights and Ideas

  • The 3-for-1 Exchange Rate: The most striking finding is Theorem 2. It proves that an sqRBM with $m$ hidden units is expressively equivalent to a classical RBM with $3m$ hidden units (when using the $\{X, Y, Z\}$ operator set). If you only use $\{X, Z\}$, the ratio is 1:2.
  • Parameter Parity: Even though the sqRBM has fewer hidden units, it has the same total number of tunable parameters as the larger classical RBM. It’s essentially "packing" the information more densely into the quantum states.
  • Immunity to Barren Plateaus: Because there is no entanglement between the visible and hidden units in this specific architecture, the gradients don't vanish as the system size increases. The authors numerically showed that the variance of the gradients stays flat even as they scaled up to 100 units.
  • A Path to Near-Term QML: Since sqRBMs require significantly fewer qubits to achieve the same results as classical models, they are prime candidates for "Early Fault-Tolerant" quantum computers.

Key Results

  • Numerical Validation: Simulations confirmed the theoretical predictions. To reach a target accuracy (Total Variation Distance < 0.2), the classical RBM consistently required three times as many hidden units as the sqRBM{X, Y, Z}.
  • Scalability: The authors successfully simulated models with up to 100 units, demonstrating that the analytical gradients make these models much more practical than previous quantum proposals.
  • Training Stability: The sqRBMs converged reliably across all datasets, matching or exceeding classical performance while using a fraction of the "hardware" (units).

Limitations and Future Work

While the sqRBM is a major step forward, it currently only supports classical data as input because the visible layer is restricted to commuting operators.

The authors suggest several exciting next steps:

  1. sqBM (Semi-Quantum Boltzmann Machine): Adding "lateral" connections within the layers to further increase expressive power.
  2. Deep Architectures: Stacking sqRBMs to create "Deep Semi-Quantum Boltzmann Machines," similar to classical Deep Belief Networks.
  3. Quantum Data: Exploring how to modify the visible layer to handle true quantum states while maintaining the trainability of the model.

By proving that quantumness can be a "compressor" for model size without sacrificing trainability, this paper provides a clear blueprint for how quantum hardware might actually provide a practical advantage in machine learning in the near future.

Summary updated

BibTeX
@inproceedings{demidik2025expressive,
  author = {Maria Demidik and Cenk Tüysüz and Nico Piatkowski and Michele Grossi and Karl Jansen},
  title = {{Expressive equivalence of classical and quantum restricted Boltzmann machines}},
  booktitle = {Communications},
  year = {2025},
  doi = {10.1038/s42005-025-02353-1},
}
Figure