Introduction
Boltzmann Machines (BMs) are powerful generative models used to represent complex probability distributions. However, their training is notoriously difficult due to the computational intractability of the "partition function"—a normalization factor that grows exponentially with the number of units. While Quantum Boltzmann Machines (QBMs) were proposed to leverage quantum hardware for this task, existing methods have struggled with incorporating hidden units, relying on gradient approximations, and requiring fault-tolerant hardware.
This paper introduces VarQBM, a novel framework designed for Noisy Intermediate-Scale Quantum (NISQ) devices. VarQBM enables the training of QBMs with hidden units using exact analytic gradients of the loss function, providing a significant leap in both generative and discriminative performance.
The VarQBM Algorithm
The core of the VarQBM framework is the use of Variational Quantum Imaginary Time Evolution (VarQITE). While typically used in physics to find ground states, the authors repurpose VarQITE to prepare Gibbs states (thermal equilibrium states) at specific temperatures.
By applying McLachlan’s variational principle, the algorithm maps the evolution of the quantum state directly to the parameters of a quantum circuit. This allows for the calculation of exact analytic gradients via automatic differentiation, creating an efficient hybrid loop between the quantum processor and a classical optimizer.
Key Advantages
- Hidden Units: VarQBM naturally handles hidden units (latent variables) through projective measurements on visible qubits. This avoids the complex approximations required in classical Restricted Boltzmann Machines (RBMs) and allows the model to learn more intricate patterns.
- Exact Gradients: Unlike previous approaches that trained on an upper bound of the loss function, VarQBM computes the gradient of the actual loss. This leads to more precise training and better convergence.
- Efficiency: The automatic differentiation scheme used in VarQBM is more efficient than standard finite-difference methods when the number of trial state parameters is smaller than the number of Hamiltonian parameters.
Experimental Results
The researchers validated VarQBM through both hardware experiments and synthetic benchmarks:
- Hardware Fidelity: The team successfully prepared Gibbs states on the 20-qubit ibmq_johannesburg processor with fidelities exceeding 0.96, proving the algorithm's robustness on noisy, near-term hardware.
- Generative Learning: The model accurately learned to mimic the non-local correlations of a Bell state.
- Discriminative Learning: In a credit card fraud detection task, VarQBM achieved an $F_1$ score of 0.70, significantly outperforming classical Linear SVMs and RBMs, which failed to identify any fraudulent transactions in the same setup.
Conclusion
VarQBM represents a significant advancement in quantum machine learning, offering a practical way to train complex models on current quantum hardware. By enabling the use of hidden units and exact gradients, it overcomes several of the primary hurdles that have limited the utility of Quantum Boltzmann Machines to date.
Summary updated